Searched refs:active_entries_count (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_cnt.c | 18 atomic_t active_entries_count; member 25 atomic_t active_entries_count; member 49 return atomic_read(&sub_pool->active_entries_count); in mlxsw_sp_counter_sub_pool_occ_get() 83 atomic_set(&sub_pool->active_entries_count, 0); in mlxsw_sp_counter_sub_pools_init() 107 WARN_ON(atomic_read(&sub_pool->active_entries_count)); in mlxsw_sp_counter_sub_pools_fini() 117 return atomic_read(&pool->active_entries_count); in mlxsw_sp_counter_pool_occ_get() 136 atomic_set(&pool->active_entries_count, 0); in mlxsw_sp_counter_pool_init() 175 WARN_ON(atomic_read(&pool->active_entries_count)); in mlxsw_sp_counter_pool_fini() 214 atomic_add(sub_pool->entry_size, &sub_pool->active_entries_count); in mlxsw_sp_counter_alloc() 215 atomic_add(sub_pool->entry_size, &pool->active_entries_count); in mlxsw_sp_counter_alloc() [all...] |
H A D | spectrum_span.c | 32 atomic_t active_entries_count; member 77 return atomic_read(&mlxsw_sp->span->active_entries_count); in mlxsw_sp_span_occ_get() 95 atomic_set(&span->active_entries_count, 0); in mlxsw_sp_span_init() 875 atomic_inc(&mlxsw_sp->span->active_entries_count); in mlxsw_sp_span_entry_create() 888 atomic_dec(&mlxsw_sp->span->active_entries_count); in mlxsw_sp_span_entry_destroy() 1059 if (atomic_read(&mlxsw_sp->span->active_entries_count) == 0) in mlxsw_sp_span_respin()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_cnt.c | 18 atomic_t active_entries_count; member 25 atomic_t active_entries_count; member 49 return atomic_read(&sub_pool->active_entries_count); in mlxsw_sp_counter_sub_pool_occ_get() 83 atomic_set(&sub_pool->active_entries_count, 0); in mlxsw_sp_counter_sub_pools_init() 107 WARN_ON(atomic_read(&sub_pool->active_entries_count)); in mlxsw_sp_counter_sub_pools_fini() 117 return atomic_read(&pool->active_entries_count); in mlxsw_sp_counter_pool_occ_get() 136 atomic_set(&pool->active_entries_count, 0); in mlxsw_sp_counter_pool_init() 175 WARN_ON(atomic_read(&pool->active_entries_count)); in mlxsw_sp_counter_pool_fini() 214 atomic_add(sub_pool->entry_size, &sub_pool->active_entries_count); in mlxsw_sp_counter_alloc() 215 atomic_add(sub_pool->entry_size, &pool->active_entries_count); in mlxsw_sp_counter_alloc() [all...] |
H A D | spectrum_span.c | 32 atomic_t active_entries_count; member 77 return atomic_read(&mlxsw_sp->span->active_entries_count); in mlxsw_sp_span_occ_get() 95 atomic_set(&span->active_entries_count, 0); in mlxsw_sp_span_init() 877 atomic_inc(&mlxsw_sp->span->active_entries_count); in mlxsw_sp_span_entry_create() 890 atomic_dec(&mlxsw_sp->span->active_entries_count); in mlxsw_sp_span_entry_destroy() 1062 if (atomic_read(&mlxsw_sp->span->active_entries_count) == 0) in mlxsw_sp_span_respin()
|
Completed in 9 milliseconds