/Zephyr-Core-3.4.0/tests/kernel/common/src/ |
D | printk.c | 142 int count; in ZTEST() local 167 count = 0; in ZTEST() 169 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST() 172 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST() 174 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST() 176 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST() 178 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST() 180 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST() 182 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST() 184 count += snprintk(pk_console + count, sizeof(pk_console) - count, in ZTEST() [all …]
|
/Zephyr-Core-3.4.0/tests/kernel/obj_tracking/src/ |
D | main.c | 43 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.4.0/tests/benchmarks/data_structure_perf/dlist_perf/src/ |
D | dlist_perf.c | 44 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.4.0/boards/posix/native_posix/ |
D | cmdline_common.c | 185 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 …]
|
D | cmdline.c | 43 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.4.0/samples/kernel/condition_variables/condvar/ |
D | README.rst | 40 inc_count: thread 2, count = 1, unlocking mutex 41 inc_count: thread 3, count = 2, unlocking mutex 42 inc_count: thread 2, count = 3, unlocking mutex 43 inc_count: thread 3, count = 4, unlocking mutex 44 inc_count: thread 2, count = 5, unlocking mutex 45 inc_count: thread 3, count = 6, unlocking mutex 46 inc_count: thread 2, count = 7, unlocking mutex 47 inc_count: thread 3, count = 8, unlocking mutex 48 inc_count: thread 2, count = 9, unlocking mutex 49 inc_count: thread 3, count = 10, unlocking mutex [all …]
|
/Zephyr-Core-3.4.0/tests/drivers/mm/sys_mm_drv_bank/src/ |
D | main.c | 36 uint32_t count; in ZTEST() local 50 count = sys_mm_drv_bank_page_mapped(&bank_data); in ZTEST() 51 zassert_equal(count, 1, in ZTEST() 53 count, 1); in ZTEST() 55 count = sys_mm_drv_bank_page_mapped(&bank_data); in ZTEST() 56 zassert_equal(count, 2, in ZTEST() 58 count, 2); in ZTEST() 69 count = sys_mm_drv_bank_page_unmapped(&bank_data); in ZTEST() 70 zassert_equal(count, BANK_PAGES - 1, in ZTEST() 72 count, BANK_PAGES - 1); in ZTEST() [all …]
|
/Zephyr-Core-3.4.0/samples/kernel/condition_variables/condvar/src/ |
D | main.c | 14 static int count; variable 32 count++; in inc_count() 40 if (count == COUNT_LIMIT) { in inc_count() 42 __func__, my_id, count); in inc_count() 47 __func__, my_id, count); in inc_count() 62 while (count < COUNT_LIMIT) { in watch_count() 64 __func__, my_id, count); in watch_count() 68 __func__, my_id, count); in watch_count() 72 count += 125; in watch_count() 73 printk("%s: thread %ld count now = %d.\n", __func__, my_id, count); in watch_count() [all …]
|
/Zephyr-Core-3.4.0/lib/os/ |
D | mem_blocks.c | 84 int sys_mem_blocks_alloc_contiguous(sys_mem_blocks_t *mem_block, size_t count, in sys_mem_blocks_alloc_contiguous() argument 92 if (count == 0) { in sys_mem_blocks_alloc_contiguous() 98 if (count > mem_block->num_blocks) { in sys_mem_blocks_alloc_contiguous() 104 void *ptr = alloc_blocks(mem_block, count); in sys_mem_blocks_alloc_contiguous() 114 ptr, count << mem_block->blk_sz_shift); in sys_mem_blocks_alloc_contiguous() 121 int sys_mem_blocks_alloc(sys_mem_blocks_t *mem_block, size_t count, in sys_mem_blocks_alloc() argument 132 if (count == 0) { in sys_mem_blocks_alloc() 137 if (count > mem_block->num_blocks) { in sys_mem_blocks_alloc() 143 for (i = 0; i < count; i++) { in sys_mem_blocks_alloc() 159 if (i < count) { in sys_mem_blocks_alloc() [all …]
|
/Zephyr-Core-3.4.0/tests/bluetooth/host/id/bt_id_get/src/ |
D | main.c | 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() 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.4.0/subsys/bluetooth/audio/shell/ |
D | cap_initiator.c | 216 start_param.count = 0U; in cmd_cap_initiator_unicast_start() 231 &unicast_streams[start_param.count].stream; in cmd_cap_initiator_unicast_start() 243 stream_param[start_param.count].member.member = conn; in cmd_cap_initiator_unicast_start() 244 stream_param[start_param.count].stream = stream; in cmd_cap_initiator_unicast_start() 245 stream_param[start_param.count].ep = snk_ep; in cmd_cap_initiator_unicast_start() 247 stream_param[start_param.count].codec = &uni_stream->codec; in cmd_cap_initiator_unicast_start() 248 stream_param[start_param.count].qos = &uni_stream->qos; in cmd_cap_initiator_unicast_start() 250 group_stream_params[start_param.count].qos = in cmd_cap_initiator_unicast_start() 251 stream_param[start_param.count].qos; in cmd_cap_initiator_unicast_start() 252 group_stream_params[start_param.count].stream = in cmd_cap_initiator_unicast_start() [all …]
|
/Zephyr-Core-3.4.0/tests/unit/list/ |
D | dlist.c | 28 int count; in verify_emptyness() local 42 count = 0; in verify_emptyness() 44 count++; in verify_emptyness() 47 if (count) { in verify_emptyness() 52 count++; in verify_emptyness() 55 if (count) { in verify_emptyness() 59 count = 0; in verify_emptyness() 61 count++; in verify_emptyness() 64 if (count) { in verify_emptyness() 68 count = 0; in verify_emptyness() [all …]
|
D | sflist.c | 29 int count; in verify_emptyness() local 43 count = 0; in verify_emptyness() 45 count++; in verify_emptyness() 48 if (count) { in verify_emptyness() 53 count++; in verify_emptyness() 56 if (count) { in verify_emptyness() 60 count = 0; in verify_emptyness() 62 count++; in verify_emptyness() 65 if (count) { in verify_emptyness() 69 count = 0; in verify_emptyness() [all …]
|
D | slist.c | 29 int count; in verify_emptyness() local 43 count = 0; in verify_emptyness() 45 count++; in verify_emptyness() 48 if (count) { in verify_emptyness() 53 count++; in verify_emptyness() 56 if (count) { in verify_emptyness() 60 count = 0; in verify_emptyness() 62 count++; in verify_emptyness() 65 if (count) { in verify_emptyness() 69 count = 0; in verify_emptyness() [all …]
|
/Zephyr-Core-3.4.0/tests/benchmarks/latency_measure/src/ |
D | heap_malloc_free.c | 22 uint32_t count = 0U; in heap_malloc_free() local 28 while (count != TEST_COUNT) { in heap_malloc_free() 35 "at count %d\n", count); in heap_malloc_free() 47 count++; in heap_malloc_free() 54 if (count == 0) { in heap_malloc_free() 59 PRINT_STATS_AVG("Average time for heap malloc", sum_malloc, count); in heap_malloc_free() 60 PRINT_STATS_AVG("Average time for heap free", sum_free, count); in heap_malloc_free()
|
/Zephyr-Core-3.4.0/tests/subsys/logging/log_custom_header/src/ |
D | log_custom_header.c | 21 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.4.0/tests/subsys/fs/littlefs/src/ |
D | testfs_util.c | 97 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.4.0/samples/net/syslog_net/src/ |
D | main.c | 27 int i, count, sleep; in main() local 45 count = CONFIG_NET_SAMPLE_SEND_ITERATIONS; in main() 51 LOG_DBG("Sending total %d messages", 4 * count); in main() 53 count = 60 / SLEEP_BETWEEN_PRINTS; in main() 60 i = count; in main() 72 LOG_DBG("Stopped after %d msg", count); in main()
|
/Zephyr-Core-3.4.0/samples/modules/thrift/hello/server/src/ |
D | HelloHandler.h | 22 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.4.0/drivers/entropy/ |
D | entropy_gecko_trng.c | 60 size_t count = 0; in entropy_gecko_trng_get_entropy() local 75 count = SL_MIN(length, available); in entropy_gecko_trng_get_entropy() 76 entropy_gecko_trng_read(buffer, count); in entropy_gecko_trng_get_entropy() 77 buffer += count; in entropy_gecko_trng_get_entropy() 78 length -= count; in entropy_gecko_trng_get_entropy() 92 size_t count; in entropy_gecko_trng_get_entropy_isr() local 102 count = SL_MIN(len, available); in entropy_gecko_trng_get_entropy_isr() 103 entropy_gecko_trng_read(buf, count); in entropy_gecko_trng_get_entropy_isr() 104 return count; in entropy_gecko_trng_get_entropy_isr()
|
/Zephyr-Core-3.4.0/tests/posix/eventfd/src/ |
D | stress.c | 25 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() 83 printk("avg: %zu %s/s\n", (size_t)((count[id] * MSEC_PER_SEC) / end_ms), msg[id]); in th_fun() 108 zassert_true(count[READER] > 0, "read count is zero"); in ZTEST_F() 109 zassert_true(count[WRITER] > 0, "write count is zero"); in ZTEST_F() 110 zassert_true(count[WRITER] >= count[READER], "read count (%zu) > write count (%zu)", in ZTEST_F() 111 count[READER], count[WRITER]); in ZTEST_F()
|
/Zephyr-Core-3.4.0/drivers/spi/ |
D | spi_handlers.c | 20 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() 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 Z_OOPS(Z_SYSCALL_VERIFY(tx_bufs_copy.count < 32)); in z_vrfy_spi_transceive() 101 Z_OOPS(Z_SYSCALL_VERIFY(rx_bufs_copy.count < 32)); in z_vrfy_spi_transceive()
|
/Zephyr-Core-3.4.0/lib/posix/ |
D | pthread_barrier.c | 18 uint32_t count; member 80 ++bar->count; in pthread_barrier_wait() 82 if (bar->count == bar->max) { in pthread_barrier_wait() 83 bar->count = 0; in pthread_barrier_wait() 89 while (bar->count != 0) { in pthread_barrier_wait() 107 unsigned int count) in pthread_barrier_init() argument 112 if (count == 0) { in pthread_barrier_init() 121 bar->max = count; in pthread_barrier_init() 122 bar->count = 0; in pthread_barrier_init() 148 bar->count = 0; in pthread_barrier_destroy()
|
/Zephyr-Core-3.4.0/tests/boards/mec15xxevb_assy6853/qspi/src/ |
D | main.c | 78 tx_bufs.count = 1U; in ZTEST_USER() 85 rx_bufs.count = 1U; in ZTEST_USER() 114 tx_bufs.count = 1U; in ZTEST_USER() 117 rx_bufs.count = 0U; in ZTEST_USER() 134 tx_bufs.count = 1U; in ZTEST_USER() 137 rx_bufs.count = 0U; in ZTEST_USER() 153 tx_bufs.count = 1U; in ZTEST_USER() 160 rx_bufs.count = 1U; in ZTEST_USER() 190 tx_bufs.count = 1U; in test_spi_single_write() 193 rx_bufs.count = 0U; in test_spi_single_write() [all …]
|
/Zephyr-Core-3.4.0/tests/benchmarks/app_kernel/src/ |
D | mailbox_r.c | 19 int count, 46 getinfo.count = getcount; in mailrecvtask() 54 getinfo.count = getcount; in mailrecvtask() 74 int count, in mailbox_get() argument 88 for (i = 0; i < count; i++) { in mailbox_get() 96 *time = SYS_CLOCK_HW_CYCLES_TO_NS_AVG(t, count); in mailbox_get()
|