Home | History | Annotate | Download | only in ic

Lines Matching defs:txs

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