Home
last modified time | relevance | path

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

/linux/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_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, in mlx5_fs_hws_pr_pool_release_pr()
[all...]
H A Dfs_hws.c1238 struct mlx5_fs_pool *pr_pool; in mlx5_fs_get_pr_encap_pool() local
1242 pr_pool = xa_load(pr_pools, index); in mlx5_fs_get_pr_encap_pool()
1243 if (pr_pool) in mlx5_fs_get_pr_encap_pool()
1244 return pr_pool; in mlx5_fs_get_pr_encap_pool()
1246 pr_pool = kzalloc(sizeof(*pr_pool), GFP_KERNEL); in mlx5_fs_get_pr_encap_pool()
1247 if (!pr_pool) in mlx5_fs_get_pr_encap_pool()
1249 err = mlx5_fs_hws_pr_pool_init(pr_pool, dev, size, reformat_type); in mlx5_fs_get_pr_encap_pool()
1252 err = xa_insert(pr_pools, index, pr_pool, GFP_KERNEL); in mlx5_fs_get_pr_encap_pool()
1255 return pr_pool; in mlx5_fs_get_pr_encap_pool()
1283 struct mlx5_fs_pool *pr_pool = NULL; mlx5_cmd_hws_packet_reformat_alloc() local
1377 struct mlx5_fs_pool *pr_pool; mlx5_cmd_hws_packet_reformat_dealloc() local
[all...]