Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drx_res.c4 #include "rx_res.h"
344 struct mlx5e_rx_res *rx_res; in mlx5e_rx_res_alloc()
346 rx_res = kvzalloc_obj(*rx_res); in mlx5e_rx_res_alloc()
347 if (!rx_res) in mlx5e_rx_res_alloc()
350 rx_res->rss_rqns = kvcalloc(max_nch, sizeof(*rx_res->rss_rqns), GFP_KERNEL); in mlx5e_rx_res_channels_init()
351 if (!rx_res->rss_rqns) { in mlx5e_rx_res_channels_init()
352 kvfree(rx_res); in mlx5e_rx_res_channels_init()
357 rx_res in mlx5e_rx_res_channels_init()
326 struct mlx5e_rx_res *rx_res; mlx5e_rx_res_alloc() local
[all...]
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 …]
/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_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_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()
1514 mlx5e_rx_res_rss_get_rxfh(priv->rx_res, 0, rxfh->indir, rxfh->key, in mlx5e_rxfh_hfunc_check()
1535 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, rxfh->rss_context, in mlx5e_set_rxfh()
1556 err = mlx5e_rx_res_rss_init(priv->rx_res, rxfh->rss_context, in mlx5e_create_rxfh_context()
1561 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, rxfh->rss_context, in mlx5e_create_rxfh_context()
1566 WARN_ON(mlx5e_rx_res_rss_destroy(priv->rx_res, in mlx5e_create_rxfh_context()
1571 mlx5e_rx_res_rss_get_rxfh(priv->rx_res, rxf in mlx5e_create_rxfh_context()
[all...]
H A Den_main.c3090 struct mlx5e_rx_res *res = priv->rx_res; in mlx5e_modify_tirs_packet_merge()
3298 /* This function may be called on attach, before priv->rx_res is created. */ in mlx5e_num_channels_changed()
3299 if (priv->rx_res) in mlx5e_num_channels_changed()
3300 mlx5e_rx_res_rss_update_num_channels(priv->rx_res, count, in mlx5e_num_channels_changed()
3366 if (priv->rx_res) in mlx5e_activate_priv_channels()
3367 mlx5e_rx_res_channels_activate(priv->rx_res, &priv->channels); in mlx5e_activate_priv_channels()
3379 if (priv->rx_res)
3380 mlx5e_rx_res_channels_deactivate(priv->rx_res); in mlx5e_deactivate_priv_channels()
6106 priv->rx_res = mlx5e_rx_res_create(priv->mdev, features, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_nic_rx()
6109 if (IS_ERR(priv->rx_res)) { in mlx5e_init_nic_rx()
[all...]
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.c2340 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 Denetc.h461 const struct enetc_bdr_resource *rx_res;
464 const struct enetc_bdr_resource *rx_res; global() member
/linux/sound/soc/fsl/
H A Dfsl_xcvr.c1629 struct resource *rx_res, *tx_res; in fsl_xcvr_probe() local
1728 rx_res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rxfifo"); in fsl_xcvr_probe()
1730 if (!rx_res || !tx_res) in fsl_xcvr_probe()
1734 xcvr->dma_prms_rx.addr = rx_res->start; in fsl_xcvr_probe()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_rx.c684 err = mlx5e_rx_res_tls_tir_create(priv->rx_res, rxq, &priv_rx->tir); in mlx5e_ktls_add_rx()