Lines Matching refs:nhdls

117 			 size_t nhdls)  in check_handle()  argument
119 const device_handle_t *hdle = hdls + nhdls; in check_handle()
156 size_t nhdls = 0; in ZTEST() local
164 hdls = device_required_handles_get(dev, &nhdls); in ZTEST()
165 zassert_equal(nhdls, 0); in ZTEST()
172 hdls = device_required_handles_get(dev, &nhdls); in ZTEST()
173 zassert_equal(nhdls, 0); in ZTEST()
180 hdls = device_required_handles_get(dev, &nhdls); in ZTEST()
181 zassert_equal(nhdls, 0); in ZTEST()
188 hdls = device_required_handles_get(dev, &nhdls); in ZTEST()
189 zassert_equal(nhdls, 2); in ZTEST()
190 zassert_true(check_handle(DEV_HDL(TEST_I2C), hdls, nhdls)); in ZTEST()
191 zassert_true(check_handle(DEV_HDL(TEST_GPIO), hdls, nhdls)); in ZTEST()
216 hdls = device_required_handles_get(dev, &nhdls); in ZTEST()
217 zassert_equal(nhdls, 1); in ZTEST()
218 zassert_true(check_handle(DEV_HDL(TEST_I2C), hdls, nhdls)); in ZTEST()
230 hdls = device_required_handles_get(dev, &nhdls); in ZTEST()
231 zassert_equal(nhdls, 2); in ZTEST()
232 zassert_true(check_handle(DEV_HDL(TEST_I2C), hdls, nhdls)); in ZTEST()
233 zassert_true(check_handle(DEV_HDL(TEST_GPIOX), hdls, nhdls)); in ZTEST()
238 hdls = device_required_handles_get(dev, &nhdls); in ZTEST()
239 zassert_equal(nhdls, 0); in ZTEST()
244 size_t nhdls = 0; in ZTEST() local
250 hdls = device_injected_handles_get(dev, &nhdls); in ZTEST()
251 zassert_equal(nhdls, 0); in ZTEST()
255 hdls = device_injected_handles_get(dev, &nhdls); in ZTEST()
256 zassert_equal(nhdls, 0); in ZTEST()
260 hdls = device_injected_handles_get(dev, &nhdls); in ZTEST()
261 zassert_equal(nhdls, 1); in ZTEST()
262 zassert_true(check_handle(DEV_HDL(TEST_DEVB), hdls, nhdls)); in ZTEST()
278 size_t nhdls = 0; in ZTEST() local
285 hdls = device_supported_handles_get(dev, &nhdls); in ZTEST()
286 zassert_equal(nhdls, 1); in ZTEST()
287 zassert_true(check_handle(DEV_HDL(TEST_GPIO_INJECTED), hdls, nhdls)); in ZTEST()
291 hdls = device_supported_handles_get(dev, &nhdls); in ZTEST()
292 zassert_equal(nhdls, 0); in ZTEST()
296 hdls = device_supported_handles_get(dev, &nhdls); in ZTEST()
297 zassert_equal(nhdls, 1); in ZTEST()
298 zassert_true(check_handle(DEV_HDL(TEST_DEVA), hdls, nhdls)); in ZTEST()
315 hdls = device_supported_handles_get(dev, &nhdls); in ZTEST()
316 zassert_equal(nhdls, 5); in ZTEST()
317 zassert_true(check_handle(DEV_HDL(TEST_DEVA), hdls, nhdls)); in ZTEST()
318 zassert_true(check_handle(DEV_HDL(TEST_GPIOX), hdls, nhdls)); in ZTEST()
319 zassert_true(check_handle(DEV_HDL(TEST_DEVB), hdls, nhdls)); in ZTEST()
320 zassert_true(check_handle(DEV_HDL(TEST_DEVC), hdls, nhdls)); in ZTEST()
321 zassert_true(check_handle(DEV_HDL(TEST_NOLABEL), hdls, nhdls)); in ZTEST()
327 hdls = device_supported_handles_get(dev, &nhdls); in ZTEST()
328 zassert_equal(nhdls, 1); in ZTEST()
329 zassert_true(check_handle(DEV_HDL(TEST_PARTITION), hdls, nhdls)); in ZTEST()