/netbsd-src/sys/dev/pci/ |
H A D | if_ena.c | 179 static int ena_check_and_collapse_mbuf(struct ena_ring *tx_ring, 546 txr = &adapter->tx_ring[i]; in ena_init_io_rings() 587 que->tx_ring = txr; in ena_init_io_rings() 600 struct ena_ring *txr = &adapter->tx_ring[qid]; in ena_free_io_ring_resources() 681 struct ena_ring *tx_ring = que->tx_ring; in ena_setup_tx_resources() local 684 size = sizeof(struct ena_tx_buffer) * tx_ring->ring_size; in ena_setup_tx_resources() 685 tx_ring->tx_buffer_info = kmem_zalloc(size, KM_SLEEP); in ena_setup_tx_resources() 687 size = sizeof(uint16_t) * tx_ring->ring_size; in ena_setup_tx_resources() 688 tx_ring->free_tx_ids = kmem_zalloc(size, KM_SLEEP); in ena_setup_tx_resources() 691 for (i = 0; i < tx_ring->ring_size; i++) in ena_setup_tx_resources() [all …]
|
H A D | if_et.c | 701 struct et_txdesc_ring *tx_ring = &sc->sc_tx_ring; in et_dma_alloc() local 711 (void **)&tx_ring->tr_desc, &tx_ring->tr_paddr, &tx_ring->tr_dmap, in et_dma_alloc() 712 &tx_ring->tr_seg); in et_dma_alloc() 784 struct et_txdesc_ring *tx_ring = &sc->sc_tx_ring; in et_dma_free() local 793 et_dma_mem_destroy(sc, tx_ring->tr_desc, tx_ring->tr_dmap); in et_dma_free() 1231 struct et_txdesc_ring *tx_ring = &sc->sc_tx_ring; in et_free_tx_ring() local 1244 bzero(tx_ring->tr_desc, ET_TX_RING_SIZE); in et_free_tx_ring() 1245 bus_dmamap_sync(sc->sc_dmat, tx_ring->tr_dmap, 0, in et_free_tx_ring() 1246 tx_ring->tr_dmap->dm_mapsize, BUS_DMASYNC_PREWRITE); in et_free_tx_ring() 1391 struct et_txdesc_ring *tx_ring = &sc->sc_tx_ring; in et_init_tx_ring() local [all …]
|
H A D | if_rtwn.c | 618 struct rtwn_tx_ring *tx_ring = &sc->tx_ring[qid]; in rtwn_alloc_tx_list() local 624 &tx_ring->map); in rtwn_alloc_tx_list() 632 &tx_ring->seg, 1, &tx_ring->nsegs, BUS_DMA_NOWAIT); in rtwn_alloc_tx_list() 639 error = bus_dmamem_map(sc->sc_dmat, &tx_ring->seg, tx_ring->nsegs, in rtwn_alloc_tx_list() 640 size, (void **)&tx_ring->desc, BUS_DMA_NOWAIT); in rtwn_alloc_tx_list() 642 bus_dmamem_free(sc->sc_dmat, &tx_ring->seg, tx_ring->nsegs); in rtwn_alloc_tx_list() 646 memset(tx_ring->desc, 0, size); in rtwn_alloc_tx_list() 648 error = bus_dmamap_load(sc->sc_dmat, tx_ring->map, tx_ring->desc, in rtwn_alloc_tx_list() 657 struct r92c_tx_desc_pci *desc = &tx_ring->desc[i]; in rtwn_alloc_tx_list() 660 desc->nextdescaddr = htole32(tx_ring->map->dm_segs[0].ds_addr in rtwn_alloc_tx_list() [all …]
|
H A D | if_rtwnreg.h | 194 struct rtwn_tx_ring tx_ring[RTWN_NTXQUEUES]; member
|
H A D | if_enavar.h | 190 struct ena_ring *tx_ring; member 403 struct ena_ring tx_ring[ENA_MAX_NUM_IO_QUEUES]
|
/netbsd-src/sys/dev/pci/ixgbe/ |
H A D | ix_txrx.c | 110 static void ixgbe_setup_transmit_ring(struct tx_ring *); 111 static void ixgbe_free_transmit_buffers(struct tx_ring *); 117 static void ixgbe_drain(struct ifnet *, struct tx_ring *); 118 static int ixgbe_xmit(struct tx_ring *, struct mbuf *); 119 static int ixgbe_tx_ctx_setup(struct tx_ring *, 121 static int ixgbe_tso_setup(struct tx_ring *, 143 ixgbe_legacy_start_locked(struct ifnet *ifp, struct tx_ring *txr) in ixgbe_legacy_start_locked() 198 struct tx_ring *txr = sc->tx_rings; in ixgbe_legacy_start() 216 struct tx_ring *txr; in ixgbe_mq_start() 301 ixgbe_mq_start_locked(struct ifnet *ifp, struct tx_ring *txr) in ixgbe_mq_start_locked() [all …]
|
H A D | ixgbe.h | 331 struct tx_ring *txr; 357 struct tx_ring { struct 566 struct tx_ring *tx_rings; 751 int ixgbe_legacy_start_locked(struct ifnet *, struct tx_ring *); 753 int ixgbe_mq_start_locked(struct ifnet *, struct tx_ring *); 764 bool ixgbe_txeof(struct tx_ring *); 358 sctx_ring global() argument 359 tx_mtxtx_ring global() argument 360 metx_ring global() argument 361 tailtx_ring global() argument 362 busytx_ring global() argument 363 tx_basetx_ring global() argument 364 tx_bufferstx_ring global() argument 365 txdmatx_ring global() argument 366 tx_availtx_ring global() argument 367 next_avail_desctx_ring global() argument 368 next_to_cleantx_ring global() argument 369 num_desctx_ring global() argument 370 txtagtx_ring global() argument 374 txr_interqtx_ring global() argument 375 wq_cookietx_ring global() argument 376 txr_sitx_ring global() argument 377 txr_no_spacetx_ring global() argument 381 atr_sampletx_ring global() argument 382 atr_counttx_ring global() argument 385 bytestx_ring global() argument 386 packetstx_ring global() argument 388 total_packetstx_ring global() argument 389 pcq_dropstx_ring global() argument 390 no_desc_availtx_ring global() argument 391 tso_txtx_ring global() argument 393 q_efbig_tx_dma_setuptx_ring global() argument 394 q_mbuf_defrag_failedtx_ring global() argument 395 q_efbig2_tx_dma_setuptx_ring global() argument 396 q_einval_tx_dma_setuptx_ring global() argument 397 q_other_tx_dma_setuptx_ring global() argument 398 q_eagain_tx_dma_setuptx_ring global() argument 399 q_enomem_tx_dma_setuptx_ring global() argument 400 q_tso_errtx_ring global() argument
|
H A D | if_fdir.c | 86 ixgbe_atr(struct tx_ring *txr, struct mbuf *mp) in ixgbe_atr() 161 ixgbe_atr(struct tx_ring *txr, struct mbuf *mp) in ixgbe_atr()
|
H A D | ixgbe_fdir.h | 57 void ixgbe_atr(struct tx_ring *, struct mbuf *);
|
H A D | ixv.c | 233 static int (*ixv_start_locked)(struct ifnet *, struct tx_ring *); 607 struct tx_ring *txr = sc->tx_rings; in ixv_detach() 886 struct tx_ring *txr = que->txr; in ixv_msix_que() 1306 struct tx_ring *txr = que->txr; in ixv_handle_timer() 1557 struct tx_ring *txr = sc->tx_rings; in ixv_free_deferred_handlers() 1724 struct tx_ring *txr = sc->tx_rings; in ixv_initialize_transmit_units() 1994 struct tx_ring *txr = (struct tx_ring *)node.sysctl_data; in ixv_sysctl_tdh_handler() 2014 struct tx_ring *txr = (struct tx_ring *)node.sysctl_data; in ixv_sysctl_tdt_handler() 2625 struct tx_ring *txr = sc->tx_rings; in ixv_add_stats_sysctls() 2814 struct tx_ring *txr = sc->tx_rings; in ixv_clear_evcnt() [all …]
|
H A D | ixgbe.c | 409 static int (*ixgbe_start_locked)(struct ifnet *, struct tx_ring *); 670 struct tx_ring *txr = sc->tx_rings; in ixgbe_initialize_transmit_units() 1812 struct tx_ring *txr = sc->tx_rings; in ixgbe_add_hw_stats() 2141 struct tx_ring *txr = sc->tx_rings; in ixgbe_clear_evcnt() 2281 struct tx_ring *txr = (struct tx_ring *)node.sysctl_data; in ixgbe_sysctl_tdh_handler() 2306 struct tx_ring *txr = (struct tx_ring *)node.sysctl_data; in ixgbe_sysctl_tdt_handler() 2820 struct tx_ring *txr = que->txr; in ixgbe_msix_que() 3649 struct tx_ring *txr = sc->tx_rings; in ixgbe_free_deferred_handlers() 3702 struct tx_ring *txr = sc->tx_rings; in ixgbe_detach() 4054 struct tx_ring *txr; in ixgbe_init_locked() [all …]
|
H A D | ixgbe_netmap.c | 211 struct tx_ring *txr = &sc->tx_rings[kring->ring_id]; in ixgbe_netmap_txsync()
|
/netbsd-src/sys/dev/pci/igc/ |
H A D | if_igc.c | 188 static void igc_tx_common_locked(struct ifnet *, struct tx_ring *, int); 189 static bool igc_txeof(struct tx_ring *, u_int); 210 static int igc_tx_ctx_setup(struct tx_ring *, struct mbuf *, int, 212 static int igc_tso_setup(struct tx_ring *, struct mbuf *, int, 228 static int igc_allocate_transmit_buffers(struct tx_ring *); 230 static int igc_setup_transmit_ring(struct tx_ring *); 233 static void igc_free_transmit_buffers(struct tx_ring *); 234 static void igc_withdraw_transmit_packets(struct tx_ring *, bool); 271 igc_txdesc_sync(struct tx_ring *txr, int id, int ops) in igc_txdesc_sync() 651 kmem_zalloc(sc->sc_nqueues * sizeof(struct tx_ring), KM_SLEE in igc_allocate_queues() [all...] |
H A D | if_igc.h | 266 struct tx_ring *txr; 284 struct tx_ring { struct 367 struct tx_ring *tx_rings;
|
/netbsd-src/sys/arch/xen/xen/ |
H A D | if_xennet_xenbus.c | 265 netif_tx_sring_t *tx_ring; in xennet_xenbus_attach() local 410 tx_ring = (void *)uvm_km_alloc(kernel_map, PAGE_SIZE, 0, in xennet_xenbus_attach() 414 if (tx_ring == NULL || rx_ring == NULL) in xennet_xenbus_attach() 417 sc->sc_tx_ring.sring = tx_ring; in xennet_xenbus_attach() 446 uvm_km_free(kernel_map, (vaddr_t)tx_ring, PAGE_SIZE, in xennet_xenbus_attach() 533 netif_tx_sring_t *tx_ring; in xennet_xenbus_resume() local 547 tx_ring = sc->sc_tx_ring.sring; in xennet_xenbus_resume() 551 memset(tx_ring, 0, PAGE_SIZE); in xennet_xenbus_resume() 552 SHARED_RING_INIT(tx_ring); in xennet_xenbus_resume() 553 FRONT_RING_INIT(&sc->sc_tx_ring, tx_ring, PAGE_SIZE); in xennet_xenbus_resume() [all …]
|
H A D | xennetback_xenbus.c | 410 netif_tx_sring_t *tx_ring; in xennetback_connect() local 461 tx_ring = (void *)xneti->xni_tx_ring_va; in xennetback_connect() 479 BACK_RING_INIT(&xneti->xni_txring, tx_ring, PAGE_SIZE); in xennetback_connect()
|