Home
last modified time | relevance | path

Searched refs:used_blocks (Results 1 – 5 of 5) sorted by relevance

/Zephyr-Core-3.5.0/lib/os/
Dmem_blocks.c37 mem_block->info.used_blocks += (uint32_t)num_blocks; in alloc_blocks()
39 if (mem_block->info.max_used_blocks < mem_block->info.used_blocks) { in alloc_blocks()
40 mem_block->info.max_used_blocks = mem_block->info.used_blocks; in alloc_blocks()
79 mem_block->info.used_blocks -= (uint32_t)num_blocks; in free_blocks()
233 mem_block->info.used_blocks += (uint32_t)count; in sys_mem_blocks_get()
235 if (mem_block->info.max_used_blocks < mem_block->info.used_blocks) { in sys_mem_blocks_get()
236 mem_block->info.max_used_blocks = mem_block->info.used_blocks; in sys_mem_blocks_get()
437 stats->allocated_bytes = mem_block->info.used_blocks << in sys_mem_blocks_runtime_stats_get()
454 mem_block->info.max_used_blocks = mem_block->info.used_blocks; in sys_mem_blocks_runtime_stats_reset_max()
487 ptr->free_bytes = (block->info.num_blocks - block->info.used_blocks) << in sys_mem_blocks_stats_query()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c420 zassert_equal(raw.used_blocks, expected->used_blocks, in test_mem_block_raw()
422 str, expected->used_blocks, raw.used_blocks); in test_mem_block_raw()
459 .used_blocks = 0, .max_used_blocks = 0 in ZTEST()
491 raw.used_blocks++; in ZTEST()
506 raw.used_blocks++; in ZTEST()
520 raw.used_blocks--; in ZTEST()
530 raw.max_used_blocks = raw.used_blocks; in ZTEST()
/Zephyr-Core-3.5.0/subsys/fs/ext2/
Dext2_format.c186 uint32_t used_blocks = occupied_blocks - first_data_block; in ext2_format() local
189 blocks_count, blocks_per_group, occupied_blocks, used_blocks); in ext2_format()
279 set_bitmap_bits(bbitmap, used_blocks); in ext2_format()
Dext2_impl.c706 uint32_t used_blocks = new_size / block_size + (new_size % block_size != 0); in ext2_inode_trunc() local
739 uint32_t start_blk = used_blocks; in ext2_inode_trunc()
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dmem_blocks.h89 uint32_t used_blocks; /* Current number of blocks in use */ member