Lines Matching refs:master_dev
19 const struct device *const master_dev = DEVICE_DT_GET(W1_MASTER); in get_w1_master_dev() local
21 zassert_true(device_is_ready(master_dev), "W1 master not found"); in get_w1_master_dev()
23 return master_dev; in get_w1_master_dev()
63 const struct device *master_dev = get_w1_master_dev(); in ZTEST_USER() local
71 zassert_equal(w1_lock_bus(master_dev), 0, "Fail lock 1"); in ZTEST_USER()
72 zassert_equal(w1_lock_bus(master_dev), 0, "Fail lock 2"); in ZTEST_USER()
73 zassert_equal(w1_unlock_bus(master_dev), 0, "Fail unlock 1"); in ZTEST_USER()
74 zassert_equal(w1_unlock_bus(master_dev), 0, "Fail unlock 2"); in ZTEST_USER()
76 slave_count = w1_get_slave_count(master_dev); in ZTEST_USER()
158 const struct device *master_dev = get_w1_master_dev(); in ZTEST_USER() local
160 ret = w1_reset_bus(master_dev); in ZTEST_USER()
177 const struct device *master_dev = get_w1_master_dev(); in ZTEST() local
179 ret = w1_search_rom(master_dev, w1_test_search_callback, 0); in ZTEST()
183 ret = w1_search_rom(master_dev, 0, 0); in ZTEST()
186 ret = w1_search_alarm(master_dev, 0, 0); in ZTEST()
194 const struct device *master_dev = get_w1_master_dev(); in ZTEST_USER() local
197 ret = w1_write_bit(master_dev, false); in ZTEST_USER()
200 ret = w1_write_byte(master_dev, 0x3b); in ZTEST_USER()
203 ret = w1_write_block(master_dev, block_send, sizeof(block_send)); in ZTEST_USER()
210 const struct device *master_dev = get_w1_master_dev(); in ZTEST_USER() local
216 ret = w1_read_bit(master_dev); in ZTEST_USER()
220 ret = w1_read_byte(master_dev); in ZTEST_USER()
224 ret = w1_read_block(master_dev, block_rcv, sizeof(block_rcv)); in ZTEST_USER()
234 const struct device *master_dev = get_w1_master_dev(); in ZTEST_USER() local
238 ret = w1_read_rom(master_dev, &cfg_1.rom); in ZTEST_USER()
241 ret = w1_match_rom(master_dev, &cfg_1); in ZTEST_USER()
244 ret = w1_resume_command(master_dev); in ZTEST_USER()
247 ret = w1_skip_rom(master_dev, &cfg_1); in ZTEST_USER()
250 ret = w1_reset_select(master_dev, &cfg_1); in ZTEST_USER()
253 ret = w1_write_read(master_dev, &cfg_1, block_send, 8, block_rcv, 0); in ZTEST_USER()