Home
last modified time | relevance | path

Searched refs:device_visitor (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.6.0/kernel/
Ddevice.c105 static int device_visitor(const device_handle_t *handles, in device_visitor() function
131 return device_visitor(handles, handle_count, visitor_cb, context); in device_required_foreach()
141 return device_visitor(handles, handle_count, visitor_cb, context); in device_supported_foreach()
/Zephyr-Core-3.6.0/tests/lib/devicetree/devices/src/
Dmain.c137 static int device_visitor(const struct device *dev, in device_visitor() function
167 zassert_equal(0, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
175 zassert_equal(0, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
183 zassert_equal(0, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
198 zassert_equal(-ENOSPC, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
205 zassert_equal(2, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
223 zassert_equal(1, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
305 zassert_equal(-ENOSPC, device_supported_foreach(dev, device_visitor, &ctx)); in ZTEST()
311 zassert_equal(1, device_supported_foreach(dev, device_visitor, &ctx)); in ZTEST()