Lines Matching full:txs

120 	struct glc_txsoft *txs;  in glc_attach()  local
226 txs = &sc->sc_txsoft[i]; in glc_attach()
227 txs->txs_mbuf = NULL; in glc_attach()
228 err = bus_dmamap_create(sc->sc_txdma_tag, 0, &txs->txs_dmamap); in glc_attach()
234 STAILQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in glc_attach()
291 struct glc_txsoft *txs; in glc_init_locked() local
319 while ((txs = STAILQ_FIRST(&sc->sc_txdirtyq)) != NULL) { in glc_init_locked()
321 bus_dmamap_unload(sc->sc_txdma_tag, txs->txs_dmamap); in glc_init_locked()
323 if (txs->txs_mbuf != NULL) { in glc_init_locked()
324 m_freem(txs->txs_mbuf); in glc_init_locked()
325 txs->txs_mbuf = NULL; in glc_init_locked()
328 STAILQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in glc_init_locked()
605 struct glc_txsoft *txs; in glc_encap() local
618 if ((txs = STAILQ_FIRST(&sc->sc_txfreeq)) == NULL) { in glc_encap()
637 err = bus_dmamap_load_mbuf_sg(sc->sc_txdma_tag, txs->txs_dmamap, in glc_encap()
655 txs->txs_ndescs = nsegs; in glc_encap()
656 txs->txs_firstdesc = sc->next_txdma_slot; in glc_encap()
658 idx = txs->txs_firstdesc; in glc_encap()
660 txs->txs_firstdesc*sizeof(struct glc_dmadesc); in glc_encap()
671 txs->txs_lastdesc = idx; in glc_encap()
686 if (txs->txs_firstdesc != 0) in glc_encap()
687 idx = txs->txs_firstdesc - 1; in glc_encap()
692 sc->first_used_txdma_slot = txs->txs_firstdesc; in glc_encap()
694 bus_dmamap_sync(sc->sc_txdma_tag, txs->txs_dmamap, in glc_encap()
699 STAILQ_INSERT_TAIL(&sc->sc_txdirtyq, txs, txs_q); in glc_encap()
700 txs->txs_mbuf = *m_head; in glc_encap()
783 struct glc_txsoft *txs; in glc_txintr() local
789 while ((txs = STAILQ_FIRST(&sc->sc_txdirtyq)) != NULL) { in glc_txintr()
790 if (sc->sc_txdmadesc[txs->txs_lastdesc].cmd_stat in glc_txintr()
795 bus_dmamap_unload(sc->sc_txdma_tag, txs->txs_dmamap); in glc_txintr()
796 sc->bsy_txdma_slots -= txs->txs_ndescs; in glc_txintr()
798 if (txs->txs_mbuf != NULL) { in glc_txintr()
799 m_freem(txs->txs_mbuf); in glc_txintr()
800 txs->txs_mbuf = NULL; in glc_txintr()
803 if ((sc->sc_txdmadesc[txs->txs_lastdesc].cmd_stat & 0xf0000000) in glc_txintr()
810 if (sc->sc_txdmadesc[txs->txs_lastdesc].cmd_stat & in glc_txintr()
814 STAILQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in glc_txintr()
819 if (txs != NULL) in glc_txintr()
820 sc->first_used_txdma_slot = txs->txs_firstdesc; in glc_txintr()
824 if (kickstart || txs != NULL) { in glc_txintr()
828 ((txs == NULL) ? 0 : txs->txs_firstdesc)* in glc_txintr()