Lines Matching refs:tx_ring

859 	struct et_txdesc_ring *tx_ring;  in et_dma_alloc()  local
878 tx_ring = &sc->sc_tx_ring; in et_dma_alloc()
880 &tx_ring->tr_dtag, (uint8_t **)&tx_ring->tr_desc, &tx_ring->tr_dmap, in et_dma_alloc()
881 &tx_ring->tr_paddr, "TX ring"); in et_dma_alloc()
1038 struct et_txdesc_ring *tx_ring; in et_dma_free() local
1112 tx_ring = &sc->sc_tx_ring; in et_dma_free()
1113 et_dma_ring_free(sc, &tx_ring->tr_dtag, (void *)&tx_ring->tr_desc, in et_dma_free()
1114 tx_ring->tr_dmap, &tx_ring->tr_paddr); in et_dma_free()
1371 struct et_txdesc_ring *tx_ring; in et_start_locked() local
1422 tx_ring = &sc->sc_tx_ring; in et_start_locked()
1423 bus_dmamap_sync(tx_ring->tr_dtag, tx_ring->tr_dmap, in et_start_locked()
1425 tx_ready_pos = tx_ring->tr_ready_index & in et_start_locked()
1427 if (tx_ring->tr_ready_wrap) in et_start_locked()
1671 struct et_txdesc_ring *tx_ring; in et_init_tx_ring() local
1675 tx_ring = &sc->sc_tx_ring; in et_init_tx_ring()
1676 bzero(tx_ring->tr_desc, ET_TX_RING_SIZE); in et_init_tx_ring()
1677 bus_dmamap_sync(tx_ring->tr_dtag, tx_ring->tr_dmap, in et_init_tx_ring()
1799 struct et_txdesc_ring *tx_ring; in et_init_txdma() local
1812 tx_ring = &sc->sc_tx_ring; in et_init_txdma()
1813 CSR_WRITE_4(sc, ET_TX_RING_HI, ET_ADDR_HI(tx_ring->tr_paddr)); in et_init_txdma()
1814 CSR_WRITE_4(sc, ET_TX_RING_LO, ET_ADDR_LO(tx_ring->tr_paddr)); in et_init_txdma()
1827 tx_ring->tr_ready_index = 0; in et_init_txdma()
1828 tx_ring->tr_ready_wrap = 0; in et_init_txdma()
2143 struct et_txdesc_ring *tx_ring; in et_encap() local
2152 tx_ring = &sc->sc_tx_ring; in et_encap()
2153 MPASS(tx_ring->tr_ready_index < ET_TX_NDESC); in et_encap()
2155 first_idx = tx_ring->tr_ready_index; in et_encap()
2205 td = &tx_ring->tr_desc[idx]; in et_encap()
2216 MPASS(tx_ring->tr_ready_index < ET_TX_NDESC); in et_encap()
2217 if (++tx_ring->tr_ready_index == ET_TX_NDESC) { in et_encap()
2218 tx_ring->tr_ready_index = 0; in et_encap()
2219 tx_ring->tr_ready_wrap ^= 1; in et_encap()
2222 td = &tx_ring->tr_desc[first_idx]; in et_encap()
2240 struct et_txdesc_ring *tx_ring; in et_txeof() local
2250 tx_ring = &sc->sc_tx_ring; in et_txeof()
2259 bus_dmamap_sync(tx_ring->tr_dtag, tx_ring->tr_dmap, in et_txeof()