Lines Matching refs:hw
103 static unsigned int daio_device_index(enum DAIOTYP type, struct hw *hw) in daio_device_index() argument
105 switch (hw->chip_type) { in daio_device_index()
139 dao->hw->dao_get_spos(dao->ctrl_blk, spos); in dao_spdif_get_spos()
145 dao->hw->dao_set_spos(dao->ctrl_blk, spos); in dao_spdif_set_spos()
151 dao->hw->dao_commit_write(dao->hw, in dao_commit_write()
152 daio_device_index(dao->daio.type, dao->hw), dao->ctrl_blk); in dao_commit_write()
276 dai->hw->dai_srt_set_srcm(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcl()
283 dai->hw->dai_srt_set_srco(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcr()
294 dai->hw->dai_srt_set_rsr(dai->ctrl_blk, rsr); in dai_set_srt_msr()
300 dai->hw->dai_srt_set_ec(dai->ctrl_blk, enb); in dai_set_enb_src()
306 dai->hw->dai_srt_set_et(dai->ctrl_blk, enb); in dai_set_enb_srt()
312 dai->hw->dai_commit_write(dai->hw, in dai_commit_write()
313 daio_device_index(dai->daio.type, dai->hw), dai->ctrl_blk); in dai_commit_write()
328 struct hw *hw) in daio_rsc_init() argument
333 switch (hw->chip_type) { in daio_rsc_init()
345 err = rsc_init(&daio->rscl, idx_l, DAIO, desc->msr, hw); in daio_rsc_init()
349 err = rsc_init(&daio->rscr, idx_r, DAIO, desc->msr, hw); in daio_rsc_init()
357 switch (hw->chip_type) { in daio_rsc_init()
389 struct hw *hw = mgr->mgr.hw; in dao_rsc_init() local
393 err = daio_rsc_init(&dao->daio, desc, mgr->mgr.hw); in dao_rsc_init()
405 dao->hw = hw; in dao_rsc_init()
406 err = hw->dao_get_ctrl_blk(&dao->ctrl_blk); in dao_rsc_init()
410 hw->daio_mgr_dsb_dao(mgr->mgr.ctrl_blk, in dao_rsc_init()
411 daio_device_index(dao->daio.type, hw)); in dao_rsc_init()
412 hw->daio_mgr_commit_write(hw, mgr->mgr.ctrl_blk); in dao_rsc_init()
415 hw->daio_mgr_dao_init(mgr->mgr.ctrl_blk, in dao_rsc_init()
416 daio_device_index(dao->daio.type, hw), conf); in dao_rsc_init()
417 hw->daio_mgr_enb_dao(mgr->mgr.ctrl_blk, in dao_rsc_init()
418 daio_device_index(dao->daio.type, hw)); in dao_rsc_init()
419 hw->daio_mgr_commit_write(hw, mgr->mgr.ctrl_blk); in dao_rsc_init()
443 dao->hw->dao_put_ctrl_blk(dao->ctrl_blk); in dao_rsc_uninit()
444 dao->hw = dao->ctrl_blk = NULL; in dao_rsc_uninit()
467 struct hw *hw = mgr->mgr.hw; in dai_rsc_init() local
470 err = daio_rsc_init(&dai->daio, desc, mgr->mgr.hw); in dai_rsc_init()
475 dai->hw = mgr->mgr.hw; in dai_rsc_init()
476 err = hw->dai_get_ctrl_blk(&dai->ctrl_blk); in dai_rsc_init()
483 hw->dai_srt_set_rsr(dai->ctrl_blk, rsr); in dai_rsc_init()
484 hw->dai_srt_set_drat(dai->ctrl_blk, 0); in dai_rsc_init()
486 hw->dai_srt_set_ec(dai->ctrl_blk, 0); in dai_rsc_init()
487 hw->dai_srt_set_et(dai->ctrl_blk, 0); /* default to disabling SRT */ in dai_rsc_init()
488 hw->dai_commit_write(hw, in dai_rsc_init()
489 daio_device_index(dai->daio.type, dai->hw), dai->ctrl_blk); in dai_rsc_init()
500 dai->hw->dai_put_ctrl_blk(dai->ctrl_blk); in dai_rsc_uninit()
501 dai->hw = dai->ctrl_blk = NULL; in dai_rsc_uninit()
606 struct hw *hw = mgr->mgr.hw; in daio_mgr_enb_daio() local
609 hw->daio_mgr_enb_dao(mgr->mgr.ctrl_blk, in daio_mgr_enb_daio()
610 daio_device_index(daio->type, hw)); in daio_mgr_enb_daio()
612 hw->daio_mgr_enb_dai(mgr->mgr.ctrl_blk, in daio_mgr_enb_daio()
613 daio_device_index(daio->type, hw)); in daio_mgr_enb_daio()
620 struct hw *hw = mgr->mgr.hw; in daio_mgr_dsb_daio() local
623 hw->daio_mgr_dsb_dao(mgr->mgr.ctrl_blk, in daio_mgr_dsb_daio()
624 daio_device_index(daio->type, hw)); in daio_mgr_dsb_daio()
626 hw->daio_mgr_dsb_dai(mgr->mgr.ctrl_blk, in daio_mgr_dsb_daio()
627 daio_device_index(daio->type, hw)); in daio_mgr_dsb_daio()
635 struct hw *hw = mgr->hw; in daio_map_op() local
637 hw->daio_mgr_set_imaparc(mgr->ctrl_blk, entry->slot); in daio_map_op()
638 hw->daio_mgr_set_imapnxt(mgr->ctrl_blk, entry->next); in daio_map_op()
639 hw->daio_mgr_set_imapaddr(mgr->ctrl_blk, entry->addr); in daio_map_op()
640 hw->daio_mgr_commit_write(mgr->hw, mgr->ctrl_blk); in daio_map_op()
681 struct hw *hw = mgr->mgr.hw; in daio_mgr_commit_write() local
683 hw->daio_mgr_commit_write(hw, mgr->mgr.ctrl_blk); in daio_mgr_commit_write()
687 int daio_mgr_create(struct hw *hw, struct daio_mgr **rdaio_mgr) in daio_mgr_create() argument
698 err = rsc_mgr_init(&daio_mgr->mgr, DAIO, NUM_DAIOTYP, hw); in daio_mgr_create()
722 daio_mgr->card = hw->card; in daio_mgr_create()
725 hw->daio_mgr_dsb_dao(daio_mgr->mgr.ctrl_blk, i); in daio_mgr_create()
726 hw->daio_mgr_dsb_dai(daio_mgr->mgr.ctrl_blk, i); in daio_mgr_create()
728 hw->daio_mgr_commit_write(hw, daio_mgr->mgr.ctrl_blk); in daio_mgr_create()