Lines Matching refs:tx_bufmap
207 &sc->tx_bufmap[i].map); in tsec_attach()
213 sc->tx_bufmap[i].map_initialized = 1; in tsec_attach()
789 struct tsec_bufmap *tx_bufmap; in tsec_encap() local
796 tx_bufmap = &sc->tx_bufmap[tx_idx]; in tsec_encap()
799 error = bus_dmamap_load_mbuf_sg(sc->tsec_tx_mtag, tx_bufmap->map, m0, in tsec_encap()
811 tx_bufmap->map, m0, segs, &nsegs, BUS_DMA_NOWAIT); in tsec_encap()
819 bus_dmamap_sync(sc->tsec_tx_mtag, tx_bufmap->map, in tsec_encap()
821 tx_bufmap->mbuf = m0; in tsec_encap()
1171 if (sc->tx_bufmap[i].map_initialized) in tsec_free_dma()
1173 sc->tx_bufmap[i].map); in tsec_free_dma()
1226 sc->tx_bufmap[sc->tx_idx_tail].map, in tsec_stop()
1229 sc->tx_bufmap[sc->tx_idx_tail].map); in tsec_stop()
1230 m_freem(sc->tx_bufmap[sc->tx_idx_tail].mbuf); in tsec_stop()
1448 struct tsec_bufmap *tx_bufmap; in tsec_transmit_intr_locked() local
1455 tx_bufmap = &sc->tx_bufmap[tx_idx]; in tsec_transmit_intr_locked()
1457 if (tx_bufmap->mbuf == NULL) in tsec_transmit_intr_locked()
1463 bus_dmamap_sync(sc->tsec_tx_mtag, tx_bufmap->map, in tsec_transmit_intr_locked()
1465 bus_dmamap_unload(sc->tsec_tx_mtag, tx_bufmap->map); in tsec_transmit_intr_locked()
1466 m_freem(tx_bufmap->mbuf); in tsec_transmit_intr_locked()
1467 tx_bufmap->mbuf = NULL; in tsec_transmit_intr_locked()