Home
last modified time | relevance | path

Searched refs:pr_pool (Results 1 – 3 of 3) sorted by relevance

/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dfs_hws_pools.h52 int mlx5_fs_hws_pr_pool_init(struct mlx5_fs_pool *pr_pool,
55 void mlx5_fs_hws_pr_pool_cleanup(struct mlx5_fs_pool *pr_pool);
57 struct mlx5_fs_hws_pr *mlx5_fs_hws_pr_pool_acquire_pr(struct mlx5_fs_pool *pr_pool);
58 void mlx5_fs_hws_pr_pool_release_pr(struct mlx5_fs_pool *pr_pool,
H A Dfs_hws.c1248 if (pr_pool) in mlx5_fs_get_pr_encap_pool()
1249 return pr_pool; in mlx5_fs_get_pr_encap_pool()
1251 pr_pool = kzalloc(sizeof(*pr_pool), GFP_KERNEL); in mlx5_fs_get_pr_encap_pool()
1252 if (!pr_pool) in mlx5_fs_get_pr_encap_pool()
1260 return pr_pool; in mlx5_fs_get_pr_encap_pool()
1265 kfree(pr_pool); in mlx5_fs_get_pr_encap_pool()
1307 if (IS_ERR(pr_pool)) in mlx5_cmd_hws_packet_reformat_alloc()
1308 return PTR_ERR(pr_pool); in mlx5_cmd_hws_packet_reformat_alloc()
1316 if (IS_ERR(pr_pool)) in mlx5_cmd_hws_packet_reformat_alloc()
1344 if (pr_pool) { in mlx5_cmd_hws_packet_reformat_alloc()
[all …]
H A Dfs_hws_pools.c175 int mlx5_fs_hws_pr_pool_init(struct mlx5_fs_pool *pr_pool, in mlx5_fs_hws_pr_pool_init() argument
192 mlx5_fs_pool_init(pr_pool, dev, &mlx5_fs_hws_pr_pool_ops, pr_pool_ctx); in mlx5_fs_hws_pr_pool_init()
196 void mlx5_fs_hws_pr_pool_cleanup(struct mlx5_fs_pool *pr_pool) in mlx5_fs_hws_pr_pool_cleanup() argument
200 mlx5_fs_pool_cleanup(pr_pool); in mlx5_fs_hws_pr_pool_cleanup()
201 pr_pool_ctx = pr_pool->pool_ctx; in mlx5_fs_hws_pr_pool_cleanup()
208 mlx5_fs_hws_pr_pool_acquire_pr(struct mlx5_fs_pool *pr_pool) in mlx5_fs_hws_pr_pool_acquire_pr() argument
214 err = mlx5_fs_pool_acquire_index(pr_pool, &pool_index); in mlx5_fs_hws_pr_pool_acquire_pr()
222 void mlx5_fs_hws_pr_pool_release_pr(struct mlx5_fs_pool *pr_pool, in mlx5_fs_hws_pr_pool_release_pr() argument
227 struct mlx5_core_dev *dev = pr_pool->dev; in mlx5_fs_hws_pr_pool_release_pr()
231 if (mlx5_fs_pool_release_index(pr_pool, &pool_index)) in mlx5_fs_hws_pr_pool_release_pr()