Lines Matching refs:txs
337 struct gem_txsoft *txs; in gem_attach() local
339 txs = &sc->sc_txsoft[i]; in gem_attach()
340 txs->txs_mbuf = NULL; in gem_attach()
344 &txs->txs_dmamap)) != 0) { in gem_attach()
351 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in gem_attach()
718 struct gem_txsoft *txs; in gem_stop() local
736 while ((txs = SIMPLEQ_FIRST(&sc->sc_txdirtyq)) != NULL) { in gem_stop()
738 if (txs->txs_mbuf != NULL) { in gem_stop()
739 bus_dmamap_sync(sc->sc_dmatag, txs->txs_dmamap, 0, in gem_stop()
740 txs->txs_dmamap->dm_mapsize, BUS_DMASYNC_POSTWRITE); in gem_stop()
741 bus_dmamap_unload(sc->sc_dmatag, txs->txs_dmamap); in gem_stop()
742 m_freem(txs->txs_mbuf); in gem_stop()
743 txs->txs_mbuf = NULL; in gem_stop()
745 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in gem_stop()
1368 struct gem_txsoft *txs; in gem_start() local
1399 while ((txs = SIMPLEQ_FIRST(&sc->sc_txfreeq)) != NULL && in gem_start()
1409 dmamap = txs->txs_dmamap; in gem_start()
1574 txs->txs_mbuf = m0; in gem_start()
1575 txs->txs_firstdesc = sc->sc_txnext; in gem_start()
1576 txs->txs_lastdesc = lasttx; in gem_start()
1577 txs->txs_ndescs = seg; in gem_start()
1581 printf(" gem_start %p transmit chain:\n", txs); in gem_start()
1582 gem_txsoft_print(sc, txs->txs_firstdesc, in gem_start()
1583 txs->txs_lastdesc); in gem_start()
1588 GEM_CDTXSYNC(sc, txs->txs_firstdesc, txs->txs_ndescs, in gem_start()
1592 sc->sc_txfree -= txs->txs_ndescs; in gem_start()
1596 SIMPLEQ_INSERT_TAIL(&sc->sc_txdirtyq, txs, txs_q); in gem_start()
1632 struct gem_txsoft *txs; in gem_tint() local
1659 while ((txs = SIMPLEQ_FIRST(&sc->sc_txdirtyq)) != NULL) { in gem_tint()
1680 txs->txs_lastdesc, txlast)); in gem_tint()
1681 if (txs->txs_firstdesc <= txs->txs_lastdesc) { in gem_tint()
1682 if (txlast >= txs->txs_firstdesc && in gem_tint()
1683 txlast <= txs->txs_lastdesc) in gem_tint()
1685 } else if (txlast >= txs->txs_firstdesc || in gem_tint()
1686 txlast <= txs->txs_lastdesc) in gem_tint()
1689 GEM_CDTXSYNC(sc, txs->txs_firstdesc, txs->txs_ndescs, in gem_tint()
1694 printf(" txsoft %p transmit chain:\n", txs); in gem_tint()
1695 gem_txsoft_print(sc, txs->txs_firstdesc, in gem_tint()
1696 txs->txs_lastdesc); in gem_tint()
1704 sc->sc_txfree += txs->txs_ndescs; in gem_tint()
1706 bus_dmamap_sync(sc->sc_dmatag, txs->txs_dmamap, in gem_tint()
1707 0, txs->txs_dmamap->dm_mapsize, in gem_tint()
1709 bus_dmamap_unload(sc->sc_dmatag, txs->txs_dmamap); in gem_tint()
1710 m_freem(txs->txs_mbuf); in gem_tint()
1711 txs->txs_mbuf = NULL; in gem_tint()
1713 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in gem_tint()