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 | 175 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()
|
H A D | fs_hws.c | 1239 struct mlx5_fs_pool *pr_pool; in mlx5_fs_get_pr_encap_pool() local 1243 pr_pool = xa_load(pr_pools, index); in mlx5_fs_get_pr_encap_pool() 1244 if (pr_pool) in mlx5_fs_get_pr_encap_pool() 1245 return pr_pool; in mlx5_fs_get_pr_encap_pool() 1247 pr_pool = kzalloc(sizeof(*pr_pool), GFP_KERNEL); in mlx5_fs_get_pr_encap_pool() 1248 if (!pr_pool) in mlx5_fs_get_pr_encap_pool() 1250 err = mlx5_fs_hws_pr_pool_init(pr_pool, dev, size, reformat_type); in mlx5_fs_get_pr_encap_pool() 1253 err = xa_insert(pr_pools, index, pr_pool, GFP_KERNEL); in mlx5_fs_get_pr_encap_pool() 1256 return pr_pool; in mlx5_fs_get_pr_encap_pool() 1259 mlx5_fs_hws_pr_pool_cleanup(pr_pool); in mlx5_fs_get_pr_encap_pool() [all …]
|