Home
last modified time | relevance | path

Searched refs:pos (Results 26 – 50 of 151) sorted by relevance

1234567

/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_cp.c349 int ret = OSDP_CP_ERR_GENERIC, pos = 0, t1, t2; in cp_decode_response() local
352 pd->reply_id = buf[pos++]; in cp_decode_response()
367 buf[pos], pd->cmd_id); in cp_decode_response()
374 pd->id.vendor_code = buf[pos++]; in cp_decode_response()
375 pd->id.vendor_code |= buf[pos++] << 8; in cp_decode_response()
376 pd->id.vendor_code |= buf[pos++] << 16; in cp_decode_response()
378 pd->id.model = buf[pos++]; in cp_decode_response()
379 pd->id.version = buf[pos++]; in cp_decode_response()
381 pd->id.serial_number = buf[pos++]; in cp_decode_response()
382 pd->id.serial_number |= buf[pos++] << 8; in cp_decode_response()
[all …]
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_basic.c146 off_t pos = stat.size / 4; in seek_within_hello() local
148 zassert_equal(fs_seek(&file, pos, FS_SEEK_SET), in seek_within_hello()
152 zassert_equal(fs_tell(&file), pos, in seek_within_hello()
155 zassert_equal(testfs_verify_incrementing(&file, pos, TESTFS_BUFFER_SIZE), in seek_within_hello()
156 TESTFS_BUFFER_SIZE - pos, in seek_within_hello()
169 zassert_equal(fs_seek(&file, -pos, FS_SEEK_END), in seek_within_hello()
173 zassert_equal(fs_tell(&file), stat.size - pos, in seek_within_hello()
176 zassert_equal(testfs_verify_incrementing(&file, stat.size - pos, in seek_within_hello()
178 pos, in seek_within_hello()
211 off_t pos = 3 * stat.size / 4; in truncate_hello() local
[all …]
/Zephyr-latest/subsys/demand_paging/backing_store/
Dram.c72 char *pos = slab; in slab_to_location() local
75 __ASSERT(pos >= backing_store && in slab_to_location()
76 pos < backing_store + ARRAY_SIZE(backing_store), in slab_to_location()
78 offset = pos - backing_store; in slab_to_location()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_util.c329 char *pos, *end, buf[24]; in lwm2m_atof() local
345 pos = strchr(buf, '.'); in lwm2m_atof()
346 if (pos) { in lwm2m_atof()
347 *pos = '\0'; in lwm2m_atof()
359 if (!pos) { in lwm2m_atof()
364 while (*(++pos) && base > 1 && isdigit((unsigned char)*pos) != 0) { in lwm2m_atof()
365 val2 = val2 * 10 + (*pos - '0'); in lwm2m_atof()
373 return !*pos || base == 1 ? 0 : -EINVAL; in lwm2m_atof()
430 uint16_t pos = 0U; in lwm2m_atou16() local
433 while (pos < buflen && isdigit(buf[pos]) != 0) { in lwm2m_atou16()
[all …]
/Zephyr-latest/modules/lvgl/
Dlvgl_fs.c135 static lv_fs_res_t lvgl_fs_seek(lv_fs_drv_t *drv, void *file, uint32_t pos, lv_fs_whence_t whence) in lvgl_fs_seek() argument
152 err = fs_seek((struct fs_file_t *)file, pos, fs_whence); in lvgl_fs_seek()
158 off_t pos; in lvgl_fs_tell() local
160 pos = fs_tell((struct fs_file_t *)file); in lvgl_fs_tell()
161 if (pos < 0) { in lvgl_fs_tell()
162 return errno_to_lv_fs_res(pos); in lvgl_fs_tell()
165 *pos_p = pos; in lvgl_fs_tell()
/Zephyr-latest/soc/nuvoton/npcx/common/reg/
Dreg_access.h15 #define GET_POS_FIELD(pos, size) pos argument
16 #define GET_SIZE_FIELD(pos, size) size argument
/Zephyr-latest/tests/kernel/threads/thread_stack/src/
Dmain.c102 volatile char *pos; in stack_buffer_scenarios() local
179 for (pos = stack_ptr; pos < stack_end; pos++) { in stack_buffer_scenarios()
181 val = *pos; in stack_buffer_scenarios()
182 *pos = val; in stack_buffer_scenarios()
190 for (pos = stack_start; pos < stack_end; pos++) { in stack_buffer_scenarios()
191 zassert_false(check_perms((void *)pos, 1, 1), in stack_buffer_scenarios()
193 pos); in stack_buffer_scenarios()
/Zephyr-latest/tests/kernel/common/src/
Dprintk.c12 static int pos; variable
180 pk_console[pos] = (char)character; in ram_console_out()
181 pos = (pos + 1) % BUF_SZ; in ram_console_out()
219 pk_console[pos] = '\0'; in ZTEST()
/Zephyr-latest/kernel/include/
Dpriority_q.h192 struct prio_info pos = get_prio_info(thread->base.prio); in z_priq_mq_add() local
194 sys_dlist_append(&pq->queues[pos.offset_prio], &thread->base.qnode_dlist); in z_priq_mq_add()
195 pq->bitmask[pos.idx] |= BIT(pos.bit); in z_priq_mq_add()
201 struct prio_info pos = get_prio_info(thread->base.prio); in z_priq_mq_remove() local
204 if (sys_dlist_is_empty(&pq->queues[pos.offset_prio])) { in z_priq_mq_remove()
205 pq->bitmask[pos.idx] &= ~BIT(pos.bit); in z_priq_mq_remove()
/Zephyr-latest/subsys/debug/gdbstub/
Dgdbstub.c295 size_t pos, count = 0; in gdb_mem_read_unaligned() local
298 for (pos = 0; pos < len; pos++) { in gdb_mem_read_unaligned()
299 data = *(uint8_t *)(addr + pos); in gdb_mem_read_unaligned()
315 size_t read_sz, pos; in gdb_mem_read_aligned() local
339 pos = addr & (align - 1); in gdb_mem_read_aligned()
340 read_sz = MIN(len, align - pos); in gdb_mem_read_aligned()
350 count += gdb_bin2hex(&data.b8[pos], read_sz, in gdb_mem_read_aligned()
368 pos = 0; in gdb_mem_read_aligned()
449 size_t pos, write_sz; in gdb_mem_write_aligned() local
483 pos = addr & (align - 1); in gdb_mem_write_aligned()
[all …]
/Zephyr-latest/tests/arch/arm/arm_irq_zero_latency_levels/src/
Dmain.c19 #define CHECK_STEP(pos, val) zassert_equal( \ argument
20 execution_trace[pos], \
24 pos, \
25 execution_step_str(execution_trace[pos]))
/Zephyr-latest/drivers/console/
Duart_console.c171 static void insert_char(char *pos, char c, uint8_t end) in insert_char() argument
179 *pos = c; in insert_char()
183 tmp = *pos; in insert_char()
184 *(pos++) = c; in insert_char()
190 c = *pos; in insert_char()
191 *(pos++) = tmp; in insert_char()
199 static void del_char(char *pos, uint8_t end) in del_char() argument
212 *pos = *(pos + 1); in del_char()
213 uart_poll_out(uart_console_dev, *(pos++)); in del_char()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_6lo_fragment.c100 uint8_t pos = frag->len; in set_up_frag_hdr() local
105 frag->data[pos] = NET_6LO_DISPATCH_FRAG1; in set_up_frag_hdr()
108 frag->data[pos] = NET_6LO_DISPATCH_FRAGN; in set_up_frag_hdr()
111 set_datagram_size(frag->data + pos, size); in set_up_frag_hdr()
112 pos += NET_6LO_FRAG_DATAGRAM_SIZE_LEN; in set_up_frag_hdr()
114 set_datagram_tag(frag->data + pos, datagram_tag); in set_up_frag_hdr()
115 pos += NET_6LO_FRAG_DATAGRAM_OFFSET_LEN; in set_up_frag_hdr()
118 frag->data[pos] = offset; in set_up_frag_hdr()
132 uint8_t remainder = ctx->buf->len - (ctx->pos - ctx->buf->data); in copy_data()
135 memcpy(frame_buf->data + frame_buf->len, ctx->pos, move); in copy_data()
[all …]
Dieee802154_shell.c194 int i, pos = 0; in print_coordinator_address() local
196 pos += snprintk(buf + pos, buf_len - pos, "(extended) "); in print_coordinator_address()
199 pos += snprintk(buf + pos, buf_len - pos, in print_coordinator_address()
203 buf[pos - 1] = '\0'; in print_coordinator_address()
489 int i, pos = 0; in cmd_ieee802154_get_ext_addr() local
492 pos += snprintk(ext_addr + pos, in cmd_ieee802154_get_ext_addr()
493 EXT_ADDR_STR_SIZE - pos, in cmd_ieee802154_get_ext_addr()
/Zephyr-latest/tests/net/ppp/driver/src/
Dmain.c182 int pos = 0; in ppp_l2_recv() local
185 if (memcmp(expecting + pos, buf->data, buf->len)) { in ppp_l2_recv()
186 LOG_HEXDUMP_DBG(expecting + pos, in ppp_l2_recv()
195 pos += buf->len; in ppp_l2_recv()
298 uint8_t *pos = *ptr; in unescape() local
301 if (*pos == 0x7d) { in unescape()
302 pos++; in unescape()
303 val = (*pos) ^ 0x20; in unescape()
312 return *pos; in unescape()
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_net.c51 int pos = 0; in line_out() local
62 io_vector[pos].iov_base = (void *)len; in line_out()
63 io_vector[pos].iov_len = strlen(len); in line_out()
64 pos++; in line_out()
72 io_vector[pos].iov_base = (void *)data; in line_out()
73 io_vector[pos].iov_len = length; in line_out()
74 pos++; in line_out()
77 msg.msg_iovlen = pos; in line_out()
Dlog_backend_rtt.c89 uint8_t *pos; in data_out_drop_mode() local
95 for (pos = data; pos < data + length; pos++) { in data_out_drop_mode()
96 if (char_out_drop_mode(*pos)) { in data_out_drop_mode()
101 return (int) (pos - data); in data_out_drop_mode()
/Zephyr-latest/subsys/net/
Dhostname.c69 int pos = 0; in net_hostname_set_postfix() local
86 for (i = 0; i < postfix_len; i++, pos += 2) { in net_hostname_set_postfix()
87 snprintk(&hostname[sizeof(CONFIG_NET_HOSTNAME) - 1 + pos], 2 + 1, "%02x", in net_hostname_set_postfix()
/Zephyr-latest/samples/net/sockets/http_client/src/
Dmain.c99 int i, pos = 0; in payload_cb() local
102 pos += snprintk(tmp + pos, sizeof(tmp) - pos, in payload_cb()
108 pos += snprintk(tmp + pos, sizeof(tmp) - pos, "0\r\n\r\n"); in payload_cb()
110 (void)send(sock, tmp, pos, 0); in payload_cb()
112 return pos; in payload_cb()
/Zephyr-latest/include/zephyr/sys/
Ddlist.h482 sys_dnode_t *pos = sys_dlist_peek_head(list); in sys_dlist_insert_at() local
484 while ((pos != NULL) && (cond(pos, data) == 0)) { in sys_dlist_insert_at()
485 pos = sys_dlist_peek_next(list, pos); in sys_dlist_insert_at()
487 if (pos != NULL) { in sys_dlist_insert_at()
488 sys_dlist_insert(pos, node); in sys_dlist_insert_at()
/Zephyr-latest/drivers/stepper/
Dfake_stepper_controller.c68 static int fake_stepper_set_reference_position_delegate(const struct device *dev, const int32_t pos) in fake_stepper_set_reference_position_delegate() argument
72 data->actual_position = pos; in fake_stepper_set_reference_position_delegate()
77 static int fake_stepper_get_actual_position_delegate(const struct device *dev, int32_t *pos) in fake_stepper_get_actual_position_delegate() argument
81 *pos = data->actual_position; in fake_stepper_get_actual_position_delegate()
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/
Dsmp_lorawan.c65 uint16_t pos = 0; in smp_lorawan_uplink_thread() local
71 while (pos < size || size == 0) { in smp_lorawan_uplink_thread()
84 if ((data_size + pos) > size) { in smp_lorawan_uplink_thread()
85 data_size = size - pos; in smp_lorawan_uplink_thread()
114 pos += data_size; in smp_lorawan_uplink_thread()
/Zephyr-latest/lib/utils/
Djson.c58 lex->tok.end = lex->pos; in emit()
59 lex->start = lex->pos; in emit()
64 if (lex->pos >= lex->end) { in next()
65 lex->pos = lex->end + 1; in next()
70 return *lex->pos++; in next()
75 lex->start = lex->pos; in ignore()
80 lex->pos--; in backup()
265 lex->pos = data; in lexer_init()
708 while (obj->lex.pos != obj->lex.end) { in arr_data_parse()
710 if (*obj->lex.pos == JSON_TOK_STRING) { in arr_data_parse()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx_iface.h67 uint8_t pos);
81 uint8_t pos,
/Zephyr-latest/scripts/coccinelle/
Didentifier_length.cocci25 pos << r_idlen.p;
30 coccilib.report.print_report(pos[0], msg)

1234567