Lines Matching refs:txd_info

1407 	struct mtk_tx_dma_desc_info txd_info = {  in mtk_tx_map()  local
1437 txd_info.addr = dma_map_single(eth->dma_dev, skb->data, txd_info.size, in mtk_tx_map()
1439 if (unlikely(dma_mapping_error(eth->dma_dev, txd_info.addr))) in mtk_tx_map()
1442 mtk_tx_set_dma_desc(dev, itxd, &txd_info); in mtk_tx_map()
1446 setup_tx_buf(eth, itx_buf, itxd_pdma, txd_info.addr, txd_info.size, in mtk_tx_map()
1473 memset(&txd_info, 0, sizeof(struct mtk_tx_dma_desc_info)); in mtk_tx_map()
1474 txd_info.size = min_t(unsigned int, frag_size, in mtk_tx_map()
1476 txd_info.qid = queue; in mtk_tx_map()
1477 txd_info.last = i == skb_shinfo(skb)->nr_frags - 1 && in mtk_tx_map()
1478 !(frag_size - txd_info.size); in mtk_tx_map()
1479 txd_info.addr = skb_frag_dma_map(eth->dma_dev, frag, in mtk_tx_map()
1480 offset, txd_info.size, in mtk_tx_map()
1482 if (unlikely(dma_mapping_error(eth->dma_dev, txd_info.addr))) in mtk_tx_map()
1485 mtk_tx_set_dma_desc(dev, txd, &txd_info); in mtk_tx_map()
1495 setup_tx_buf(eth, tx_buf, txd_pdma, txd_info.addr, in mtk_tx_map()
1496 txd_info.size, k++); in mtk_tx_map()
1498 frag_size -= txd_info.size; in mtk_tx_map()
1499 offset += txd_info.size; in mtk_tx_map()
1770 struct mtk_tx_dma_desc_info *txd_info, in mtk_xdp_frame_map() argument
1779 txd_info->addr = dma_map_single(eth->dma_dev, data, in mtk_xdp_frame_map()
1780 txd_info->size, DMA_TO_DEVICE); in mtk_xdp_frame_map()
1781 if (unlikely(dma_mapping_error(eth->dma_dev, txd_info->addr))) in mtk_xdp_frame_map()
1788 txd_info->addr = page_pool_get_dma_addr(page) + in mtk_xdp_frame_map()
1790 dma_sync_single_for_device(eth->dma_dev, txd_info->addr, in mtk_xdp_frame_map()
1791 txd_info->size, DMA_BIDIRECTIONAL); in mtk_xdp_frame_map()
1793 mtk_tx_set_dma_desc(dev, txd, txd_info); in mtk_xdp_frame_map()
1800 setup_tx_buf(eth, tx_buf, txd_pdma, txd_info->addr, txd_info->size, in mtk_xdp_frame_map()
1813 struct mtk_tx_dma_desc_info txd_info = { in mtk_xdp_submit_frame() local
1845 err = mtk_xdp_frame_map(eth, dev, &txd_info, txd, tx_buf, in mtk_xdp_submit_frame()
1850 if (txd_info.last) in mtk_xdp_submit_frame()
1864 memset(&txd_info, 0, sizeof(struct mtk_tx_dma_desc_info)); in mtk_xdp_submit_frame()
1865 txd_info.size = skb_frag_size(&sinfo->frags[index]); in mtk_xdp_submit_frame()
1866 txd_info.last = index + 1 == nr_frags; in mtk_xdp_submit_frame()
1867 txd_info.qid = mac->id; in mtk_xdp_submit_frame()