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
329 txcb = &intf->tx_cbs[spb_index]; in bcmasp_xmit()
332 txcb->skb = skb; in bcmasp_xmit()
333 txcb->bytes_sent = total_bytes; in bcmasp_xmit()
334 dma_unmap_addr_set(txcb, dma_addr, mapping); in bcmasp_xmit()
335 dma_unmap_len_set(txcb, dma_len, size); in bcmasp_xmit()
344 txcb->last = true; in bcmasp_xmit()
445 struct bcmasp_tx_cb *txcb; in bcmasp_tx_reclaim() local
451 txcb = &intf->tx_cbs[intf->tx_spb_clean_index]; in bcmasp_tx_reclaim()
452 mapping = dma_unmap_addr(txcb, dma_addr); in bcmasp_tx_reclaim()
455 dma_unmap_len(txcb, dma_len), in bcmasp_tx_reclaim()
458 if (txcb->last) { in bcmasp_tx_reclaim()
459 dev_consume_skb_any(txcb->skb); in bcmasp_tx_reclaim()
463 u64_stats_add(&stats->tx_bytes, txcb->bytes_sent); in bcmasp_tx_reclaim()