Lines Matching refs:mapped_addr
931 struct mtk_tx_dma *txd, dma_addr_t mapped_addr, in setup_tx_buf() argument
935 dma_unmap_addr_set(tx_buf, dma_addr0, mapped_addr); in setup_tx_buf()
939 txd->txd3 = mapped_addr; in setup_tx_buf()
941 dma_unmap_addr_set(tx_buf, dma_addr1, mapped_addr); in setup_tx_buf()
945 txd->txd1 = mapped_addr; in setup_tx_buf()
947 dma_unmap_addr_set(tx_buf, dma_addr0, mapped_addr); in setup_tx_buf()
961 dma_addr_t mapped_addr; in mtk_tx_map() local
990 mapped_addr = dma_map_single(eth->dev, skb->data, in mtk_tx_map()
992 if (unlikely(dma_mapping_error(eth->dev, mapped_addr))) in mtk_tx_map()
995 WRITE_ONCE(itxd->txd1, mapped_addr); in mtk_tx_map()
999 setup_tx_buf(eth, itx_buf, itxd_pdma, mapped_addr, skb_headlen(skb), in mtk_tx_map()
1031 mapped_addr = skb_frag_dma_map(eth->dev, frag, offset, in mtk_tx_map()
1034 if (unlikely(dma_mapping_error(eth->dev, mapped_addr))) in mtk_tx_map()
1041 WRITE_ONCE(txd->txd1, mapped_addr); in mtk_tx_map()
1055 setup_tx_buf(eth, tx_buf, txd_pdma, mapped_addr, in mtk_tx_map()