Lines Matching refs:tx_buffer

267 	struct ixgbevf_tx_buffer *tx_buffer;  in ixgbevf_clean_tx_irq()  local
276 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_clean_tx_irq()
281 union ixgbe_adv_tx_desc *eop_desc = tx_buffer->next_to_watch; in ixgbevf_clean_tx_irq()
295 tx_buffer->next_to_watch = NULL; in ixgbevf_clean_tx_irq()
298 total_bytes += tx_buffer->bytecount; in ixgbevf_clean_tx_irq()
299 total_packets += tx_buffer->gso_segs; in ixgbevf_clean_tx_irq()
300 if (tx_buffer->tx_flags & IXGBE_TX_FLAGS_IPSEC) in ixgbevf_clean_tx_irq()
305 page_frag_free(tx_buffer->data); in ixgbevf_clean_tx_irq()
307 napi_consume_skb(tx_buffer->skb, napi_budget); in ixgbevf_clean_tx_irq()
311 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_irq()
312 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_irq()
316 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_clean_tx_irq()
320 tx_buffer++; in ixgbevf_clean_tx_irq()
325 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_irq()
330 if (dma_unmap_len(tx_buffer, len)) { in ixgbevf_clean_tx_irq()
332 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_irq()
333 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_irq()
335 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_clean_tx_irq()
340 tx_buffer++; in ixgbevf_clean_tx_irq()
345 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_irq()
973 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_xmit_xdp_ring() local
990 tx_buffer = &ring->tx_buffer_info[i]; in ixgbevf_xmit_xdp_ring()
992 dma_unmap_len_set(tx_buffer, len, len); in ixgbevf_xmit_xdp_ring()
993 dma_unmap_addr_set(tx_buffer, dma, dma); in ixgbevf_xmit_xdp_ring()
994 tx_buffer->data = xdp->data; in ixgbevf_xmit_xdp_ring()
995 tx_buffer->bytecount = len; in ixgbevf_xmit_xdp_ring()
996 tx_buffer->gso_segs = 1; in ixgbevf_xmit_xdp_ring()
997 tx_buffer->protocol = 0; in ixgbevf_xmit_xdp_ring()
1041 tx_buffer->next_to_watch = tx_desc; in ixgbevf_xmit_xdp_ring()
2408 struct ixgbevf_tx_buffer *tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_clean_tx_ring() local
2415 page_frag_free(tx_buffer->data); in ixgbevf_clean_tx_ring()
2417 dev_kfree_skb_any(tx_buffer->skb); in ixgbevf_clean_tx_ring()
2421 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_ring()
2422 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_ring()
2426 eop_desc = tx_buffer->next_to_watch; in ixgbevf_clean_tx_ring()
2431 tx_buffer++; in ixgbevf_clean_tx_ring()
2436 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_ring()
2441 if (dma_unmap_len(tx_buffer, len)) in ixgbevf_clean_tx_ring()
2443 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_ring()
2444 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_ring()
2449 tx_buffer++; in ixgbevf_clean_tx_ring()
2453 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_ring()
3968 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_tx_map() local
3986 tx_buffer = first; in ixgbevf_tx_map()
3993 dma_unmap_len_set(tx_buffer, len, size); in ixgbevf_tx_map()
3994 dma_unmap_addr_set(tx_buffer, dma, dma); in ixgbevf_tx_map()
4035 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_tx_map()
4071 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_tx_map()
4074 while (tx_buffer != first) { in ixgbevf_tx_map()
4075 if (dma_unmap_len(tx_buffer, len)) in ixgbevf_tx_map()
4077 dma_unmap_addr(tx_buffer, dma), in ixgbevf_tx_map()
4078 dma_unmap_len(tx_buffer, len), in ixgbevf_tx_map()
4080 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_tx_map()
4084 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_tx_map()
4087 if (dma_unmap_len(tx_buffer, len)) in ixgbevf_tx_map()
4089 dma_unmap_addr(tx_buffer, dma), in ixgbevf_tx_map()
4090 dma_unmap_len(tx_buffer, len), in ixgbevf_tx_map()
4092 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_tx_map()
4094 dev_kfree_skb_any(tx_buffer->skb); in ixgbevf_tx_map()
4095 tx_buffer->skb = NULL; in ixgbevf_tx_map()