Lines Matching refs:txbuf

1288 	struct mvneta_buf *txbuf;  in mvneta_ring_dealloc_tx_queue()  local
1319 txbuf = &tx->txbuf[i]; in mvneta_ring_dealloc_tx_queue()
1320 if (txbuf->dmap != NULL) { in mvneta_ring_dealloc_tx_queue()
1322 txbuf->dmap); in mvneta_ring_dealloc_tx_queue()
1409 struct mvneta_buf *txbuf; in mvneta_ring_init_tx_queue() local
1419 txbuf = &tx->txbuf[i]; in mvneta_ring_init_tx_queue()
1420 txbuf->m = NULL; in mvneta_ring_init_tx_queue()
1423 &txbuf->dmap); in mvneta_ring_init_tx_queue()
1451 struct mvneta_buf *txbuf; in mvneta_ring_flush_tx_queue() local
1459 txbuf = &tx->txbuf[i]; in mvneta_ring_flush_tx_queue()
1460 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_ring_flush_tx_queue()
1461 if (txbuf->m != NULL) { in mvneta_ring_flush_tx_queue()
1462 m_freem(txbuf->m); in mvneta_ring_flush_tx_queue()
1463 txbuf->m = NULL; in mvneta_ring_flush_tx_queue()
2657 struct mvneta_buf *txbuf; in mvneta_tx_queue() local
2696 txbuf = &tx->txbuf[tx->cpu]; in mvneta_tx_queue()
2698 txbuf->dmap, mbuf, txsegs, &txnsegs, in mvneta_tx_queue()
2721 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_tx_queue()
2724 DASSERT(txbuf->m == NULL); in mvneta_tx_queue()
2727 txbuf->m = mbuf; in mvneta_tx_queue()
2728 bus_dmamap_sync(sc->txmbuf_dtag, txbuf->dmap, in mvneta_tx_queue()
2828 struct mvneta_buf *txbuf; in mvneta_tx_queue_complete() local
2866 txbuf = &tx->txbuf[tx->dma]; in mvneta_tx_queue_complete()
2867 if (__predict_true(txbuf->m != NULL)) { in mvneta_tx_queue_complete()
2869 bus_dmamap_unload(sc->txmbuf_dtag, txbuf->dmap); in mvneta_tx_queue_complete()
2870 m_freem(txbuf->m); in mvneta_tx_queue_complete()
2871 txbuf->m = NULL; in mvneta_tx_queue_complete()