Lines Matching refs:rxp

241 			    struct fxp_rx *rxp);
243 struct fxp_rx *rxp);
245 struct fxp_rx *rxp);
429 struct fxp_rx *rxp; in fxp_attach() local
770 rxp = &sc->fxp_desc.rx_list[i]; in fxp_attach()
771 error = bus_dmamap_create(sc->fxp_rxmtag, 0, &rxp->rx_map); in fxp_attach()
776 if (fxp_new_rfabuf(sc, rxp) != 0) { in fxp_attach()
780 fxp_add_rfabuf(sc, rxp); in fxp_attach()
928 struct fxp_rx *rxp; in fxp_release() local
953 rxp = &sc->fxp_desc.rx_list[i]; in fxp_release()
954 if (rxp->rx_mbuf != NULL) { in fxp_release()
955 bus_dmamap_sync(sc->fxp_rxmtag, rxp->rx_map, in fxp_release()
957 bus_dmamap_unload(sc->fxp_rxmtag, rxp->rx_map); in fxp_release()
958 m_freem(rxp->rx_mbuf); in fxp_release()
960 bus_dmamap_destroy(sc->fxp_rxmtag, rxp->rx_map); in fxp_release()
1842 struct fxp_rx *rxp; in fxp_intr_body() local
1902 rxp = sc->fxp_desc.rx_head; in fxp_intr_body()
1903 m = rxp->rx_mbuf; in fxp_intr_body()
1906 bus_dmamap_sync(sc->fxp_rxmtag, rxp->rx_map, in fxp_intr_body()
1929 sc->fxp_desc.rx_head = rxp->rx_next; in fxp_intr_body()
1936 if (fxp_new_rfabuf(sc, rxp) == 0) { in fxp_intr_body()
1957 fxp_add_rfabuf(sc, rxp); in fxp_intr_body()
1990 fxp_discard_rfabuf(sc, rxp); in fxp_intr_body()
1992 fxp_add_rfabuf(sc, rxp); in fxp_intr_body()
2608 fxp_new_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) in fxp_new_rfabuf() argument
2651 &rxp->rx_addr, BUS_DMA_NOWAIT); in fxp_new_rfabuf()
2657 if (rxp->rx_mbuf != NULL) in fxp_new_rfabuf()
2658 bus_dmamap_unload(sc->fxp_rxmtag, rxp->rx_map); in fxp_new_rfabuf()
2660 sc->spare_map = rxp->rx_map; in fxp_new_rfabuf()
2661 rxp->rx_map = tmp_map; in fxp_new_rfabuf()
2662 rxp->rx_mbuf = m; in fxp_new_rfabuf()
2664 bus_dmamap_sync(sc->fxp_rxmtag, rxp->rx_map, in fxp_new_rfabuf()
2670 fxp_add_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) in fxp_add_rfabuf() argument
2683 p_rx->rx_next = rxp; in fxp_add_rfabuf()
2684 le32enc(&p_rfa->link_addr, rxp->rx_addr); in fxp_add_rfabuf()
2689 rxp->rx_next = NULL; in fxp_add_rfabuf()
2690 sc->fxp_desc.rx_head = rxp; in fxp_add_rfabuf()
2692 sc->fxp_desc.rx_tail = rxp; in fxp_add_rfabuf()
2696 fxp_discard_rfabuf(struct fxp_softc *sc, struct fxp_rx *rxp) in fxp_discard_rfabuf() argument
2701 m = rxp->rx_mbuf; in fxp_discard_rfabuf()
2730 bus_dmamap_sync(sc->fxp_rxmtag, rxp->rx_map, in fxp_discard_rfabuf()