Lines Matching refs:tx_buffer
268 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_clean_tx_irq() local
277 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_clean_tx_irq()
282 union ixgbe_adv_tx_desc *eop_desc = tx_buffer->next_to_watch; in ixgbevf_clean_tx_irq()
296 tx_buffer->next_to_watch = NULL; in ixgbevf_clean_tx_irq()
299 total_bytes += tx_buffer->bytecount; in ixgbevf_clean_tx_irq()
300 total_packets += tx_buffer->gso_segs; in ixgbevf_clean_tx_irq()
301 if (tx_buffer->tx_flags & IXGBE_TX_FLAGS_IPSEC) in ixgbevf_clean_tx_irq()
306 page_frag_free(tx_buffer->data); in ixgbevf_clean_tx_irq()
308 napi_consume_skb(tx_buffer->skb, napi_budget); in ixgbevf_clean_tx_irq()
312 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_irq()
313 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_irq()
317 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_clean_tx_irq()
321 tx_buffer++; in ixgbevf_clean_tx_irq()
326 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_irq()
331 if (dma_unmap_len(tx_buffer, len)) { in ixgbevf_clean_tx_irq()
333 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_irq()
334 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_irq()
336 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_clean_tx_irq()
341 tx_buffer++; in ixgbevf_clean_tx_irq()
346 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_irq()
979 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_xmit_xdp_ring() local
996 tx_buffer = &ring->tx_buffer_info[i]; in ixgbevf_xmit_xdp_ring()
998 dma_unmap_len_set(tx_buffer, len, len); in ixgbevf_xmit_xdp_ring()
999 dma_unmap_addr_set(tx_buffer, dma, dma); in ixgbevf_xmit_xdp_ring()
1000 tx_buffer->data = xdp->data; in ixgbevf_xmit_xdp_ring()
1001 tx_buffer->bytecount = len; in ixgbevf_xmit_xdp_ring()
1002 tx_buffer->gso_segs = 1; in ixgbevf_xmit_xdp_ring()
1003 tx_buffer->protocol = 0; in ixgbevf_xmit_xdp_ring()
1047 tx_buffer->next_to_watch = tx_desc; in ixgbevf_xmit_xdp_ring()
2392 struct ixgbevf_tx_buffer *tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_clean_tx_ring() local
2399 page_frag_free(tx_buffer->data); in ixgbevf_clean_tx_ring()
2401 dev_kfree_skb_any(tx_buffer->skb); in ixgbevf_clean_tx_ring()
2405 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_ring()
2406 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_ring()
2410 eop_desc = tx_buffer->next_to_watch; in ixgbevf_clean_tx_ring()
2415 tx_buffer++; in ixgbevf_clean_tx_ring()
2420 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_ring()
2425 if (dma_unmap_len(tx_buffer, len)) in ixgbevf_clean_tx_ring()
2427 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_ring()
2428 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_ring()
2433 tx_buffer++; in ixgbevf_clean_tx_ring()
2437 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_ring()
3960 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_tx_map() local
3978 tx_buffer = first; in ixgbevf_tx_map()
3985 dma_unmap_len_set(tx_buffer, len, size); in ixgbevf_tx_map()
3986 dma_unmap_addr_set(tx_buffer, dma, dma); in ixgbevf_tx_map()
4027 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_tx_map()
4063 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_tx_map()
4066 while (tx_buffer != first) { in ixgbevf_tx_map()
4067 if (dma_unmap_len(tx_buffer, len)) in ixgbevf_tx_map()
4069 dma_unmap_addr(tx_buffer, dma), in ixgbevf_tx_map()
4070 dma_unmap_len(tx_buffer, len), in ixgbevf_tx_map()
4072 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_tx_map()
4076 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_tx_map()
4079 if (dma_unmap_len(tx_buffer, len)) in ixgbevf_tx_map()
4081 dma_unmap_addr(tx_buffer, dma), in ixgbevf_tx_map()
4082 dma_unmap_len(tx_buffer, len), in ixgbevf_tx_map()
4084 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_tx_map()
4086 dev_kfree_skb_any(tx_buffer->skb); in ixgbevf_tx_map()
4087 tx_buffer->skb = NULL; in ixgbevf_tx_map()