Lines Matching refs:txd

1119 	struct jme_txdesc *txd;  in jme_dma_alloc()  local
1345 txd = &sc->jme_cdata.jme_txdesc[i]; in jme_dma_alloc()
1346 txd->tx_m = NULL; in jme_dma_alloc()
1347 txd->tx_dmamap = NULL; in jme_dma_alloc()
1349 &txd->tx_dmamap); in jme_dma_alloc()
1383 struct jme_txdesc *txd; in jme_dma_free() local
1418 txd = &sc->jme_cdata.jme_txdesc[i]; in jme_dma_free()
1419 if (txd->tx_dmamap != NULL) { in jme_dma_free()
1421 txd->tx_dmamap); in jme_dma_free()
1422 txd->tx_dmamap = NULL; in jme_dma_free()
1650 struct jme_txdesc *txd; in jme_encap() local
1734 txd = &sc->jme_cdata.jme_txdesc[prod]; in jme_encap()
1737 txd->tx_dmamap, *m_head, txsegs, &nsegs, 0); in jme_encap()
1747 txd->tx_dmamap, *m_head, txsegs, &nsegs, 0); in jme_encap()
1767 bus_dmamap_unload(sc->jme_cdata.jme_tx_tag, txd->tx_dmamap); in jme_encap()
1816 desc = txd->tx_desc; in jme_encap()
1819 txd->tx_m = m; in jme_encap()
1820 txd->tx_ndesc = nsegs + 1; in jme_encap()
1823 bus_dmamap_sync(sc->jme_cdata.jme_tx_tag, txd->tx_dmamap, in jme_encap()
2166 struct jme_txdesc *txd; in jme_link_task() local
2235 txd = &sc->jme_cdata.jme_txdesc[i]; in jme_link_task()
2236 if (txd->tx_m != NULL) { in jme_link_task()
2239 txd->tx_dmamap, in jme_link_task()
2243 txd->tx_dmamap); in jme_link_task()
2244 m_freem(txd->tx_m); in jme_link_task()
2245 txd->tx_m = NULL; in jme_link_task()
2246 txd->tx_ndesc = 0; in jme_link_task()
2388 struct jme_txdesc *txd; in jme_txeof() local
2409 txd = &sc->jme_cdata.jme_txdesc[cons]; in jme_txeof()
2410 status = le32toh(txd->tx_desc->flags); in jme_txeof()
2420 le32toh(txd->tx_desc->buflen) & in jme_txeof()
2430 for (nsegs = 0; nsegs < txd->tx_ndesc; nsegs++) { in jme_txeof()
2436 bus_dmamap_sync(sc->jme_cdata.jme_tx_tag, txd->tx_dmamap, in jme_txeof()
2438 bus_dmamap_unload(sc->jme_cdata.jme_tx_tag, txd->tx_dmamap); in jme_txeof()
2440 KASSERT(txd->tx_m != NULL, in jme_txeof()
2442 m_freem(txd->tx_m); in jme_txeof()
2443 txd->tx_m = NULL; in jme_txeof()
2444 sc->jme_cdata.jme_tx_cnt -= txd->tx_ndesc; in jme_txeof()
2447 txd->tx_ndesc = 0; in jme_txeof()
2969 struct jme_txdesc *txd; in jme_stop() local
3018 txd = &sc->jme_cdata.jme_txdesc[i]; in jme_stop()
3019 if (txd->tx_m != NULL) { in jme_stop()
3021 txd->tx_dmamap, BUS_DMASYNC_POSTWRITE); in jme_stop()
3023 txd->tx_dmamap); in jme_stop()
3024 m_freem(txd->tx_m); in jme_stop()
3025 txd->tx_m = NULL; in jme_stop()
3026 txd->tx_ndesc = 0; in jme_stop()
3077 struct jme_txdesc *txd; in jme_init_tx_ring() local
3087 txd = &sc->jme_cdata.jme_txdesc[i]; in jme_init_tx_ring()
3088 txd->tx_m = NULL; in jme_init_tx_ring()
3089 txd->tx_desc = &rd->jme_tx_ring[i]; in jme_init_tx_ring()
3090 txd->tx_ndesc = 0; in jme_init_tx_ring()