Home
last modified time | relevance | path

Searched refs:active_entries_count (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_cnt.c18 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()
137 atomic_set(&pool->active_entries_count, 0); in mlxsw_sp_counter_pool_init()
178 WARN_ON(atomic_read(&pool->active_entries_count)); in mlxsw_sp_counter_pool_fini()
217 atomic_add(sub_pool->entry_size, &sub_pool->active_entries_count); in mlxsw_sp_counter_alloc()
218 atomic_add(sub_pool->entry_size, &pool->active_entries_count); in mlxsw_sp_counter_alloc()
[all …]
Dspectrum_span.c32 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()