Lines Matching defs:txs
1194 struct atw_txsoft *txs;
1286 txs = &sc->sc_txsoft[i];
1287 txs->txs_mbuf = NULL;
1288 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
2598 struct atw_txsoft *txs;
2600 while ((txs = SIMPLEQ_FIRST(&sc->sc_txdirtyq)) != NULL) {
2602 if (txs->txs_mbuf != NULL) {
2603 bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
2604 m_freem(txs->txs_mbuf);
2605 txs->txs_mbuf = NULL;
2607 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
2608 sc->sc_txfree += txs->txs_ndescs;
2688 struct atw_txsoft *txs;
2714 txs = &sc->sc_txsoft[i];
2715 if (txs->txs_mbuf != NULL) {
2716 bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
2717 m_freem(txs->txs_mbuf);
2718 txs->txs_mbuf = NULL;
2720 bus_dmamap_destroy(sc->sc_dmat, txs->txs_dmamap);
3277 struct atw_txsoft *txs;
3290 while ((txs = SIMPLEQ_FIRST(&sc->sc_txdirtyq)) != NULL) {
3291 ATW_CDTXSYNC(sc, txs->txs_lastdesc, 1,
3297 printf(" txsoft %p transmit chain:\n", txs);
3298 ATW_CDTXSYNC(sc, txs->txs_firstdesc,
3299 txs->txs_ndescs - 1,
3301 for (i = txs->txs_firstdesc;; i = ATW_NEXTTX(i)) {
3311 if (i == txs->txs_lastdesc)
3314 ATW_CDTXSYNC(sc, txs->txs_firstdesc,
3315 txs->txs_ndescs - 1, BUS_DMASYNC_PREREAD);
3319 txstat = le32toh(sc->sc_txdescs[txs->txs_lastdesc].at_stat);
3321 ATW_CDTXSYNC(sc, txs->txs_lastdesc, 1,
3328 bus_dmamap_sync(sc->sc_dmat, txs->txs_dmamap,
3329 0, txs->txs_dmamap->dm_mapsize,
3331 bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
3332 m_freem(txs->txs_mbuf);
3333 txs->txs_mbuf = NULL;
3335 sc->sc_txfree += txs->txs_ndescs;
3336 SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
3376 KASSERT(txs != NULL || (ifp->if_flags & IFF_OACTIVE) == 0);
3514 struct atw_txsoft *txs;
3541 while ((txs = SIMPLEQ_FIRST(&sc->sc_txfreeq)) != NULL &&
3597 &txs->txs_d0, &txs->txs_dn, &npkt, 0) == -1) {
3606 *(uint16_t *)whm->i_dur = htole16(txs->txs_d0.d_rts_dur);
3687 hh->atw_head_plcplen = htole16(txs->txs_d0.d_plcp_len);
3688 hh->atw_tail_plcplen = htole16(txs->txs_dn.d_plcp_len);
3689 if (txs->txs_d0.d_residue)
3691 if (txs->txs_dn.d_residue)
3693 hh->atw_head_dur = htole16(txs->txs_d0.d_rts_dur);
3694 hh->atw_tail_dur = htole16(txs->txs_dn.d_rts_dur);
3725 dmamap = txs->txs_dmamap;
3830 printf(" txsoft %p transmit chain:\n", txs);
3856 txs->txs_mbuf = m0;
3857 txs->txs_firstdesc = sc->sc_txnext;
3858 txs->txs_lastdesc = lasttx;
3859 txs->txs_ndescs = dmamap->dm_nsegs;
3866 SIMPLEQ_INSERT_TAIL(&sc->sc_txdirtyq, txs, txs_q);
3891 if (txs == NULL || sc->sc_txfree == 0)