• Home
  • Raw
  • Download

Lines Matching refs:hw

133 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw)  in rsc_init()  argument
141 rsc->hw = hw; in rsc_init()
143 if (!hw) { in rsc_init()
150 err = hw->src_rsc_get_ctrl_blk(&rsc->ctrl_blk); in rsc_init()
153 err = hw->amixer_rsc_get_ctrl_blk(&rsc->ctrl_blk); in rsc_init()
160 dev_err(((struct hw *)hw)->card->dev, in rsc_init()
166 dev_err(((struct hw *)hw)->card->dev, in rsc_init()
176 if ((NULL != rsc->hw) && (NULL != rsc->ctrl_blk)) { in rsc_uninit()
179 rsc->hw->src_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit()
182 rsc->hw->amixer_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit()
188 dev_err(((struct hw *)rsc->hw)->card->dev, in rsc_uninit()
194 rsc->hw = rsc->ctrl_blk = NULL; in rsc_uninit()
205 unsigned int amount, struct hw *hw) in rsc_mgr_init() argument
217 err = hw->src_mgr_get_ctrl_blk(&mgr->ctrl_blk); in rsc_mgr_init()
220 err = hw->srcimp_mgr_get_ctrl_blk(&mgr->ctrl_blk); in rsc_mgr_init()
223 err = hw->amixer_mgr_get_ctrl_blk(&mgr->ctrl_blk); in rsc_mgr_init()
226 err = hw->daio_mgr_get_ctrl_blk(hw, &mgr->ctrl_blk); in rsc_mgr_init()
231 dev_err(hw->card->dev, in rsc_mgr_init()
238 dev_err(hw->card->dev, in rsc_mgr_init()
245 mgr->hw = hw; in rsc_mgr_init()
259 if ((NULL != mgr->hw) && (NULL != mgr->ctrl_blk)) { in rsc_mgr_uninit()
262 mgr->hw->src_mgr_put_ctrl_blk(mgr->ctrl_blk); in rsc_mgr_uninit()
265 mgr->hw->srcimp_mgr_put_ctrl_blk(mgr->ctrl_blk); in rsc_mgr_uninit()
268 mgr->hw->amixer_mgr_put_ctrl_blk(mgr->ctrl_blk); in rsc_mgr_uninit()
271 mgr->hw->daio_mgr_put_ctrl_blk(mgr->ctrl_blk); in rsc_mgr_uninit()
276 dev_err(((struct hw *)mgr->hw)->card->dev, in rsc_mgr_uninit()
282 mgr->hw = mgr->ctrl_blk = NULL; in rsc_mgr_uninit()