Home | History | Annotate | Download | only in ic

Lines Matching defs:txs

600 	struct tulip_txsoft *txs;
642 txs = &sc->sc_txsoft[i];
643 if (txs->txs_mbuf != NULL) {
644 bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
645 m_freem(txs->txs_mbuf);
646 txs->txs_mbuf = NULL;
648 bus_dmamap_destroy(sc->sc_dmat, txs->txs_dmamap);
676 struct tulip_txsoft *txs, *last_txs = NULL;
714 while ((txs = SIMPLEQ_FIRST(&sc->sc_txfreeq)) != NULL &&
724 dmamap = txs->txs_dmamap;
829 printf(" txsoft %p transmit chain:\n", txs);
856 txs->txs_mbuf = m0;
857 txs->txs_firstdesc = sc->sc_txnext;
858 txs->txs_lastdesc = lasttx;
859 txs->txs_ndescs = dmamap->dm_nsegs;
866 SIMPLEQ_INSERT_TAIL(&sc->sc_txdirtyq, txs, txs_q);
868 last_txs = txs;
1404 struct tulip_txsoft *txs;
1414 while ((txs = SIMPLEQ_FIRST(&sc->sc_txdirtyq)) != NULL) {
1415 TULIP_CDTXSYNC(sc, txs->txs_lastdesc, txs->txs_ndescs,
1422 printf(" txsoft %p transmit chain:\n", txs);
1423 for (i = txs->txs_firstdesc;; i = TULIP_NEXTTX(i)) {
1434 if (i == txs->txs_lastdesc)
1440 txstat = le32toh(sc->sc_txdescs[txs->txs_lastdesc].td_status);
1446 sc->sc_txfree += txs->txs_ndescs;
1448 if (txs->txs_mbuf == NULL) {
1459 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
1463 bus_dmamap_sync(sc->sc_dmat, txs->txs_dmamap,
1464 0, txs->txs_dmamap->dm_mapsize,
1466 bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
1467 m_freem(txs->txs_mbuf);
1468 txs->txs_mbuf = NULL;
1470 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
1505 if (txs == NULL && (sc->sc_flags & TULIPF_DOING_SETUP) == 0)
1591 struct tulip_txsoft *txs;
1790 txs = &sc->sc_txsoft[i];
1791 txs->txs_mbuf = NULL;
1792 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
2016 struct tulip_txsoft *txs;
2040 while ((txs = SIMPLEQ_FIRST(&sc->sc_txdirtyq)) != NULL) {
2042 if (txs->txs_mbuf != NULL) {
2043 bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
2044 m_freem(txs->txs_mbuf);
2045 txs->txs_mbuf = NULL;
2047 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
2550 struct tulip_txsoft *txs;
2748 txs = SIMPLEQ_FIRST(&sc->sc_txfreeq);
2750 txs->txs_firstdesc = sc->sc_txnext;
2751 txs->txs_lastdesc = sc->sc_txnext;
2752 txs->txs_ndescs = 1;
2753 txs->txs_mbuf = NULL;
2768 printf(" filter_setup %p transmit chain:\n", txs);
2788 SIMPLEQ_INSERT_TAIL(&sc->sc_txdirtyq, txs, txs_q);