Lines Matching refs:txd

879 	struct vr_txdesc	*txd;  in vr_dma_alloc()  local
1021 txd = &sc->vr_cdata.vr_txdesc[i]; in vr_dma_alloc()
1022 txd->tx_m = NULL; in vr_dma_alloc()
1023 txd->tx_dmamap = NULL; in vr_dma_alloc()
1025 &txd->tx_dmamap); in vr_dma_alloc()
1059 struct vr_txdesc *txd; in vr_dma_free() local
1094 txd = &sc->vr_cdata.vr_txdesc[i]; in vr_dma_free()
1095 if (txd->tx_dmamap) { in vr_dma_free()
1097 txd->tx_dmamap); in vr_dma_free()
1098 txd->tx_dmamap = NULL; in vr_dma_free()
1136 struct vr_txdesc *txd; in vr_tx_ring_init() local
1153 txd = &sc->vr_cdata.vr_txdesc[i]; in vr_tx_ring_init()
1154 txd->tx_m = NULL; in vr_tx_ring_init()
1431 struct vr_txdesc *txd; in vr_txeof() local
1466 txd = &sc->vr_cdata.vr_txdesc[cons]; in vr_txeof()
1467 KASSERT(txd->tx_m != NULL, ("%s: accessing NULL mbuf!\n", in vr_txeof()
1477 txd->tx_dmamap, BUS_DMASYNC_POSTWRITE); in vr_txeof()
1479 txd->tx_dmamap); in vr_txeof()
1480 m_freem(txd->tx_m); in vr_txeof()
1481 txd->tx_m = NULL; in vr_txeof()
1521 bus_dmamap_sync(sc->vr_cdata.vr_tx_tag, txd->tx_dmamap, in vr_txeof()
1523 bus_dmamap_unload(sc->vr_cdata.vr_tx_tag, txd->tx_dmamap); in vr_txeof()
1533 m_freem(txd->tx_m); in vr_txeof()
1534 txd->tx_m = NULL; in vr_txeof()
1785 struct vr_txdesc *txd; in vr_encap() local
1850 txd = &sc->vr_cdata.vr_txdesc[prod]; in vr_encap()
1851 error = bus_dmamap_load_mbuf_sg(sc->vr_cdata.vr_tx_tag, txd->tx_dmamap, in vr_encap()
1862 txd->tx_dmamap, *m_head, txsegs, &nsegs, BUS_DMA_NOWAIT); in vr_encap()
1878 bus_dmamap_unload(sc->vr_cdata.vr_tx_tag, txd->tx_dmamap); in vr_encap()
1882 txd->tx_m = *m_head; in vr_encap()
1883 bus_dmamap_sync(sc->vr_cdata.vr_tx_tag, txd->tx_dmamap, in vr_encap()
2425 struct vr_txdesc *txd; in vr_stop() local
2464 txd = &sc->vr_cdata.vr_txdesc[i]; in vr_stop()
2465 if (txd->tx_m != NULL) { in vr_stop()
2467 txd->tx_dmamap, BUS_DMASYNC_POSTWRITE); in vr_stop()
2469 txd->tx_dmamap); in vr_stop()
2470 m_freem(txd->tx_m); in vr_stop()
2471 txd->tx_m = NULL; in vr_stop()