Lines Matching full:dev

16 	const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL);  in ZTEST()  local
19 zassert_true(device_is_ready(dev), "Device is not ready"); in ZTEST()
21 zassert_ok(bbram_get_size(dev, &size)); in ZTEST()
27 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
30 zassert_equal(bbram_read(dev, 0, 0, buffer), -EFAULT); in ZTEST()
31 zassert_equal(bbram_read(dev, 0, BBRAM_SIZE + 1, buffer), -EFAULT); in ZTEST()
32 zassert_equal(bbram_read(dev, BBRAM_SIZE - 1, 2, buffer), -EFAULT); in ZTEST()
33 zassert_equal(bbram_write(dev, 0, 0, buffer), -EFAULT); in ZTEST()
34 zassert_equal(bbram_write(dev, 0, BBRAM_SIZE + 1, buffer), -EFAULT); in ZTEST()
35 zassert_equal(bbram_write(dev, BBRAM_SIZE - 1, 2, buffer), -EFAULT); in ZTEST()
40 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
48 zassert_ok(bbram_write(dev, 0, BBRAM_SIZE, expected)); in ZTEST()
49 zassert_ok(bbram_read(dev, 0, BBRAM_SIZE, buffer)); in ZTEST()
55 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
57 zassert_equal(bbram_check_invalid(dev), 0); in ZTEST()
58 zassert_ok(bbram_emul_set_invalid(dev, true)); in ZTEST()
59 zassert_equal(bbram_check_invalid(dev), 1); in ZTEST()
60 zassert_equal(bbram_check_invalid(dev), 0); in ZTEST()
65 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
67 zassert_equal(bbram_check_standby_power(dev), 0); in ZTEST()
68 zassert_ok(bbram_emul_set_standby_power_state(dev, true)); in ZTEST()
69 zassert_equal(bbram_check_standby_power(dev), 1); in ZTEST()
70 zassert_equal(bbram_check_standby_power(dev), 0); in ZTEST()
75 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
77 zassert_equal(bbram_check_power(dev), 0); in ZTEST()
78 zassert_ok(bbram_emul_set_power_state(dev, true)); in ZTEST()
79 zassert_equal(bbram_check_power(dev), 1); in ZTEST()
80 zassert_equal(bbram_check_power(dev), 0); in ZTEST()
85 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
88 zassert_ok(bbram_emul_set_invalid(dev, true)); in ZTEST()
89 zassert_equal(bbram_read(dev, 0, BBRAM_SIZE, buffer), -EFAULT); in ZTEST()
90 zassert_equal(bbram_check_invalid(dev), 0); in ZTEST()
95 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
98 zassert_ok(bbram_emul_set_invalid(dev, true)); in ZTEST()
99 zassert_equal(bbram_write(dev, 0, BBRAM_SIZE, buffer), -EFAULT); in ZTEST()
100 zassert_equal(bbram_check_invalid(dev), 0); in ZTEST()
106 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in before() local
108 bbram_emul_set_invalid(dev, false); in before()
109 bbram_emul_set_standby_power_state(dev, false); in before()
110 bbram_emul_set_power_state(dev, false); in before()