/Zephyr-latest/tests/subsys/display/cfb/basic/src/ |
D | draw_point.c | 52 struct cfb_position pos = {0, 0}; in ZTEST() local 54 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST() 62 struct cfb_position pos = {1, 1}; in ZTEST() local 64 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST() 75 struct cfb_position pos = {9, 15}; in ZTEST() local 77 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST() 85 struct cfb_position pos = {10, 16}; in ZTEST() local 87 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST() 95 struct cfb_position pos = {11, 17}; in ZTEST() local 97 zassert_ok(cfb_draw_point(dev, &pos)); in ZTEST() [all …]
|
/Zephyr-latest/drivers/gnss/ |
D | gnss_parse.c | 24 int8_t pos = 0; in gnss_parse_dec_to_nano() local 32 while (str[pos] != '\0') { in gnss_parse_dec_to_nano() 34 if (str[pos] == '.') { in gnss_parse_dec_to_nano() 35 decimal = pos; in gnss_parse_dec_to_nano() 40 pos++; in gnss_parse_dec_to_nano() 44 pos = decimal < 0 ? pos - 1 : decimal - 1; in gnss_parse_dec_to_nano() 51 while (start <= pos) { in gnss_parse_dec_to_nano() 53 if (str[pos] < '0' || str[pos] > '9') { in gnss_parse_dec_to_nano() 58 sum += (str[pos] - '0') * increment; in gnss_parse_dec_to_nano() 64 pos--; in gnss_parse_dec_to_nano() [all …]
|
D | gnss_nmea0183.c | 130 int pos; in gnss_nmea0183_snprintk() local 143 pos = vsnprintk(&str[1], size - 1, fmt, ap) + 1; in gnss_nmea0183_snprintk() 146 if (pos < 0) { in gnss_nmea0183_snprintk() 150 len = pos + GNSS_NMEA0183_MESSAGE_CHECKSUM_SIZE; in gnss_nmea0183_snprintk() 157 pos = snprintk(&str[pos], size - pos, "*%02X", checksum); in gnss_nmea0183_snprintk() 158 if (pos != 3) { in gnss_nmea0183_snprintk() 170 int8_t pos = 0; in gnss_nmea0183_ddmm_mmmm_to_ndeg() local 177 while (ddmm_mmmm[pos] != '\0') { in gnss_nmea0183_ddmm_mmmm_to_ndeg() 179 if (ddmm_mmmm[pos] == '.') { in gnss_nmea0183_ddmm_mmmm_to_ndeg() 180 decimal = pos; in gnss_nmea0183_ddmm_mmmm_to_ndeg() [all …]
|
/Zephyr-latest/tests/arch/x86/pagetables/src/ |
D | main.c | 85 uint8_t *pos; in ZTEST() local 95 for (pos = K_MEM_KERNEL_VIRT_START; pos < mem_range_end; in ZTEST() 96 pos += CONFIG_MMU_PAGE_SIZE) { in ZTEST() 97 if (pos == NULL) { in ZTEST() 102 entry = get_entry(&flags, pos); in ZTEST() 106 } else if (IN_REGION(__text_region, pos)) { in ZTEST() 108 } else if (IN_REGION(__rodata_region, pos)) { in ZTEST() 111 } else if (IN_REGION(__gcov_bss, pos)) { in ZTEST() 116 } else if (IN_REGION(_app_smem_pinned, pos)) { in ZTEST() 121 } else if (IN_REGION(_app_smem, pos)) { in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/controller/ctrl_sw_privacy_unit/src/ |
D | main.c | 49 uint8_t pos, ex_pos; in helper_prpa_add() local 58 pos = prpa_cache_find(&a1); in helper_prpa_add() 60 zassert_equal(pos, ex_pos, "%d == %d", pos, ex_pos); in helper_prpa_add() 63 pos = prpa_cache_find(&a2); in helper_prpa_add() 65 zassert_equal(pos, ex_pos, ""); in helper_prpa_add() 68 pos = prpa_cache_find(&a3); in helper_prpa_add() 70 zassert_equal(pos, ex_pos, ""); in helper_prpa_add() 74 pos = prpa_cache_find(&a4); in helper_prpa_add() 76 zassert_equal(pos, ex_pos, ""); in helper_prpa_add() 80 pos = prpa_cache_find(&a5); in helper_prpa_add() [all …]
|
/Zephyr-latest/subsys/llext/ |
D | buf_loader.c | 15 size_t end = MIN(buf_l->pos + len, buf_l->len); in llext_buf_read() 16 size_t read_len = end - buf_l->pos; in llext_buf_read() 18 memcpy(buf, buf_l->buf + buf_l->pos, read_len); in llext_buf_read() 19 buf_l->pos = end; in llext_buf_read() 24 int llext_buf_seek(struct llext_loader *l, size_t pos) in llext_buf_seek() argument 28 buf_l->pos = MIN(pos, buf_l->len); in llext_buf_seek() 33 void *llext_buf_peek(struct llext_loader *l, size_t pos) in llext_buf_peek() argument 37 return (void *)(buf_l->buf + pos); in llext_buf_peek()
|
/Zephyr-latest/subsys/bluetooth/host/classic/ |
D | at.c | 22 if (at->buf[at->pos] == ',') { in next_list() 23 at->pos++; in next_list() 41 while (at->buf[at->pos] == ' ') { in skip_space() 42 at->pos++; in skip_space() 53 isdigit((unsigned char)at->buf[at->pos]) != 0; in at_get_number() 54 at->pos++, i++) { in at_get_number() 55 *val = *val * 10U + at->buf[at->pos] - '0'; in at_get_number() 96 uint8_t pos = at->pos; in get_cmd_value() local 99 while (cmd_len < buf->len && at->pos != at->buf_max_len) { in get_cmd_value() 101 at->buf[at->pos++] = *str; in get_cmd_value() [all …]
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_max31790.c | 32 uint8_t pos = MAX37190_FANXDYNAMICS_SPEEDRANGE_POS; in max31790_set_fandynamics_speedrange() local 34 *destination &= ~GENMASK(pos + length - 1, pos); in max31790_set_fandynamics_speedrange() 35 *destination |= FIELD_PREP(GENMASK(pos + length - 1, pos), value); in max31790_set_fandynamics_speedrange() 41 uint8_t pos = MAX37190_FANXDYNAMICS_PWMRATEOFCHANGE_POS; in max31790_set_fandynamics_pwmrateofchange() local 43 *destination &= ~GENMASK(pos + length - 1, pos); in max31790_set_fandynamics_pwmrateofchange() 44 *destination |= FIELD_PREP(GENMASK(pos + length - 1, pos), value); in max31790_set_fandynamics_pwmrateofchange() 50 uint8_t pos = (channel / 3) * 4; in max31790_set_pwmfrequency() local 52 *destination &= ~GENMASK(pos + length - 1, pos); in max31790_set_pwmfrequency() 53 *destination |= FIELD_PREP(GENMASK(pos + length - 1, pos), value); in max31790_set_pwmfrequency() 59 uint8_t pos = (channel / 3) * 4; in max31790_get_pwmfrequency() local [all …]
|
/Zephyr-latest/subsys/tracing/ |
D | tracing_backend_ram.c | 15 static uint32_t pos; variable 26 if ((pos + length) > CONFIG_RAM_TRACING_BUFFER_SIZE) { in tracing_backend_ram_output() 31 memcpy(ram_tracing + pos, data, length); in tracing_backend_ram_output() 32 pos += length; in tracing_backend_ram_output() 38 pos = 0; in tracing_backend_ram_init()
|
/Zephyr-latest/drivers/console/ |
D | ipm_console_receiver.c | 26 int pos; in ipm_console_thread() local 32 pos = 0; in ipm_console_thread() 38 (uint8_t *)&config_info->line_buf[pos], in ipm_console_thread() 47 if (config_info->line_buf[pos] == '\n' || in ipm_console_thread() 48 pos == config_info->lb_size - 2) { in ipm_console_thread() 49 if (pos != config_info->lb_size - 2) { in ipm_console_thread() 50 config_info->line_buf[pos] = '\0'; in ipm_console_thread() 52 config_info->line_buf[pos + 1] = '\0'; in ipm_console_thread() 62 pos = 0; in ipm_console_thread() 64 ++pos; in ipm_console_thread()
|
D | ram_console.c | 34 static int pos; variable 38 ram_console[pos] = (char)character; in ram_console_out() 40 pos = (pos + 1) % (CONFIG_RAM_CONSOLE_BUFFER_SIZE - 1); in ram_console_out()
|
/Zephyr-latest/tests/drivers/stepper/stepper_api/src/ |
D | main.c | 76 int32_t pos = 100u; in ZTEST_F() local 77 (void)stepper_set_reference_position(fixture->dev, pos); in ZTEST_F() 78 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F() 79 zassert_equal(pos, 100u, "Actual position not set correctly"); in ZTEST_F() 84 int32_t pos = 100u; in ZTEST_F() local 91 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F() 100 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F() 101 zassert_equal(pos, 100u, "Target position should be %d but is %d", 100u, pos); in ZTEST_F()
|
/Zephyr-latest/tests/drivers/stepper/drv8424/api/src/ |
D | main.c | 93 int32_t pos = 100u; in ZTEST_F() local 94 (void)stepper_set_reference_position(fixture->dev, pos); in ZTEST_F() 95 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F() 96 zassert_equal(pos, 100u, "Actual position should be %u but is %u", 100u, pos); in ZTEST_F() 167 int32_t pos = 50; in ZTEST_F() local 172 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F() 181 (void)stepper_get_actual_position(fixture->dev, &pos); in ZTEST_F() 182 zassert_equal(pos, 50u, "Target position should be %d but is %d", 50u, pos); in ZTEST_F() 187 int32_t pos = -50; in ZTEST_F() local 192 (void)stepper_move_to(fixture->dev, pos); in ZTEST_F() [all …]
|
/Zephyr-latest/drivers/w1/ |
D | w1_shell.c | 26 static int read_io_options(const struct shell *sh, int pos, char **argv, in read_io_options() argument 29 char *arg = argv[pos]; in read_io_options() 32 return pos; in read_io_options() 46 return ++pos; in read_io_options() 193 int pos = 1; in cmd_w1_write_byte() local 197 dev = shell_device_get_binding(argv[pos]); in cmd_w1_write_byte() 199 shell_error(sh, W1DEV_X_NOT_FOUND, argv[pos]); in cmd_w1_write_byte() 202 pos++; in cmd_w1_write_byte() 204 pos = read_io_options(sh, pos, argv, &reset); in cmd_w1_write_byte() 205 if (pos < 0) { in cmd_w1_write_byte() [all …]
|
/Zephyr-latest/include/zephyr/llext/ |
D | loader.h | 77 int (*seek)(struct llext_loader *ldr, size_t pos); 89 void *(*peek)(struct llext_loader *ldr, size_t pos); 120 static inline int llext_seek(struct llext_loader *l, size_t pos) in llext_seek() argument 122 return l->seek(l, pos); in llext_seek() 125 static inline void *llext_peek(struct llext_loader *l, size_t pos) in llext_peek() argument 128 return l->peek(l, pos); in llext_peek()
|
D | buf_loader.h | 34 size_t pos; member 40 int llext_buf_seek(struct llext_loader *ldr, size_t pos); 41 void *llext_buf_peek(struct llext_loader *ldr, size_t pos); 62 .pos = 0, \
|
/Zephyr-latest/soc/intel/intel_socfpga_std/cyclonev/ |
D | soc.c | 25 uintptr_t pos = ROUND_DOWN(addr, CONFIG_MMU_PAGE_SIZE); in arch_reserved_pages_update() local 28 for (; pos < end; pos += CONFIG_MMU_PAGE_SIZE) { in arch_reserved_pages_update() 29 if (!k_mem_is_page_frame(pos)) { in arch_reserved_pages_update() 32 struct k_mem_page_frame *pf = k_mem_phys_to_page_frame(pos); in arch_reserved_pages_update()
|
/Zephyr-latest/subsys/storage/flash_map/ |
D | flash_map_integrity.c | 41 int pos; in flash_area_check_int_sha256() local 66 for (pos = 0; pos < fac->clen; pos += to_read) { in flash_area_check_int_sha256() 67 if (pos + to_read > fac->clen) { in flash_area_check_int_sha256() 68 to_read = fac->clen - pos; in flash_area_check_int_sha256() 71 rc = flash_read(fa->fa_dev, (fa->fa_off + fac->off + pos), in flash_area_check_int_sha256()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | iface.c | 104 int pos = 0; in iface_flags2str() local 107 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() 112 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() 117 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() 120 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() 125 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() 130 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() 135 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() 140 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() 145 pos += snprintk(str + pos, sizeof(str) - pos, in iface_flags2str() [all …]
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp_pd.c | 261 int pos = 0; in pd_decode_command() local 266 pd->cmd_id = cmd.id = buf[pos++]; in pd_decode_command() 324 pos++; /* Skip reply type info. */ in pd_decode_command() 332 pos++; /* Skip reply type info. */ in pd_decode_command() 341 cmd.output.output_no = buf[pos++]; in pd_decode_command() 342 cmd.output.control_code = buf[pos++]; in pd_decode_command() 343 cmd.output.timer_count = buf[pos++]; in pd_decode_command() 344 cmd.output.timer_count |= buf[pos++] << 8; in pd_decode_command() 360 cmd.led.reader = buf[pos++]; in pd_decode_command() 361 cmd.led.led_number = buf[pos++]; in pd_decode_command() [all …]
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_max31790.c | 26 uint8_t pos = MAX37190_GLOBALCONFIGURATION_I2CWATCHDOG_POS; in max31790_set_globalconfiguration_i2cwatchdog() local 28 *destination &= ~GENMASK(pos + length - 1, pos); in max31790_set_globalconfiguration_i2cwatchdog() 29 *destination |= FIELD_PREP(GENMASK(pos + length - 1, pos), value); in max31790_set_globalconfiguration_i2cwatchdog()
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_pack.c | 70 uint16_t pos, uint16_t len) in set_dns_msg_response() argument 73 dns_msg->response_position = pos; in set_dns_msg_response() 114 uint16_t pos; in dns_unpack_answer() local 154 pos = dns_msg->answer_offset + dname_len + in dns_unpack_answer() 164 set_dns_msg_response(dns_msg, DNS_RESPONSE_IP, pos, len); in dns_unpack_answer() 169 pos, len); in dns_unpack_answer() 362 struct dns_msg_t *dns_msg, uint16_t pos) in dns_copy_qname() argument 372 if (pos >= msg_size) { in dns_copy_qname() 377 lb_size = msg[pos]; in dns_copy_qname() 383 if (pos + 1 >= msg_size) { in dns_copy_qname() [all …]
|
/Zephyr-latest/subsys/retention/ |
D | retention.c | 92 size_t pos = config->offset + config->prefix_len; in retention_checksum() local 98 while (pos < end) { in retention_checksum() 99 uint16_t read_size = MIN((end - pos), sizeof(buffer)); in retention_checksum() 101 rc = retained_mem_read(config->parent, pos, buffer, read_size); in retention_checksum() 117 pos += read_size; in retention_checksum() 188 off_t pos = 0; in retention_is_valid() local 190 while (pos < config->prefix_len) { in retention_is_valid() 191 uint16_t read_size = MIN((config->prefix_len - pos), sizeof(buffer)); in retention_is_valid() 193 rc = retained_mem_read(config->parent, (config->offset + pos), buffer, in retention_is_valid() 200 if (memcmp(&config->prefix[pos], buffer, read_size) != 0) { in retention_is_valid() [all …]
|
/Zephyr-latest/modules/hostap/src/ |
D | supp_api.c | 1761 char *pos = cmd; local 1762 char *end = pos + SUPPLICANT_CANDIDATE_SCAN_CMD_BUF_SIZE; 1765 strcpy(pos, "freq="); 1766 pos += 5; 1769 pos += snprintf(pos, end - pos, ","); 1772 pos += snprintf(pos, end - pos, "%d", freq); 2972 char *pos = cmd; local 2977 strncpy(pos, "DPP_CONFIGURATOR_ADD", end - pos); 2978 STR_CUR_TO_END(pos); 2981 snprintf(pos, end - pos, " curve=%s", [all …]
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_ws.c | 27 static size_t pos; variable 69 if (pos >= (sizeof(output_buf) - 1)) { in ws_console_out() 73 output_buf[pos++] = c; in ws_console_out() 81 ret = ws_send_all(ctx->sock, output_buf, pos); in ws_console_out() 95 pos = 0; in ws_console_out() 100 if (pos >= (sizeof(output_buf) - 1)) { in ws_console_out() 101 pos = 0; in ws_console_out()
|