Lines Matching refs:desc
1186 static void *mtk_qdma_phys_to_virt(struct mtk_tx_ring *ring, u32 desc) in mtk_qdma_phys_to_virt() argument
1188 return ring->dma + (desc - ring->phys); in mtk_qdma_phys_to_virt()
1292 struct mtk_tx_dma *desc = txd; in mtk_tx_set_dma_desc_v1() local
1295 WRITE_ONCE(desc->txd1, info->addr); in mtk_tx_set_dma_desc_v1()
1301 WRITE_ONCE(desc->txd3, data); in mtk_tx_set_dma_desc_v1()
1314 WRITE_ONCE(desc->txd4, data); in mtk_tx_set_dma_desc_v1()
1321 struct mtk_tx_dma_v2 *desc = txd; in mtk_tx_set_dma_desc_v2() local
1325 WRITE_ONCE(desc->txd1, info->addr); in mtk_tx_set_dma_desc_v2()
1334 WRITE_ONCE(desc->txd3, data); in mtk_tx_set_dma_desc_v2()
1350 WRITE_ONCE(desc->txd4, data); in mtk_tx_set_dma_desc_v2()
1362 WRITE_ONCE(desc->txd5, data); in mtk_tx_set_dma_desc_v2()
1367 WRITE_ONCE(desc->txd6, data); in mtk_tx_set_dma_desc_v2()
1369 WRITE_ONCE(desc->txd7, 0); in mtk_tx_set_dma_desc_v2()
1370 WRITE_ONCE(desc->txd8, 0); in mtk_tx_set_dma_desc_v2()
2262 struct mtk_tx_dma *desc; in mtk_poll_tx_qdma() local
2268 desc = mtk_qdma_phys_to_virt(ring, cpu); in mtk_poll_tx_qdma()
2272 u32 next_cpu = desc->txd2; in mtk_poll_tx_qdma()
2274 desc = mtk_qdma_phys_to_virt(ring, desc->txd2); in mtk_poll_tx_qdma()
2275 if ((desc->txd3 & TX_DMA_OWNER_CPU) == 0) in mtk_poll_tx_qdma()
2278 tx_buf = mtk_desc_to_tx_buf(ring, desc, in mtk_poll_tx_qdma()
2292 ring->last_free = desc; in mtk_poll_tx_qdma()
2311 struct mtk_tx_dma *desc; in mtk_poll_tx_pdma() local
2330 desc = ring->dma + cpu * eth->soc->txrx.txd_size; in mtk_poll_tx_pdma()
2331 ring->last_free = desc; in mtk_poll_tx_pdma()