/Zephyr-Core-3.7.0/tests/subsys/debug/mipi_stp_decoder/src/ |
D | main.c | 9 static int cnt; variable 53 ADD_ITEM(cnt, STP_DECODER_NULL, UINT64_MAX, false, (uint8_t)0); in ZTEST() 54 ADD_ITEM(cnt, STP_DECODER_NULL, UINT64_MAX, false, (uint8_t)0); in ZTEST() 55 ADD_ITEM(cnt, STP_DECODER_NULL, UINT64_MAX, false, (uint8_t)0); in ZTEST() 56 ADD_ITEM(cnt, STP_DECODER_NULL, UINT64_MAX, false, (uint8_t)0); in ZTEST() 59 zassert_equal(cnt, d_cnt, NULL); in ZTEST() 67 ADD_ITEM(cnt, STP_DECODER_MASTER, UINT64_MAX, false, (uint8_t)0xab); in ZTEST() 68 ADD_ITEM(cnt, STP_DECODER_NULL, UINT64_MAX, false, (uint8_t)0); in ZTEST() 69 ADD_ITEM(cnt, STP_DECODER_MASTER, UINT64_MAX, false, (uint16_t)0x4321); in ZTEST() 72 zassert_equal(cnt, d_cnt, NULL); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/logging/log_backend_init/src/ |
D | main.c | 21 uint32_t cnt; member 52 zassert_equal(strcmp(str, context->exp_str[context->cnt]), 0, in backend_process() 53 "Unexpected string %s (exp:%s)", str, context->exp_str[context->cnt]); in backend_process() 55 context->cnt++; in backend_process() 115 int cnt; in ZTEST() local 117 STRUCT_SECTION_COUNT(log_backend, &cnt); in ZTEST() 118 if (cnt != 2) { in ZTEST() 123 context1.cnt = 0; in ZTEST() 124 context2.cnt = 0; in ZTEST() 149 zassert_equal(context1.cnt, 2, "Unexpected value:%d (exp: %d)", context1.cnt, 2); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/tests/lib/ringbuffer/src/ |
D | concurrent.c | 102 static int cnt; in produce_cpy() local 107 cnt = 0; in produce_cpy() 111 buf[i] = (uint8_t)cnt++; in produce_cpy() 115 cnt -= (sizeof(buf) - len); in produce_cpy() 122 static int cnt; in consume_cpy() local 127 cnt = 0; in consume_cpy() 132 zassert_equal(buf[i], (uint8_t)cnt); in consume_cpy() 133 cnt++; in consume_cpy() 139 static bool produce_item(void *user_data, uint32_t cnt, bool last, int prio) in produce_item() argument 145 if (cnt == 0) { in produce_item() [all …]
|
/Zephyr-Core-3.7.0/subsys/fs/fcb/ |
D | fcb_append.c | 15 fcb_new_sector(struct fcb *fcb, int cnt) in fcb_new_sector() argument 32 } while (i++ < cnt); in fcb_new_sector() 64 int cnt; in fcb_append() local 71 cnt = fcb_put_len(fcb, tmp_str, len); in fcb_append() 72 if (cnt < 0) { in fcb_append() 73 return cnt; in fcb_append() 75 cnt = fcb_len_in_flash(fcb, cnt); in fcb_append() 78 __ASSERT_NO_MSG(cnt <= sizeof(tmp_str)); in fcb_append() 85 if (active->fe_elem_off + len + cnt > active->fe_sector->fs_size) { in fcb_append() 88 fcb_len_in_flash(fcb, sizeof(struct fcb_disk_area)) + len + cnt)) { in fcb_append() [all …]
|
D | fcb_elem_info.c | 23 int cnt; in fcb_elem_crc8() local 40 cnt = fcb_get_len(_fcb, tmp_str, &len); in fcb_elem_crc8() 41 if (cnt < 0) { in fcb_elem_crc8() 42 return cnt; in fcb_elem_crc8() 44 loc->fe_data_off = loc->fe_elem_off + fcb_len_in_flash(_fcb, cnt); in fcb_elem_crc8() 48 crc8 = crc8_ccitt(crc8, tmp_str, cnt); in fcb_elem_crc8() 77 int cnt; in fcb_elem_endmarker_fixed() local 90 cnt = fcb_get_len(_fcb, tmp_str, &len); in fcb_elem_endmarker_fixed() 91 if (cnt < 0) { in fcb_elem_endmarker_fixed() 92 return cnt; in fcb_elem_endmarker_fixed() [all …]
|
/Zephyr-Core-3.7.0/drivers/entropy/ |
D | entropy_cc13xx_cc26xx.c | 98 uint32_t cnt; in entropy_cc13xx_cc26xx_get_entropy() local 114 cnt = ring_buf_get(&data->pool, buf, len); in entropy_cc13xx_cc26xx_get_entropy() 117 if (cnt) { in entropy_cc13xx_cc26xx_get_entropy() 118 buf += cnt; in entropy_cc13xx_cc26xx_get_entropy() 119 len -= cnt; in entropy_cc13xx_cc26xx_get_entropy() 132 uint32_t cnt; in entropy_cc13xx_cc26xx_isr() local 143 cnt = ring_buf_put(&data->pool, (uint8_t *)num, sizeof(num)); in entropy_cc13xx_cc26xx_isr() 146 if (cnt != sizeof(num)) { in entropy_cc13xx_cc26xx_isr() 174 uint16_t cnt; in entropy_cc13xx_cc26xx_get_entropy_isr() local 181 cnt = ring_buf_get(&data->pool, buf, len); in entropy_cc13xx_cc26xx_get_entropy_isr() [all …]
|
/Zephyr-Core-3.7.0/tests/boards/mec172xevb_assy6906/qspi/src/ |
D | main.c | 351 uint8_t cnt = 0; in ZTEST_USER() local 366 spi_bufs[cnt].buf = &safbuf; in ZTEST_USER() 367 spi_bufs[cnt].len = 4U; in ZTEST_USER() 371 cnt++; in ZTEST_USER() 372 spi_bufs[cnt].buf = NULL; in ZTEST_USER() 373 spi_bufs[cnt].len = spi_clocks_to_bytes(((spi_opcode >> 8) & 0xffU), 1u); in ZTEST_USER() 376 cnt++; in ZTEST_USER() 377 spi_bufs[cnt].buf = &safbuf2; in ZTEST_USER() 378 spi_bufs[cnt].len = BUF_SIZE; in ZTEST_USER() 379 cnt++; /* total number of buffers */ in ZTEST_USER() [all …]
|
/Zephyr-Core-3.7.0/samples/basic/threads/src/ |
D | main.c | 34 uint32_t cnt; member 57 int cnt = 0; in blink() local 73 gpio_pin_set(spec->port, spec->pin, cnt % 2); in blink() 75 struct printk_data_t tx_data = { .led = id, .cnt = cnt }; in blink() 86 cnt++; in blink() 106 rx_data->led, rx_data->cnt); in uart_out()
|
/Zephyr-Core-3.7.0/subsys/bluetooth/audio/shell/ |
D | bap_usb.c | 90 static size_t cnt; in usb_data_request_cb() local 92 if ((++cnt % bap_get_stats_interval()) == 0U) { in usb_data_request_cb() 93 LOG_INF("[%zu]: Sending USB audio", cnt); in usb_data_request_cb() 96 static size_t cnt; in usb_data_request_cb() local 98 if ((++cnt % bap_get_stats_interval()) == 0U) { in usb_data_request_cb() 99 LOG_INF("[%zu]: Sending empty USB audio", cnt); in usb_data_request_cb() 105 static size_t cnt; in usb_data_request_cb() local 107 cnt++; in usb_data_request_cb() 108 if ((cnt % 1000) == 0) { in usb_data_request_cb() 109 LOG_ERR("Failed to send USB audio: %d (%zu)", err, cnt); in usb_data_request_cb() [all …]
|
/Zephyr-Core-3.7.0/tests/drivers/sensor/temp_sensor/src/ |
D | main.c | 19 int cnt; in ZTEST() local 22 cnt = 0; in ZTEST() 37 ++cnt; in ZTEST() 38 if (cnt >= 5) { in ZTEST() 116 int cnt; in before() local 122 cnt = 0; in before() 133 ++cnt; in before() 134 zassert_false(cnt >= 3, "Cannot fetch a sample: %d.", rc); in before()
|
/Zephyr-Core-3.7.0/tests/drivers/uart/uart_mix_fifo_poll/src/ |
D | main.c | 39 int cnt; member 58 volatile int cnt; member 88 src->cnt++; in process_byte() 90 if (src->cnt == 1) { in process_byte() 181 const uint8_t *buf = &int_async_data.buf[int_async_data.cnt & 0xF]; in tx_isr() 184 int_async_data.cnt += len; in tx_isr() 227 data->cnt++; in bulk_poll_out() 258 while (data->cnt < data->max) { in int_async_thread_func() 265 int idx = data->cnt & 0xF; in int_async_thread_func() 267 len = MIN(len, data->max - data->cnt); in int_async_thread_func() [all …]
|
/Zephyr-Core-3.7.0/samples/drivers/misc/ft800/src/ |
D | main.c | 33 int cnt; in main() local 45 cnt = 0; in main() 57 ft8xx_copro_cmd_number(20, 20, 29, FT8XX_OPT_SIGNED, cnt); in main() 58 cnt++; in main()
|
/Zephyr-Core-3.7.0/include/zephyr/shell/ |
D | shell_backend.h | 41 int cnt; in shell_backend_count_get() local 43 STRUCT_SECTION_COUNT(shell, &cnt); in shell_backend_count_get() 45 return cnt; in shell_backend_count_get()
|
/Zephyr-Core-3.7.0/subsys/logging/backends/ |
D | log_backend_efi_console.c | 27 size_t cnt = 0; in char_out() local 30 while (cnt < length) { in char_out() 32 cnt++; in char_out() 73 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument 77 log_backend_std_dropped(&log_output_efi, cnt); in dropped()
|
/Zephyr-Core-3.7.0/tests/drivers/counter/counter_basic_api/src/ |
D | test_counter.c | 245 uint32_t cnt; in test_set_top_value_with_alarm_instance() local 265 err = counter_get_value(dev, &cnt); in test_set_top_value_with_alarm_instance() 269 err = (cnt > 0) ? 0 : 1; in test_set_top_value_with_alarm_instance() 272 err = (cnt < top_value) ? 0 : 1; in test_set_top_value_with_alarm_instance() 298 uint32_t cnt; in test_set_top_value_without_alarm_instance() local 314 err = counter_get_value(dev, &cnt); in test_set_top_value_without_alarm_instance() 318 err = (cnt > 0) ? 0 : 1; in test_set_top_value_without_alarm_instance() 321 err = (cnt < top_value) ? 0 : 1; in test_set_top_value_without_alarm_instance() 390 uint32_t cnt; in test_single_shot_alarm_instance() local 438 cnt = IS_ENABLED(CONFIG_ZERO_LATENCY_IRQS) ? in test_single_shot_alarm_instance() [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/logging/log_stress/src/ |
D | main.c | 26 uint32_t cnt[16]; member 40 mock_backend.cnt[ctx_id]++; in handle_msg() 72 static void dropped(const struct log_backend *const backend, uint32_t cnt) in dropped() argument 75 mock_backend.dropped += cnt; in dropped() 97 out_cnt += mock_backend.cnt[i]; in validate() 108 static bool context_handler(void *user_data, uint32_t cnt, bool last, int prio) in context_handler() argument 113 if (cnt == 0) { in context_handler() 117 uint32_t i = cnt | (prio << CNT_BITS); in context_handler()
|
/Zephyr-Core-3.7.0/drivers/console/ |
D | rtt_console.c | 39 unsigned int cnt; in rtt_console_out() local 44 cnt = SEGGER_RTT_WriteNoLock(0, &c, 1); in rtt_console_out() 61 if (cnt) { in rtt_console_out()
|
/Zephyr-Core-3.7.0/tests/kernel/mem_protect/mem_map/src/ |
D | main.c | 392 size_t cnt, expected_cnt; in ZTEST() local 419 cnt = POINTER_TO_UINT(addr) + CONFIG_MMU_PAGE_SIZE * 2; in ZTEST() 420 cnt -= POINTER_TO_UINT(K_MEM_VM_FREE_START); in ZTEST() 421 cnt /= CONFIG_MMU_PAGE_SIZE * 3; in ZTEST() 424 if (cnt < expected_cnt) { in ZTEST() 425 expected_cnt = cnt; in ZTEST() 430 cnt = 0; in ZTEST() 437 cnt++; in ZTEST() 441 printk("Mapped %zu pages\n", cnt); in ZTEST() 442 zassert_equal(cnt, expected_cnt, in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/subsys/shell/backends/ |
D | shell_uart.c | 359 const void *data, size_t length, size_t *cnt) in polling_write() argument 367 *cnt = length; in polling_write() 375 const void *data, size_t length, size_t *cnt) in irq_write() argument 377 *cnt = ring_buf_put(&sh_uart->tx_ringbuf, data, length); in irq_write() 387 const void *data, size_t length, size_t *cnt) in async_write() argument 393 *cnt = 0; in async_write() 398 *cnt = length; in async_write() 406 const void *data, size_t length, size_t *cnt) in write_uart() argument 411 return polling_write(sh_uart, data, length, cnt); in write_uart() 413 return irq_write((struct shell_uart_int_driven *)transport->ctx, data, length, cnt); in write_uart() [all …]
|
D | shell_dummy.c | 57 const void *data, size_t length, size_t *cnt) in write() argument 63 *cnt = 0; in write() 74 *cnt = length; in write() 80 void *data, size_t length, size_t *cnt) in read() argument 88 *cnt = 0; in read()
|
/Zephyr-Core-3.7.0/samples/subsys/logging/logger/src/ |
D | main.c | 186 uint32_t cnt = 0U; in performance_showcase() local 193 cnt = 0; in performance_showcase() 203 LOG_INF("performance test - log message %d", cnt); in performance_showcase() 204 cnt++; in performance_showcase() 216 if (cnt >= limit) { in performance_showcase() 222 } else if (cnt < (limit / 2)) { in performance_showcase() 229 per_sec = (cnt * timestamp_freq()) / window; in performance_showcase()
|
/Zephyr-Core-3.7.0/samples/drivers/misc/grove_display/src/ |
D | main.c | 43 int cnt; in main() local 68 cnt = 0; in main() 95 m = cnt; in main() 105 cnt++; in main()
|
/Zephyr-Core-3.7.0/samples/subsys/logging/multidomain/remote/src/ |
D | main.c | 14 int cnt = 0; in main() local 17 LOG_INF("loop: %d", cnt++); in main()
|
/Zephyr-Core-3.7.0/samples/subsys/mgmt/osdp/peripheral_device/src/ |
D | main.c | 33 uint32_t cnt = 0; in main() local 51 if ((cnt & 0x7f) == 0x7f) { in main() 57 cnt++; in main()
|
/Zephyr-Core-3.7.0/tests/boards/mec15xxevb_assy6853/qspi/src/ |
D | main.c | 233 uint8_t cnt = 0; in ZTEST_USER() local 244 txb[cnt].buf = &safbuf; in ZTEST_USER() 245 txb[cnt].len = 4U; in ZTEST_USER() 249 cnt++; in ZTEST_USER() 250 txb[cnt].buf = NULL; in ZTEST_USER() 251 txb[cnt].len = (spi_opcode >> 8) & 0xFFU; in ZTEST_USER() 255 tx_bufs.count = cnt + 1; in ZTEST_USER() 295 uint8_t cnt = 0; in ZTEST_USER() local 308 txb[cnt].buf = &safbuf; in ZTEST_USER() 309 txb[cnt].len = 4U; in ZTEST_USER() [all …]
|