Home
last modified time | relevance | path

Searched refs:BLK_SZ (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.5.0/tests/lib/mem_blocks_stats/src/
Dmain.c14 #define BLK_SZ 64 macro
17 SYS_MEM_BLOCKS_DEFINE(mem_block_01, BLK_SZ, NUM_BLOCKS, 4);
58 zassert_equal(stats.free_bytes, BLK_SZ * NUM_BLOCKS, in ZTEST()
60 BLK_SZ * NUM_BLOCKS, stats.free_bytes); in ZTEST()
76 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 3), in ZTEST()
78 BLK_SZ * (NUM_BLOCKS - 3), stats.free_bytes); in ZTEST()
79 zassert_equal(stats.allocated_bytes, 3 * BLK_SZ, in ZTEST()
81 3 * BLK_SZ, stats.allocated_bytes); in ZTEST()
82 zassert_equal(stats.max_allocated_bytes, 3 * BLK_SZ, in ZTEST()
84 3 * BLK_SZ, stats.max_allocated_bytes); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_stats/src/
Dmain.c10 #define BLK_SZ 64 macro
13 K_MEM_SLAB_DEFINE(kmslab, BLK_SZ, NUM_BLOCKS, 4);
54 zassert_equal(stats.free_bytes, BLK_SZ * NUM_BLOCKS, in ZTEST()
56 BLK_SZ * NUM_BLOCKS, stats.free_bytes); in ZTEST()
78 zassert_equal(stats.free_bytes, BLK_SZ * (NUM_BLOCKS - 3), in ZTEST()
80 BLK_SZ * (NUM_BLOCKS - 3), stats.free_bytes); in ZTEST()
81 zassert_equal(stats.allocated_bytes, 3 * BLK_SZ, in ZTEST()
83 3 * BLK_SZ, stats.allocated_bytes); in ZTEST()
84 zassert_equal(stats.max_allocated_bytes, 3 * BLK_SZ, in ZTEST()
86 3 * BLK_SZ, stats.max_allocated_bytes); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/tests/lib/mem_blocks/src/
Dmain.c14 #define BLK_SZ 64 macro
17 SYS_MEM_BLOCKS_DEFINE(mem_block_01, BLK_SZ, NUM_BLOCKS, 4);
19 static uint8_t mem_block_02_buf[BLK_SZ * NUM_BLOCKS];
21 BLK_SZ, NUM_BLOCKS,
271 ret = sys_mem_blocks_get(&mem_block_01, mem_block_01.buffer + BLK_SZ, 2); in ZTEST()
295 ret = sys_mem_blocks_get(&mem_block_01, mem_block_01.buffer + (BLK_SZ * (NUM_BLOCKS-1)), 2); in ZTEST()
319 ret = sys_mem_blocks_get(&mem_block_01, mem_block_01.buffer + (BLK_SZ * 3), 1); in ZTEST()
343 ret = sys_mem_blocks_get(&mem_block_01, mem_block_01.buffer + (BLK_SZ * 2), 1); in ZTEST()
389 zassert_equal(listener_size[0], BLK_SZ*2, in ZTEST()
391 listener_size[0], BLK_SZ*2); in ZTEST()
[all …]