Lines Matching refs:memif
47 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8186_fe_startup() local
51 memif->substream = substream; in mt8186_fe_startup()
66 if (memif->irq_usage < 0) { in mt8186_fe_startup()
71 memif->irq_usage = irq_id; in mt8186_fe_startup()
89 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8186_fe_shutdown() local
90 int irq_id = memif->irq_usage; in mt8186_fe_shutdown()
92 memif->substream = NULL; in mt8186_fe_shutdown()
96 if (!memif->const_irq) { in mt8186_fe_shutdown()
98 memif->irq_usage = -1; in mt8186_fe_shutdown()
99 memif->substream = NULL; in mt8186_fe_shutdown()
161 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8186_fe_trigger() local
162 int irq_id = memif->irq_usage; in mt8186_fe_trigger()
171 __func__, memif->data->name, cmd, irq_id); in mt8186_fe_trigger()
297 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8186_fe_prepare() local
298 int irq_id = memif->irq_usage; in mt8186_fe_prepare()
583 struct mtk_base_afe_memif *memif = &afe->memif[memif_num]; in mt8186_irq_cnt1_set() local
584 int irq_id = memif->irq_usage; in mt8186_irq_cnt1_set()
632 struct mtk_base_afe_memif *memif = &afe->memif[memif_num]; in mt8186_irq_cnt2_set() local
633 int irq_id = memif->irq_usage; in mt8186_irq_cnt2_set()
2660 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt8186_afe_irq_handler() local
2662 if (!memif->substream) in mt8186_afe_irq_handler()
2665 if (memif->irq_usage < 0) in mt8186_afe_irq_handler()
2668 irq = &afe->irqs[memif->irq_usage]; in mt8186_afe_irq_handler()
2671 snd_pcm_period_elapsed(memif->substream); in mt8186_afe_irq_handler()
2857 afe->memif = devm_kcalloc(dev, afe->memif_size, sizeof(*afe->memif), GFP_KERNEL); in mt8186_afe_pcm_dev_probe()
2858 if (!afe->memif) in mt8186_afe_pcm_dev_probe()
2862 afe->memif[i].data = &memif_data[i]; in mt8186_afe_pcm_dev_probe()
2863 afe->memif[i].irq_usage = memif_irq_usage[i]; in mt8186_afe_pcm_dev_probe()
2864 afe->memif[i].const_irq = 1; in mt8186_afe_pcm_dev_probe()