Lines Matching refs:txbuf
1305 struct mvneta_buf *txbuf; in mvneta_ring_dealloc_tx_queue() local
1336 txbuf = &tx->txbuf[i]; in mvneta_ring_dealloc_tx_queue()
1337 if (txbuf->dmap != NULL) { in mvneta_ring_dealloc_tx_queue()
1339 txbuf->dmap); in mvneta_ring_dealloc_tx_queue()
1426 struct mvneta_buf *txbuf; in mvneta_ring_init_tx_queue() local
1436 txbuf = &tx->txbuf[i]; in mvneta_ring_init_tx_queue()
1437 txbuf->m = NULL; in mvneta_ring_init_tx_queue()
1440 &txbuf->dmap); in mvneta_ring_init_tx_queue()
1468 struct mvneta_buf *txbuf; in mvneta_ring_flush_tx_queue() local
1476 txbuf = &tx->txbuf[i]; in mvneta_ring_flush_tx_queue()
1477 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_ring_flush_tx_queue()
1478 if (txbuf->m != NULL) { in mvneta_ring_flush_tx_queue()
1479 m_freem(txbuf->m); in mvneta_ring_flush_tx_queue()
1480 txbuf->m = NULL; in mvneta_ring_flush_tx_queue()
2697 struct mvneta_buf *txbuf; in mvneta_tx_queue() local
2736 txbuf = &tx->txbuf[tx->cpu]; in mvneta_tx_queue()
2738 txbuf->dmap, mbuf, txsegs, &txnsegs, in mvneta_tx_queue()
2761 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_tx_queue()
2764 DASSERT(txbuf->m == NULL); in mvneta_tx_queue()
2767 txbuf->m = mbuf; in mvneta_tx_queue()
2768 bus_dmamap_sync(sc->txmbuf_dtag, txbuf->dmap, in mvneta_tx_queue()
2869 struct mvneta_buf *txbuf; in mvneta_tx_queue_complete() local
2907 txbuf = &tx->txbuf[tx->dma]; in mvneta_tx_queue_complete()
2908 if (__predict_true(txbuf->m != NULL)) { in mvneta_tx_queue_complete()
2910 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_tx_queue_complete()
2911 m_freem(txbuf->m); in mvneta_tx_queue_complete()
2912 txbuf->m = NULL; in mvneta_tx_queue_complete()