Home
last modified time | relevance | path

Searched refs:sum_mgr (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/sound/pci/ctxfi/
Dctamixer.c363 struct sum_mgr *mgr) in sum_rsc_init()
382 static int get_sum_rsc(struct sum_mgr *mgr, in get_sum_rsc()
433 static int put_sum_rsc(struct sum_mgr *mgr, struct sum *sum) in put_sum_rsc()
449 int sum_mgr_create(struct hw *hw, struct sum_mgr **rsum_mgr) in sum_mgr_create()
452 struct sum_mgr *sum_mgr; in sum_mgr_create() local
455 sum_mgr = kzalloc(sizeof(*sum_mgr), GFP_KERNEL); in sum_mgr_create()
456 if (!sum_mgr) in sum_mgr_create()
459 err = rsc_mgr_init(&sum_mgr->mgr, SUM, SUM_RESOURCE_NUM, hw); in sum_mgr_create()
463 spin_lock_init(&sum_mgr->mgr_lock); in sum_mgr_create()
465 sum_mgr->get_sum = get_sum_rsc; in sum_mgr_create()
[all …]
Dctamixer.h33 struct sum_mgr { struct
39 int (*get_sum)(struct sum_mgr *mgr, argument
42 int (*put_sum)(struct sum_mgr *mgr, struct sum *sum); argument
46 int sum_mgr_create(struct hw *hw, struct sum_mgr **rsum_mgr);
47 int sum_mgr_destroy(struct sum_mgr *sum_mgr);
Dctmixer.c838 struct sum_mgr *sum_mgr; in ct_mixer_get_resources() local
848 sum_mgr = (struct sum_mgr *)mixer->atc->rsc_mgrs[SUM]; in ct_mixer_get_resources()
851 err = sum_mgr->get_sum(sum_mgr, &sum_desc, &sum); in ct_mixer_get_resources()
890 sum_mgr->put_sum(sum_mgr, (struct sum *)mixer->sums[i]); in ct_mixer_get_resources()
1143 struct sum_mgr *sum_mgr = (struct sum_mgr *)mixer->atc->rsc_mgrs[SUM]; in ct_mixer_destroy() local
1160 sum_mgr->put_sum(sum_mgr, (struct sum *)mixer->sums[i]); in ct_mixer_destroy()
Dctatc.c323 struct sum_mgr *sum_mgr = atc->rsc_mgrs[SUM]; in atc_pcm_release_resources() local
357 sum_mgr->put_sum(sum_mgr, apcm->mono); in atc_pcm_release_resources()
505 struct sum_mgr *sum_mgr = atc->rsc_mgrs[SUM]; in atc_pcm_capture_get_resources() local
598 err = sum_mgr->get_sum(sum_mgr, &sum_dsc, (struct sum **)&apcm->mono); in atc_pcm_capture_get_resources()
1148 struct sum_mgr *sum_mgr = NULL; in atc_release_resources() local
1181 sum_mgr = atc->rsc_mgrs[SUM]; in atc_release_resources()
1183 sum_mgr->put_sum(sum_mgr, atc->pcm[i]); in atc_release_resources()
1372 struct sum_mgr *sum_mgr; in atc_get_resources() local
1434 sum_mgr = atc->rsc_mgrs[SUM]; in atc_get_resources()
1437 err = sum_mgr->get_sum(sum_mgr, &sum_dsc, in atc_get_resources()