Lines Matching refs:master
55 mutex_lock(&sl->master->bus_mutex); in _read_reg()
59 mutex_unlock(&sl->master->bus_mutex); in _read_reg()
66 w1_write_block(sl->master, wrbuf, 3); in _read_reg()
67 *buf = w1_read_8(sl->master); in _read_reg()
69 mutex_unlock(&sl->master->bus_mutex); in _read_reg()
168 mutex_lock(&sl->master->bus_mutex); in w1_f29_write_output()
178 w1_write_block(sl->master, w1_buf, 3); in w1_f29_write_output()
180 readBack = w1_read_8(sl->master); in w1_f29_write_output()
183 if (w1_reset_resume_command(sl->master)) in w1_f29_write_output()
195 if (w1_reset_resume_command(sl->master)) in w1_f29_write_output()
203 w1_write_block(sl->master, w1_buf, 3); in w1_f29_write_output()
205 if (w1_read_8(sl->master) == *buf) in w1_f29_write_output()
209 mutex_unlock(&sl->master->bus_mutex); in w1_f29_write_output()
216 mutex_unlock(&sl->master->bus_mutex); in w1_f29_write_output()
237 mutex_lock(&sl->master->bus_mutex); in w1_f29_write_activity()
243 w1_write_8(sl->master, W1_F29_FUNC_RESET_ACTIVITY_LATCHES); in w1_f29_write_activity()
244 if (w1_read_8(sl->master) == W1_F29_SUCCESS_CONFIRM_BYTE) { in w1_f29_write_activity()
245 mutex_unlock(&sl->master->bus_mutex); in w1_f29_write_activity()
248 if (w1_reset_resume_command(sl->master)) in w1_f29_write_activity()
253 mutex_unlock(&sl->master->bus_mutex); in w1_f29_write_activity()
272 mutex_lock(&sl->master->bus_mutex); in w1_f29_write_status_control()
283 w1_write_block(sl->master, w1_buf, 4); in w1_f29_write_status_control()
284 if (w1_reset_resume_command(sl->master)) in w1_f29_write_status_control()
291 w1_write_block(sl->master, w1_buf, 3); in w1_f29_write_status_control()
292 if (w1_read_8(sl->master) == *buf) { in w1_f29_write_status_control()
294 mutex_unlock(&sl->master->bus_mutex); in w1_f29_write_status_control()
299 mutex_unlock(&sl->master->bus_mutex); in w1_f29_write_status_control()