Lines Matching defs:sc_txnext
132 volatile u_int sc_txnext;
635 if (sc->sc_txnext >= sc->sc_txhead)
636 txfree = CPSW_NTXDESCS - 1 + sc->sc_txhead - sc->sc_txnext;
638 txfree = sc->sc_txhead - sc->sc_txnext - 1;
641 txfree, sc->sc_txhead, sc->sc_txnext, sc->sc_txrun);
648 dm = rdp->tx_dm[sc->sc_txnext];
671 KASSERT(rdp->tx_mb[sc->sc_txnext] == NULL);
672 rdp->tx_mb[sc->sc_txnext] = m;
679 txstart = sc->sc_txnext;
680 eopi = sc->sc_txnext;
683 TXDESC_NEXT(sc->sc_txnext));
695 cpsw_set_txdesc(sc, sc->sc_txnext, &bd);
697 eopi = sc->sc_txnext;
698 sc->sc_txnext = TXDESC_NEXT(sc->sc_txnext);
702 TXDESC_NEXT(sc->sc_txnext));
707 cpsw_set_txdesc(sc, sc->sc_txnext, &bd);
709 eopi = sc->sc_txnext;
710 sc->sc_txnext = TXDESC_NEXT(sc->sc_txnext);
719 KASSERT(eopi == TXDESC_PREV(sc->sc_txnext));
720 cpsw_set_txdesc_next(sc, TXDESC_PREV(sc->sc_txnext), 0);
735 txfree, sc->sc_txhead, sc->sc_txnext, sc->sc_txrun);
905 sc->sc_txnext = 0;
980 sc->sc_txnext = 0;
1256 sc->sc_txnext, sc->sc_txhead, sc->sc_txrun, 0);
1274 sc->sc_txnext, sc->sc_txhead, sc->sc_txrun, cpi);
1289 sc->sc_txnext);
1331 if ((sc->sc_txnext != sc->sc_txhead) && sc->sc_txeoq) {
1340 sc->sc_txnext, sc->sc_txhead, sc->sc_txrun, 0);
1345 if (handled && sc->sc_txnext == sc->sc_txhead)