Lines Matching defs:tx_buf
85 struct i40e_tx_buffer *tx_buf, *first;
122 tx_buf = &tx_ring->tx_bi[i];
126 memset(tx_buf, 0, sizeof(struct i40e_tx_buffer));
129 dma_unmap_len_set(tx_buf, len, I40E_FDIR_MAX_RAW_PACKET_SIZE);
130 dma_unmap_addr_set(tx_buf, dma, dma);
135 tx_buf->tx_flags = I40E_TX_FLAGS_FD_SB;
136 tx_buf->raw_buf = (void *)raw_packet;
931 struct i40e_tx_buffer *tx_buf;
937 tx_buf = &tx_ring->tx_bi[i];
944 struct i40e_tx_desc *eop_desc = tx_buf->next_to_watch;
953 i40e_trace(clean_tx_irq, tx_ring, tx_desc, tx_buf);
959 tx_buf->next_to_watch = NULL;
962 total_bytes += tx_buf->bytecount;
963 total_packets += tx_buf->gso_segs;
967 xdp_return_frame(tx_buf->xdpf);
969 napi_consume_skb(tx_buf->skb, napi_budget);
973 dma_unmap_addr(tx_buf, dma),
974 dma_unmap_len(tx_buf, len),
978 tx_buf->skb = NULL;
979 dma_unmap_len_set(tx_buf, len, 0);
984 tx_ring, tx_desc, tx_buf);
986 tx_buf++;
991 tx_buf = tx_ring->tx_bi;
996 if (dma_unmap_len(tx_buf, len)) {
998 dma_unmap_addr(tx_buf, dma),
999 dma_unmap_len(tx_buf, len),
1001 dma_unmap_len_set(tx_buf, len, 0);
1006 tx_buf++;
1011 tx_buf = tx_ring->tx_bi;