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()
801 struct tsec_bufmap *tx_bufmap; in tsec_encap() local
808 tx_bufmap = &sc->tx_bufmap[tx_idx]; in tsec_encap()
811 error = bus_dmamap_load_mbuf_sg(sc->tsec_tx_mtag, tx_bufmap->map, m0, in tsec_encap()
823 tx_bufmap->map, m0, segs, &nsegs, BUS_DMA_NOWAIT); in tsec_encap()
831 bus_dmamap_sync(sc->tsec_tx_mtag, tx_bufmap->map, in tsec_encap()
833 tx_bufmap->mbuf = m0; in tsec_encap()
1183 if (sc->tx_bufmap[i].map_initialized) in tsec_free_dma()
1185 sc->tx_bufmap[i].map); in tsec_free_dma()
1238 sc->tx_bufmap[sc->tx_idx_tail].map, in tsec_stop()
1241 sc->tx_bufmap[sc->tx_idx_tail].map); in tsec_stop()
1242 m_freem(sc->tx_bufmap[sc->tx_idx_tail].mbuf); in tsec_stop()
1461 struct tsec_bufmap *tx_bufmap; in tsec_transmit_intr_locked() local
1468 tx_bufmap = &sc->tx_bufmap[tx_idx]; in tsec_transmit_intr_locked()
1470 if (tx_bufmap->mbuf == NULL) in tsec_transmit_intr_locked()
1476 bus_dmamap_sync(sc->tsec_tx_mtag, tx_bufmap->map, in tsec_transmit_intr_locked()
1478 bus_dmamap_unload(sc->tsec_tx_mtag, tx_bufmap->map); in tsec_transmit_intr_locked()
1479 m_freem(tx_bufmap->mbuf); in tsec_transmit_intr_locked()
1480 tx_bufmap->mbuf = NULL; in tsec_transmit_intr_locked()