Lines Matching defs:desc
148 static int dao_rsc_reinit(struct dao *dao, const struct dao_desc *desc);
340 const struct daio_desc *desc,
348 idx_l = idx_20k1[desc->type].left;
349 idx_r = idx_20k1[desc->type].right;
352 idx_l = idx_20k2[desc->type].left;
353 idx_r = idx_20k2[desc->type].right;
358 err = rsc_init(&daio->rscl, idx_l, DAIO, desc->msr, hw);
362 err = rsc_init(&daio->rscr, idx_r, DAIO, desc->msr, hw);
367 if (desc->type <= DAIO_OUT_MAX) {
381 daio->type = desc->type;
399 const struct daio_desc *desc,
406 err = daio_rsc_init(&dao->daio, desc, mgr->mgr.hw);
410 dao->imappers = kzalloc(sizeof(void *)*desc->msr*2, GFP_KERNEL);
426 conf = (desc->msr & 0x7) | (desc->passthru << 3);
462 static int dao_rsc_reinit(struct dao *dao, const struct dao_desc *desc)
468 dsc.msr = desc->msr;
469 dsc.passthru = desc->passthru;
475 const struct daio_desc *desc,
482 err = daio_rsc_init(&dai->daio, desc, mgr->mgr.hw);
492 for (rsr = 0, msr = desc->msr; msr > 1; msr >>= 1)
536 const struct daio_desc *desc,
548 err = daio_mgr_get_rsc(&mgr->mgr, desc->type);
556 if (desc->type <= DAIO_OUT_MAX) {
562 err = dao_rsc_init(dao, desc, mgr);
573 err = dai_rsc_init(dai, desc, mgr);
592 daio_mgr_put_rsc(&mgr->mgr, desc->type);