Home
last modified time | relevance | path

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

/Zephyr-latest/kernel/
Ddevice.c147 static int device_visitor(const device_handle_t *handles, in device_visitor() function
173 return device_visitor(handles, handle_count, visitor_cb, context); in device_required_foreach()
183 return device_visitor(handles, handle_count, visitor_cb, context); in device_supported_foreach()
/Zephyr-latest/tests/lib/devicetree/devices/src/
Dmain.c136 static int device_visitor(const struct device *dev, in device_visitor() function
166 zassert_equal(0, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
174 zassert_equal(0, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
182 zassert_equal(0, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
197 zassert_equal(-ENOSPC, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
204 zassert_equal(2, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
222 zassert_equal(1, device_required_foreach(dev, device_visitor, &ctx), in ZTEST()
304 zassert_equal(-ENOSPC, device_supported_foreach(dev, device_visitor, &ctx)); in ZTEST()
310 zassert_equal(1, device_supported_foreach(dev, device_visitor, &ctx)); in ZTEST()