Lines Matching refs:gamma
192 void dc_gamma_retain(struct dc_gamma *gamma) in dc_gamma_retain() argument
194 kref_get(&gamma->refcount); in dc_gamma_retain()
199 struct dc_gamma *gamma = container_of(kref, struct dc_gamma, refcount); in dc_gamma_free() local
200 kvfree(gamma); in dc_gamma_free()
203 void dc_gamma_release(struct dc_gamma **gamma) in dc_gamma_release() argument
205 kref_put(&(*gamma)->refcount, dc_gamma_free); in dc_gamma_release()
206 *gamma = NULL; in dc_gamma_release()
211 struct dc_gamma *gamma = kvzalloc(sizeof(*gamma), GFP_KERNEL); in dc_create_gamma() local
213 if (gamma == NULL) in dc_create_gamma()
216 kref_init(&gamma->refcount); in dc_create_gamma()
217 return gamma; in dc_create_gamma()