Lines Matching refs:tx_bufmap
210 &sc->tx_bufmap[i].map); in tsec_attach()
216 sc->tx_bufmap[i].map_initialized = 1; in tsec_attach()
799 struct tsec_bufmap *tx_bufmap; in tsec_encap() local
806 tx_bufmap = &sc->tx_bufmap[tx_idx]; in tsec_encap()
809 error = bus_dmamap_load_mbuf_sg(sc->tsec_tx_mtag, tx_bufmap->map, m0, in tsec_encap()
821 tx_bufmap->map, m0, segs, &nsegs, BUS_DMA_NOWAIT); in tsec_encap()
829 bus_dmamap_sync(sc->tsec_tx_mtag, tx_bufmap->map, in tsec_encap()
831 tx_bufmap->mbuf = m0; in tsec_encap()
1181 if (sc->tx_bufmap[i].map_initialized) in tsec_free_dma()
1183 sc->tx_bufmap[i].map); in tsec_free_dma()
1236 sc->tx_bufmap[sc->tx_idx_tail].map, in tsec_stop()
1239 sc->tx_bufmap[sc->tx_idx_tail].map); in tsec_stop()
1240 m_freem(sc->tx_bufmap[sc->tx_idx_tail].mbuf); in tsec_stop()
1458 struct tsec_bufmap *tx_bufmap; in tsec_transmit_intr_locked() local
1465 tx_bufmap = &sc->tx_bufmap[tx_idx]; in tsec_transmit_intr_locked()
1467 if (tx_bufmap->mbuf == NULL) in tsec_transmit_intr_locked()
1473 bus_dmamap_sync(sc->tsec_tx_mtag, tx_bufmap->map, in tsec_transmit_intr_locked()
1475 bus_dmamap_unload(sc->tsec_tx_mtag, tx_bufmap->map); in tsec_transmit_intr_locked()
1476 m_freem(tx_bufmap->mbuf); in tsec_transmit_intr_locked()
1477 tx_bufmap->mbuf = NULL; in tsec_transmit_intr_locked()