Lines Matching refs:num_used
51 ptr->free_bytes = (slab->info.num_blocks - slab->info.num_used) * in k_mem_slab_stats_query()
53 ptr->allocated_bytes = slab->info.num_used * slab->info.block_size; in k_mem_slab_stats_query()
75 slab->info.max_used = slab->info.num_used; in k_mem_slab_stats_reset()
179 slab->info.num_used = 0U; in k_mem_slab_init()
232 slab->info.num_used++; in k_mem_slab_alloc()
234 slab->info.num_used == slab->info.num_blocks) || in k_mem_slab_alloc()
239 slab->info.max_used = MAX(slab->info.num_used, in k_mem_slab_alloc()
295 slab->info.num_used--; in k_mem_slab_free()
310 stats->allocated_bytes = slab->info.num_used * slab->info.block_size; in k_mem_slab_runtime_stats_get()
311 stats->free_bytes = (slab->info.num_blocks - slab->info.num_used) * in k_mem_slab_runtime_stats_get()
334 slab->info.max_used = slab->info.num_used; in k_mem_slab_runtime_stats_reset_max()