Searched refs:fc_bulk (Results 1 – 2 of 2) sorted by relevance
224 static void mlx5_fc_bulk_init(struct mlx5_fc_bulk *fc_bulk, u32 base_id) in mlx5_fc_bulk_init() argument226 fc_bulk->base_id = base_id; in mlx5_fc_bulk_init()227 refcount_set(&fc_bulk->hws_data.hws_action_refcount, 0); in mlx5_fc_bulk_init()228 mutex_init(&fc_bulk->hws_data.lock); in mlx5_fc_bulk_init()233 struct mlx5_fc_bulk *fc_bulk; in mlx5_fc_single_alloc() local241 fc_bulk = kzalloc_obj(*fc_bulk); in mlx5_fc_single_alloc()242 if (!fc_bulk) { in mlx5_fc_single_alloc()251 mlx5_fs_bulk_init(&fc_bulk->fs_bulk, 1); in mlx5_fc_single_alloc()252 mlx5_fc_bulk_init(fc_bulk, counter->id); in mlx5_fc_single_alloc()253 counter->bulk = fc_bulk; in mlx5_fc_single_alloc()[all …]
413 struct mlx5_fc_bulk *fc_bulk = counter->bulk; in mlx5_fc_get_hws_action() local417 create_ctx.id = fc_bulk->base_id; in mlx5_fc_get_hws_action()421 hws_action = mlx5_fs_get_hws_action(&fc_bulk->hws_data, &create_ctx); in mlx5_fc_get_hws_action()