Lines Matching refs:txbuf
1297 struct mvneta_buf *txbuf; in mvneta_ring_dealloc_tx_queue() local
1318 txbuf = &tx->txbuf[i]; in mvneta_ring_dealloc_tx_queue()
1319 if (txbuf->dmap != NULL) { in mvneta_ring_dealloc_tx_queue()
1321 txbuf->dmap); in mvneta_ring_dealloc_tx_queue()
1406 struct mvneta_buf *txbuf; in mvneta_ring_init_tx_queue() local
1416 txbuf = &tx->txbuf[i]; in mvneta_ring_init_tx_queue()
1417 txbuf->m = NULL; in mvneta_ring_init_tx_queue()
1420 &txbuf->dmap); in mvneta_ring_init_tx_queue()
1448 struct mvneta_buf *txbuf; in mvneta_ring_flush_tx_queue() local
1456 txbuf = &tx->txbuf[i]; in mvneta_ring_flush_tx_queue()
1457 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_ring_flush_tx_queue()
1458 if (txbuf->m != NULL) { in mvneta_ring_flush_tx_queue()
1459 m_freem(txbuf->m); in mvneta_ring_flush_tx_queue()
1460 txbuf->m = NULL; in mvneta_ring_flush_tx_queue()
2673 struct mvneta_buf *txbuf; in mvneta_tx_queue() local
2712 txbuf = &tx->txbuf[tx->cpu]; in mvneta_tx_queue()
2714 txbuf->dmap, mbuf, txsegs, &txnsegs, in mvneta_tx_queue()
2737 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_tx_queue()
2740 DASSERT(txbuf->m == NULL); in mvneta_tx_queue()
2743 txbuf->m = mbuf; in mvneta_tx_queue()
2744 bus_dmamap_sync(sc->txmbuf_dtag, txbuf->dmap, in mvneta_tx_queue()
2848 struct mvneta_buf *txbuf; in mvneta_tx_queue_complete() local
2886 txbuf = &tx->txbuf[tx->dma]; in mvneta_tx_queue_complete()
2887 if (__predict_true(txbuf->m != NULL)) { in mvneta_tx_queue_complete()
2889 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_tx_queue_complete()
2890 m_freem(txbuf->m); in mvneta_tx_queue_complete()
2891 txbuf->m = NULL; in mvneta_tx_queue_complete()