| /openbsd/src/sys/dev/pci/ |
| D | if_rtwn.c | 167 struct rtwn_tx_ring tx_ring[RTWN_NTXQUEUES]; member 623 struct rtwn_tx_ring *tx_ring = &sc->tx_ring[qid]; in rtwn_alloc_tx_list() local 630 BUS_DMA_NOWAIT, &tx_ring->map); in rtwn_alloc_tx_list() 639 &tx_ring->seg, 1, &tx_ring->nsegs, BUS_DMA_NOWAIT | BUS_DMA_ZERO); in rtwn_alloc_tx_list() 646 error = bus_dmamem_map(sc->sc_dmat, &tx_ring->seg, tx_ring->nsegs, in rtwn_alloc_tx_list() 648 (caddr_t *)&tx_ring->desc, BUS_DMA_NOWAIT); in rtwn_alloc_tx_list() 650 bus_dmamem_free(sc->sc_dmat, &tx_ring->seg, tx_ring->nsegs); in rtwn_alloc_tx_list() 656 error = bus_dmamap_load(sc->sc_dmat, tx_ring->map, tx_ring->desc, in rtwn_alloc_tx_list() 666 struct r92c_tx_desc_pci *desc = &tx_ring->desc[i]; in rtwn_alloc_tx_list() 669 desc->nextdescaddr = htole32(tx_ring->map->dm_segs[0].ds_addr in rtwn_alloc_tx_list() [all …]
|
| D | if_et.c | 596 struct et_txdesc_ring *tx_ring = &sc->sc_tx_ring; in et_dma_alloc() local 606 (void **)&tx_ring->tr_desc, &tx_ring->tr_paddr, &tx_ring->tr_dmap, in et_dma_alloc() 607 &tx_ring->tr_seg); in et_dma_alloc() 683 struct et_txdesc_ring *tx_ring = &sc->sc_tx_ring; in et_dma_free() local 692 et_dma_mem_destroy(sc, tx_ring->tr_desc, tx_ring->tr_dmap); in et_dma_free() 1134 struct et_txdesc_ring *tx_ring = &sc->sc_tx_ring; in et_free_tx_ring() local 1147 bzero(tx_ring->tr_desc, ET_TX_RING_SIZE); in et_free_tx_ring() 1148 bus_dmamap_sync(sc->sc_dmat, tx_ring->tr_dmap, 0, in et_free_tx_ring() 1149 tx_ring->tr_dmap->dm_mapsize, BUS_DMASYNC_PREWRITE); in et_free_tx_ring() 1292 struct et_txdesc_ring *tx_ring = &sc->sc_tx_ring; in et_init_tx_ring() local [all …]
|
| D | if_bnxt.c | 208 struct bnxt_ring tx_ring; member 839 tx->tx_ring.phys_id = (uint16_t)HWRM_NA_SIGNATURE; in bnxt_queue_up() 840 tx->tx_ring.id = BNXT_TX_RING_ID_BASE + bq->q_index; in bnxt_queue_up() 841 tx->tx_ring.doorbell = tx->tx_ring.id * 0x80; in bnxt_queue_up() 842 tx->tx_ring.ring_size = PAGE_SIZE / sizeof(struct tx_bd_short); in bnxt_queue_up() 843 tx->tx_ring.vaddr = BNXT_DMA_KVA(tx->tx_ring_mem); in bnxt_queue_up() 844 tx->tx_ring.paddr = BNXT_DMA_DVA(tx->tx_ring_mem); in bnxt_queue_up() 846 &tx->tx_ring, cp->ring.phys_id, HWRM_NA_SIGNATURE, 1) != 0) { in bnxt_queue_up() 851 bnxt_write_tx_doorbell(sc, &tx->tx_ring, 0); in bnxt_queue_up() 927 tx->tx_slots = mallocarray(sizeof(*bs), tx->tx_ring.ring_size, in bnxt_queue_up() [all …]
|
| D | if_ngbe.c | 87 void ngbe_free_transmit_buffers(struct tx_ring *); 89 int ngbe_allocate_transmit_buffers(struct tx_ring *); 91 int ngbe_setup_transmit_ring(struct tx_ring *); 137 int ngbe_encap(struct tx_ring *, struct mbuf *); 210 int ngbe_tx_ctx_setup(struct tx_ring *, struct mbuf *, 212 void ngbe_txeof(struct tx_ring *); 695 struct tx_ring *txr = ifq->ifq_softc; in ngbe_start() 889 struct tx_ring *txr = sc->tx_rings; in ngbe_watchdog() 1050 struct tx_ring *txr = &sc->tx_rings[i]; in ngbe_setup_interface() 1164 struct tx_ring *txr; in ngbe_allocate_queues() [all …]
|
| D | if_ngbereg.h | 999 struct tx_ring { struct 1032 struct tx_ring *txr; argument 1062 struct tx_ring *tx_rings;
|
| /openbsd/src/sys/dev/ic/ |
| D | acx.c | 595 bzero(rd->tx_ring, ACX_TX_RING_SIZE); in acx_stop() 1952 ACX_TX_RING_SIZE, (caddr_t *)&rd->tx_ring, BUS_DMA_NOWAIT); in acx_dma_alloc() 1961 rd->tx_ring, ACX_TX_RING_SIZE, NULL, BUS_DMA_WAITOK); in acx_dma_alloc() 2003 bd->tx_buf[i].tb_desc1 = &rd->tx_ring[i * 2]; in acx_dma_alloc() 2004 bd->tx_buf[i].tb_desc2 = &rd->tx_ring[(i * 2) + 1]; in acx_dma_alloc() 2022 if (rd->tx_ring != NULL) { in acx_dma_free() 2068 bzero(&rd->tx_ring[i], sizeof(struct acx_host_desc)); in acx_init_tx_ring() 2069 rd->tx_ring[i].h_ctrl = htole16(DESC_CTRL_HOSTOWN); in acx_init_tx_ring() 2072 rd->tx_ring[i].h_next_desc = htole32(rd->tx_ring_paddr); in acx_init_tx_ring() 2074 rd->tx_ring[i].h_next_desc = htole32(paddr); in acx_init_tx_ring()
|
| D | qwz.c | 7587 qwz_dp_srng_cleanup(sc, &dp->tx_ring[i].tcl_data_ring); in qwz_dp_srng_common_cleanup() 7588 qwz_dp_srng_cleanup(sc, &dp->tx_ring[i].tcl_comp_ring); in qwz_dp_srng_common_cleanup() 8006 ret = qwz_dp_srng_setup(sc, &dp->tx_ring[i].tcl_data_ring, in qwz_dp_srng_common_setup() 8014 ret = qwz_dp_srng_setup(sc, &dp->tx_ring[i].tcl_comp_ring, in qwz_dp_srng_common_setup() 8022 srng = &sc->hal.srng_list[dp->tx_ring[i].tcl_data_ring.ring_id]; in qwz_dp_srng_common_setup() 8104 qwz_dp_tx_ring_free_tx_data(struct qwz_softc *sc, struct dp_tx_ring *tx_ring) in qwz_dp_tx_ring_free_tx_data() argument 8108 if (tx_ring->data == NULL) in qwz_dp_tx_ring_free_tx_data() 8112 struct qwz_tx_data *tx_data = &tx_ring->data[i]; in qwz_dp_tx_ring_free_tx_data() 8122 free(tx_ring->data, M_DEVBUF, in qwz_dp_tx_ring_free_tx_data() 8124 tx_ring->data = NULL; in qwz_dp_tx_ring_free_tx_data() [all …]
|
| D | qwx.c | 9871 qwx_dp_srng_cleanup(sc, &dp->tx_ring[i].tcl_data_ring); in qwx_dp_srng_common_cleanup() 9872 qwx_dp_srng_cleanup(sc, &dp->tx_ring[i].tcl_comp_ring); in qwx_dp_srng_common_cleanup() 10326 ret = qwx_dp_srng_setup(sc, &dp->tx_ring[i].tcl_data_ring, in qwx_dp_srng_common_setup() 10334 ret = qwx_dp_srng_setup(sc, &dp->tx_ring[i].tcl_comp_ring, in qwx_dp_srng_common_setup() 10342 srng = &sc->hal.srng_list[dp->tx_ring[i].tcl_data_ring.ring_id]; in qwx_dp_srng_common_setup() 10347 dp->tx_ring[i].tcl_data_ring.ring_id); in qwx_dp_srng_common_setup() 10422 qwx_dp_tx_ring_free_tx_data(struct qwx_softc *sc, struct dp_tx_ring *tx_ring) in qwx_dp_tx_ring_free_tx_data() argument 10426 if (tx_ring->data == NULL) in qwx_dp_tx_ring_free_tx_data() 10430 struct qwx_tx_data *tx_data = &tx_ring->data[i]; in qwx_dp_tx_ring_free_tx_data() 10440 free(tx_ring->data, M_DEVBUF, in qwx_dp_tx_ring_free_tx_data() [all …]
|
| D | acxvar.h | 241 struct acx_host_desc *tx_ring; member
|
| D | qwxvar.h | 1115 struct dp_tx_ring tx_ring[DP_TCL_NUM_RING_MAX]; member
|
| D | qwzvar.h | 1254 struct dp_tx_ring tx_ring[DP_TCL_NUM_RING_MAX]; member
|