Lines Matching defs:tx_buf
240 * @tx_buf: Tx buffer to clean
244 ice_clean_xdp_tx_buf(struct device *dev, struct ice_tx_buf *tx_buf,
247 dma_unmap_single(dev, dma_unmap_addr(tx_buf, dma),
248 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE);
249 dma_unmap_len_set(tx_buf, len, 0);
251 switch (tx_buf->type) {
253 page_frag_free(tx_buf->raw_buf);
256 xdp_return_frame_bulk(tx_buf->xdpf, bq);
260 tx_buf->type = ICE_TX_BUF_EMPTY;
280 idx = xdp_ring->tx_buf[ntc].rs_idx;
298 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[ntc];
299 struct ice_tx_buf *head = tx_buf;
302 total_bytes += tx_buf->bytecount;
303 frags = tx_buf->nr_frags;
314 tx_buf = &xdp_ring->tx_buf[ntc];
316 ice_clean_xdp_tx_buf(dev, tx_buf, &bq);
351 struct ice_tx_buf *tx_buf;
373 tx_head = &xdp_ring->tx_buf[ntu];
374 tx_buf = tx_head;
384 dma_unmap_len_set(tx_buf, len, size);
385 dma_unmap_addr_set(tx_buf, dma, dma);
388 tx_buf->type = ICE_TX_BUF_FRAG;
390 tx_buf->type = ICE_TX_BUF_XDP_TX;
391 tx_buf->raw_buf = data;
405 tx_buf = &xdp_ring->tx_buf[ntu];
432 tx_buf = &xdp_ring->tx_buf[ntu];
433 dma_unmap_page(dev, dma_unmap_addr(tx_buf, dma),
434 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE);
435 dma_unmap_len_set(tx_buf, len, 0);
436 if (tx_buf == tx_head)
464 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[first_idx];
475 tx_buf->rs_idx = ice_set_rs_bit(xdp_ring);