/linux-6.1.9/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_dp.c | 343 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 …]
|
D | nfp_net_common.c | 792 r_vec->rx_ring = idx < dp->num_rx_rings ? &dp->rx_rings[idx] : NULL; in nfp_net_vector_assign_rings() 946 nfp_net_rx_ring_reset(&nn->dp.rx_rings[r]); in nfp_net_clear_config_and_disable() 947 if (nfp_net_has_xsk_pool_slow(&nn->dp, nn->dp.rx_rings[r].idx)) in nfp_net_clear_config_and_disable() 948 nfp_net_xsk_rx_bufs_free(&nn->dp.rx_rings[r]); in nfp_net_clear_config_and_disable() 985 nfp_net_rx_ring_hw_cfg_write(nn, &nn->dp.rx_rings[r], r); in nfp_net_set_config_and_enable() 1019 nfp_net_rx_ring_fill_freelist(&nn->dp, &nn->dp.rx_rings[r]); in nfp_net_set_config_and_enable() 1429 new->rx_rings = NULL; in nfp_net_clone_dp()
|
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_vec.c | 19 unsigned int rx_rings; member 120 self->rx_rings = 0; in aq_vec_alloc() 171 ++self->rx_rings; in aq_vec_ring_alloc() 311 if (i < self->rx_rings) { in aq_vec_ring_free() 318 self->rx_rings = 0; in aq_vec_ring_free() 368 return tc < self->rx_rings && tc < self->tx_rings; in aq_vec_is_valid_tc()
|
D | aq_hw.h | 67 u8 rx_rings; member
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 711 rx_ring = test_vsi->rx_rings[0]; in ice_loopback_test() 1388 rx_ring = READ_ONCE(vsi->rx_rings[j]); in __ice_get_ethtool_stats() 2735 ring->rx_pending = vsi->rx_rings[0]->count; in ice_get_ringparam() 2753 struct ice_rx_ring *rx_rings = NULL; in ice_set_ringparam() local 2781 new_rx_cnt == vsi->rx_rings[0]->count) { in ice_set_ringparam() 2805 vsi->rx_rings[i]->count = new_rx_cnt; in ice_set_ringparam() 2876 if (new_rx_cnt == vsi->rx_rings[0]->count) in ice_set_ringparam() 2881 vsi->rx_rings[0]->count, new_rx_cnt); in ice_set_ringparam() 2883 rx_rings = kcalloc(vsi->num_rxq, sizeof(*rx_rings), GFP_KERNEL); in ice_set_ringparam() 2884 if (!rx_rings) { in ice_set_ringparam() [all …]
|
D | ice_xsk.c | 27 memset(&vsi->rx_rings[q_idx]->rx_stats, 0, in ice_qp_reset_stats() 28 sizeof(vsi->rx_rings[q_idx]->rx_stats)); in ice_qp_reset_stats() 48 ice_clean_rx_ring(vsi->rx_rings[q_idx]); in ice_qp_clean_rings() 165 rx_ring = vsi->rx_rings[q_idx]; in ice_qp_dis() 231 rx_ring = vsi->rx_rings[q_idx]; in ice_qp_ena() 368 rx_ring = vsi->rx_rings[q]; in ice_realloc_zc_buf() 398 struct ice_rx_ring *rx_ring = vsi->rx_rings[qid]; in ice_xsk_pool_setup() 418 napi_schedule(&vsi->rx_rings[qid]->xdp_ring->q_vector->napi); in ice_xsk_pool_setup() 990 ring = vsi->rx_rings[queue_id]->xdp_ring; in ice_xsk_wakeup()
|
D | ice_lib.c | 88 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() 133 devm_kfree(dev, vsi->rx_rings); in ice_vsi_alloc_arrays() 336 if (vsi->rx_rings) { in ice_vsi_free_arrays() 337 devm_kfree(dev, vsi->rx_rings); in ice_vsi_free_arrays() 338 vsi->rx_rings = NULL; in ice_vsi_free_arrays() 1466 if (vsi->rx_rings) { in ice_vsi_clear_rings() 1468 if (vsi->rx_rings[i]) { in ice_vsi_clear_rings() 1469 kfree_rcu(vsi->rx_rings[i], rcu); in ice_vsi_clear_rings() [all …]
|
D | ice_dcb_lib.c | 228 rx_ring = vsi->rx_rings[i]; in ice_vsi_cfg_dcb_rings() 245 vsi->rx_rings[i]->dcb_tc = n; in ice_vsi_cfg_dcb_rings() 264 vsi->rx_rings[i]->dcb_tc = first_droptc; in ice_vsi_cfg_dcb_rings()
|
D | ice.h | 314 struct ice_rx_ring **rx_rings; /* Rx ring array */ member 719 ring = vsi->rx_rings[qid]->xdp_ring; in ice_tx_xsk_pool()
|
D | ice_repr.c | 171 rx_ring = np->vsi->rx_rings[vf_id]; in ice_repr_sp_stats64()
|
D | ice_ptp.c | 307 if (!vsi->rx_rings[i]) in ice_set_rx_tstamp() 309 vsi->rx_rings[i]->ptp_rx = on; in ice_set_rx_tstamp() 931 if (!vsi->rx_rings[j]) in ice_ptp_update_cached_phctime() 933 WRITE_ONCE(vsi->rx_rings[j]->cached_phctime, systime); in ice_ptp_update_cached_phctime()
|
/linux-6.1.9/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 2027 ring->rx_pending = vsi->rx_rings[0]->count; in i40e_get_ringparam() 2049 struct i40e_ring *tx_rings = NULL, *rx_rings = NULL; in i40e_set_ringparam() local 2078 (new_rx_count == vsi->rx_rings[0]->count)) in i40e_set_ringparam() 2099 vsi->rx_rings[i]->count = new_rx_count; in i40e_set_ringparam() 2155 if (new_rx_count != vsi->rx_rings[0]->count) { in i40e_set_ringparam() 2158 vsi->rx_rings[0]->count, new_rx_count); in i40e_set_ringparam() 2159 rx_rings = kcalloc(vsi->alloc_queue_pairs, in i40e_set_ringparam() 2161 if (!rx_rings) { in i40e_set_ringparam() 2170 rx_rings[i] = *vsi->rx_rings[i]; in i40e_set_ringparam() 2171 rx_rings[i].count = new_rx_count; in i40e_set_ringparam() [all …]
|
D | i40e_xsk.c | 69 rx_ring = vsi->rx_rings[q]; in i40e_realloc_rx_bi_zc() 116 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], true); in i40e_xsk_pool_enable() 164 err = i40e_realloc_rx_xdp_bi(vsi->rx_rings[qid], false); in i40e_xsk_pool_disable()
|
D | i40e_main.c | 471 ring = READ_ONCE(vsi->rx_rings[i]); in i40e_get_netdev_stats_struct() 513 if (vsi->rx_rings && vsi->rx_rings[0]) { in i40e_vsi_reset_stats() 515 memset(&vsi->rx_rings[i]->stats, 0, in i40e_vsi_reset_stats() 516 sizeof(vsi->rx_rings[i]->stats)); in i40e_vsi_reset_stats() 517 memset(&vsi->rx_rings[i]->rx_stats, 0, in i40e_vsi_reset_stats() 518 sizeof(vsi->rx_rings[i]->rx_stats)); in i40e_vsi_reset_stats() 913 p = READ_ONCE(vsi->rx_rings[q]); in i40e_update_vsi_stats() 3355 err = i40e_setup_rx_descriptors(vsi->rx_rings[i]); in i40e_vsi_setup_rx_resources() 3369 if (!vsi->rx_rings) in i40e_vsi_free_rx_resources() 3373 if (vsi->rx_rings[i] && vsi->rx_rings[i]->desc) in i40e_vsi_free_rx_resources() [all …]
|
/linux-6.1.9/drivers/thunderbolt/ |
D | nhi.c | 495 if (!nhi->rx_rings[i]) { in nhi_alloc_hop() 518 } else if (!ring->is_tx && nhi->rx_rings[ring->hop]) { in nhi_alloc_hop() 528 nhi->rx_rings[ring->hop] = ring; in nhi_alloc_hop() 779 ring->nhi->rx_rings[ring->hop] = NULL; in tb_ring_free() 901 ring = nhi->rx_rings[hop]; in nhi_interrupt_work() 1100 if (nhi->rx_rings[i]) in nhi_shutdown() 1289 nhi->rx_rings = devm_kcalloc(&pdev->dev, nhi->hop_count, in nhi_probe() 1290 sizeof(*nhi->rx_rings), GFP_KERNEL); in nhi_probe() 1291 if (!nhi->tx_rings || !nhi->rx_rings) in nhi_probe()
|
/linux-6.1.9/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 849 ring = &priv->rx_rings[i]; in bcmgenet_get_coalesce() 852 ring = &priv->rx_rings[DESC_INDEX]; in bcmgenet_get_coalesce() 932 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[i], ec); in bcmgenet_set_coalesce() 933 bcmgenet_set_ring_rx_coalesce(&priv->rx_rings[DESC_INDEX], ec); in bcmgenet_set_coalesce() 1032 rx_rings[num].bytes), \ 1034 rx_rings[num].packets), \ 1036 rx_rings[num].errors), \ 1038 rx_rings[num].dropped) 2682 struct bcmgenet_rx_ring *ring = &priv->rx_rings[index]; in bcmgenet_init_rx_ring() 2854 ring = &priv->rx_rings[i]; in bcmgenet_enable_rx_napi() [all …]
|
D | bcmgenet.h | 594 struct bcmgenet_rx_ring rx_rings[DESC_INDEX + 1]; member
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/ |
D | pci.c | 178 rx_ring = &rtwpci->rx_rings[i]; in rtw_pci_free_trx_ring() 344 rx_ring = &rtwpci->rx_rings[j]; in rtw_pci_init_trx_ring() 362 rx_ring = &rtwpci->rx_rings[j]; in rtw_pci_init_trx_ring() 464 len = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.len; in rtw_pci_reset_buf_desc() 465 dma = rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.dma; in rtw_pci_reset_buf_desc() 466 rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.rp = 0; in rtw_pci_reset_buf_desc() 467 rtwpci->rx_rings[RTW_RX_QUEUE_MPDU].r.wp = 0; in rtw_pci_reset_buf_desc() 1062 ring = &rtwpci->rx_rings[RTW_RX_QUEUE_MPDU]; in rtw_pci_get_hw_rx_ring_nr() 1078 struct rtw_pci_rx_ring *ring = &rtwpci->rx_rings[RTW_RX_QUEUE_MPDU]; in rtw_pci_rx_napi()
|
D | pci.h | 224 struct rtw_pci_rx_ring rx_rings[RTK_MAX_RX_QUEUE_NUM]; member
|
/linux-6.1.9/drivers/net/ethernet/intel/iavf/ |
D | iavf_main.c | 445 struct iavf_ring *rx_ring = &adapter->rx_rings[r_idx]; in iavf_map_vector_to_rxq() 737 adapter->rx_rings[i].tail = hw->hw_addr + IAVF_QRX_TAIL1(i); in iavf_configure_rx() 738 adapter->rx_rings[i].rx_buf_len = rx_buf_len; in iavf_configure_rx() 741 clear_ring_build_skb_enabled(&adapter->rx_rings[i]); in iavf_configure_rx() 743 set_ring_build_skb_enabled(&adapter->rx_rings[i]); in iavf_configure_rx() 1237 struct iavf_ring *ring = &adapter->rx_rings[i]; in iavf_configure() 1475 kfree(adapter->rx_rings); in iavf_free_queues() 1476 adapter->rx_rings = NULL; in iavf_free_queues() 1494 struct iavf_ring *rx_ring = &adapter->rx_rings[i]; in iavf_set_queue_vlan_tag_loc() 1591 adapter->rx_rings = kcalloc(num_active_queues, in iavf_alloc_queues() [all …]
|
/linux-6.1.9/net/ethtool/ |
D | ioctl.c | 1030 struct ethtool_rxnfc *rx_rings, in ethtool_copy_validate_indir() argument 1040 if (indir[i] >= rx_rings->data) in ethtool_copy_validate_indir() 1107 struct ethtool_rxnfc rx_rings; in ethtool_set_rxfh_indir() local 1134 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh_indir() 1135 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh_indir() 1141 indir[i] = ethtool_rxfh_indir_default(i, rx_rings.data); in ethtool_set_rxfh_indir() 1145 &rx_rings, in ethtool_set_rxfh_indir() 1250 struct ethtool_rxnfc rx_rings; in ethtool_set_rxfh() local 1295 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh() 1296 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh() [all …]
|
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt.c | 5245 int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings) in bnxt_get_nr_rss_ctxs() argument 5248 return DIV_ROUND_UP(rx_rings, BNXT_RSS_TABLE_ENTRIES_P5); in bnxt_get_nr_rss_ctxs() 6220 __bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_pf_rings() argument 6233 enables |= rx_rings ? FUNC_CFG_REQ_ENABLES_NUM_RX_RINGS : 0; in __bnxt_hwrm_reserve_pf_rings() 6239 enables |= rx_rings ? in __bnxt_hwrm_reserve_pf_rings() 6250 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_pf_rings() 6273 __bnxt_hwrm_reserve_vf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in __bnxt_hwrm_reserve_vf_rings() argument 6283 enables |= rx_rings ? FUNC_VF_CFG_REQ_ENABLES_NUM_RX_RINGS | in __bnxt_hwrm_reserve_vf_rings() 6300 req->num_rx_rings = cpu_to_le16(rx_rings); in __bnxt_hwrm_reserve_vf_rings() 6317 bnxt_hwrm_reserve_pf_rings(struct bnxt *bp, int tx_rings, int rx_rings, in bnxt_hwrm_reserve_pf_rings() argument [all …]
|
/linux-6.1.9/drivers/net/ethernet/sun/ |
D | niu.c | 3764 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.1.9/drivers/net/wireless/realtek/rtw89/ |
D | pci.c | 335 rx_ring = &rtwpci->rx_rings[RTW89_RXCH_RXQ]; in rtw89_pci_poll_rxq_dma() 587 rx_ring = &rtwpci->rx_rings[RTW89_RXCH_RPQ]; in rtw89_pci_poll_rpq_dma() 617 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_isr_rxd_unavail() 967 rx_ring = &rtwpci->rx_rings[RTW89_RXCH_RPQ]; in __rtw89_pci_check_and_reclaim_tx_resource() 1417 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_reset_trx_rings() 1538 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_switch_bd_idx_addr() 2806 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_free_rx_rings() 3070 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_alloc_rx_rings() 3086 rx_ring = &rtwpci->rx_rings[i]; in rtw89_pci_alloc_rx_rings()
|
/linux-6.1.9/include/linux/ |
D | thunderbolt.h | 483 struct tb_ring **rx_rings; member
|