Lines Matching defs:desc
361 const struct src_desc *desc, struct src_mgr *mgr)
367 n = (MEMRD == desc->mode) ? desc->multi : 1;
369 err = rsc_init(&p->rsc, idx + i, SRC, desc->msr, mgr->mgr.hw);
375 p->multi = (0 == i) ? desc->multi : 1;
376 p->mode = desc->mode;
377 src_default_config[desc->mode](p);
416 get_src_rsc(struct src_mgr *mgr, const struct src_desc *desc, struct src **rsrc)
427 if (MEMRD == desc->mode)
428 err = mgr_get_resource(&mgr->mgr, desc->multi, &idx);
439 if (MEMRD == desc->mode)
440 src = kzalloc(sizeof(*src)*desc->multi, GFP_KERNEL);
449 err = src_rsc_init(src, idx, desc, mgr);
461 if (MEMRD == desc->mode)
462 mgr_put_resource(&mgr->mgr, desc->multi, idx);
669 const struct srcimp_desc *desc,
675 SRCIMP, desc->msr, mgr->mgr.hw);
680 srcimp->imappers = kzalloc(sizeof(struct imapper)*desc->msr,
715 const struct srcimp_desc *desc,
733 for (i = 0; i < desc->msr; i++) {
746 err = srcimp_rsc_init(srcimp, desc, mgr);