Home
last modified time | relevance | path

Searched refs:max_used (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.7.0/subsys/modem/
Dmodem_stats.c55 static uint8_t percent_used(uint32_t max_used, uint32_t cap) in percent_used() argument
59 if (max_used == 0) { in percent_used()
63 if (max_used == cap) { in percent_used()
68 percent *= max_used; in percent_used()
75 uint32_t *max_used) in stats_buffer_get_and_clear_max_used() argument
78 *max_used = buffer->max_used; in stats_buffer_get_and_clear_max_used()
79 buffer->max_used = 0; in stats_buffer_get_and_clear_max_used()
97 if (buffer->max_used < length) { in stats_buffer_update_max_used()
98 buffer->max_used = length; in stats_buffer_update_max_used()
105 uint32_t max_used) in stats_buffer_print_to_shell() argument
[all …]
/Zephyr-Core-3.7.0/modules/mbedtls/
Dshell.c29 size_t max_used, max_blocks; in cmd_mbedtls_heap() local
32 mbedtls_memory_buffer_alloc_max_get(&max_used, &max_blocks); in cmd_mbedtls_heap()
36 max_used, max_blocks); in cmd_mbedtls_heap()
/Zephyr-Core-3.7.0/kernel/
Dmem_slab.c55 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()
183 slab->info.max_used = 0U; in k_mem_slab_init()
237 slab->info.max_used = MAX(slab->info.num_used, in k_mem_slab_alloc()
238 slab->info.max_used); in k_mem_slab_alloc()
308 stats->max_allocated_bytes = slab->info.max_used * in k_mem_slab_runtime_stats_get()
328 slab->info.max_used = slab->info.num_used; in k_mem_slab_runtime_stats_reset_max()
/Zephyr-Core-3.7.0/include/zephyr/modem/
Dstats.h21 uint32_t max_used; member
/Zephyr-Core-3.7.0/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c584 zassert_equal(raw.max_used, expected->max_used, in test_mem_slab_raw()
586 str, expected->max_used, raw.max_used); in test_mem_slab_raw()
618 .max_used = 0 in ZTEST()
652 raw.max_used++; in ZTEST()
667 raw.max_used++; in ZTEST()
686 raw.max_used = raw.num_used; in ZTEST()
/Zephyr-Core-3.7.0/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c490 size_t cur_used, cur_blocks, max_used, max_blocks; in main() local
493 mbedtls_memory_buffer_alloc_max_get(&max_used, &max_blocks); in main()
494 LOG_INF("mbedTLS heap usage: MAX %u/%u (%u) CUR %u (%u)", max_used, in main()
/Zephyr-Core-3.7.0/tests/benchmarks/mbedtls/src/
Dbenchmark.c196 size_t max_used, max_blocks, max_bytes; \
203 mbedtls_memory_buffer_alloc_max_get(&max_used, &max_blocks); \
209 max_used -= prv_used; \
211 max_bytes = max_used + MEM_BLOCK_OVERHEAD * max_blocks; \
/Zephyr-Core-3.7.0/include/zephyr/
Dkernel.h5159 uint32_t max_used; member
5339 return slab->info.max_used; in k_mem_slab_max_used_get()