Lines Matching refs:sl
31 struct w1_slave *sl = kobj_to_w1_slave(kobj); in w1_f12_read_state() local
41 mutex_lock(&sl->master->bus_mutex); in w1_f12_read_state()
43 if (w1_reset_select_slave(sl)) { in w1_f12_read_state()
44 mutex_unlock(&sl->master->bus_mutex); in w1_f12_read_state()
48 w1_write_block(sl->master, w1_buf, 3); in w1_f12_read_state()
49 w1_read_block(sl->master, w1_buf+3, 3); in w1_f12_read_state()
57 mutex_unlock(&sl->master->bus_mutex); in w1_f12_read_state()
67 struct w1_slave *sl = kobj_to_w1_slave(kobj); in w1_f12_write_output() local
76 mutex_lock(&sl->master->bus_mutex); in w1_f12_write_output()
78 if (w1_reset_select_slave(sl)) { in w1_f12_write_output()
79 mutex_unlock(&sl->master->bus_mutex); in w1_f12_write_output()
84 w1_write_block(sl->master, w1_buf, 4); in w1_f12_write_output()
85 w1_read_block(sl->master, w1_buf+4, 2); in w1_f12_write_output()
89 w1_write_8(sl->master, 0xFF); in w1_f12_write_output()
93 mutex_unlock(&sl->master->bus_mutex); in w1_f12_write_output()
117 static int w1_f12_add_slave(struct w1_slave *sl) in w1_f12_add_slave() argument
124 &sl->dev.kobj, in w1_f12_add_slave()
128 sysfs_remove_bin_file(&sl->dev.kobj, in w1_f12_add_slave()
133 static void w1_f12_remove_slave(struct w1_slave *sl) in w1_f12_remove_slave() argument
137 sysfs_remove_bin_file(&sl->dev.kobj, in w1_f12_remove_slave()