Lines Matching refs:amixer_mgr
197 struct amixer_mgr *mgr) in amixer_rsc_init()
227 static int get_amixer_rsc(struct amixer_mgr *mgr, in get_amixer_rsc()
279 static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer) in put_amixer_rsc()
298 struct amixer_mgr *amixer_mgr; in amixer_mgr_create() local
301 amixer_mgr = kzalloc(sizeof(*amixer_mgr), GFP_KERNEL); in amixer_mgr_create()
302 if (!amixer_mgr) in amixer_mgr_create()
305 err = rsc_mgr_init(&amixer_mgr->mgr, AMIXER, AMIXER_RESOURCE_NUM, hw); in amixer_mgr_create()
309 spin_lock_init(&amixer_mgr->mgr_lock); in amixer_mgr_create()
311 amixer_mgr->get_amixer = get_amixer_rsc; in amixer_mgr_create()
312 amixer_mgr->put_amixer = put_amixer_rsc; in amixer_mgr_create()
313 amixer_mgr->card = hw->card; in amixer_mgr_create()
315 *ramixer_mgr = amixer_mgr; in amixer_mgr_create()
320 kfree(amixer_mgr); in amixer_mgr_create()
326 struct amixer_mgr *amixer_mgr = ptr; in amixer_mgr_destroy() local
327 rsc_mgr_uninit(&amixer_mgr->mgr); in amixer_mgr_destroy()
328 kfree(amixer_mgr); in amixer_mgr_destroy()