Home
last modified time | relevance | path

Searched refs:family_data (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/w1/slaves/
Dw1_therm.c70 #define THERM_REFCNT(family_data) \ argument
71 (&((struct w1_therm_family_data *)family_data)->refcnt)
75 sl->family_data = kzalloc(sizeof(struct w1_therm_family_data), in w1_therm_add_slave()
77 if (!sl->family_data) in w1_therm_add_slave()
79 atomic_set(THERM_REFCNT(sl->family_data), 1); in w1_therm_add_slave()
85 int refcnt = atomic_sub_return(1, THERM_REFCNT(sl->family_data)); in w1_therm_remove_slave()
89 refcnt = atomic_read(THERM_REFCNT(sl->family_data)); in w1_therm_remove_slave()
91 kfree(sl->family_data); in w1_therm_remove_slave()
92 sl->family_data = NULL; in w1_therm_remove_slave()
269 u8 *family_data = sl->family_data; in w1_therm_eeprom() local
[all …]
Dw1_ds28e17.c90 struct w1_f19_data *data = sl->family_data; in w1_f19_i2c_busy_wait()
504 struct w1_f19_data *data = sl->family_data; in w1_f19_get_i2c_speed()
536 struct w1_f19_data *data = sl->family_data; in __w1_f19_set_i2c_speed()
635 struct w1_f19_data *data = sl->family_data; in stretch_show()
645 struct w1_f19_data *data = sl->family_data; in stretch_store()
691 sl->family_data = data; in w1_f19_add_slave()
734 struct w1_f19_data *family_data = sl->family_data; in w1_f19_remove_slave() local
737 i2c_del_adapter(&family_data->adapter); in w1_f19_remove_slave()
740 devm_kfree(&sl->dev, family_data); in w1_f19_remove_slave()
741 sl->family_data = NULL; in w1_f19_remove_slave()
Dw1_ds2433.c97 struct w1_f23_data *data = sl->family_data; in eeprom_read()
157 struct w1_f23_data *f23 = sl->family_data; in w1_f23_write()
279 sl->family_data = data; in w1_f23_add_slave()
288 kfree(sl->family_data); in w1_f23_remove_slave()
289 sl->family_data = NULL; in w1_f23_remove_slave()
Dw1_ds28e04.c121 struct w1_f1C_data *data = sl->family_data; in eeprom_read()
169 struct w1_f1C_data *f1C = sl->family_data; in w1_f1C_write()
403 sl->family_data = data; in w1_f1C_add_slave()
411 kfree(sl->family_data); in w1_f1C_remove_slave()
412 sl->family_data = NULL; in w1_f1C_remove_slave()
/Linux-v4.19/include/linux/
Dw1.h85 void *family_data; member
/Linux-v4.19/drivers/power/supply/
Dds2760_battery.c729 sl->family_data = di; in w1_ds2760_add_slave()
782 struct ds2760_device_info *di = sl->family_data; in w1_ds2760_remove_slave()
Dmax1721x_battery.c332 sl->family_data = (void *)info; in devm_w1_max1721x_add_device()