Lines Matching refs:base_index
12 unsigned int base_index; member
57 unsigned int base_index = 0; in mlxsw_sp_counter_sub_pools_init() local
81 sub_pool->base_index = base_index; in mlxsw_sp_counter_sub_pools_init()
82 base_index += sub_pool->size; in mlxsw_sp_counter_sub_pools_init()
196 stop_index = sub_pool->base_index + sub_pool->size; in mlxsw_sp_counter_alloc()
197 entry_index = sub_pool->base_index; in mlxsw_sp_counter_alloc()
252 u64 base_index; in mlxsw_sp_counter_resources_register() local
281 base_index = 0; in mlxsw_sp_counter_resources_register()
286 if (base_index + sub_pool_size > pool_size) in mlxsw_sp_counter_resources_register()
287 sub_pool_size = pool_size - base_index; in mlxsw_sp_counter_resources_register()
288 base_index += sub_pool_size; in mlxsw_sp_counter_resources_register()