| /netbsd-src/sys/dev/pci/ |
| H A D | if_ena.c | 547 rxr = &adapter->rx_ring[i]; in ena_init_io_rings() 588 que->rx_ring = rxr; in ena_init_io_rings() 601 struct ena_ring *rxr = &adapter->rx_ring[qid]; in ena_free_io_ring_resources() 830 validate_rx_req_id(struct ena_ring *rx_ring, uint16_t req_id) in validate_rx_req_id() argument 832 if (likely(req_id < rx_ring->ring_size)) in validate_rx_req_id() 835 device_printf(rx_ring->adapter->pdev, "Invalid rx req_id: %hu\n", in validate_rx_req_id() 837 counter_u64_add(rx_ring->rx_stats.bad_req_id, 1); in validate_rx_req_id() 840 rx_ring->adapter->reset_reason = ENA_REGS_RESET_INV_RX_REQ_ID; in validate_rx_req_id() 841 ENA_FLAG_SET_ATOMIC(ENA_FLAG_TRIGGER_RESET, rx_ring->adapter); in validate_rx_req_id() 857 struct ena_ring *rx_ring = que->rx_ring; in ena_setup_rx_resources() local [all …]
|
| H A D | if_et.c | 736 struct et_rxdesc_ring *rx_ring = &sc->sc_rx_ring[i]; in et_dma_alloc() local 739 (void **)&rx_ring->rr_desc, in et_dma_alloc() 740 &rx_ring->rr_paddr, &rx_ring->rr_dmap, &rx_ring->rr_seg); in et_dma_alloc() 746 rx_ring->rr_posreg = rx_ring_posreg[i]; in et_dma_alloc() 804 struct et_rxdesc_ring *rx_ring = &sc->sc_rx_ring[i]; in et_dma_free() local 806 et_dma_mem_destroy(sc, rx_ring->rr_desc, rx_ring->rr_dmap); in et_dma_free() 1256 struct et_rxdesc_ring *rx_ring = &sc->sc_rx_ring[n]; in et_free_rx_ring() local 1269 bzero(rx_ring->rr_desc, ET_RX_RING_SIZE); in et_free_rx_ring() 1270 bus_dmamap_sync(sc->sc_dmat, rx_ring->rr_dmap, 0, in et_free_rx_ring() 1271 rx_ring->rr_dmap->dm_mapsize, BUS_DMASYNC_PREWRITE); in et_free_rx_ring() [all …]
|
| H A D | if_rtwn.c | 476 struct rtwn_rx_ring *rx_ring = &sc->rx_ring; in rtwn_alloc_rx_list() local 483 &rx_ring->map); in rtwn_alloc_rx_list() 487 rx_ring->map = NULL; in rtwn_alloc_rx_list() 491 error = bus_dmamem_alloc(sc->sc_dmat, size, 0, 0, &rx_ring->seg, 1, in rtwn_alloc_rx_list() 492 &rx_ring->nsegs, BUS_DMA_NOWAIT); in rtwn_alloc_rx_list() 498 error = bus_dmamem_map(sc->sc_dmat, &rx_ring->seg, rx_ring->nsegs, in rtwn_alloc_rx_list() 499 size, (void **)&rx_ring->desc, BUS_DMA_NOWAIT | BUS_DMA_COHERENT); in rtwn_alloc_rx_list() 501 bus_dmamem_free(sc->sc_dmat, &rx_ring->seg, rx_ring->nsegs); in rtwn_alloc_rx_list() 502 rx_ring->desc = NULL; in rtwn_alloc_rx_list() 506 memset(rx_ring->desc, 0, size); in rtwn_alloc_rx_list() [all …]
|
| H A D | if_rtwnreg.h | 193 struct rtwn_rx_ring rx_ring; member
|
| H A D | if_enavar.h | 191 struct ena_ring *rx_ring; member 407 struct ena_ring rx_ring[ENA_MAX_NUM_IO_QUEUES]
|
| /netbsd-src/sys/dev/pci/igc/ |
| H A D | if_igc.h | 267 struct rx_ring *rxr; 306 struct rx_ring { struct 315 struct if_rxring rx_ring; argument 368 struct rx_ring *rx_rings;
|
| H A D | if_igc.c | 197 static void igc_rxfill(struct rx_ring *); 198 static void igc_rxrefill(struct rx_ring *, int); 199 static bool igc_rxeof(struct rx_ring *, u_int); 209 static int igc_get_buf(struct rx_ring *, int, bool); 235 static int igc_allocate_receive_buffers(struct rx_ring *); 237 static int igc_setup_receive_ring(struct rx_ring *); 240 static void igc_free_receive_buffers(struct rx_ring *); 241 static void igc_clear_receive_status(struct rx_ring *); 298 igc_rxdesc_sync(struct rx_ring *rxr, int id, int ops) in igc_rxdesc_sync() 655 kmem_zalloc(sc->sc_nqueues * sizeof(struct rx_ring), KM_SLEE in igc_allocate_queues() [all...] |
| /netbsd-src/sys/dev/pci/ixgbe/ |
| H A D | ix_txrx.c | 112 static int ixgbe_setup_receive_ring(struct rx_ring *); 113 static void ixgbe_free_receive_buffers(struct rx_ring *); 116 static void ixgbe_refresh_mbufs(struct rx_ring *, int); 123 static __inline void ixgbe_rx_discard(struct rx_ring *, int); 124 static __inline void ixgbe_rx_input(struct rx_ring *, struct ifnet *, 130 static void ixgbe_setup_hw_rsc(struct rx_ring *); 1289 ixgbe_setup_hw_rsc(struct rx_ring *rxr) in ixgbe_setup_hw_rsc() 1353 ixgbe_refresh_mbufs(struct rx_ring *rxr, int limit) in ixgbe_refresh_mbufs() 1428 ixgbe_allocate_receive_buffers(struct rx_ring *rxr) in ixgbe_allocate_receive_buffers() 1474 ixgbe_free_receive_ring(struct rx_ring *rxr) in ixgbe_free_receive_ring() [all …]
|
| H A D | ixgbe.h | 332 struct rx_ring *rxr; 407 struct rx_ring { struct 574 struct rx_ring *rx_rings; 696 ixgbe_rx_unrefreshed(struct rx_ring *rxr) in ixgbe_rx_unrefreshed() 408 scrx_ring global() argument 409 rx_mtxrx_ring global() argument 410 merx_ring global() argument 411 tailrx_ring global() argument 412 rx_baserx_ring global() argument 413 rxdmarx_ring global() argument 415 lrorx_ring global() argument 416 lro_enabledrx_ring global() argument 419 hw_rscrx_ring global() argument 421 vtag_striprx_ring global() argument 422 discard_multidescrx_ring global() argument 423 next_to_refreshrx_ring global() argument 424 next_to_checkrx_ring global() argument 425 num_descrx_ring global() argument 426 mbuf_szrx_ring global() argument 430 rx_buffersrx_ring global() argument 431 ptagrx_ring global() argument 433 bytesrx_ring global() argument 434 packetsrx_ring global() argument 437 rx_copiesrx_ring global() argument 438 rx_packetsrx_ring global() argument 439 rx_bytesrx_ring global() argument 440 rx_discardedrx_ring global() argument 441 no_mbufrx_ring global() argument 443 rsc_numrx_ring global() argument
|
| H A D | ixv.c | 608 struct rx_ring *rxr = sc->rx_rings; in ixv_detach() 887 struct rx_ring *rxr = que->rxr; in ixv_msix_que() 1872 struct rx_ring *rxr = sc->rx_rings; in ixv_initialize_receive_units() 2035 struct rx_ring *rxr = (struct rx_ring *)node.sysctl_data; in ixv_sysctl_next_to_check_handler() 2056 struct rx_ring *rxr = (struct rx_ring *)node.sysctl_data; in ixv_sysctl_next_to_refresh_handler() 2081 struct rx_ring *rxr = (struct rx_ring *)node.sysctl_data; in ixv_sysctl_rdh_handler() 2101 struct rx_ring *rxr = (struct rx_ring *)node.sysctl_data; in ixv_sysctl_rdt_handler() 2117 struct rx_ring *rxr; in ixv_setup_vlan_tagging() 2626 struct rx_ring *rxr = sc->rx_rings; in ixv_add_stats_sysctls() 2815 struct rx_ring *rxr = sc->rx_rings; in ixv_clear_evcnt()
|
| H A D | ixgbe.c | 543 struct rx_ring *rxr = sc->rx_rings; in ixgbe_initialize_receive_units() 1813 struct rx_ring *rxr = sc->rx_rings; in ixgbe_add_hw_stats() 2142 struct rx_ring *rxr = sc->rx_rings; in ixgbe_clear_evcnt() 2332 struct rx_ring *rxr = (struct rx_ring *)node.sysctl_data; in ixgbe_sysctl_next_to_check_handler() 2358 struct rx_ring *rxr = (struct rx_ring *)node.sysctl_data; in ixgbe_sysctl_next_to_refresh_handler() 2383 struct rx_ring *rxr = (struct rx_ring *)node.sysctl_data; in ixgbe_sysctl_rdh_handler() 2408 struct rx_ring *rxr = (struct rx_ring *)node.sysctl_data; in ixgbe_sysctl_rdt_handler() 2511 struct rx_ring *rxr; in ixgbe_setup_vlan_hw_tagging() 2821 struct rx_ring *rxr = que->rxr; in ixgbe_msix_que() 3701 struct rx_ring *rxr = sc->rx_rings; in ixgbe_detach() [all …]
|
| H A D | ixgbe_netmap.c | 395 struct rx_ring *rxr = &sc->rx_rings[kring->ring_id]; in ixgbe_netmap_rxsync()
|
| /netbsd-src/sys/arch/xen/xen/ |
| H A D | if_xennet_xenbus.c | 266 netif_rx_sring_t *rx_ring; in xennet_xenbus_attach() local 412 rx_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() 418 sc->sc_rx_ring.sring = rx_ring; in xennet_xenbus_attach() 448 uvm_km_free(kernel_map, (vaddr_t)rx_ring, PAGE_SIZE, in xennet_xenbus_attach() 534 netif_rx_sring_t *rx_ring; in xennet_xenbus_resume() local 548 rx_ring = sc->sc_rx_ring.sring; in xennet_xenbus_resume() 555 memset(rx_ring, 0, PAGE_SIZE); in xennet_xenbus_resume() 556 SHARED_RING_INIT(rx_ring); in xennet_xenbus_resume() 557 FRONT_RING_INIT(&sc->sc_rx_ring, rx_ring, PAGE_SIZE); in xennet_xenbus_resume() [all …]
|
| H A D | xennetback_xenbus.c | 411 netif_rx_sring_t *rx_ring; in xennetback_connect() local 470 rx_ring = (void *)xneti->xni_rx_ring_va; in xennetback_connect() 488 BACK_RING_INIT(&xneti->xni_rxring, rx_ring, PAGE_SIZE); in xennetback_connect()
|