Lines Matching full:info
35 memcpy(stats, &slab->info, sizeof(slab->info)); in k_mem_slab_stats_raw()
51 ptr->free_bytes = (slab->info.num_blocks - slab->info.num_used) * in k_mem_slab_stats_query()
52 slab->info.block_size; in k_mem_slab_stats_query()
53 ptr->allocated_bytes = slab->info.num_used * slab->info.block_size; in k_mem_slab_stats_query()
55 ptr->max_allocated_bytes = slab->info.max_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()
109 CHECKIF(((slab->info.block_size | (uintptr_t)slab->buffer) & in create_free_list()
115 p = slab->buffer + slab->info.block_size * (slab->info.num_blocks - 1); in create_free_list()
120 p -= slab->info.block_size; in create_free_list()
158 k_obj_core_stats_register(K_OBJ_CORE(slab), &slab->info, in init_mem_slab_obj_core_list()
176 slab->info.num_blocks = num_blocks; in k_mem_slab_init()
177 slab->info.block_size = block_size; in k_mem_slab_init()
179 slab->info.num_used = 0U; in k_mem_slab_init()
183 slab->info.max_used = 0U; in k_mem_slab_init()
195 k_obj_core_stats_register(K_OBJ_CORE(slab), &slab->info, in k_mem_slab_init()
217 (offset < (slab->info.block_size * slab->info.num_blocks)) && in slab_ptr_is_good()
218 ((offset % slab->info.block_size) == 0); in slab_ptr_is_good()
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()
240 slab->info.max_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()
312 slab->info.block_size; in k_mem_slab_runtime_stats_get()
314 stats->max_allocated_bytes = slab->info.max_used * in k_mem_slab_runtime_stats_get()
315 slab->info.block_size; in k_mem_slab_runtime_stats_get()
334 slab->info.max_used = slab->info.num_used; in k_mem_slab_runtime_stats_reset_max()