Lines Matching refs:txcb
137 struct bcmasp_tx_cb *txcb = &intf->tx_cbs[index]; in bcmasp_clean_txcb() local
139 txcb->skb = NULL; in bcmasp_clean_txcb()
140 dma_unmap_addr_set(txcb, dma_addr, 0); in bcmasp_clean_txcb()
141 dma_unmap_len_set(txcb, dma_len, 0); in bcmasp_clean_txcb()
142 txcb->last = false; in bcmasp_clean_txcb()
272 struct bcmasp_tx_cb *txcb; in bcmasp_xmit() local
328 txcb = &intf->tx_cbs[spb_index]; in bcmasp_xmit()
331 txcb->skb = skb; in bcmasp_xmit()
332 txcb->bytes_sent = total_bytes; in bcmasp_xmit()
333 dma_unmap_addr_set(txcb, dma_addr, mapping); in bcmasp_xmit()
334 dma_unmap_len_set(txcb, dma_len, size); in bcmasp_xmit()
343 txcb->last = true; in bcmasp_xmit()
442 struct bcmasp_tx_cb *txcb; in bcmasp_tx_poll() local
448 txcb = &intf->tx_cbs[intf->tx_spb_clean_index]; in bcmasp_tx_poll()
449 mapping = dma_unmap_addr(txcb, dma_addr); in bcmasp_tx_poll()
452 dma_unmap_len(txcb, dma_len), in bcmasp_tx_poll()
455 if (txcb->last) { in bcmasp_tx_poll()
456 dev_consume_skb_any(txcb->skb); in bcmasp_tx_poll()
460 u64_stats_add(&stats->tx_bytes, txcb->bytes_sent); in bcmasp_tx_poll()