Searched refs:sum_mgr (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/sound/pci/ctxfi/ |
D | ctamixer.c | 364 struct sum_mgr *mgr) in sum_rsc_init() 383 static int get_sum_rsc(struct sum_mgr *mgr, in get_sum_rsc() 434 static int put_sum_rsc(struct sum_mgr *mgr, struct sum *sum) in put_sum_rsc() 453 struct sum_mgr *sum_mgr; in sum_mgr_create() local 456 sum_mgr = kzalloc(sizeof(*sum_mgr), GFP_KERNEL); in sum_mgr_create() 457 if (!sum_mgr) in sum_mgr_create() 460 err = rsc_mgr_init(&sum_mgr->mgr, SUM, SUM_RESOURCE_NUM, hw); in sum_mgr_create() 464 spin_lock_init(&sum_mgr->mgr_lock); in sum_mgr_create() 466 sum_mgr->get_sum = get_sum_rsc; in sum_mgr_create() 467 sum_mgr->put_sum = put_sum_rsc; in sum_mgr_create() [all …]
|
D | ctamixer.h | 33 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
|
D | ctmixer.c | 838 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()
|
D | ctatc.c | 322 struct sum_mgr *sum_mgr = atc->rsc_mgrs[SUM]; in atc_pcm_release_resources() local 356 sum_mgr->put_sum(sum_mgr, apcm->mono); in atc_pcm_release_resources() 504 struct sum_mgr *sum_mgr = atc->rsc_mgrs[SUM]; in atc_pcm_capture_get_resources() local 597 err = sum_mgr->get_sum(sum_mgr, &sum_dsc, (struct sum **)&apcm->mono); in atc_pcm_capture_get_resources() 1147 struct sum_mgr *sum_mgr = NULL; in atc_release_resources() local 1180 sum_mgr = atc->rsc_mgrs[SUM]; in atc_release_resources() 1182 sum_mgr->put_sum(sum_mgr, atc->pcm[i]); in atc_release_resources() 1371 struct sum_mgr *sum_mgr; in atc_get_resources() local 1433 sum_mgr = atc->rsc_mgrs[SUM]; in atc_get_resources() 1436 err = sum_mgr->get_sum(sum_mgr, &sum_dsc, in atc_get_resources()
|