Lines Matching refs:rxbuf
1204 struct mvneta_buf *rxbuf; in mvneta_ring_alloc_rx_queue() local
1234 rxbuf = &rx->rxbuf[i]; in mvneta_ring_alloc_rx_queue()
1235 rxbuf->dmap = dmap; in mvneta_ring_alloc_rx_queue()
1236 rxbuf->m = NULL; in mvneta_ring_alloc_rx_queue()
1471 struct mvneta_buf *rxbuf; in mvneta_ring_flush_rx_queue() local
1479 rxbuf = &rx->rxbuf[i]; in mvneta_ring_flush_rx_queue()
1480 mvneta_rx_buf_free(sc, rxbuf); in mvneta_ring_flush_rx_queue()
3001 struct mvneta_buf *rxbuf; in mvneta_rx_queue() local
3022 mvneta_prefetch(&rx->rxbuf[ndma]); in mvneta_rx_queue()
3026 rxbuf = &rx->rxbuf[rx->dma]; in mvneta_rx_queue()
3027 m = rxbuf->m; in mvneta_rx_queue()
3028 rxbuf->m = NULL; in mvneta_rx_queue()
3030 bus_dmamap_sync(sc->rxbuf_dtag, rxbuf->dmap, in mvneta_rx_queue()
3032 bus_dmamap_unload(sc->rxbuf_dtag, rxbuf->dmap); in mvneta_rx_queue()
3120 mvneta_rx_buf_free(struct mvneta_softc *sc, struct mvneta_buf *rxbuf) in mvneta_rx_buf_free() argument
3123 bus_dmamap_unload(sc->rxbuf_dtag, rxbuf->dmap); in mvneta_rx_buf_free()
3125 m_freem(rxbuf->m); in mvneta_rx_buf_free()
3133 struct mvneta_buf *rxbuf; in mvneta_rx_queue_refill() local
3153 rxbuf = &rx->rxbuf[rx->cpu]; in mvneta_rx_queue_refill()
3161 error = bus_dmamap_load_mbuf_sg(sc->rxbuf_dtag, rxbuf->dmap, in mvneta_rx_queue_refill()
3170 rxbuf->m = m; in mvneta_rx_queue_refill()