Lines Matching refs:pool_index
51 u32 pool_index : DEPOT_POOL_INDEX_BITS; member
88 static int pool_index; variable
234 if (stack_pools[pool_index] == NULL) { in depot_init_pool()
236 stack_pools[pool_index] = *prealloc; in depot_init_pool()
243 if (pool_index + 1 < DEPOT_MAX_POOLS) { in depot_init_pool()
244 stack_pools[pool_index + 1] = *prealloc; in depot_init_pool()
270 if (unlikely(pool_index + 1 >= DEPOT_MAX_POOLS)) { in depot_alloc_stack()
280 WRITE_ONCE(pool_index, pool_index + 1); in depot_alloc_stack()
288 if (pool_index + 1 < DEPOT_MAX_POOLS) in depot_alloc_stack()
297 if (stack_pools[pool_index] == NULL) in depot_alloc_stack()
301 stack = stack_pools[pool_index] + pool_offset; in depot_alloc_stack()
304 stack->handle.pool_index = pool_index; in depot_alloc_stack()
468 int pool_index_cached = READ_ONCE(pool_index); in stack_depot_fetch()
483 if (parts.pool_index > pool_index_cached) { in stack_depot_fetch()
485 parts.pool_index, pool_index_cached, handle); in stack_depot_fetch()
488 pool = stack_pools[parts.pool_index]; in stack_depot_fetch()