Lines Matching refs:tx_buffer
197 struct ixgbevf_tx_buffer *tx_buffer) in ixgbevf_unmap_and_free_tx_resource() argument
199 if (tx_buffer->skb) { in ixgbevf_unmap_and_free_tx_resource()
200 dev_kfree_skb_any(tx_buffer->skb); in ixgbevf_unmap_and_free_tx_resource()
201 if (dma_unmap_len(tx_buffer, len)) in ixgbevf_unmap_and_free_tx_resource()
203 dma_unmap_addr(tx_buffer, dma), in ixgbevf_unmap_and_free_tx_resource()
204 dma_unmap_len(tx_buffer, len), in ixgbevf_unmap_and_free_tx_resource()
206 } else if (dma_unmap_len(tx_buffer, len)) { in ixgbevf_unmap_and_free_tx_resource()
208 dma_unmap_addr(tx_buffer, dma), in ixgbevf_unmap_and_free_tx_resource()
209 dma_unmap_len(tx_buffer, len), in ixgbevf_unmap_and_free_tx_resource()
212 tx_buffer->next_to_watch = NULL; in ixgbevf_unmap_and_free_tx_resource()
213 tx_buffer->skb = NULL; in ixgbevf_unmap_and_free_tx_resource()
214 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_unmap_and_free_tx_resource()
294 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_clean_tx_irq() local
303 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_clean_tx_irq()
308 union ixgbe_adv_tx_desc *eop_desc = tx_buffer->next_to_watch; in ixgbevf_clean_tx_irq()
322 tx_buffer->next_to_watch = NULL; in ixgbevf_clean_tx_irq()
325 total_bytes += tx_buffer->bytecount; in ixgbevf_clean_tx_irq()
326 total_packets += tx_buffer->gso_segs; in ixgbevf_clean_tx_irq()
329 dev_kfree_skb_any(tx_buffer->skb); 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()
338 tx_buffer->skb = NULL; in ixgbevf_clean_tx_irq()
339 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_clean_tx_irq()
343 tx_buffer++; in ixgbevf_clean_tx_irq()
348 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_irq()
353 if (dma_unmap_len(tx_buffer, len)) { in ixgbevf_clean_tx_irq()
355 dma_unmap_addr(tx_buffer, dma), in ixgbevf_clean_tx_irq()
356 dma_unmap_len(tx_buffer, len), in ixgbevf_clean_tx_irq()
358 dma_unmap_len_set(tx_buffer, len, 0); in ixgbevf_clean_tx_irq()
363 tx_buffer++; in ixgbevf_clean_tx_irq()
368 tx_buffer = tx_ring->tx_buffer_info; in ixgbevf_clean_tx_irq()
3460 struct ixgbevf_tx_buffer *tx_buffer; in ixgbevf_tx_map() local
3524 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_tx_map()
3525 dma_unmap_len_set(tx_buffer, len, size); in ixgbevf_tx_map()
3526 dma_unmap_addr_set(tx_buffer, dma, dma); in ixgbevf_tx_map()
3568 tx_buffer = &tx_ring->tx_buffer_info[i]; in ixgbevf_tx_map()
3569 ixgbevf_unmap_and_free_tx_resource(tx_ring, tx_buffer); in ixgbevf_tx_map()
3570 if (tx_buffer == first) in ixgbevf_tx_map()