Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 799) sorted by relevance

12345678910>>...32

/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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 …]
Dcmdline.c43 int count = 0; in native_add_command_line_opts() local
45 while (args[count].option != NULL) { in native_add_command_line_opts()
46 count++; in native_add_command_line_opts()
48 count++; /*for the end marker*/ in native_add_command_line_opts()
50 if (used_args + count >= args_aval) { in native_add_command_line_opts()
51 int growby = count; in native_add_command_line_opts()
71 count*sizeof(struct args_struct_t)); in native_add_command_line_opts()
73 used_args += count - 1; in native_add_command_line_opts()
/Zephyr-Core-3.7.0/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-Core-3.7.0/samples/kernel/condition_variables/condvar/
DREADME.rst41 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
50 inc_count: thread 3, count = 10, unlocking mutex
[all …]
/Zephyr-Core-3.7.0/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-Core-3.7.0/samples/kernel/condition_variables/condvar/src/
Dmain.c13 static int count; variable
31 count++; in inc_count()
39 if (count == COUNT_LIMIT) { in inc_count()
41 __func__, my_id, count); in inc_count()
46 __func__, my_id, count); in inc_count()
61 while (count < COUNT_LIMIT) { in watch_count()
63 __func__, my_id, count); in watch_count()
67 __func__, my_id, count); in watch_count()
71 count += 125; in watch_count()
72 printk("%s: thread %ld count now = %d.\n", __func__, my_id, count); in watch_count()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/shell/
Dvirtual.c22 int *count = data->user_data; in virtual_iface_cb() local
30 if (*count == 0) { in virtual_iface_cb()
32 (*count)++; in virtual_iface_cb()
44 (*count)++; in virtual_iface_cb()
51 int *count = data->user_data; in attached_iface_cb() local
60 if (*count == 0) { in attached_iface_cb()
62 (*count)++; in attached_iface_cb()
83 (*count)++; in attached_iface_cb()
94 int count = 0; in cmd_net_virtual() local
97 user_data.user_data = &count; in cmd_net_virtual()
[all …]
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
131 (*count)++; in walk_socket_services()
140 struct socket_info count = { 0 }; in cmd_net_sockets() local
143 user_data.user_data = &count; in cmd_net_sockets()
155 if (count.opened == 0 && count.closed == 0) { in cmd_net_sockets()
158 if (count.opened > 0) { in cmd_net_sockets()
159 PR("\n%d active socket%s found.\n", count.opened, in cmd_net_sockets()
[all …]
Dwebsocket.c28 int *count = data->user_data; in websocket_context_cb() local
39 if ((*count) == 0) { in websocket_context_cb()
48 (*count) + 1, context, net_ctx, in websocket_context_cb()
52 (*count)++; in websocket_context_cb()
60 int count = 0; in cmd_net_websocket() local
66 user_data.user_data = &count; in cmd_net_websocket()
70 if (count == 0) { in cmd_net_websocket()
Dnbr.c53 int *count = data->user_data; in nbr_cb() local
65 if (*count == 0) { in nbr_cb()
70 (*count)++; in nbr_cb()
89 *count, nbr, net_if_get_by_iface(nbr->iface), in nbr_cb()
114 int count = 0; in cmd_net_nbr() local
118 user_data.user_data = &count; in cmd_net_nbr()
122 if (count == 0) { in cmd_net_nbr()
141 int *count = user_data; in nbr_address_cb() local
143 if (*count >= CONFIG_NET_IPV6_MAX_NEIGHBORS) { in nbr_address_cb()
147 snprintk(nbr_address_buffer[*count], NET_IPV6_ADDR_LEN, in nbr_address_cb()
[all …]
Dconn.c30 int *count = data->user_data; in context_cb() local
39 (*count) + 1, context, in context_cb()
50 (*count)++; in context_cb()
66 int *count = data->user_data; in conn_handler_cb() local
99 (*count) + 1, conn, conn->cb, in conn_handler_cb()
103 (*count)++; in conn_handler_cb()
111 int count; member
121 int *count = data->user_data; in tcp_cb() local
131 (*count)++; in tcp_cb()
156 details->count++; in tcp_sent_list_cb()
[all …]
/Zephyr-Core-3.7.0/tests/bluetooth/host/id/bt_id_get/src/
Dmain.c59 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()
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()
89 for (size_t i = 0; i < count; i++) { in ZTEST()
98 for (size_t i = count; i < stored_count; i++) { in ZTEST()
/Zephyr-Core-3.7.0/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 …]
Dsflist.c29 int count; in verify_emptyness() local
47 count = 0; in verify_emptyness()
49 count++; in verify_emptyness()
52 if (count) { in verify_emptyness()
57 count++; in verify_emptyness()
60 if (count) { in verify_emptyness()
64 count = 0; in verify_emptyness()
66 count++; in verify_emptyness()
69 if (count) { in verify_emptyness()
73 count = 0; in verify_emptyness()
[all …]
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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()
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-Core-3.7.0/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-Core-3.7.0/samples/net/syslog_net/src/
Dmain.c24 int i, count, sleep; in main() local
52 count = CONFIG_NET_SAMPLE_SEND_ITERATIONS; in main()
58 LOG_DBG("Sending total %d messages", 4 * count); in main()
60 count = 60 / SLEEP_BETWEEN_PRINTS; in main()
67 i = count; in main()
79 LOG_DBG("Stopped after %d msg", count); in main()
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/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()

12345678910>>...32