Lines Matching refs:sl
71 static int w1_therm_add_slave(struct w1_slave *sl) in w1_therm_add_slave() argument
73 sl->family_data = kzalloc(sizeof(struct w1_therm_family_data), in w1_therm_add_slave()
75 if (!sl->family_data) in w1_therm_add_slave()
77 atomic_set(THERM_REFCNT(sl->family_data), 1); in w1_therm_add_slave()
81 static void w1_therm_remove_slave(struct w1_slave *sl) in w1_therm_remove_slave() argument
83 int refcnt = atomic_sub_return(1, THERM_REFCNT(sl->family_data)); in w1_therm_remove_slave()
86 refcnt = atomic_read(THERM_REFCNT(sl->family_data)); in w1_therm_remove_slave()
88 kfree(sl->family_data); in w1_therm_remove_slave()
89 sl->family_data = NULL; in w1_therm_remove_slave()
210 struct w1_slave *sl = dev_to_w1_slave(device); in w1_slave_show() local
211 struct w1_master *dev = sl->master; in w1_slave_show()
215 u8 *family_data = sl->family_data; in w1_slave_show()
221 if(!sl->family_data) in w1_slave_show()
236 if (!w1_reset_select_slave(sl)) { in w1_slave_show()
244 if (w1_reset_select_slave(sl)) in w1_slave_show()
274 if (!w1_reset_select_slave(sl)) { in w1_slave_show()
308 w1_convert_temp(rom, sl->family->fid)); in w1_slave_show()