Searched refs:scratch_ring (Results 1 – 2 of 2) sorted by relevance
828 eth->scratch_ring = dma_alloc_coherent(eth->dev, in mtk_init_fq_dma()832 if (unlikely(!eth->scratch_ring)) in mtk_init_fq_dma()850 eth->scratch_ring[i].txd1 = in mtk_init_fq_dma()853 eth->scratch_ring[i].txd2 = (eth->phy_scratch_ring + in mtk_init_fq_dma()855 eth->scratch_ring[i].txd3 = TX_DMA_SDL(MTK_QDMA_PAGE_SIZE); in mtk_init_fq_dma()2141 if (eth->scratch_ring) { in mtk_dma_free()2144 eth->scratch_ring, in mtk_dma_free()2146 eth->scratch_ring = NULL; in mtk_dma_free()
904 struct mtk_tx_dma *scratch_ring; member