Home
last modified time | relevance | path

Searched refs:rx_res (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dreporter_rx.c362 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 Dfs.h112 struct mlx5e_rx_res *rx_res, bool ntuple);
120 struct mlx5e_rx_res *rx_res, bool ntuple) in mlx5e_arfs_create_tables() argument
139 struct mlx5e_rx_res *rx_res,
145 struct mlx5e_rx_res *rx_res);
153 struct mlx5e_rx_res *rx_res,
/linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dipoib.c396 err = mlx5e_arfs_create_tables(priv->fs, priv->rx_res, in mlx5i_create_flow_steering()
404 err = mlx5e_create_ttc_table(priv->fs, priv->rx_res); in mlx5i_create_flow_steering()
451 priv->rx_res = mlx5e_rx_res_create(priv->mdev, features, priv->max_nch, in mlx5i_init_rx()
455 if (IS_ERR(priv->rx_res)) { in mlx5i_init_rx()
456 err = PTR_ERR(priv->rx_res); in mlx5i_init_rx()
467 mlx5e_rx_res_destroy(priv->rx_res); in mlx5i_init_rx()
468 priv->rx_res = ERR_PTR(-EINVAL); in mlx5i_init_rx()
480 mlx5e_rx_res_destroy(priv->rx_res); in mlx5i_cleanup_rx()
481 priv->rx_res = ERR_PTR(-EINVAL); in mlx5i_cleanup_rx()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_arfs.c215 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 Den_ethtool.c527 has_rss_ctxs = priv->rx_res && mlx5e_rx_res_rss_cnt(priv->rx_res) > 1; in mlx5e_ethtool_set_channels()
536 if (!priv->rx_res) { in mlx5e_ethtool_set_channels()
542 rss0 = mlx5e_rx_res_rss_get(priv->rx_res, 0); in mlx5e_ethtool_set_channels()
1515 mlx5e_rx_res_rss_get_rxfh(priv->rx_res, 0, rxfh->indir, rxfh->key, in mlx5e_get_rxfh()
1536 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, rxfh->rss_context, in mlx5e_set_rxfh()
1557 err = mlx5e_rx_res_rss_init(priv->rx_res, rxfh->rss_context, in mlx5e_create_rxfh_context()
1562 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, rxfh->rss_context, in mlx5e_create_rxfh_context()
1567 WARN_ON(mlx5e_rx_res_rss_destroy(priv->rx_res, in mlx5e_create_rxfh_context()
1572 mlx5e_rx_res_rss_get_rxfh(priv->rx_res, rxfh->rss_context, in mlx5e_create_rxfh_context()
1596 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, rxfh->rss_context, in mlx5e_modify_rxfh_context()
[all …]
H A Den_rep.c985 mlx5e_set_ttc_params(priv->fs, priv->rx_res, &ttc_params, false, false); in mlx5e_create_rep_ttc_table()
1096 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_rep_rx()
1099 if (IS_ERR(priv->rx_res)) { in mlx5e_init_rep_rx()
1100 err = PTR_ERR(priv->rx_res); in mlx5e_init_rep_rx()
1126 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_init_rep_rx()
1127 priv->rx_res = ERR_PTR(-EINVAL); in mlx5e_init_rep_rx()
1142 mlx5e_rx_res_destroy(priv->rx_res); in mlx5e_cleanup_rep_rx()
1143 priv->rx_res = ERR_PTR(-EINVAL); in mlx5e_cleanup_rep_rx()
H A Den_fs_ethtool.c434 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 Den_main.c3092 struct mlx5e_rx_res *res = priv->rx_res; in mlx5e_modify_tirs_packet_merge()
3301 if (priv->rx_res) in mlx5e_num_channels_changed()
3302 mlx5e_rx_res_rss_update_num_channels(priv->rx_res, count, in mlx5e_num_channels_changed()
3368 if (priv->rx_res) in mlx5e_activate_priv_channels()
3369 mlx5e_rx_res_channels_activate(priv->rx_res, &priv->channels); in mlx5e_activate_priv_channels()
3381 if (priv->rx_res) in mlx5e_deactivate_priv_channels()
3382 mlx5e_rx_res_channels_deactivate(priv->rx_res); in mlx5e_deactivate_priv_channels()
6109 priv->rx_res = mlx5e_rx_res_create(priv->mdev, features, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_nic_rx()
6112 if (IS_ERR(priv->rx_res)) { in mlx5e_init_nic_rx()
6113 err = PTR_ERR(priv->rx_res); in mlx5e_init_nic_rx()
[all …]
H A Den.h921 struct mlx5e_rx_res *rx_res; member
H A Den_tc.c772 mlx5e_rx_res_get_current_hash(priv->rx_res).hfunc, in mlx5e_hairpin_create_indirect_rqt()
791 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 Denetc.c2374 struct enetc_bdr_resource *rx_res; in enetc_alloc_rx_resources() local
2377 rx_res = kzalloc_objs(*rx_res, priv->num_rx_rings); in enetc_alloc_rx_resources()
2378 if (!rx_res) in enetc_alloc_rx_resources()
2384 err = enetc_alloc_rx_resource(&rx_res[i], rx_ring->dev, in enetc_alloc_rx_resources()
2390 return rx_res; in enetc_alloc_rx_resources()
2394 enetc_free_rx_resource(&rx_res[i]); in enetc_alloc_rx_resources()
2396 kfree(rx_res); in enetc_alloc_rx_resources()
2401 static void enetc_free_rx_resources(const struct enetc_bdr_resource *rx_res, in enetc_free_rx_resources() argument
2407 enetc_free_rx_resource(&rx_res[i]); in enetc_free_rx_resources()
2409 kfree(rx_res); in enetc_free_rx_resources()
[all …]
H A Denetc.h467 const struct enetc_bdr_resource *rx_res; member
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drx.c295 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/sound/soc/fsl/
H A Dfsl_xcvr.c1618 struct resource *rx_res, *tx_res;
1717 rx_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rxfifo"); in fsl_xcvr_probe()
1719 if (!rx_res || !tx_res) in fsl_xcvr_probe()
1723 xcvr->dma_prms_rx.addr = rx_res->start; in fsl_xcvr_probe()
1629 struct resource *rx_res, *tx_res; fsl_xcvr_probe() local