| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | rx_res.c | 326 struct mlx5e_rx_res *rx_res; in mlx5e_rx_res_alloc() local 328 rx_res = kvzalloc_obj(*rx_res); in mlx5e_rx_res_alloc() 329 if (!rx_res) in mlx5e_rx_res_alloc() 332 rx_res->rss_rqns = kvcalloc(max_nch, sizeof(*rx_res->rss_rqns), GFP_KERNEL); in mlx5e_rx_res_alloc() 333 if (!rx_res->rss_rqns) { in mlx5e_rx_res_alloc() 334 kvfree(rx_res); in mlx5e_rx_res_alloc() 339 rx_res->rss_vhca_ids = kvcalloc(max_nch, sizeof(*rx_res->rss_vhca_ids), GFP_KERNEL); in mlx5e_rx_res_alloc() 340 if (!rx_res->rss_vhca_ids) { in mlx5e_rx_res_alloc() 341 kvfree(rx_res->rss_rqns); in mlx5e_rx_res_alloc() 342 kvfree(rx_res); in mlx5e_rx_res_alloc() [all …]
|
| H A D | reporter_rx.c | 362 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 365 unsigned int max_nch = mlx5e_rx_res_get_max_nch(rx_res); in mlx5e_rx_reporter_diagnose_rx_res_dir_tirns() 374 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() 375 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() 410 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 413 struct mlx5e_rss *rss = mlx5e_rx_res_rss_get(rx_res, rss_idx); in mlx5e_rx_reporter_diagnose_rx_res_rss_ix() 429 static void mlx5e_rx_reporter_diagnose_rx_res_rss(struct mlx5e_rx_res *rx_res, in mlx5e_rx_reporter_diagnose_rx_res_rss() argument 436 mlx5e_rx_reporter_diagnose_rx_res_rss_ix(rx_res, rss_ix, fmsg); in mlx5e_rx_reporter_diagnose_rx_res_rss() 443 struct mlx5e_rx_res *rx_res = priv->rx_res; in mlx5e_rx_reporter_diagnose_rx_res() local 446 mlx5e_rx_reporter_diagnose_rx_res_dir_tirns(rx_res, fmsg); in mlx5e_rx_reporter_diagnose_rx_res() [all …]
|
| H A D | fs.h | 107 struct mlx5e_rx_res *rx_res, bool ntuple); 115 struct mlx5e_rx_res *rx_res, bool ntuple) in mlx5e_arfs_create_tables() argument 134 struct mlx5e_rx_res *rx_res, 140 struct mlx5e_rx_res *rx_res); 148 struct mlx5e_rx_res *rx_res,
|
| H A D | ptp.c | 819 u32 tirn = mlx5e_rx_res_get_tirn_ptp(priv->rx_res); in mlx5e_ptp_rx_set_fs()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs.c | 896 struct mlx5e_rx_res *rx_res, in mlx5e_set_inner_ttc_params() argument 914 mlx5e_rx_res_get_tirn_direct(rx_res, 0) : in mlx5e_set_inner_ttc_params() 915 mlx5e_rx_res_get_tirn_rss_inner(rx_res, in mlx5e_set_inner_ttc_params() 928 struct mlx5e_rx_res *rx_res, in mlx5e_set_ttc_params() argument 951 mlx5e_rx_res_get_tirn_direct(rx_res, 0) : in mlx5e_set_ttc_params() 952 mlx5e_rx_res_get_tirn_rss(rx_res, tt); in mlx5e_set_ttc_params() 1295 struct mlx5e_rx_res *rx_res) in mlx5e_create_inner_ttc_table() argument 1302 mlx5e_set_inner_ttc_params(fs, rx_res, &ttc_params); in mlx5e_create_inner_ttc_table() 1309 struct mlx5e_rx_res *rx_res) in mlx5e_create_ttc_table() argument 1313 mlx5e_set_ttc_params(fs, rx_res, &ttc_params, true, true); in mlx5e_create_ttc_table() [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() 348 struct mlx5e_rx_res *rx_res, in arfs_create_table() argument 374 err = arfs_add_default_rule(fs, rx_res, type); in arfs_create_table() 385 struct mlx5e_rx_res *rx_res, bool ntuple) in mlx5e_arfs_create_tables() argument 406 err = arfs_create_table(fs, rx_res, i); in mlx5e_arfs_create_tables() 596 dest.tir_num = mlx5e_rx_res_get_tirn_direct(priv->rx_res, arfs_rule->rxq); in arfs_add_rule() 619 dst.tir_num = mlx5e_rx_res_get_tirn_direct(priv->rx_res, rxq); in arfs_modify_rule_rq()
|
| H A D | en_rep.c | 977 mlx5e_set_ttc_params(priv->fs, priv->rx_res, &ttc_params, false, false); in mlx5e_create_rep_ttc_table() 1088 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_rep_rx() 1091 if (IS_ERR(priv->rx_res)) { in mlx5e_init_rep_rx() 1092 err = PTR_ERR(priv->rx_res); in mlx5e_init_rep_rx() 1118 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_init_rep_rx() 1119 priv->rx_res = ERR_PTR(-EINVAL); in mlx5e_init_rep_rx() 1134 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_cleanup_rep_rx() 1135 priv->rx_res = ERR_PTR(-EINVAL); in mlx5e_cleanup_rep_rx()
|
| 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_ethtool_set_rxfh_fields() 959 hash_field = mlx5e_rx_res_rss_get_hash_fields(priv->rx_res, rss_idx, tt); in mlx5e_ethtool_get_rxfh_fields()
|
| H A D | en_main.c | 3026 struct mlx5e_rx_res *res = priv->rx_res; in mlx5e_modify_tirs_packet_merge() 3235 if (priv->rx_res) { in mlx5e_num_channels_changed() 3236 mlx5e_rx_res_rss_update_num_channels(priv->rx_res, count); in mlx5e_num_channels_changed() 3239 mlx5e_rx_res_rss_set_indir_uniform(priv->rx_res, count); in mlx5e_num_channels_changed() 3305 if (priv->rx_res) in mlx5e_activate_priv_channels() 3306 mlx5e_rx_res_channels_activate(priv->rx_res, &priv->channels); in mlx5e_activate_priv_channels() 3318 if (priv->rx_res) in mlx5e_deactivate_priv_channels() 3319 mlx5e_rx_res_channels_deactivate(priv->rx_res); in mlx5e_deactivate_priv_channels() 5956 priv->rx_res = mlx5e_rx_res_create(priv->mdev, features, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_nic_rx() 5959 if (IS_ERR(priv->rx_res)) { in mlx5e_init_nic_rx() [all …]
|
| H A D | en.h | 912 struct mlx5e_rx_res *rx_res; member
|
| H A D | en_tc.c | 771 mlx5e_rx_res_get_current_hash(priv->rx_res).hfunc, in mlx5e_hairpin_create_indirect_rqt() 790 rss_hash = mlx5e_rx_res_get_current_hash(priv->rx_res); in mlx5e_hairpin_create_indirect_tirs()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc.c | 2340 struct enetc_bdr_resource *rx_res; in enetc_alloc_rx_resources() local 2343 rx_res = kzalloc_objs(*rx_res, priv->num_rx_rings); in enetc_alloc_rx_resources() 2344 if (!rx_res) in enetc_alloc_rx_resources() 2350 err = enetc_alloc_rx_resource(&rx_res[i], rx_ring->dev, in enetc_alloc_rx_resources() 2356 return rx_res; in enetc_alloc_rx_resources() 2360 enetc_free_rx_resource(&rx_res[i]); in enetc_alloc_rx_resources() 2362 kfree(rx_res); in enetc_alloc_rx_resources() 2367 static void enetc_free_rx_resources(const struct enetc_bdr_resource *rx_res, in enetc_free_rx_resources() argument 2373 enetc_free_rx_resource(&rx_res[i]); in enetc_free_rx_resources() 2375 kfree(rx_res); in enetc_free_rx_resources() [all …]
|
| H A D | enetc.h | 461 const struct enetc_bdr_resource *rx_res; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
| H A D | pool.c | 135 mlx5e_rx_res_xsk_update(priv->rx_res, &priv->channels, ix, true); in mlx5e_xsk_enable_locked() 184 mlx5e_rx_res_xsk_update(priv->rx_res, &priv->channels, ix, false); in mlx5e_xsk_disable_locked()
|
| /linux/sound/soc/fsl/ |
| H A D | fsl_xcvr.c | 1542 struct resource *rx_res, *tx_res; in fsl_xcvr_probe() local 1641 rx_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rxfifo"); in fsl_xcvr_probe() 1643 if (!rx_res || !tx_res) in fsl_xcvr_probe() 1647 xcvr->dma_prms_rx.addr = rx_res->start; in fsl_xcvr_probe()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ktls_rx.c | 684 err = mlx5e_rx_res_tls_tir_create(priv->rx_res, rxq, &priv_rx->tir); in mlx5e_ktls_add_rx()
|