Home
last modified time | relevance | path

Searched full:memif (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/sound/soc/mediatek/common/
Dmtk-afe-fe-dai.c44 struct mtk_base_afe_memif *memif = &afe->memif[memif_num]; in mtk_afe_fe_startup() local
48 memif->substream = substream; in mtk_afe_fe_startup()
53 mtk_regmap_update_bits(afe->regmap, memif->data->agent_disable_reg, in mtk_afe_fe_startup()
54 1, 0, memif->data->agent_disable_shift); in mtk_afe_fe_startup()
81 /* dynamic allocate irq to memif */ in mtk_afe_fe_startup()
82 if (memif->irq_usage < 0) { in mtk_afe_fe_startup()
87 memif->irq_usage = irq_id; in mtk_afe_fe_startup()
103 struct mtk_base_afe_memif *memif = &afe->memif[snd_soc_rtd_to_cpu(rtd, 0)->id]; in mtk_afe_fe_shutdown() local
106 irq_id = memif->irq_usage; in mtk_afe_fe_shutdown()
108 mtk_regmap_update_bits(afe->regmap, memif->data->agent_disable_reg, in mtk_afe_fe_shutdown()
[all …]
Dmtk-afe-platform-driver.c85 struct mtk_base_afe_memif *memif = &afe->memif[snd_soc_rtd_to_cpu(rtd, 0)->id]; in mtk_afe_pcm_pointer() local
86 const struct mtk_base_memif_data *memif_data = memif->data; in mtk_afe_pcm_pointer()
Dmtk-base-afe.h68 /* playback memif only */
115 struct mtk_base_afe_memif *memif; member
/linux-6.12.1/sound/soc/mediatek/mt8365/
Dmt8365-afe-pcm.c506 struct mtk_base_afe_memif *memif = &afe->memif[memif_num]; in mt8365_afe_fe_startup() local
509 memif->substream = substream; in mt8365_afe_fe_startup()
530 struct mtk_base_afe_memif *memif = &afe->memif[memif_num]; in mt8365_afe_fe_shutdown() local
532 memif->substream = NULL; in mt8365_afe_fe_shutdown()
546 struct mtk_base_afe_memif *memif = &afe->memif[dai_id]; in mt8365_afe_fe_hw_params() local
555 __func__, memif->data->name, params_period_size(params), in mt8365_afe_fe_hw_params()
585 __func__, memif->data->name, request_size, ret); in mt8365_afe_fe_hw_params()
605 memif->phys_buf_addr = lower_32_bits(substream->runtime->dma_addr); in mt8365_afe_fe_hw_params()
606 memif->buffer_size = substream->runtime->dma_bytes; in mt8365_afe_fe_hw_params()
609 regmap_write(afe->regmap, memif->data->reg_ofs_base, in mt8365_afe_fe_hw_params()
[all …]
/linux-6.12.1/sound/soc/mediatek/mt7986/
Dmt7986-afe-pcm.c366 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt7986_afe_irq_handler() local
368 if (!memif->substream) in mt7986_afe_irq_handler()
371 if (memif->irq_usage < 0) in mt7986_afe_irq_handler()
374 irq = &afe->irqs[memif->irq_usage]; in mt7986_afe_irq_handler()
377 snd_pcm_period_elapsed(memif->substream); in mt7986_afe_irq_handler()
506 /* init memif */ in mt7986_afe_pcm_dev_probe()
508 afe->memif = devm_kcalloc(dev, afe->memif_size, sizeof(*afe->memif), in mt7986_afe_pcm_dev_probe()
510 if (!afe->memif) in mt7986_afe_pcm_dev_probe()
514 afe->memif[i].data = &memif_data[i]; in mt7986_afe_pcm_dev_probe()
515 afe->memif[i].irq_usage = -1; in mt7986_afe_pcm_dev_probe()
/linux-6.12.1/sound/soc/mediatek/mt6797/
Dmt6797-afe-pcm.c333 /* memif */
628 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt6797_afe_irq_handler() local
630 if (!memif->substream) in mt6797_afe_irq_handler()
633 irq = &afe->irqs[memif->irq_usage]; in mt6797_afe_irq_handler()
636 snd_pcm_period_elapsed(memif->substream); in mt6797_afe_irq_handler()
685 /* force all memif use normal mode */ in mt6797_afe_runtime_resume()
772 /* init memif */ in mt6797_afe_pcm_dev_probe()
774 afe->memif = devm_kcalloc(dev, afe->memif_size, sizeof(*afe->memif), in mt6797_afe_pcm_dev_probe()
776 if (!afe->memif) in mt6797_afe_pcm_dev_probe()
780 afe->memif[i].data = &memif_data[i]; in mt6797_afe_pcm_dev_probe()
[all …]
/linux-6.12.1/sound/soc/mediatek/mt8186/
Dmt8186-afe-pcm.c47 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8186_fe_startup() local
51 memif->substream = substream; in mt8186_fe_startup()
65 /* dynamic allocate irq to memif */ 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()
[all …]
Dmt8186-mt6366.c975 /* dummy BE for ul memif to record from dl memif */
/linux-6.12.1/sound/soc/mediatek/mt8183/
Dmt8183-afe-pcm.c364 /* memif */
954 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt8183_afe_irq_handler() local
956 if (!memif->substream) in mt8183_afe_irq_handler()
959 if (memif->irq_usage < 0) in mt8183_afe_irq_handler()
962 irq = &afe->irqs[memif->irq_usage]; in mt8183_afe_irq_handler()
965 snd_pcm_period_elapsed(memif->substream); in mt8183_afe_irq_handler()
1148 /* init memif */ in mt8183_afe_pcm_dev_probe()
1150 afe->memif = devm_kcalloc(dev, afe->memif_size, sizeof(*afe->memif), in mt8183_afe_pcm_dev_probe()
1152 if (!afe->memif) { in mt8183_afe_pcm_dev_probe()
1158 afe->memif[i].data = &memif_data[i]; in mt8183_afe_pcm_dev_probe()
[all …]
/linux-6.12.1/sound/soc/mediatek/mt8173/
Dmt8173-afe-pcm.c486 struct mtk_base_afe_memif *memif = &afe->memif[snd_soc_rtd_to_cpu(rtd, 0)->id]; in mt8173_memif_fs() local
489 if (memif->data->id == MT8173_AFE_MEMIF_DAI || in mt8173_memif_fs()
490 memif->data->id == MT8173_AFE_MEMIF_MOD_DAI) { in mt8173_memif_fs()
926 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt8173_afe_irq_handler() local
929 if (memif->irq_usage < 0) in mt8173_afe_irq_handler()
932 irq_p = &afe->irqs[memif->irq_usage]; in mt8173_afe_irq_handler()
937 snd_pcm_period_elapsed(memif->substream); in mt8173_afe_irq_handler()
1093 /* memif % irq initialize*/ in mt8173_afe_pcm_dev_probe()
1095 afe->memif = devm_kcalloc(afe->dev, afe->memif_size, in mt8173_afe_pcm_dev_probe()
1096 sizeof(*afe->memif), GFP_KERNEL); in mt8173_afe_pcm_dev_probe()
[all …]
/linux-6.12.1/sound/soc/mediatek/mt2701/
Dmt2701-afe-pcm.c372 memif_tmp = &afe->memif[MT2701_MEMIF_DLM]; in mt2701_simple_fe_startup()
374 dev_warn(afe->dev, "memif is not available"); in mt2701_simple_fe_startup()
408 memif_tmp = &afe->memif[i]; in mt2701_dlm_fe_startup()
415 memif_data = afe->memif[i].data; in mt2701_dlm_fe_startup()
433 memif_data = afe->memif[i].data; in mt2701_dlm_fe_shutdown()
470 struct mtk_base_afe_memif *memif_tmp = &afe->memif[MT2701_MEMIF_DL1]; in mt2701_dlm_fe_trigger()
1278 struct mtk_base_afe_memif *memif; in mt2701_asys_isr() local
1286 memif = &afe->memif[id]; in mt2701_asys_isr()
1287 if (memif->irq_usage < 0) in mt2701_asys_isr()
1290 irq = &afe->irqs[memif->irq_usage]; in mt2701_asys_isr()
[all …]
/linux-6.12.1/sound/soc/mediatek/mt8188/
Dmt8188-afe-pcm.c98 struct mtk_base_afe_memif *memif = NULL; in mt8188_memif_fs() local
111 memif = &afe->memif[id]; in mt8188_memif_fs()
113 switch (memif->data->id) { in mt8188_memif_fs()
253 dev_dbg(afe->dev, "%s, memif %d cannot find CM!\n", __func__, dai->id); in mt8188_afe_found_cm()
340 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8188_afe_fe_hw_params() local
341 const struct mtk_base_memif_data *data = memif->data; in mt8188_afe_fe_hw_params()
364 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8188_afe_fe_trigger() local
365 struct mtk_base_afe_irq *irqs = &afe->irqs[memif->irq_usage]; in mt8188_afe_fe_trigger()
378 dev_err(afe->dev, "%s(), error, id %d, memif enable, ret %d\n", in mt8188_afe_fe_trigger()
420 dev_err(afe->dev, "%s(), error, id %d, memif enable, ret %d\n", in mt8188_afe_fe_trigger()
[all …]
/linux-6.12.1/sound/soc/mediatek/mt8195/
Dmt8195-afe-pcm.c92 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8195_memif_fs() local
95 switch (memif->data->id) { in mt8195_memif_fs()
231 dev_dbg(afe->dev, "%s, memif %d cannot find CM!\n", in mt8195_afe_found_cm()
386 struct mtk_base_afe_memif *memif = &afe->memif[id]; in mt8195_afe_fe_hw_params() local
387 const struct mtk_base_memif_data *data = memif->data; in mt8195_afe_fe_hw_params()
2878 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt8195_afe_irq_handler() local
2881 if (memif->irq_usage < 0) in mt8195_afe_irq_handler()
2884 irq_data = afe->irqs[memif->irq_usage].irq_data; in mt8195_afe_irq_handler()
2897 snd_pcm_period_elapsed(memif->substream); in mt8195_afe_irq_handler()
3070 /* init memif */ in mt8195_afe_pcm_dev_probe()
[all …]
/linux-6.12.1/sound/soc/mediatek/mt8192/
Dmt8192-afe-pcm.c2028 struct mtk_base_afe_memif *memif = &afe->memif[i]; in mt8192_afe_irq_handler() local
2030 if (!memif->substream) in mt8192_afe_irq_handler()
2033 if (memif->irq_usage < 0) in mt8192_afe_irq_handler()
2036 irq = &afe->irqs[memif->irq_usage]; in mt8192_afe_irq_handler()
2039 snd_pcm_period_elapsed(memif->substream); in mt8192_afe_irq_handler()
2227 /* init memif */ in mt8192_afe_pcm_dev_probe()
2229 afe->memif = devm_kcalloc(dev, afe->memif_size, sizeof(*afe->memif), in mt8192_afe_pcm_dev_probe()
2231 if (!afe->memif) in mt8192_afe_pcm_dev_probe()
2235 afe->memif[i].data = &memif_data[i]; in mt8192_afe_pcm_dev_probe()
2236 afe->memif[i].irq_usage = memif_irq_usage[i]; in mt8192_afe_pcm_dev_probe()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/sound/
Dmt8195-afe-pcm.yaml31 Shared memory region for AFE memif. A "shared-dma-pool".
Dmediatek,mt8188-afe.yaml31 Shared memory region for AFE memif. A "shared-dma-pool".
/linux-6.12.1/drivers/dma/
Dat_xdmac.c224 u8 memif; /* Memory Interface */ member
473 reg |= AT_XDMAC_CNDA_NDAIF(atchan->memif); in at_xdmac_start_xfer()
655 atchan->memif = AT91_XDMAC_DT_GET_MEM_IF(dma_spec->args[0]); in at_xdmac_xlate()
658 dev_dbg(dev, "chan dt cfg: memif=%u perif=%u perid=%u\n", in at_xdmac_xlate()
659 atchan->memif, atchan->perif, atchan->perid); in at_xdmac_xlate()
681 atchan->cfg |= AT_XDMAC_CC_DIF(atchan->memif) | in at_xdmac_compute_chan_conf()
707 AT_XDMAC_CC_SIF(atchan->memif); in at_xdmac_compute_chan_conf()
/linux-6.12.1/arch/arm/mach-omap2/
Dpm44xx.c163 * The dynamic dependency between MPUSS -> MEMIF and
/linux-6.12.1/drivers/gpu/drm/imagination/
Dpvr_device.h130 * Interface (MEMIF). If present, this needs to be enabled/disabled together with @core_clk.