Lines Matching refs:tx_buf

55 	struct i40e_tx_buffer *tx_buf, *first;  in i40e_program_fdir_filter()  local
149 tx_buf = &tx_ring->tx_bi[i]; in i40e_program_fdir_filter()
153 memset(tx_buf, 0, sizeof(struct i40e_tx_buffer)); in i40e_program_fdir_filter()
156 dma_unmap_len_set(tx_buf, len, I40E_FDIR_MAX_RAW_PACKET_SIZE); in i40e_program_fdir_filter()
157 dma_unmap_addr_set(tx_buf, dma, dma); in i40e_program_fdir_filter()
162 tx_buf->tx_flags = I40E_TX_FLAGS_FD_SB; in i40e_program_fdir_filter()
163 tx_buf->raw_buf = (void *)raw_packet; in i40e_program_fdir_filter()
169 tx_buf->time_stamp = jiffies; in i40e_program_fdir_filter()
695 struct i40e_tx_buffer *tx_buf; in i40e_clean_tx_irq() local
701 tx_buf = &tx_ring->tx_bi[i]; in i40e_clean_tx_irq()
708 struct i40e_tx_desc *eop_desc = tx_buf->next_to_watch; in i40e_clean_tx_irq()
722 tx_buf->next_to_watch = NULL; in i40e_clean_tx_irq()
725 total_bytes += tx_buf->bytecount; in i40e_clean_tx_irq()
726 total_packets += tx_buf->gso_segs; in i40e_clean_tx_irq()
729 dev_consume_skb_any(tx_buf->skb); in i40e_clean_tx_irq()
733 dma_unmap_addr(tx_buf, dma), in i40e_clean_tx_irq()
734 dma_unmap_len(tx_buf, len), in i40e_clean_tx_irq()
738 tx_buf->skb = NULL; in i40e_clean_tx_irq()
739 dma_unmap_len_set(tx_buf, len, 0); in i40e_clean_tx_irq()
744 tx_buf++; in i40e_clean_tx_irq()
749 tx_buf = tx_ring->tx_bi; in i40e_clean_tx_irq()
754 if (dma_unmap_len(tx_buf, len)) { in i40e_clean_tx_irq()
756 dma_unmap_addr(tx_buf, dma), in i40e_clean_tx_irq()
757 dma_unmap_len(tx_buf, len), in i40e_clean_tx_irq()
759 dma_unmap_len_set(tx_buf, len, 0); in i40e_clean_tx_irq()
764 tx_buf++; in i40e_clean_tx_irq()
769 tx_buf = tx_ring->tx_bi; in i40e_clean_tx_irq()