Lines Matching refs:sl
26 static int w1_ds2405_select(struct w1_slave *sl, bool only_active) in w1_ds2405_select() argument
28 struct w1_master *dev = sl->master; in w1_ds2405_select()
30 u64 dev_addr = le64_to_cpu(*(u64 *)&sl->reg_num); in w1_ds2405_select()
60 static int w1_ds2405_read_pio(struct w1_slave *sl) in w1_ds2405_read_pio() argument
62 if (w1_ds2405_select(sl, true)) in w1_ds2405_read_pio()
65 if (w1_ds2405_select(sl, false)) in w1_ds2405_read_pio()
74 struct w1_slave *sl = dev_to_w1_slave(device); in state_show() local
75 struct w1_master *dev = sl->master; in state_show()
85 if (!w1_ds2405_select(sl, false)) { in state_show()
111 struct w1_slave *sl = dev_to_w1_slave(device); in output_show() local
112 struct w1_master *dev = sl->master; in output_show()
121 ret = w1_ds2405_read_pio(sl); in output_show()
141 struct w1_slave *sl = dev_to_w1_slave(device); in output_store() local
142 struct w1_master *dev = sl->master; in output_store()
163 current_pio = w1_ds2405_read_pio(sl); in output_store()
182 u64 dev_addr = le64_to_cpu(*(u64 *)&sl->reg_num); in output_store()