Lines Matching defs:tx_buf
194 struct idpf_tx_buf *tx_buf = first;
223 dma_unmap_len_set(tx_buf, len, size);
224 dma_unmap_addr_set(tx_buf, dma, dma);
272 tx_buf = &tx_q->tx_buf[i];
307 memset(&txq->tx_buf[ntu], 0, sizeof(struct idpf_tx_buf));
308 txq->tx_buf[ntu].ctx_entry = true;
393 first = &tx_q->tx_buf[tx_q->next_to_use];
453 struct idpf_tx_buf *tx_buf;
459 tx_buf = &tx_q->tx_buf[ntc];
470 if (tx_buf->ctx_entry) {
473 * There are cases where the tx_buf struct / the flags
476 tx_buf->ctx_entry = false;
481 eop_desc = (struct idpf_base_tx_desc *)tx_buf->next_to_watch;
494 tx_buf->next_to_watch = NULL;
497 total_bytes += tx_buf->bytecount;
498 total_pkts += tx_buf->gso_segs;
500 napi_consume_skb(tx_buf->skb, napi_budget);
504 dma_unmap_addr(tx_buf, dma),
505 dma_unmap_len(tx_buf, len),
508 /* clear tx_buf data */
509 tx_buf->skb = NULL;
510 dma_unmap_len_set(tx_buf, len, 0);
514 tx_buf++;
519 tx_buf = tx_q->tx_buf;
524 if (dma_unmap_len(tx_buf, len)) {
526 dma_unmap_addr(tx_buf, dma),
527 dma_unmap_len(tx_buf, len),
529 dma_unmap_len_set(tx_buf, len, 0);
537 tx_buf++;
542 tx_buf = tx_q->tx_buf;