Lines Matching refs:rxd
729 struct stge_rxdesc *rxd; in stge_dma_alloc() local
880 rxd = &sc->sc_cdata.stge_rxdesc[i]; in stge_dma_alloc()
881 rxd->rx_m = NULL; in stge_dma_alloc()
882 rxd->rx_dmamap = 0; in stge_dma_alloc()
884 &rxd->rx_dmamap); in stge_dma_alloc()
900 struct stge_rxdesc *rxd; in stge_dma_free() local
949 rxd = &sc->sc_cdata.stge_rxdesc[i]; in stge_dma_free()
950 if (rxd->rx_dmamap) { in stge_dma_free()
952 rxd->rx_dmamap); in stge_dma_free()
953 rxd->rx_dmamap = 0; in stge_dma_free()
1638 struct stge_rxdesc *rxd; in stge_rxeof() local
1667 rxd = &sc->sc_cdata.stge_rxdesc[cons]; in stge_rxeof()
1668 mp = rxd->rx_m; in stge_rxeof()
2210 struct stge_rxdesc *rxd; in stge_stop() local
2248 rxd = &sc->sc_cdata.stge_rxdesc[i]; in stge_stop()
2249 if (rxd->rx_m != NULL) { in stge_stop()
2251 rxd->rx_dmamap, BUS_DMASYNC_POSTREAD); in stge_stop()
2253 rxd->rx_dmamap); in stge_stop()
2254 m_freem(rxd->rx_m); in stge_stop()
2255 rxd->rx_m = NULL; in stge_stop()
2436 struct stge_rxdesc *rxd; in stge_newbuf() local
2461 rxd = &sc->sc_cdata.stge_rxdesc[idx]; in stge_newbuf()
2462 if (rxd->rx_m != NULL) { in stge_newbuf()
2463 bus_dmamap_sync(sc->sc_cdata.stge_rx_tag, rxd->rx_dmamap, in stge_newbuf()
2465 bus_dmamap_unload(sc->sc_cdata.stge_rx_tag, rxd->rx_dmamap); in stge_newbuf()
2467 map = rxd->rx_dmamap; in stge_newbuf()
2468 rxd->rx_dmamap = sc->sc_cdata.stge_rx_sparemap; in stge_newbuf()
2470 bus_dmamap_sync(sc->sc_cdata.stge_rx_tag, rxd->rx_dmamap, in stge_newbuf()
2472 rxd->rx_m = m; in stge_newbuf()