Lines Matching refs:rxbuf
1218 struct mvneta_buf *rxbuf; in mvneta_ring_alloc_rx_queue() local
1248 rxbuf = &rx->rxbuf[i]; in mvneta_ring_alloc_rx_queue()
1249 rxbuf->dmap = dmap; in mvneta_ring_alloc_rx_queue()
1250 rxbuf->m = NULL; in mvneta_ring_alloc_rx_queue()
1491 struct mvneta_buf *rxbuf; in mvneta_ring_flush_rx_queue() local
1499 rxbuf = &rx->rxbuf[i]; in mvneta_ring_flush_rx_queue()
1500 mvneta_rx_buf_free(sc, rxbuf); in mvneta_ring_flush_rx_queue()
3022 struct mvneta_buf *rxbuf; in mvneta_rx_queue() local
3045 mvneta_prefetch(&rx->rxbuf[ndma]); in mvneta_rx_queue()
3049 rxbuf = &rx->rxbuf[rx->dma]; in mvneta_rx_queue()
3050 m = rxbuf->m; in mvneta_rx_queue()
3051 rxbuf->m = NULL; in mvneta_rx_queue()
3053 bus_dmamap_sync(sc->rxbuf_dtag, rxbuf->dmap, in mvneta_rx_queue()
3055 bus_dmamap_unload(sc->rxbuf_dtag, rxbuf->dmap); in mvneta_rx_queue()
3147 mvneta_rx_buf_free(struct mvneta_softc *sc, struct mvneta_buf *rxbuf) in mvneta_rx_buf_free() argument
3150 bus_dmamap_unload(sc->rxbuf_dtag, rxbuf->dmap); in mvneta_rx_buf_free()
3152 m_freem(rxbuf->m); in mvneta_rx_buf_free()
3160 struct mvneta_buf *rxbuf; in mvneta_rx_queue_refill() local
3180 rxbuf = &rx->rxbuf[rx->cpu]; in mvneta_rx_queue_refill()
3188 error = bus_dmamap_load_mbuf_sg(sc->rxbuf_dtag, rxbuf->dmap, in mvneta_rx_queue_refill()
3197 rxbuf->m = m; in mvneta_rx_queue_refill()