Searched refs:pr_pool (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | fs_hws_pools.c | 177 int mlx5_fs_hws_pr_pool_init(struct mlx5_fs_pool *pr_pool, in mlx5_fs_hws_pr_pool_init() argument 194 mlx5_fs_pool_init(pr_pool, dev, &mlx5_fs_hws_pr_pool_ops, pr_pool_ctx); in mlx5_fs_hws_pr_pool_init() 198 void mlx5_fs_hws_pr_pool_cleanup(struct mlx5_fs_pool *pr_pool) in mlx5_fs_hws_pr_pool_cleanup() argument 202 mlx5_fs_pool_cleanup(pr_pool); in mlx5_fs_hws_pr_pool_cleanup() 203 pr_pool_ctx = pr_pool->pool_ctx; in mlx5_fs_hws_pr_pool_cleanup() 210 mlx5_fs_hws_pr_pool_acquire_pr(struct mlx5_fs_pool *pr_pool) in mlx5_fs_hws_pr_pool_acquire_pr() argument 216 err = mlx5_fs_pool_acquire_index(pr_pool, &pool_index); in mlx5_fs_hws_pr_pool_acquire_pr() 224 void mlx5_fs_hws_pr_pool_release_pr(struct mlx5_fs_pool *pr_pool, in mlx5_fs_hws_pr_pool_release_pr() argument 229 struct mlx5_core_dev *dev = pr_pool->dev; in mlx5_fs_hws_pr_pool_release_pr() 233 if (mlx5_fs_pool_release_index(pr_pool, &pool_index)) in mlx5_fs_hws_pr_pool_release_pr()
|
| H A D | fs_hws.c | 1231 struct mlx5_fs_pool *pr_pool; in mlx5_fs_get_pr_encap_pool() local 1235 pr_pool = xa_load(pr_pools, index); in mlx5_fs_get_pr_encap_pool() 1236 if (pr_pool) in mlx5_fs_get_pr_encap_pool() 1237 return pr_pool; in mlx5_fs_get_pr_encap_pool() 1239 pr_pool = kzalloc_obj(*pr_pool); in mlx5_fs_get_pr_encap_pool() 1240 if (!pr_pool) in mlx5_fs_get_pr_encap_pool() 1242 err = mlx5_fs_hws_pr_pool_init(pr_pool, dev, size, reformat_type); in mlx5_fs_get_pr_encap_pool() 1245 err = xa_insert(pr_pools, index, pr_pool, GFP_KERNEL); in mlx5_fs_get_pr_encap_pool() 1248 return pr_pool; in mlx5_fs_get_pr_encap_pool() 1251 mlx5_fs_hws_pr_pool_cleanup(pr_pool); in mlx5_fs_get_pr_encap_pool() [all …]
|