Lines Matching refs:master

48 	mutex_lock(&sl->master->bus_mutex);  in _read_reg()
52 mutex_unlock(&sl->master->bus_mutex); in _read_reg()
59 w1_write_block(sl->master, wrbuf, 3); in _read_reg()
60 *buf = w1_read_8(sl->master); in _read_reg()
62 mutex_unlock(&sl->master->bus_mutex); in _read_reg()
144 if (w1_reset_resume_command(sl->master)) in optional_read_back_valid()
151 w1_write_block(sl->master, w1_buf, 3); in optional_read_back_valid()
153 return (w1_read_8(sl->master) == expected); in optional_read_back_valid()
175 mutex_lock(&sl->master->bus_mutex); in output_write()
186 w1_write_block(sl->master, w1_buf, 3); in output_write()
188 if (w1_read_8(sl->master) == W1_F29_SUCCESS_CONFIRM_BYTE && in output_write()
194 if (w1_reset_resume_command(sl->master)) in output_write()
200 mutex_unlock(&sl->master->bus_mutex); in output_write()
222 mutex_lock(&sl->master->bus_mutex); in activity_write()
228 w1_write_8(sl->master, W1_F29_FUNC_RESET_ACTIVITY_LATCHES); in activity_write()
229 if (w1_read_8(sl->master) == W1_F29_SUCCESS_CONFIRM_BYTE) { in activity_write()
230 mutex_unlock(&sl->master->bus_mutex); in activity_write()
233 if (w1_reset_resume_command(sl->master)) in activity_write()
238 mutex_unlock(&sl->master->bus_mutex); in activity_write()
253 mutex_lock(&sl->master->bus_mutex); in status_control_write()
264 w1_write_block(sl->master, w1_buf, 4); in status_control_write()
265 if (w1_reset_resume_command(sl->master)) in status_control_write()
272 w1_write_block(sl->master, w1_buf, 3); in status_control_write()
273 if (w1_read_8(sl->master) == *buf) { in status_control_write()
275 mutex_unlock(&sl->master->bus_mutex); in status_control_write()
280 mutex_unlock(&sl->master->bus_mutex); in status_control_write()
300 mutex_lock(&sl->master->bus_mutex); in w1_f29_disable_test_mode()
302 res = w1_reset_bus(sl->master); in w1_f29_disable_test_mode()
305 w1_write_block(sl->master, magic, ARRAY_SIZE(magic)); in w1_f29_disable_test_mode()
307 res = w1_reset_bus(sl->master); in w1_f29_disable_test_mode()
309 mutex_unlock(&sl->master->bus_mutex); in w1_f29_disable_test_mode()