MTK_DMA_SIZE 327 drivers/dma/mediatek/mtk-hsdma.c pc->sz_ring = 2 * MTK_DMA_SIZE * sizeof(*ring->txd); MTK_DMA_SIZE 333 drivers/dma/mediatek/mtk-hsdma.c ring->rxd = &ring->txd[MTK_DMA_SIZE]; MTK_DMA_SIZE 334 drivers/dma/mediatek/mtk-hsdma.c ring->rphys = ring->tphys + MTK_DMA_SIZE * sizeof(*ring->txd); MTK_DMA_SIZE 336 drivers/dma/mediatek/mtk-hsdma.c ring->cur_rptr = MTK_DMA_SIZE - 1; MTK_DMA_SIZE 338 drivers/dma/mediatek/mtk-hsdma.c ring->cb = kcalloc(MTK_DMA_SIZE, sizeof(*ring->cb), GFP_NOWAIT); MTK_DMA_SIZE 344 drivers/dma/mediatek/mtk-hsdma.c atomic_set(&pc->nr_free, MTK_DMA_SIZE - 1); MTK_DMA_SIZE 360 drivers/dma/mediatek/mtk-hsdma.c mtk_dma_write(hsdma, MTK_HSDMA_TX_CNT, MTK_DMA_SIZE); MTK_DMA_SIZE 364 drivers/dma/mediatek/mtk-hsdma.c mtk_dma_write(hsdma, MTK_HSDMA_RX_CNT, MTK_DMA_SIZE); MTK_DMA_SIZE 404 drivers/dma/mediatek/mtk-hsdma.c mtk_dma_write(hsdma, MTK_HSDMA_RX_CPU, MTK_DMA_SIZE - 1); MTK_DMA_SIZE 464 drivers/dma/mediatek/mtk-hsdma.c MTK_DMA_SIZE); MTK_DMA_SIZE 477 drivers/dma/mediatek/mtk-hsdma.c prev = MTK_HSDMA_LAST_DESP_IDX(ring->cur_tptr, MTK_DMA_SIZE); MTK_DMA_SIZE 540 drivers/dma/mediatek/mtk-hsdma.c int i = MTK_DMA_SIZE; MTK_DMA_SIZE 561 drivers/dma/mediatek/mtk-hsdma.c MTK_DMA_SIZE); MTK_DMA_SIZE 629 drivers/dma/mediatek/mtk-hsdma.c if (atomic_read(&pc->nr_free) >= MTK_DMA_SIZE - 1) MTK_DMA_SIZE 779 drivers/net/ethernet/mediatek/mtk_eth_soc.c int cnt = MTK_DMA_SIZE; MTK_DMA_SIZE 1538 drivers/net/ethernet/mediatek/mtk_eth_soc.c ring->buf = kcalloc(MTK_DMA_SIZE, sizeof(*ring->buf), MTK_DMA_SIZE 1543 drivers/net/ethernet/mediatek/mtk_eth_soc.c ring->dma = dma_alloc_coherent(eth->dev, MTK_DMA_SIZE * sz, MTK_DMA_SIZE 1548 drivers/net/ethernet/mediatek/mtk_eth_soc.c for (i = 0; i < MTK_DMA_SIZE; i++) { MTK_DMA_SIZE 1549 drivers/net/ethernet/mediatek/mtk_eth_soc.c int next = (i + 1) % MTK_DMA_SIZE; MTK_DMA_SIZE 1561 drivers/net/ethernet/mediatek/mtk_eth_soc.c ring->dma_pdma = dma_alloc_coherent(eth->dev, MTK_DMA_SIZE * sz, MTK_DMA_SIZE 1567 drivers/net/ethernet/mediatek/mtk_eth_soc.c for (i = 0; i < MTK_DMA_SIZE; i++) { MTK_DMA_SIZE 1573 drivers/net/ethernet/mediatek/mtk_eth_soc.c ring->dma_size = MTK_DMA_SIZE; MTK_DMA_SIZE 1574 drivers/net/ethernet/mediatek/mtk_eth_soc.c atomic_set(&ring->free_count, MTK_DMA_SIZE - 2); MTK_DMA_SIZE 1576 drivers/net/ethernet/mediatek/mtk_eth_soc.c ring->last_free = &ring->dma[MTK_DMA_SIZE - 1]; MTK_DMA_SIZE 1588 drivers/net/ethernet/mediatek/mtk_eth_soc.c ring->phys + ((MTK_DMA_SIZE - 1) * sz), MTK_DMA_SIZE 1591 drivers/net/ethernet/mediatek/mtk_eth_soc.c ring->phys + ((MTK_DMA_SIZE - 1) * sz), MTK_DMA_SIZE 1597 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_DMA_SIZE, MT7628_TX_MAX_CNT0); MTK_DMA_SIZE 1614 drivers/net/ethernet/mediatek/mtk_eth_soc.c for (i = 0; i < MTK_DMA_SIZE; i++) MTK_DMA_SIZE 1622 drivers/net/ethernet/mediatek/mtk_eth_soc.c MTK_DMA_SIZE * sizeof(*ring->dma), MTK_DMA_SIZE 1630 drivers/net/ethernet/mediatek/mtk_eth_soc.c MTK_DMA_SIZE * sizeof(*ring->dma_pdma), MTK_DMA_SIZE 1658 drivers/net/ethernet/mediatek/mtk_eth_soc.c rx_dma_size = MTK_DMA_SIZE; MTK_DMA_SIZE 2089 drivers/net/ethernet/mediatek/mtk_eth_soc.c MTK_DMA_SIZE * sizeof(struct mtk_tx_dma),