txs 1276 dev/ic/atw.c struct atw_txsoft *txs;
txs 1363 dev/ic/atw.c txs = &sc->sc_txsoft[i];
txs 1364 dev/ic/atw.c txs->txs_mbuf = NULL;
txs 1365 dev/ic/atw.c SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
txs 2652 dev/ic/atw.c struct atw_txsoft *txs;
txs 2654 dev/ic/atw.c while ((txs = SIMPLEQ_FIRST(&sc->sc_txdirtyq)) != NULL) {
txs 2656 dev/ic/atw.c if (txs->txs_mbuf != NULL) {
txs 2657 dev/ic/atw.c bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
txs 2658 dev/ic/atw.c m_freem(txs->txs_mbuf);
txs 2659 dev/ic/atw.c txs->txs_mbuf = NULL;
txs 2661 dev/ic/atw.c SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
txs 2738 dev/ic/atw.c struct atw_txsoft *txs;
txs 2762 dev/ic/atw.c txs = &sc->sc_txsoft[i];
txs 2763 dev/ic/atw.c if (txs->txs_mbuf != NULL) {
txs 2764 dev/ic/atw.c bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
txs 2765 dev/ic/atw.c m_freem(txs->txs_mbuf);
txs 2766 dev/ic/atw.c txs->txs_mbuf = NULL;
txs 2768 dev/ic/atw.c bus_dmamap_destroy(sc->sc_dmat, txs->txs_dmamap);
txs 3259 dev/ic/atw.c struct atw_txsoft *txs;
txs 3271 dev/ic/atw.c while ((txs = SIMPLEQ_FIRST(&sc->sc_txdirtyq)) != NULL) {
txs 3272 dev/ic/atw.c ATW_CDTXSYNC(sc, txs->txs_lastdesc, 1,
txs 3278 dev/ic/atw.c printf(" txsoft %p transmit chain:\n", txs);
txs 3279 dev/ic/atw.c ATW_CDTXSYNC(sc, txs->txs_firstdesc,
txs 3280 dev/ic/atw.c txs->txs_ndescs - 1,
txs 3282 dev/ic/atw.c for (i = txs->txs_firstdesc;; i = ATW_NEXTTX(i)) {
txs 3292 dev/ic/atw.c if (i == txs->txs_lastdesc)
txs 3298 dev/ic/atw.c txstat = letoh32(sc->sc_txdescs[txs->txs_lastdesc].at_stat);
txs 3304 dev/ic/atw.c sc->sc_txfree += txs->txs_ndescs;
txs 3306 dev/ic/atw.c bus_dmamap_sync(sc->sc_dmat, txs->txs_dmamap,
txs 3307 dev/ic/atw.c 0, txs->txs_dmamap->dm_mapsize,
txs 3309 dev/ic/atw.c bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
txs 3310 dev/ic/atw.c m_freem(txs->txs_mbuf);
txs 3311 dev/ic/atw.c txs->txs_mbuf = NULL;
txs 3313 dev/ic/atw.c SIMPLEQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
txs 3359 dev/ic/atw.c if (txs == NULL)
txs 3620 dev/ic/atw.c struct atw_txsoft *txs, *last_txs;
txs 3647 dev/ic/atw.c while ((txs = SIMPLEQ_FIRST(&sc->sc_txfreeq)) != NULL &&
txs 3693 dev/ic/atw.c rate, &txs->txs_d0, &txs->txs_dn, &npkt,
txs 3705 dev/ic/atw.c *(uint16_t *)wh->i_dur = htole16(txs->txs_d0.d_rts_dur);
txs 3793 dev/ic/atw.c hh->atw_head_plcplen = htole16(txs->txs_d0.d_plcp_len);
txs 3794 dev/ic/atw.c hh->atw_tail_plcplen = htole16(txs->txs_dn.d_plcp_len);
txs 3795 dev/ic/atw.c if (txs->txs_d0.d_residue)
txs 3797 dev/ic/atw.c if (txs->txs_dn.d_residue)
txs 3799 dev/ic/atw.c hh->atw_head_dur = htole16(txs->txs_d0.d_rts_dur);
txs 3800 dev/ic/atw.c hh->atw_tail_dur = htole16(txs->txs_dn.d_rts_dur);
txs 3837 dev/ic/atw.c dmamap = txs->txs_dmamap;
txs 3946 dev/ic/atw.c printf(" txsoft %p transmit chain:\n", txs);
txs 3972 dev/ic/atw.c txs->txs_mbuf = m0;
txs 3973 dev/ic/atw.c txs->txs_firstdesc = sc->sc_txnext;
txs 3974 dev/ic/atw.c txs->txs_lastdesc = lasttx;
txs 3975 dev/ic/atw.c txs->txs_ndescs = dmamap->dm_nsegs;
txs 3982 dev/ic/atw.c SIMPLEQ_INSERT_TAIL(&sc->sc_txdirtyq, txs, txs_q);
txs 3984 dev/ic/atw.c last_txs = txs;
txs 3987 dev/ic/atw.c if (txs == NULL || sc->sc_txfree == 0) {
txs 380 dev/ic/fxp.c FXP_NTXSEG, MCLBYTES, 0, 0, &sc->txs[i].tx_map)) != 0) {
txs 385 dev/ic/fxp.c sc->txs[i].tx_mbuf = NULL;
txs 386 dev/ic/fxp.c sc->txs[i].tx_cb = sc->sc_ctrl->tx_cb + i;
txs 387 dev/ic/fxp.c sc->txs[i].tx_off = offsetof(struct fxp_ctrl, tx_cb[i]);
txs 388 dev/ic/fxp.c sc->txs[i].tx_next = &sc->txs[(i + 1) & FXP_TXCB_MASK];
txs 697 dev/ic/fxp.c struct fxp_txsw *txs = sc->sc_cbt_prod;
txs 711 dev/ic/fxp.c txs = txs->tx_next;
txs 717 dev/ic/fxp.c if (bus_dmamap_load_mbuf(sc->sc_dmat, txs->tx_map,
txs 731 dev/ic/fxp.c if (bus_dmamap_load_mbuf(sc->sc_dmat, txs->tx_map,
txs 745 dev/ic/fxp.c txs->tx_mbuf = m0;
txs 752 dev/ic/fxp.c FXP_MBUF_SYNC(sc, txs->tx_map, BUS_DMASYNC_PREWRITE);
txs 754 dev/ic/fxp.c txc = txs->tx_cb;
txs 755 dev/ic/fxp.c txc->tbd_number = txs->tx_map->dm_nsegs;
txs 759 dev/ic/fxp.c for (seg = 0; seg < txs->tx_map->dm_nsegs; seg++) {
txs 761 dev/ic/fxp.c htole32(txs->tx_map->dm_segs[seg].ds_addr);
txs 763 dev/ic/fxp.c htole32(txs->tx_map->dm_segs[seg].ds_len);
txs 765 dev/ic/fxp.c FXP_TXCB_SYNC(sc, txs,
txs 769 dev/ic/fxp.c sc->sc_cbt_prod = txs;
txs 776 dev/ic/fxp.c txs = sc->sc_cbt_prod;
txs 777 dev/ic/fxp.c txs = txs->tx_next;
txs 778 dev/ic/fxp.c sc->sc_cbt_prod = txs;
txs 779 dev/ic/fxp.c txs->tx_cb->cb_command =
txs 781 dev/ic/fxp.c FXP_TXCB_SYNC(sc, txs,
txs 791 dev/ic/fxp.c sc->sc_cbt_prev = txs;
txs 840 dev/ic/fxp.c struct fxp_txsw *txs = sc->sc_cbt_cons;
txs 842 dev/ic/fxp.c FXP_TXCB_SYNC(sc, txs,
txs 846 dev/ic/fxp.c ((txs->tx_cb->cb_status & htole16(FXP_CB_STATUS_C)) ||
txs 847 dev/ic/fxp.c (txs->tx_cb->cb_command & htole16(FXP_CB_COMMAND_NOP)))) {
txs 848 dev/ic/fxp.c if (txs->tx_mbuf != NULL) {
txs 849 dev/ic/fxp.c FXP_MBUF_SYNC(sc, txs->tx_map,
txs 852 dev/ic/fxp.c txs->tx_map);
txs 853 dev/ic/fxp.c m_freem(txs->tx_mbuf);
txs 854 dev/ic/fxp.c txs->tx_mbuf = NULL;
txs 857 dev/ic/fxp.c txs = txs->tx_next;
txs 858 dev/ic/fxp.c FXP_TXCB_SYNC(sc, txs,
txs 861 dev/ic/fxp.c sc->sc_cbt_cons = txs;
txs 1084 dev/ic/fxp.c if (sc->txs[i].tx_mbuf != NULL) {
txs 1085 dev/ic/fxp.c bus_dmamap_unload(sc->sc_dmat, sc->txs[i].tx_map);
txs 1086 dev/ic/fxp.c m_freem(sc->txs[i].tx_mbuf);
txs 1087 dev/ic/fxp.c sc->txs[i].tx_mbuf = NULL;
txs 1354 dev/ic/fxp.c sc->sc_cbt_prev = sc->sc_cbt_prod = sc->sc_cbt_cons = sc->txs;
txs 132 dev/ic/fxpvar.h struct fxp_txsw txs[FXP_NTXCB];
txs 168 dev/ic/fxpvar.h #define FXP_TXCB_SYNC(sc, txs, p) \
txs 169 dev/ic/fxpvar.h bus_dmamap_sync((sc)->sc_dmat, (sc)->tx_cb_map, (txs)->tx_off, \
txs 869 dev/pci/if_pcn.c struct pcn_txsoft *txs;
txs 898 dev/pci/if_pcn.c txs = &sc->sc_txsoft[sc->sc_txsnext];
txs 899 dev/pci/if_pcn.c dmamap = txs->txs_dmamap;
txs 1032 dev/pci/if_pcn.c txs->txs_mbuf = m0;
txs 1033 dev/pci/if_pcn.c txs->txs_firstdesc = sc->sc_txnext;
txs 1034 dev/pci/if_pcn.c txs->txs_lastdesc = lasttx;
txs 1285 dev/pci/if_pcn.c struct pcn_txsoft *txs;
txs 1297 dev/pci/if_pcn.c txs = &sc->sc_txsoft[i];
txs 1299 dev/pci/if_pcn.c PCN_CDTXSYNC(sc, txs->txs_firstdesc, txs->txs_dmamap->dm_nsegs,
txs 1302 dev/pci/if_pcn.c tmd1 = letoh32(sc->sc_txdescs[txs->txs_lastdesc].tmd1);
txs 1311 dev/pci/if_pcn.c for (j = txs->txs_firstdesc;; j = PCN_NEXTTX(j)) {
txs 1350 dev/pci/if_pcn.c if (j == txs->txs_lastdesc)
txs 1361 dev/pci/if_pcn.c sc->sc_txfree += txs->txs_dmamap->dm_nsegs;
txs 1362 dev/pci/if_pcn.c bus_dmamap_sync(sc->sc_dmat, txs->txs_dmamap,
txs 1363 dev/pci/if_pcn.c 0, txs->txs_dmamap->dm_mapsize, BUS_DMASYNC_POSTWRITE);
txs 1364 dev/pci/if_pcn.c bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
txs 1365 dev/pci/if_pcn.c m_freem(txs->txs_mbuf);
txs 1366 dev/pci/if_pcn.c txs->txs_mbuf = NULL;
txs 1822 dev/pci/if_pcn.c struct pcn_txsoft *txs;
txs 1842 dev/pci/if_pcn.c txs = &sc->sc_txsoft[i];
txs 1843 dev/pci/if_pcn.c if (txs->txs_mbuf != NULL) {
txs 1844 dev/pci/if_pcn.c bus_dmamap_unload(sc->sc_dmat, txs->txs_dmamap);
txs 1845 dev/pci/if_pcn.c m_freem(txs->txs_mbuf);
txs 1846 dev/pci/if_pcn.c txs->txs_mbuf = NULL;