Searched refs:sum_mgr (Results 1 – 4 of 4) sorted by relevance
/sound/pci/ctxfi/ |
D | ctamixer.c | 369 struct sum_mgr *mgr) in sum_rsc_init() 388 static int get_sum_rsc(struct sum_mgr *mgr, in get_sum_rsc() 439 static int put_sum_rsc(struct sum_mgr *mgr, struct sum *sum) in put_sum_rsc() 455 int sum_mgr_create(struct hw *hw, struct sum_mgr **rsum_mgr) in sum_mgr_create() 458 struct sum_mgr *sum_mgr; in sum_mgr_create() local 461 sum_mgr = kzalloc(sizeof(*sum_mgr), GFP_KERNEL); in sum_mgr_create() 462 if (!sum_mgr) in sum_mgr_create() 465 err = rsc_mgr_init(&sum_mgr->mgr, SUM, SUM_RESOURCE_NUM, hw); in sum_mgr_create() 469 spin_lock_init(&sum_mgr->mgr_lock); in sum_mgr_create() 471 sum_mgr->get_sum = get_sum_rsc; in sum_mgr_create() [all …]
|
D | ctamixer.h | 37 struct sum_mgr { struct 43 int (*get_sum)(struct sum_mgr *mgr, argument 46 int (*put_sum)(struct sum_mgr *mgr, struct sum *sum); argument 50 int sum_mgr_create(struct hw *hw, struct sum_mgr **rsum_mgr); 51 int sum_mgr_destroy(struct sum_mgr *sum_mgr);
|
D | ctmixer.c | 842 struct sum_mgr *sum_mgr; in ct_mixer_get_resources() local 852 sum_mgr = (struct sum_mgr *)mixer->atc->rsc_mgrs[SUM]; in ct_mixer_get_resources() 855 err = sum_mgr->get_sum(sum_mgr, &sum_desc, &sum); in ct_mixer_get_resources() 894 sum_mgr->put_sum(sum_mgr, (struct sum *)mixer->sums[i]); in ct_mixer_get_resources() 1145 struct sum_mgr *sum_mgr = (struct sum_mgr *)mixer->atc->rsc_mgrs[SUM]; in ct_mixer_destroy() local 1162 sum_mgr->put_sum(sum_mgr, (struct sum *)mixer->sums[i]); in ct_mixer_destroy()
|
D | ctatc.c | 326 struct sum_mgr *sum_mgr = atc->rsc_mgrs[SUM]; in atc_pcm_release_resources() local 360 sum_mgr->put_sum(sum_mgr, apcm->mono); in atc_pcm_release_resources() 508 struct sum_mgr *sum_mgr = atc->rsc_mgrs[SUM]; in atc_pcm_capture_get_resources() local 601 err = sum_mgr->get_sum(sum_mgr, &sum_dsc, (struct sum **)&apcm->mono); in atc_pcm_capture_get_resources() 1151 struct sum_mgr *sum_mgr = NULL; in atc_release_resources() local 1184 sum_mgr = atc->rsc_mgrs[SUM]; in atc_release_resources() 1186 sum_mgr->put_sum(sum_mgr, atc->pcm[i]); in atc_release_resources() 1375 struct sum_mgr *sum_mgr; in atc_get_resources() local 1437 sum_mgr = atc->rsc_mgrs[SUM]; in atc_get_resources() 1440 err = sum_mgr->get_sum(sum_mgr, &sum_dsc, in atc_get_resources()
|