Lines Matching refs:txd

717 	struct stge_txdesc *txd;  in stge_dma_alloc()  local
851 txd = &sc->sc_cdata.stge_txdesc[i]; in stge_dma_alloc()
852 txd->tx_m = NULL; in stge_dma_alloc()
853 txd->tx_dmamap = 0; in stge_dma_alloc()
855 &txd->tx_dmamap); in stge_dma_alloc()
888 struct stge_txdesc *txd; in stge_dma_free() local
923 txd = &sc->sc_cdata.stge_txdesc[i]; in stge_dma_free()
924 if (txd->tx_dmamap) { in stge_dma_free()
926 txd->tx_dmamap); in stge_dma_free()
927 txd->tx_dmamap = 0; in stge_dma_free()
1057 struct stge_txdesc *txd; in stge_encap() local
1066 if ((txd = STAILQ_FIRST(&sc->sc_cdata.stge_txfreeq)) == NULL) in stge_encap()
1070 txd->tx_dmamap, *m_head, txsegs, &nsegs, 0); in stge_encap()
1080 txd->tx_dmamap, *m_head, txsegs, &nsegs, 0); in stge_encap()
1128 STAILQ_INSERT_TAIL(&sc->sc_cdata.stge_txbusyq, txd, tx_q); in stge_encap()
1129 txd->tx_m = m; in stge_encap()
1132 bus_dmamap_sync(sc->sc_cdata.stge_tx_tag, txd->tx_dmamap, in stge_encap()
1520 struct stge_txdesc *txd; in stge_txeof() local
1528 txd = STAILQ_FIRST(&sc->sc_cdata.stge_txbusyq); in stge_txeof()
1529 if (txd == NULL) in stge_txeof()
1548 bus_dmamap_sync(sc->sc_cdata.stge_tx_tag, txd->tx_dmamap, in stge_txeof()
1550 bus_dmamap_unload(sc->sc_cdata.stge_tx_tag, txd->tx_dmamap); in stge_txeof()
1553 m_freem(txd->tx_m); in stge_txeof()
1554 txd->tx_m = NULL; in stge_txeof()
1556 STAILQ_INSERT_TAIL(&sc->sc_cdata.stge_txfreeq, txd, tx_q); in stge_txeof()
1557 txd = STAILQ_FIRST(&sc->sc_cdata.stge_txbusyq); in stge_txeof()
2195 struct stge_txdesc *txd; in stge_stop() local
2245 txd = &sc->sc_cdata.stge_txdesc[i]; in stge_stop()
2246 if (txd->tx_m != NULL) { in stge_stop()
2248 txd->tx_dmamap, BUS_DMASYNC_POSTWRITE); in stge_stop()
2250 txd->tx_dmamap); in stge_stop()
2251 m_freem(txd->tx_m); in stge_stop()
2252 txd->tx_m = NULL; in stge_stop()
2354 struct stge_txdesc *txd; in stge_init_tx_ring() local
2374 txd = &sc->sc_cdata.stge_txdesc[i]; in stge_init_tx_ring()
2375 STAILQ_INSERT_TAIL(&sc->sc_cdata.stge_txfreeq, txd, tx_q); in stge_init_tx_ring()