Home
last modified time | relevance | path

Searched full:count (Results 1 – 25 of 1576) sorted by relevance

12345678910>>...64

/Zephyr-latest/samples/kernel/condition_variables/condvar/
DREADME.rst40 watch_count: thread 1 Count= 0. Going into wait...
41 inc_count: thread 2, count = 1, unlocking mutex
42 inc_count: thread 3, count = 2, unlocking mutex
43 inc_count: thread 2, count = 3, unlocking mutex
44 inc_count: thread 3, count = 4, unlocking mutex
45 inc_count: thread 2, count = 5, unlocking mutex
46 inc_count: thread 3, count = 6, unlocking mutex
47 inc_count: thread 2, count = 7, unlocking mutex
48 inc_count: thread 3, count = 8, unlocking mutex
49 inc_count: thread 2, count = 9, unlocking mutex
[all …]
/Zephyr-latest/tests/kernel/obj_tracking/src/
Dmain.c43 int count; in ZTEST() local
46 count = 0; in ZTEST()
50 count++; in ZTEST()
54 zassert_equal(count, 2, "Wrong number of timer objects"); in ZTEST()
57 count = 0; in ZTEST()
61 count++; in ZTEST()
65 zassert_equal(count, 2, "Wrong number of mem_slab objects"); in ZTEST()
68 count = 0; in ZTEST()
72 count++; in ZTEST()
76 zassert_equal(count, 2, "Wrong number of semaphore objects"); in ZTEST()
[all …]
/Zephyr-latest/samples/kernel/condition_variables/condvar/src/
Dmain.c13 static int count; variable
31 count++; in inc_count()
34 * Check the value of count and signal waiting thread when in inc_count()
39 if (count == COUNT_LIMIT) { in inc_count()
40 printk("%s: thread %ld, count = %d Threshold reached.", in inc_count()
41 __func__, my_id, count); in inc_count()
45 printk("%s: thread %ld, count = %d, unlocking mutex\n", in inc_count()
46 __func__, my_id, count); in inc_count()
61 while (count < COUNT_LIMIT) { in watch_count()
62 printk("%s: thread %ld Count= %d. Going into wait...\n", in watch_count()
[all …]
/Zephyr-latest/subsys/net/lib/prometheus/
Dsummary.c23 /* increment count */ in prometheus_summary_observe()
24 summary->count++; in prometheus_summary_observe()
33 double value, unsigned long count) in prometheus_summary_observe_set() argument
42 if (value == summary->sum && count == summary->count) { in prometheus_summary_observe_set()
46 old_count = summary->count; in prometheus_summary_observe_set()
47 if (count < old_count) { in prometheus_summary_observe_set()
48 LOG_DBG("Cannot set summary count to a lower value"); in prometheus_summary_observe_set()
52 summary->count += (count - old_count); in prometheus_summary_observe_set()
Dhistogram.c23 /* increment count */ in prometheus_histogram_observe()
24 histogram->count++; in prometheus_histogram_observe()
32 /* increment count for the bucket */ in prometheus_histogram_observe()
33 histogram->buckets[i].count++; in prometheus_histogram_observe()
35 LOG_DBG("value: %f, bucket: %f, count: %lu", value, in prometheus_histogram_observe()
36 histogram->buckets[i].upper_bound, histogram->buckets[i].count); in prometheus_histogram_observe()
/Zephyr-latest/samples/drivers/misc/timeaware_gpio/
DREADME.rst41 [TGPIO] timestamp: 0000000000000000, event count: 0000000000000000
42 [TGPIO] timestamp: 0000000148a3cf31, event count: 0000000000000001
43 [TGPIO] timestamp: 0000000149c8c731, event count: 0000000000000002
44 [TGPIO] timestamp: 000000014aedbf31, event count: 0000000000000003
45 [TGPIO] timestamp: 000000014c12b731, event count: 0000000000000004
46 [TGPIO] timestamp: 000000014d37af31, event count: 0000000000000005
47 [TGPIO] timestamp: 000000014e5ca731, event count: 0000000000000006
48 [TGPIO] timestamp: 000000014f819f31, event count: 0000000000000007
49 [TGPIO] timestamp: 0000000150a69731, event count: 0000000000000008
50 [TGPIO] timestamp: 0000000151cb8f31, event count: 0000000000000009
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_id_get/src/
Dmain.c49 * Get currently stored ID count
55 * - Count parameter pointer is dereferenced and loaded with the current bt_dev.id_count
59 size_t count; in ZTEST() local
61 bt_id_get(NULL, &count); in ZTEST()
63 zassert_equal(count, CONFIG_BT_ID_MAX, "Incorrect ID count %d was returned", count); in ZTEST()
73 * - Count parameter pointer is dereferenced and loaded with actual number of copied items
81 size_t count = testing_counts[it]; in ZTEST() local
82 size_t expected_count = MIN(count, stored_count); in ZTEST()
84 bt_id_get(copy_dst_addrs, &count); in ZTEST()
86 zassert_equal(count, expected_count, "Incorrect ID count %d was returned", count); in ZTEST()
[all …]
/Zephyr-latest/tests/benchmarks/data_structure_perf/dlist_perf/src/
Ddlist_perf.c44 int i, count; in ZTEST() local
66 count = 0; in ZTEST()
68 zassert_true(cnode->value == count, in ZTEST()
70 count++; in ZTEST()
72 zassert_true(count == NODE_SIZE, in ZTEST()
74 "expected %d get %d", NODE_SIZE, count); in ZTEST()
77 count = 0; in ZTEST()
79 zassert_true(cnode->value == count, in ZTEST()
81 count++; in ZTEST()
83 zassert_true(count == NODE_SIZE, in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/common/src/
Dprintk.c198 int count; in ZTEST() local
225 count = 0; in ZTEST()
227 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
230 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
232 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
234 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
236 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
238 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
240 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
242 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/mm/sys_mm_drv_bank/src/
Dmain.c36 uint32_t count; in ZTEST() local
61 count = sys_mm_drv_bank_page_mapped(&bank_data); in ZTEST()
62 zassert_equal(count, 1, in ZTEST()
64 count, 1); in ZTEST()
66 count = sys_mm_drv_bank_page_mapped(&bank_data); in ZTEST()
67 zassert_equal(count, 2, in ZTEST()
69 count, 2); in ZTEST()
80 count = sys_mm_drv_bank_page_unmapped(&bank_data); in ZTEST()
81 zassert_equal(count, BANK_PAGES - 1, in ZTEST()
83 count, BANK_PAGES - 1); in ZTEST()
[all …]
/Zephyr-latest/tests/posix/eventfd/src/
Dstress.c25 static size_t count[2]; variable
73 count[id] += (ret == 0); in th_fun()
77 printk("%zu %s\n", count[id], msg[id]); in th_fun()
84 printk("avg: %zu %s/s\n", (size_t)((count[id] * MSEC_PER_SEC) / end_ms), msg[id]); in th_fun()
109 zassert_true(count[READER] > 0, "read count is zero"); in ZTEST_F()
110 zassert_true(count[WRITER] > 0, "write count is zero"); in ZTEST_F()
111 zassert_true(count[WRITER] >= count[READER], "read count (%zu) > write count (%zu)", in ZTEST_F()
112 count[READER], count[WRITER]); in ZTEST_F()
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dheap_malloc_free.c22 uint32_t count = 0U; in heap_malloc_free() local
33 while (count != TEST_COUNT) { in heap_malloc_free()
41 "alloc memory @ iteration %d", count); in heap_malloc_free()
54 count++; in heap_malloc_free()
58 * If count is 0, it means that there is not enough memory heap in heap_malloc_free()
62 if (count == 0) { in heap_malloc_free()
70 PRINT_STATS_AVG(description, sum_malloc, count, failed, notes); in heap_malloc_free()
75 PRINT_STATS_AVG(description, sum_free, count, failed, notes); in heap_malloc_free()
/Zephyr-latest/lib/mem_blocks/
Dmem_blocks.c89 int sys_mem_blocks_alloc_contiguous(sys_mem_blocks_t *mem_block, size_t count, in sys_mem_blocks_alloc_contiguous() argument
97 if (count == 0) { in sys_mem_blocks_alloc_contiguous()
103 if (count > mem_block->info.num_blocks) { in sys_mem_blocks_alloc_contiguous()
109 void *ptr = alloc_blocks(mem_block, count); in sys_mem_blocks_alloc_contiguous()
119 ptr, count << mem_block->info.blk_sz_shift); in sys_mem_blocks_alloc_contiguous()
126 int sys_mem_blocks_alloc(sys_mem_blocks_t *mem_block, size_t count, in sys_mem_blocks_alloc() argument
137 if (count == 0) { in sys_mem_blocks_alloc()
142 if (count > mem_block->info.num_blocks) { in sys_mem_blocks_alloc()
148 for (i = 0; i < count; i++) { in sys_mem_blocks_alloc()
165 if (i < count) { in sys_mem_blocks_alloc()
[all …]
/Zephyr-latest/subsys/sensing/
Dsensing.c76 int count) in sensing_set_config() argument
85 if (count <= 0 || count > SENSING_SENSOR_ATTRIBUTE_MAX) { in sensing_set_config()
86 LOG_ERR("invalid config count:%d", count); in sensing_set_config()
90 for (i = 0; i < count; i++) { in sensing_set_config()
116 int count) in sensing_get_config() argument
125 if (count <= 0 || count > SENSING_SENSOR_ATTRIBUTE_MAX) { in sensing_get_config()
126 LOG_ERR("invalid config count:%d", count); in sensing_get_config()
130 for (i = 0; i < count; i++) { in sensing_get_config()
/Zephyr-latest/scripts/native_simulator/native/src/
Dnsi_cmdline_common.c187 int count = 0; in nsi_cmd_args_set_defaults() local
189 while (args_struct[count].option != NULL) { in nsi_cmd_args_set_defaults()
191 if (args_struct[count].dest == NULL) { in nsi_cmd_args_set_defaults()
192 count++; in nsi_cmd_args_set_defaults()
196 switch (args_struct[count].type) { in nsi_cmd_args_set_defaults()
200 *(bool *)args_struct[count].dest = false; in nsi_cmd_args_set_defaults()
203 *(char **)args_struct[count].dest = NULL; in nsi_cmd_args_set_defaults()
206 *(uint32_t *)args_struct[count].dest = UINT32_MAX; in nsi_cmd_args_set_defaults()
209 *(uint64_t *)args_struct[count].dest = UINT64_MAX; in nsi_cmd_args_set_defaults()
212 *(int32_t *)args_struct[count].dest = INT32_MAX; in nsi_cmd_args_set_defaults()
[all …]
/Zephyr-latest/boards/native/native_posix/
Dcmdline_common.c185 int count = 0; in cmd_args_set_defaults() local
187 while (args_struct[count].option != NULL) { in cmd_args_set_defaults()
189 if (args_struct[count].dest == NULL) { in cmd_args_set_defaults()
190 count++; in cmd_args_set_defaults()
194 switch (args_struct[count].type) { in cmd_args_set_defaults()
198 *(bool *)args_struct[count].dest = false; in cmd_args_set_defaults()
201 *(char **)args_struct[count].dest = NULL; in cmd_args_set_defaults()
204 *(uint32_t *)args_struct[count].dest = UINT32_MAX; in cmd_args_set_defaults()
207 *(uint64_t *)args_struct[count].dest = UINT64_MAX; in cmd_args_set_defaults()
210 *(int32_t *)args_struct[count].dest = INT32_MAX; in cmd_args_set_defaults()
[all …]
/Zephyr-latest/samples/modules/thrift/hello/server/src/
DHelloHandler.h22 HelloHandler() : count(0) in HelloHandler()
39 ++count; in counter()
40 printk("%s: %d\n", __func__, count); in counter()
41 return count; in counter()
45 int count;
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
DKconfig19 int "Maximum thread count in CMSIS RTOS V2 application"
28 int "Maximum dynamic thread count in CMSIS RTOS V2 application"
35 threads i.e. they also count towards that maximum too.
52 int "Maximum timer count in CMSIS RTOS V2 application"
59 int "Maximum mutex count in CMSIS RTOS V2 application"
66 int "Maximum semaphore count in CMSIS RTOS V2 application"
73 int "Maximum mem slab count in CMSIS RTOS V2 application"
86 int "Maximum message queue count in CMSIS RTOS V2 application"
99 int "Maximum event flags count in CMSIS RTOS V2 application"
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_util.c97 unsigned int count = sizeof(buffer); in testfs_write_constant() local
99 if (count > rem) { in testfs_write_constant()
100 count = rem; in testfs_write_constant()
103 ssize_t rc = fs_write(fp, buffer, count); in testfs_write_constant()
109 rem -= count; in testfs_write_constant()
123 unsigned int count = sizeof(buffer); in testfs_verify_constant() local
125 if (count > len) { in testfs_verify_constant()
126 count = len; in testfs_verify_constant()
129 int rc = fs_read(fp, buffer, count); in testfs_verify_constant()
135 if (rc > count) { in testfs_verify_constant()
[all …]
/Zephyr-latest/subsys/net/lib/shell/
Dsockets.c30 struct socket_info *count = data->user_data; in walk_sockets() local
60 count->closed++; in walk_sockets()
65 count->opened++; in walk_sockets()
97 int *count = data->user_data; in walk_socket_services() local
128 (*count)++; in walk_socket_services()
137 struct socket_info count = { 0 }; in cmd_net_sockets() local
140 user_data.user_data = &count; in cmd_net_sockets()
152 if (count.opened == 0 && count.closed == 0) { in cmd_net_sockets()
155 if (count.opened > 0) { in cmd_net_sockets()
156 PR("\n%d active socket%s found.\n", count.opened, in cmd_net_sockets()
[all …]
/Zephyr-latest/tests/subsys/logging/log_custom_header/src/
Dlog_custom_header.c21 static uint32_t count; variable
42 count += 1; in backend_process()
53 zassert_equal(count, 0); in ZTEST()
57 zassert_equal(count, 1); in ZTEST()
62 zassert_equal(count, 2); in ZTEST()
67 zassert_equal(count, 3); in ZTEST()
72 zassert_equal(count, 4); in ZTEST()
84 count = 0; in before()
/Zephyr-latest/tests/unit/list/
Ddlist.c28 int count; in verify_emptyness() local
46 count = 0; in verify_emptyness()
48 count++; in verify_emptyness()
51 if (count) { in verify_emptyness()
56 count++; in verify_emptyness()
59 if (count) { in verify_emptyness()
63 count = 0; in verify_emptyness()
65 count++; in verify_emptyness()
68 if (count) { in verify_emptyness()
72 count = 0; in verify_emptyness()
[all …]
/Zephyr-latest/samples/boards/nordic/system_off/
Dsample.yaml45 - "Boot count: 1"
46 - "Off count: 0"
89 - "Boot count: 1"
90 - "Off count: 0"
95 - "Boot count: 2"
96 - "Off count: 1"
141 - "Boot count: 1"
142 - "Off count: 0"
147 - "Boot count: 2"
148 - "Off count: 1"
/Zephyr-latest/drivers/spi/
Dspi_handlers.c20 if (bufs->count == 0) { in copy_and_check()
27 bufs->count, in copy_and_check()
35 bufs->count * sizeof(struct spi_buf)); in copy_and_check()
37 for (i = 0; i < bufs->count; i++) { in copy_and_check()
52 * count member has been verified and is a value that won't lead to stack
60 struct spi_buf tx_buf_copy[tx_bufs->count ? tx_bufs->count : 1]; in copy_bufs_and_transceive()
61 struct spi_buf rx_buf_copy[rx_bufs->count ? rx_bufs->count : 1]; in copy_bufs_and_transceive()
89 K_OOPS(K_SYSCALL_VERIFY(tx_bufs_copy.count < 32)); in z_vrfy_spi_transceive()
101 K_OOPS(K_SYSCALL_VERIFY(rx_bufs_copy.count < 32)); in z_vrfy_spi_transceive()
/Zephyr-latest/drivers/bbram/
Dbbram_it8xxx2_emul.c22 static int it8xxx2_emul_backend_set_data(const struct emul *target, size_t offset, size_t count, in it8xxx2_emul_backend_set_data() argument
27 if (offset + count > config->size) { in it8xxx2_emul_backend_set_data()
31 bytecpy(((uint8_t *)config->base_addr + offset), buffer, count); in it8xxx2_emul_backend_set_data()
35 static int it8xxx2_emul_backend_get_data(const struct emul *target, size_t offset, size_t count, in it8xxx2_emul_backend_get_data() argument
40 if (offset + count > config->size) { in it8xxx2_emul_backend_get_data()
44 bytecpy(buffer, ((uint8_t *)config->base_addr + offset), count); in it8xxx2_emul_backend_get_data()

12345678910>>...64