Lines Matching refs:afe_priv

323 	struct mt7986_afe_private *afe_priv = afe->platform_priv;  in mt7986_init_clock()  local
326 afe_priv->clks = devm_kcalloc(afe->dev, CLK_NUM, in mt7986_init_clock()
327 sizeof(*afe_priv->clks), GFP_KERNEL); in mt7986_init_clock()
328 if (!afe_priv->clks) in mt7986_init_clock()
330 afe_priv->num_clks = CLK_NUM; in mt7986_init_clock()
332 for (i = 0; i < afe_priv->num_clks; i++) in mt7986_init_clock()
333 afe_priv->clks[i].id = aud_clks[i]; in mt7986_init_clock()
335 ret = devm_clk_bulk_get(afe->dev, afe_priv->num_clks, afe_priv->clks); in mt7986_init_clock()
390 struct mt7986_afe_private *afe_priv = afe->platform_priv; in mt7986_afe_runtime_suspend() local
392 if (!afe->regmap || afe_priv->pm_runtime_bypass_reg_ctl) in mt7986_afe_runtime_suspend()
404 clk_bulk_disable_unprepare(afe_priv->num_clks, afe_priv->clks); in mt7986_afe_runtime_suspend()
412 struct mt7986_afe_private *afe_priv = afe->platform_priv; in mt7986_afe_runtime_resume() local
415 ret = clk_bulk_prepare_enable(afe_priv->num_clks, afe_priv->clks); in mt7986_afe_runtime_resume()
419 if (!afe->regmap || afe_priv->pm_runtime_bypass_reg_ctl) in mt7986_afe_runtime_resume()
474 struct mt7986_afe_private *afe_priv; in mt7986_afe_pcm_dev_probe() local
483 afe->platform_priv = devm_kzalloc(&pdev->dev, sizeof(*afe_priv), in mt7986_afe_pcm_dev_probe()
488 afe_priv = afe->platform_priv; in mt7986_afe_pcm_dev_probe()
506 afe_priv->pm_runtime_bypass_reg_ctl = true; in mt7986_afe_pcm_dev_probe()
516 afe_priv->pm_runtime_bypass_reg_ctl = false; in mt7986_afe_pcm_dev_probe()