Home
last modified time | relevance | path

Searched refs:scratch_ring (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c608 eth->scratch_ring = dma_zalloc_coherent(eth->dev, in mtk_init_fq_dma()
612 if (unlikely(!eth->scratch_ring)) in mtk_init_fq_dma()
630 eth->scratch_ring[i].txd1 = in mtk_init_fq_dma()
633 eth->scratch_ring[i].txd2 = (eth->phy_scratch_ring + in mtk_init_fq_dma()
635 eth->scratch_ring[i].txd3 = TX_DMA_SDL(MTK_QDMA_PAGE_SIZE); in mtk_init_fq_dma()
1715 if (eth->scratch_ring) { in mtk_dma_free()
1718 eth->scratch_ring, in mtk_dma_free()
1720 eth->scratch_ring = NULL; in mtk_dma_free()
Dmtk_eth_soc.h646 struct mtk_tx_dma *scratch_ring; member
/Linux-v4.19/drivers/staging/mt7621-eth/
Dmtk_eth_soc.c775 eth->scratch_ring = dma_alloc_coherent(eth->dev, in mtk_init_fq_dma()
779 if (unlikely(!eth->scratch_ring)) in mtk_init_fq_dma()
790 memset(eth->scratch_ring, 0x0, sizeof(struct mtk_tx_dma) * cnt); in mtk_init_fq_dma()
794 eth->scratch_ring[i].txd1 = (dma_addr + (i * QDMA_PAGE_SIZE)); in mtk_init_fq_dma()
796 eth->scratch_ring[i].txd2 = (phy_ring_head + in mtk_init_fq_dma()
798 eth->scratch_ring[i].txd3 = TX_QDMA_SDL(QDMA_PAGE_SIZE); in mtk_init_fq_dma()
Dmtk_eth_soc.h665 struct mtk_tx_dma *scratch_ring; member