Lines Matching refs:txb
562 struct xnf_tx_buf *txb = NULL;
594 txb = &sc->sc_tx_buf[id];
595 } while (txb->txb_mbuf);
597 if (bus_dmamap_load(sc->sc_dmat, txb->txb_dmap, m->m_data,
605 for (n = 0; n < txb->txb_dmap->dm_nsegs; n++) {
618 txb->txb_dmap->dm_segs[n].ds_len;
621 txb->txb_dmap->dm_segs[n].ds_addr;
629 txb->txb_ndesc++;
633 txb->txb_mbuf = m;
654 txb = &sc->sc_tx_buf[id];
658 if (txb->txb_mbuf) {
659 bus_dmamap_sync(sc->sc_dmat, txb->txb_dmap, 0, 0,
661 bus_dmamap_unload(sc->sc_dmat, txb->txb_dmap);
663 txb->txb_mbuf = NULL;
664 txb->txb_ndesc = 0;
698 struct xnf_tx_buf *txb;
713 txb = &sc->sc_tx_buf[id];
715 KASSERT(txb->txb_ndesc > 0);
716 if (--txb->txb_ndesc == 0) {
717 bus_dmamap_sync(sc->sc_dmat, txb->txb_dmap, 0, 0,
719 bus_dmamap_unload(sc->sc_dmat, txb->txb_dmap);
721 m_free(txb->txb_mbuf);
722 txb->txb_mbuf = NULL;