Home
last modified time | relevance | path

Searched refs:MTK_DMA_SIZE (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/dma/mediatek/
Dmtk-hsdma.c40 #define MTK_DMA_SIZE 64 macro
326 pc->sz_ring = 2 * MTK_DMA_SIZE * sizeof(*ring->txd); in mtk_hsdma_alloc_pchan()
332 ring->rxd = &ring->txd[MTK_DMA_SIZE]; in mtk_hsdma_alloc_pchan()
333 ring->rphys = ring->tphys + MTK_DMA_SIZE * sizeof(*ring->txd); in mtk_hsdma_alloc_pchan()
335 ring->cur_rptr = MTK_DMA_SIZE - 1; in mtk_hsdma_alloc_pchan()
337 ring->cb = kcalloc(MTK_DMA_SIZE, sizeof(*ring->cb), GFP_NOWAIT); in mtk_hsdma_alloc_pchan()
343 atomic_set(&pc->nr_free, MTK_DMA_SIZE - 1); in mtk_hsdma_alloc_pchan()
359 mtk_dma_write(hsdma, MTK_HSDMA_TX_CNT, MTK_DMA_SIZE); in mtk_hsdma_alloc_pchan()
363 mtk_dma_write(hsdma, MTK_HSDMA_RX_CNT, MTK_DMA_SIZE); in mtk_hsdma_alloc_pchan()
403 mtk_dma_write(hsdma, MTK_HSDMA_RX_CPU, MTK_DMA_SIZE - 1); in mtk_hsdma_free_pchan()
[all …]
/linux-6.12.1/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c5106 .dma_size = MTK_DMA_SIZE(2K),
5107 .fq_dma_size = MTK_DMA_SIZE(2K),
5113 .dma_size = MTK_DMA_SIZE(2K),
5134 .dma_size = MTK_DMA_SIZE(2K),
5135 .fq_dma_size = MTK_DMA_SIZE(2K),
5141 .dma_size = MTK_DMA_SIZE(2K),
5164 .dma_size = MTK_DMA_SIZE(2K),
5165 .fq_dma_size = MTK_DMA_SIZE(2K),
5171 .dma_size = MTK_DMA_SIZE(2K),
5193 .dma_size = MTK_DMA_SIZE(2K),
[all …]
Dmtk_eth_soc.h35 #define MTK_DMA_SIZE(x) (SZ_##x) macro