Lines Matching refs:family_data
68 #define THERM_REFCNT(family_data) \ argument
69 (&((struct w1_therm_family_data*)family_data)->refcnt)
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()
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()
232 u8 *family_data = sl->family_data; in w1_slave_show() local
238 if(!sl->family_data) in w1_slave_show()
245 atomic_inc(THERM_REFCNT(family_data)); in w1_slave_show()
316 memcpy(family_data, rom, sizeof(rom)); in w1_slave_show()
322 ((u8 *)family_data)[i]); in w1_slave_show()
332 atomic_dec(THERM_REFCNT(family_data)); in w1_slave_show()