Searched refs:MTK_DMA_SIZE (Results 1 – 3 of 3) sorted by relevance
40 #define MTK_DMA_SIZE 64 macro326 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 …]
35 #define MTK_DMA_SIZE 512 macro
2457 ring_size = MTK_DMA_SIZE; in mtk_tx_alloc()2595 tx_ring_size = MTK_DMA_SIZE; in mtk_rx_alloc()2610 rx_dma_size = MTK_DMA_SIZE; in mtk_rx_alloc()