Lines Matching refs:afe_priv
87 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_fe_shutdown() local
93 afe_priv->irq_cnt[id] = 0; in mt8186_fe_shutdown()
94 afe_priv->xrun_assert[id] = 0; in mt8186_fe_shutdown()
159 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_fe_trigger() local
192 if (afe_priv->irq_cnt[id] > 0) in mt8186_fe_trigger()
193 counter = afe_priv->irq_cnt[id]; in mt8186_fe_trigger()
221 if (afe_priv->xrun_assert[id] > 0) { in mt8186_fe_trigger()
568 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_irq_cnt1_get() local
571 afe_priv->irq_cnt[MT8186_PRIMARY_MEMIF]; in mt8186_irq_cnt1_get()
581 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_irq_cnt1_set() local
585 int irq_cnt = afe_priv->irq_cnt[memif_num]; in mt8186_irq_cnt1_set()
594 afe_priv->irq_cnt[memif_num] = irq_cnt; in mt8186_irq_cnt1_set()
617 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_irq_cnt2_get() local
620 afe_priv->irq_cnt[MT8186_RECORD_MEMIF]; in mt8186_irq_cnt2_get()
630 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_irq_cnt2_set() local
634 int irq_cnt = afe_priv->irq_cnt[memif_num]; in mt8186_irq_cnt2_set()
643 afe_priv->irq_cnt[memif_num] = irq_cnt; in mt8186_irq_cnt2_set()
666 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_record_xrun_assert_get() local
667 int xrun_assert = afe_priv->xrun_assert[MT8186_RECORD_MEMIF]; in mt8186_record_xrun_assert_get()
679 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_record_xrun_assert_set() local
684 if (xrun_assert == afe_priv->xrun_assert[MT8186_RECORD_MEMIF]) in mt8186_record_xrun_assert_set()
687 afe_priv->xrun_assert[MT8186_RECORD_MEMIF] = xrun_assert; in mt8186_record_xrun_assert_set()
2684 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_afe_runtime_suspend() local
2688 if (!afe->regmap || afe_priv->pm_runtime_bypass_reg_ctl) in mt8186_afe_runtime_suspend()
2729 struct mt8186_afe_private *afe_priv = afe->platform_priv; in mt8186_afe_runtime_resume() local
2740 if (!afe->regmap || afe_priv->pm_runtime_bypass_reg_ctl) in mt8186_afe_runtime_resume()
2747 regmap_update_bits(afe_priv->infracfg, PERI_BUS_DCM_CTRL, BIT(29), BIT(29)); in mt8186_afe_runtime_resume()
2816 struct mt8186_afe_private *afe_priv; in mt8186_afe_pcm_dev_probe() local
2831 afe->platform_priv = devm_kzalloc(dev, sizeof(*afe_priv), GFP_KERNEL); in mt8186_afe_pcm_dev_probe()
2835 afe_priv = afe->platform_priv; in mt8186_afe_pcm_dev_probe()
2916 afe_priv->pm_runtime_bypass_reg_ctl = true; in mt8186_afe_pcm_dev_probe()
2961 afe_priv->pm_runtime_bypass_reg_ctl = false; in mt8186_afe_pcm_dev_probe()