Home
last modified time | relevance | path

Searched refs:rx_rings (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.12.1/drivers/net/ethernet/netronome/nfp/
Dnfp_net_dp.c343 dp->rx_rings = kcalloc(dp->num_rx_rings, sizeof(*dp->rx_rings), in nfp_net_rx_rings_prepare()
345 if (!dp->rx_rings) in nfp_net_rx_rings_prepare()
349 nfp_net_rx_ring_init(&dp->rx_rings[r], &nn->r_vecs[r], r); in nfp_net_rx_rings_prepare()
351 if (nfp_net_rx_ring_alloc(dp, &dp->rx_rings[r])) in nfp_net_rx_rings_prepare()
354 if (nfp_net_rx_ring_bufs_alloc(dp, &dp->rx_rings[r])) in nfp_net_rx_rings_prepare()
362 nfp_net_rx_ring_bufs_free(dp, &dp->rx_rings[r]); in nfp_net_rx_rings_prepare()
364 nfp_net_rx_ring_free(&dp->rx_rings[r]); in nfp_net_rx_rings_prepare()
366 kfree(dp->rx_rings); in nfp_net_rx_rings_prepare()
375 nfp_net_rx_ring_bufs_free(dp, &dp->rx_rings[r]); in nfp_net_rx_rings_free()
376 nfp_net_rx_ring_free(&dp->rx_rings[r]); in nfp_net_rx_rings_free()
[all …]
Dnfp_net_common.c795 r_vec->rx_ring = idx < dp->num_rx_rings ? &dp->rx_rings[idx] : NULL; in nfp_net_vector_assign_rings()
963 nfp_net_rx_ring_reset(&nn->dp.rx_rings[r]); in nfp_net_clear_config_and_disable()
964 if (nfp_net_has_xsk_pool_slow(&nn->dp, nn->dp.rx_rings[r].idx)) in nfp_net_clear_config_and_disable()
965 nfp_net_xsk_rx_bufs_free(&nn->dp.rx_rings[r]); in nfp_net_clear_config_and_disable()
1003 nfp_net_rx_ring_hw_cfg_write(nn, &nn->dp.rx_rings[r], r); in nfp_net_set_config_and_enable()
1048 nfp_net_rx_ring_fill_freelist(&nn->dp, &nn->dp.rx_rings[r]); in nfp_net_set_config_and_enable()
1575 new->rx_rings = NULL; in nfp_net_clone_dp()
/linux-6.12.1/drivers/net/ethernet/aquantia/atlantic/
Daq_vec.c19 unsigned int rx_rings; member
120 self->rx_rings = 0; in aq_vec_alloc()
168 ++self->rx_rings; in aq_vec_ring_alloc()
308 if (i < self->rx_rings) { in aq_vec_ring_free()
315 self->rx_rings = 0; in aq_vec_ring_free()
365 return tc < self->rx_rings && tc < self->tx_rings; in aq_vec_is_valid_tc()
Daq_hw.h67 u8 rx_rings; member
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_ethtool.c1310 rx_ring = test_vsi->rx_rings[0]; in ice_loopback_test()
1983 rx_ring = READ_ONCE(vsi->rx_rings[j]); in __ice_get_ethtool_stats()
3191 if (vsi->tx_rings && vsi->rx_rings) { in ice_get_ringparam()
3192 ring->rx_pending = vsi->rx_rings[0]->count; in ice_get_ringparam()
3214 struct ice_rx_ring *rx_rings = NULL; in ice_set_ringparam() local
3232 if (!vsi->tx_rings || !vsi->rx_rings) in ice_set_ringparam()
3246 new_rx_cnt == vsi->rx_rings[0]->count) { in ice_set_ringparam()
3270 vsi->rx_rings[i]->count = new_rx_cnt; in ice_set_ringparam()
3339 if (new_rx_cnt == vsi->rx_rings[0]->count) in ice_set_ringparam()
3344 vsi->rx_rings[0]->count, new_rx_cnt); in ice_set_ringparam()
[all …]
Dice_xsk.c57 ice_clean_rx_ring(vsi->rx_rings[q_idx]); in ice_qp_clean_rings()
175 rx_ring = vsi->rx_rings[q_idx]; in ice_qp_dis()
239 q_vector = vsi->rx_rings[q_idx]->q_vector; in ice_qp_ena()
354 rx_ring = vsi->rx_rings[i]; in ice_realloc_zc_buf()
388 struct ice_rx_ring *rx_ring = vsi->rx_rings[qid]; in ice_xsk_pool_setup()
408 napi_schedule(&vsi->rx_rings[qid]->xdp_ring->q_vector->napi); in ice_xsk_pool_setup()
1133 ring = vsi->rx_rings[queue_id]->xdp_ring; in ice_xsk_wakeup()
Dice_lib.c88 vsi->rx_rings = devm_kcalloc(dev, vsi->alloc_rxq, in ice_vsi_alloc_arrays()
89 sizeof(*vsi->rx_rings), GFP_KERNEL); in ice_vsi_alloc_arrays()
90 if (!vsi->rx_rings) in ice_vsi_alloc_arrays()
127 devm_kfree(dev, vsi->rx_rings); in ice_vsi_alloc_arrays()
321 devm_kfree(dev, vsi->rx_rings); in ice_vsi_free_arrays()
322 vsi->rx_rings = NULL; in ice_vsi_free_arrays()
408 ring = vsi->rx_rings[i]; in ice_vsi_alloc_ring_stats()
1361 if (vsi->rx_rings) { in ice_vsi_clear_rings()
1363 if (vsi->rx_rings[i]) { in ice_vsi_clear_rings()
1364 kfree_rcu(vsi->rx_rings[i], rcu); in ice_vsi_clear_rings()
[all …]
Dice_dcb_lib.c230 rx_ring = vsi->rx_rings[i]; in ice_vsi_cfg_dcb_rings()
247 vsi->rx_rings[i]->dcb_tc = n; in ice_vsi_cfg_dcb_rings()
266 vsi->rx_rings[i]->dcb_tc = first_droptc; in ice_vsi_cfg_dcb_rings()
Dice_base.c638 return ice_vsi_cfg_rxq(vsi->rx_rings[q_idx]); in ice_vsi_cfg_single_rxq()
680 int err = ice_vsi_cfg_rxq(vsi->rx_rings[i]); in ice_vsi_cfg_rxqs()
854 struct ice_rx_ring *rx_ring = vsi->rx_rings[q_id]; in ice_vsi_map_rings_to_vectors()
Dice_virtchnl.c1536 vsi->rx_rings[vsi_q_id]->q_vector = q_vector; in ice_cfg_interrupt()
1738 vsi->rx_rings[i]->dma = qpi->rxq.dma_ring_addr; in ice_vc_cfg_qs_msg()
1739 vsi->rx_rings[i]->count = qpi->rxq.ring_len; in ice_vc_cfg_qs_msg()
1742 vsi->rx_rings[q_idx]->flags |= in ice_vc_cfg_qs_msg()
1745 vsi->rx_rings[q_idx]->flags &= in ice_vc_cfg_qs_msg()
1753 vsi->rx_rings[i]->rx_buf_len = vsi->rx_buf_len; in ice_vc_cfg_qs_msg()
2511 if (vsi->rx_rings[i]->flags & ICE_RX_FLAGS_CRC_STRIP_DIS) in ice_vsi_is_rxq_crc_strip_dis()
Dice.h335 struct ice_rx_ring **rx_rings; /* Rx ring array */ member
809 ring = vsi->rx_rings[qid]->xdp_ring; in ice_tx_xsk_pool()
Dice_ptp.c306 if (!vsi || !vsi->rx_rings) in ice_set_rx_tstamp()
311 if (!vsi->rx_rings[i]) in ice_set_rx_tstamp()
313 vsi->rx_rings[i]->ptp_rx = on; in ice_set_rx_tstamp()
1136 if (!vsi->rx_rings[j]) in ice_ptp_update_cached_phctime()
1138 WRITE_ONCE(vsi->rx_rings[j]->cached_phctime, systime); in ice_ptp_update_cached_phctime()
/linux-6.12.1/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2038 ring->rx_pending = vsi->rx_rings[0]->count; in i40e_get_ringparam()
2061 struct i40e_ring *tx_rings = NULL, *rx_rings = NULL; in i40e_set_ringparam() local
2090 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam()
2111 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam()
2167 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam()
2170 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam()
2171 rx_rings = kcalloc(vsi->alloc_queue_pairs, in i40e_set_ringparam()
2173 if (!rx_rings) { in i40e_set_ringparam()
2182 rx_rings[i] = *vsi->rx_rings[i]; in i40e_set_ringparam()
2183 rx_rings[i].count = new_rx_count; in i40e_set_ringparam()
[all …]
Di40e_xsk.c65 rx_ring = vsi->rx_rings[q]; in i40e_realloc_rx_bi_zc()
112 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], true); in i40e_xsk_pool_enable()
160 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], false); in i40e_xsk_pool_disable()
Di40e_main.c492 ring = READ_ONCE(vsi->rx_rings[i]); in i40e_get_netdev_stats_struct()
535 if (vsi->rx_rings && vsi->rx_rings[0]) { in i40e_vsi_reset_stats()
537 memset(&vsi->rx_rings[i]->stats, 0, in i40e_vsi_reset_stats()
538 sizeof(vsi->rx_rings[i]->stats)); in i40e_vsi_reset_stats()
539 memset(&vsi->rx_rings[i]->rx_stats, 0, in i40e_vsi_reset_stats()
540 sizeof(vsi->rx_rings[i]->rx_stats)); in i40e_vsi_reset_stats()
923 p = READ_ONCE(vsi->rx_rings[q]); in i40e_update_vsi_stats()
3395 err = i40e_setup_rx_descriptors(vsi->rx_rings[i]); in i40e_vsi_setup_rx_resources()
3409 if (!vsi->rx_rings) in i40e_vsi_free_rx_resources()
3413 if (vsi->rx_rings[i] && vsi->rx_rings[i]->desc) in i40e_vsi_free_rx_resources()
[all …]
/linux-6.12.1/drivers/thunderbolt/
Dnhi.c534 if (!nhi->rx_rings[i]) { in nhi_alloc_hop()
558 if (!ring->is_tx && nhi->rx_rings[ring->hop]) { in nhi_alloc_hop()
568 nhi->rx_rings[ring->hop] = ring; in nhi_alloc_hop()
819 ring->nhi->rx_rings[ring->hop] = NULL; in tb_ring_free()
941 ring = nhi->rx_rings[hop]; in nhi_interrupt_work()
1140 if (nhi->rx_rings[i]) in nhi_shutdown()
1360 nhi->rx_rings = devm_kcalloc(&pdev->dev, nhi->hop_count, in nhi_probe()
1361 sizeof(*nhi->rx_rings), GFP_KERNEL); in nhi_probe()
1362 if (!nhi->tx_rings || !nhi->rx_rings) in nhi_probe()
/linux-6.12.1/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c831 ring = &priv->rx_rings[i]; in bcmgenet_get_coalesce()
834 ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_get_coalesce()
914 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[i], ec); in bcmgenet_set_coalesce()
915 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[DESC_INDEX], ec); in bcmgenet_set_coalesce()
1014 rx_rings[num].bytes), \
1016 rx_rings[num].packets), \
1018 rx_rings[num].errors), \
1020 rx_rings[num].dropped)
2694 struct bcmgenet_rx_ring *ring = &priv->rx_rings[index]; in bcmgenet_init_rx_ring()
2866 ring = &priv->rx_rings[i]; in bcmgenet_enable_rx_napi()
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtw88/
Dpci.c172 rx_ring = &rtwpci->rx_rings[i]; in rtw_pci_free_trx_ring()
338 rx_ring = &rtwpci->rx_rings[j]; in rtw_pci_init_trx_ring()
356 rx_ring = &rtwpci->rx_rings[j]; in rtw_pci_init_trx_ring()
458 len = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.len; in rtw_pci_reset_buf_desc()
459 dma = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.dma; in rtw_pci_reset_buf_desc()
460 rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.rp = 0; in rtw_pci_reset_buf_desc()
461 rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.wp = 0; in rtw_pci_reset_buf_desc()
1029 ring = &rtwpci->rx_rings[RTW_RX_QUEUE_MPDU]; in rtw_pci_get_hw_rx_ring_nr()
1045 struct rtw_pci_rx_ring *ring = &rtwpci->rx_rings[RTW_RX_QUEUE_MPDU]; in rtw_pci_rx_napi()
Dpci.h224 struct rtw_pci_rx_ring rx_rings[RTK_MAX_RX_QUEUE_NUM]; member
/linux-6.12.1/drivers/net/ethernet/intel/iavf/
Diavf_main.c454 struct iavf_ring *rx_ring = &adapter->rx_rings[r_idx]; in iavf_map_vector_to_rxq()
723 adapter->rx_rings[i].tail = hw->hw_addr + IAVF_QRX_TAIL1(i); in iavf_configure_rx()
1219 struct iavf_ring *ring = &adapter->rx_rings[i]; in iavf_configure()
1453 kfree(adapter->rx_rings); in iavf_free_queues()
1454 adapter->rx_rings = NULL; in iavf_free_queues()
1472 struct iavf_ring *rx_ring = &adapter->rx_rings[i]; in iavf_set_queue_vlan_tag_loc()
1569 adapter->rx_rings = kcalloc(num_active_queues, in iavf_alloc_queues()
1571 if (!adapter->rx_rings) in iavf_alloc_queues()
1588 rx_ring = &adapter->rx_rings[i]; in iavf_alloc_queues()
3303 adapter->rx_rings[i].count = adapter->rx_desc_count; in iavf_setup_all_rx_resources()
[all …]
/linux-6.12.1/net/ethtool/
Dioctl.c1063 struct ethtool_rxnfc *rx_rings, in ethtool_copy_validate_indir() argument
1073 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir()
1142 struct ethtool_rxnfc rx_rings; in ethtool_set_rxfh_indir() local
1168 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh_indir()
1169 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh_indir()
1177 indir[i] = ethtool_rxfh_indir_default(i, rx_rings.data); in ethtool_set_rxfh_indir()
1181 &rx_rings, in ethtool_set_rxfh_indir()
1352 struct ethtool_rxnfc rx_rings; in ethtool_set_rxfh() local
1416 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh()
1417 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh()
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtw89/
Dpci_be.c178 rx_ring = &rtwpci->rx_rings[RTW89_RXCH_RXQ]; in rtw89_pci_clr_idx_all_be()
181 rx_ring = &rtwpci->rx_rings[RTW89_RXCH_RPQ]; in rtw89_pci_clr_idx_all_be()
Dpci.c437 rx_ring = &rtwpci->rx_rings[RTW89_RXCH_RXQ]; in rtw89_pci_poll_rxq_dma()
691 rx_ring = &rtwpci->rx_rings[RTW89_RXCH_RPQ]; in rtw89_pci_poll_rpq_dma()
721 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_isr_rxd_unavail()
1139 rx_ring = &rtwpci->rx_rings[RTW89_RXCH_RPQ]; in __rtw89_pci_check_and_reclaim_tx_resource()
1646 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_reset_trx_rings()
1778 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_switch_bd_idx_addr()
3226 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_free_rx_rings()
3496 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_alloc_rx_rings()
3512 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_alloc_rx_rings()
/linux-6.12.1/drivers/net/ethernet/sun/
Dniu.c3764 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_poll_core()
4091 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_slowpath_interrupt()
4175 struct rx_ring_info *rp = &np->rx_rings[i]; in __niu_fastpath_interrupt()
4316 if (np->rx_rings) { in niu_free_channels()
4318 struct rx_ring_info *rp = &np->rx_rings[i]; in niu_free_channels()
4322 kfree(np->rx_rings); in niu_free_channels()
4323 np->rx_rings = NULL; in niu_free_channels()
4474 struct rx_ring_info *rx_rings; in niu_alloc_channels() local
4488 rx_rings = kcalloc(num_rx_rings, sizeof(struct rx_ring_info), in niu_alloc_channels()
4491 if (!rx_rings) in niu_alloc_channels()
[all …]
/linux-6.12.1/include/linux/
Dthunderbolt.h496 struct tb_ring **rx_rings; member

12