Lines Matching defs:txhead
156 int txhead; /* Current TX map/desc index */
615 sc->txhead = sc->txtail = 0;
977 if (sc->txtail < sc->txhead)
981 if (sc->txtail + 1 < sc->txhead &&
1076 sc->txhead = sc->txtail = 0;
1121 while (sc->tx_descs[sc->txhead].status & ETHB_TX_USED) {
1138 e = bus_dmamap_load_mbuf_sg(sc->mtag, sc->tx_map[sc->txhead], m,
1148 sc->tx_map[sc->txhead], m, segs, &nseg, 0);
1161 if (sc->sent_mbuf[sc->txhead] != NULL) {
1165 m_free(sc->sent_mbuf[sc->txhead]);
1169 sc->sent_mbuf[sc->txhead] = m;
1171 bus_dmamap_sync(sc->mtag, sc->tx_map[sc->txhead],
1182 sc->tx_descs[sc->txhead].addr = segs[0].ds_addr;
1183 sc->tx_descs[sc->txhead].status = segs[0].ds_len |
1184 (sc->tx_descs[sc->txhead].status & ETHB_TX_WRAP) |
1190 sc->txhead = NEXT_TX_IDX(sc, sc->txhead);
1196 if ((sc->tx_descs[sc->txhead].status & ETHB_TX_USED) == 0)