| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | rx_res.c | 305 struct mlx5e_rx_res *rx_res; in mlx5e_rx_res_alloc() local 307 rx_res = kvzalloc(sizeof(*rx_res), GFP_KERNEL); in mlx5e_rx_res_alloc() 308 if (!rx_res) in mlx5e_rx_res_alloc() 311 rx_res->rss_rqns = kvcalloc(max_nch, sizeof(*rx_res->rss_rqns), GFP_KERNEL); in mlx5e_rx_res_alloc() 312 if (!rx_res->rss_rqns) { in mlx5e_rx_res_alloc() 313 kvfree(rx_res); in mlx5e_rx_res_alloc() 318 rx_res->rss_vhca_ids = kvcalloc(max_nch, sizeof(*rx_res->rss_vhca_ids), GFP_KERNEL); in mlx5e_rx_res_alloc() 319 if (!rx_res->rss_vhca_ids) { in mlx5e_rx_res_alloc() 320 kvfree(rx_res->rss_rqns); in mlx5e_rx_res_alloc() 321 kvfree(rx_res); in mlx5e_rx_res_alloc() [all …]
|
| H A D | reporter_rx.c | 341 static void mlx5e_rx_reporter_diagnose_rx_res_dir_tirns(struct mlx5e_rx_res *rx_res, in mlx5e_rx_reporter_diagnose_rx_res_dir_tirns() argument 344 unsigned int max_nch = mlx5e_rx_res_get_max_nch(rx_res); in mlx5e_rx_reporter_diagnose_rx_res_dir_tirns() 353 devlink_fmsg_u32_pair_put(fmsg, "tirn", mlx5e_rx_res_get_tirn_direct(rx_res, i)); in mlx5e_rx_reporter_diagnose_rx_res_dir_tirns() 354 devlink_fmsg_u32_pair_put(fmsg, "rqtn", mlx5e_rx_res_get_rqtn_direct(rx_res, i)); in mlx5e_rx_reporter_diagnose_rx_res_dir_tirns() 389 static void mlx5e_rx_reporter_diagnose_rx_res_rss_ix(struct mlx5e_rx_res *rx_res, u32 rss_idx, in mlx5e_rx_reporter_diagnose_rx_res_rss_ix() argument 392 struct mlx5e_rss *rss = mlx5e_rx_res_rss_get(rx_res, rss_idx); in mlx5e_rx_reporter_diagnose_rx_res_rss_ix() 408 static void mlx5e_rx_reporter_diagnose_rx_res_rss(struct mlx5e_rx_res *rx_res, in mlx5e_rx_reporter_diagnose_rx_res_rss() argument 415 mlx5e_rx_reporter_diagnose_rx_res_rss_ix(rx_res, rss_ix, fmsg); in mlx5e_rx_reporter_diagnose_rx_res_rss() 422 struct mlx5e_rx_res *rx_res = priv->rx_res; in mlx5e_rx_reporter_diagnose_rx_res() local 425 mlx5e_rx_reporter_diagnose_rx_res_dir_tirns(rx_res, fmsg); in mlx5e_rx_reporter_diagnose_rx_res() [all …]
|
| H A D | fs.h | 101 struct mlx5e_rx_res *rx_res, bool ntuple); 109 struct mlx5e_rx_res *rx_res, bool ntuple) in mlx5e_arfs_create_tables() argument 128 struct mlx5e_rx_res *rx_res, 133 struct mlx5e_rx_res *rx_res); 141 struct mlx5e_rx_res *rx_res,
|
| H A D | ptp.c | 808 u32 tirn = mlx5e_rx_res_get_tirn_ptp(priv->rx_res); in mlx5e_ptp_rx_set_fs()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
| H A D | ipoib.c | 374 err = mlx5e_arfs_create_tables(priv->fs, priv->rx_res, in mlx5i_create_flow_steering() 382 err = mlx5e_create_ttc_table(priv->fs, priv->rx_res); in mlx5i_create_flow_steering() 427 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5i_init_rx() 430 if (IS_ERR(priv->rx_res)) { in mlx5i_init_rx() 431 err = PTR_ERR(priv->rx_res); in mlx5i_init_rx() 442 mlx5e_rx_res_destroy(priv->rx_res); in mlx5i_init_rx() 443 priv->rx_res = ERR_PTR(-EINVAL); in mlx5i_init_rx() 455 mlx5e_rx_res_destroy(priv->rx_res); in mlx5i_cleanup_rx() 456 priv->rx_res = ERR_PTR(-EINVAL); in mlx5i_cleanup_rx()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs.c | 892 struct mlx5e_rx_res *rx_res, in mlx5e_set_inner_ttc_params() argument 907 mlx5e_rx_res_get_tirn_direct(rx_res, 0) : in mlx5e_set_inner_ttc_params() 908 mlx5e_rx_res_get_tirn_rss_inner(rx_res, in mlx5e_set_inner_ttc_params() 914 struct mlx5e_rx_res *rx_res, in mlx5e_set_ttc_params() argument 930 mlx5e_rx_res_get_tirn_direct(rx_res, 0) : in mlx5e_set_ttc_params() 931 mlx5e_rx_res_get_tirn_rss(rx_res, tt); in mlx5e_set_ttc_params() 1274 struct mlx5e_rx_res *rx_res) in mlx5e_create_inner_ttc_table() argument 1288 struct mlx5e_rx_res *rx_res) in mlx5e_create_ttc_table() argument 1298 struct mlx5e_rx_res *rx_res, in mlx5e_create_flow_steering() argument 1316 err = mlx5e_create_inner_ttc_table(fs, rx_res); in mlx5e_create_flow_steering() [all …]
|
| H A D | en_arfs.c | 215 struct mlx5e_rx_res *rx_res, in arfs_add_default_rule() argument 235 dest.tir_num = mlx5e_rx_res_get_tirn_rss(rx_res, tt); in arfs_add_default_rule() 349 struct mlx5e_rx_res *rx_res, in arfs_create_table() argument 375 err = arfs_add_default_rule(fs, rx_res, type); in arfs_create_table() 386 struct mlx5e_rx_res *rx_res, bool ntuple) in mlx5e_arfs_create_tables() argument 407 err = arfs_create_table(fs, rx_res, i); in mlx5e_arfs_create_tables() 597 dest.tir_num = mlx5e_rx_res_get_tirn_direct(priv->rx_res, arfs_rule->rxq); in arfs_add_rule() 620 dst.tir_num = mlx5e_rx_res_get_tirn_direct(priv->rx_res, rxq); in arfs_modify_rule_rq()
|
| H A D | en_fs_ethtool.c | 434 rss = mlx5e_rx_res_rss_get(priv->rx_res, rss_context); in flow_get_tirn() 450 *tirn = mlx5e_rx_res_get_tirn_direct(priv->rx_res, fs->ring_cookie); in flow_get_tirn() 809 index = mlx5e_rx_res_rss_index(priv->rx_res, eth_rule->rss); in mlx5e_ethtool_get_flow() 938 err = mlx5e_rx_res_rss_set_hash_fields(priv->rx_res, rss_idx, tt, rx_hash_field); in mlx5e_set_rss_hash_opt() 960 hash_field = mlx5e_rx_res_rss_get_hash_fields(priv->rx_res, rss_idx, tt); in mlx5e_get_rss_hash_opt()
|
| H A D | en_rep.c | 973 mlx5e_set_ttc_params(priv->fs, priv->rx_res, &ttc_params, false); in mlx5e_create_rep_ttc_table() 1084 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_rep_rx() 1087 if (IS_ERR(priv->rx_res)) { in mlx5e_init_rep_rx() 1088 err = PTR_ERR(priv->rx_res); in mlx5e_init_rep_rx() 1114 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_init_rep_rx() 1115 priv->rx_res = ERR_PTR(-EINVAL); in mlx5e_init_rep_rx() 1130 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_cleanup_rep_rx() 1131 priv->rx_res = ERR_PTR(-EINVAL); in mlx5e_cleanup_rep_rx()
|
| H A D | en_main.c | 2910 struct mlx5e_rx_res *res = priv->rx_res; in mlx5e_modify_tirs_packet_merge() 3119 if (priv->rx_res) { in mlx5e_num_channels_changed() 3189 if (priv->rx_res) in mlx5e_activate_priv_channels() 3202 if (priv->rx_res) in mlx5e_deactivate_priv_channels() 5722 if (IS_ERR(priv->rx_res)) { in mlx5e_init_nic_rx() 5723 err = PTR_ERR(priv->rx_res); in mlx5e_init_nic_rx() 5724 priv->rx_res = NULL; in mlx5e_init_nic_rx() 5756 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_init_nic_rx() 5757 priv->rx_res = NULL; in mlx5e_init_nic_rx() 5771 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_cleanup_nic_rx() [all …]
|
| H A D | en_ethtool.c | 485 if (mlx5e_rx_res_get_current_hash(priv->rx_res).hfunc == ETH_RSS_HASH_XOR) { in mlx5e_ethtool_set_channels() 1469 err = mlx5e_rx_res_rss_get_rxfh(priv->rx_res, rss_context, in mlx5e_get_rxfh() 1508 err = mlx5e_rx_res_rss_destroy(priv->rx_res, *rss_context); in mlx5e_set_rxfh() 1513 err = mlx5e_rx_res_rss_init(priv->rx_res, rss_context, count); in mlx5e_set_rxfh() 1518 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, *rss_context, in mlx5e_set_rxfh()
|
| H A D | Makefile | 25 mlx5_core-$(CONFIG_MLX5_CORE_EN) += en/rqt.o en/tir.o en/rss.o en/rx_res.o \
|
| H A D | en.h | 885 struct mlx5e_rx_res *rx_res; member
|
| H A D | en_tc.c | 770 mlx5e_rx_res_get_current_hash(priv->rx_res).hfunc, in mlx5e_hairpin_create_indirect_rqt() 789 rss_hash = mlx5e_rx_res_get_current_hash(priv->rx_res); in mlx5e_hairpin_create_indirect_tirs()
|
| /linux-6.15/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc.c | 2245 rx_res = kcalloc(priv->num_rx_rings, sizeof(*rx_res), GFP_KERNEL); in enetc_alloc_rx_resources() 2246 if (!rx_res) in enetc_alloc_rx_resources() 2258 return rx_res; in enetc_alloc_rx_resources() 2264 kfree(rx_res); in enetc_alloc_rx_resources() 2277 kfree(rx_res); in enetc_free_rx_resources() 2319 if (priv->rx_res) in enetc_assign_rx_resources() 2327 priv->rx_res = res; in enetc_assign_rx_resources() 2870 if (IS_ERR(rx_res)) { in enetc_open() 2871 err = PTR_ERR(rx_res); in enetc_open() 2980 if (IS_ERR(rx_res)) { in enetc_reconfigure() [all …]
|
| H A D | enetc.h | 412 const struct enetc_bdr_resource *rx_res; member
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
| H A D | pool.c | 136 mlx5e_rx_res_xsk_update(priv->rx_res, &priv->channels, ix, true); in mlx5e_xsk_enable_locked() 185 mlx5e_rx_res_xsk_update(priv->rx_res, &priv->channels, ix, false); in mlx5e_xsk_disable_locked()
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | rx.c | 295 struct iwl_rx_mpdu_res_start *rx_res; in iwl_mvm_rx_rx_mpdu() local 303 if (unlikely(pkt_len < sizeof(*rx_res))) { in iwl_mvm_rx_rx_mpdu() 309 rx_res = (struct iwl_rx_mpdu_res_start *)pkt->data; in iwl_mvm_rx_rx_mpdu() 310 hdr = (struct ieee80211_hdr *)(pkt->data + sizeof(*rx_res)); in iwl_mvm_rx_rx_mpdu() 311 len = le16_to_cpu(rx_res->byte_count); in iwl_mvm_rx_rx_mpdu() 313 if (unlikely(len + sizeof(*rx_res) + sizeof(__le32) > pkt_len)) { in iwl_mvm_rx_rx_mpdu() 319 (pkt->data + sizeof(*rx_res) + len)); in iwl_mvm_rx_rx_mpdu()
|
| /linux-6.15/sound/soc/fsl/ |
| H A D | fsl_xcvr.c | 1518 struct resource *rx_res, *tx_res; in fsl_xcvr_probe() local 1632 rx_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rxfifo"); in fsl_xcvr_probe() 1634 if (!rx_res || !tx_res) { in fsl_xcvr_probe() 1640 xcvr->dma_prms_rx.addr = rx_res->start; in fsl_xcvr_probe()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ktls_rx.c | 656 err = mlx5e_rx_res_tls_tir_create(priv->rx_res, rxq, &priv_rx->tir); in mlx5e_ktls_add_rx()
|