Lines Matching refs:tx_buf
269 * @tx_buf: Tx buffer to clean
273 ice_clean_xdp_tx_buf(struct device *dev, struct ice_tx_buf *tx_buf,
276 dma_unmap_single(dev, dma_unmap_addr(tx_buf, dma),
277 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE);
278 dma_unmap_len_set(tx_buf, len, 0);
280 switch (tx_buf->type) {
282 page_frag_free(tx_buf->raw_buf);
285 xdp_return_frame_bulk(tx_buf->xdpf, bq);
289 tx_buf->type = ICE_TX_BUF_EMPTY;
309 idx = xdp_ring->tx_buf[ntc].rs_idx;
327 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[ntc];
328 struct ice_tx_buf *head = tx_buf;
331 total_bytes += tx_buf->bytecount;
332 frags = tx_buf->nr_frags;
343 tx_buf = &xdp_ring->tx_buf[ntc];
345 ice_clean_xdp_tx_buf(dev, tx_buf, &bq);
380 struct ice_tx_buf *tx_buf;
402 tx_head = &xdp_ring->tx_buf[ntu];
403 tx_buf = tx_head;
413 dma_unmap_len_set(tx_buf, len, size);
414 dma_unmap_addr_set(tx_buf, dma, dma);
417 tx_buf->type = ICE_TX_BUF_FRAG;
419 tx_buf->type = ICE_TX_BUF_XDP_TX;
420 tx_buf->raw_buf = data;
434 tx_buf = &xdp_ring->tx_buf[ntu];
461 tx_buf = &xdp_ring->tx_buf[ntu];
462 dma_unmap_page(dev, dma_unmap_addr(tx_buf, dma),
463 dma_unmap_len(tx_buf, len), DMA_TO_DEVICE);
464 dma_unmap_len_set(tx_buf, len, 0);
465 if (tx_buf == tx_head)
493 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[first_idx];
504 tx_buf->rs_idx = ice_set_rs_bit(xdp_ring);