/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_encoder.c | 48 uint8_t *cur = buf->cur; in pack_uint8() local 51 if ((end - cur) < sizeof(uint8_t)) { in pack_uint8() 55 NET_DBG(">> val:%02x cur:%p, end:%p", val, (void *)cur, (void *)end); in pack_uint8() 58 cur[0] = val; in pack_uint8() 59 buf->cur = (cur + sizeof(uint8_t)); in pack_uint8() 76 uint8_t *cur = buf->cur; in pack_uint16() local 79 if ((end - cur) < sizeof(uint16_t)) { in pack_uint16() 83 NET_DBG(">> val:%04x cur:%p, end:%p", val, (void *)cur, (void *)end); in pack_uint16() 86 sys_put_be16(val, cur); in pack_uint16() 87 buf->cur = (cur + sizeof(uint16_t)); in pack_uint16() [all …]
|
D | mqtt_decoder.c | 32 uint8_t *cur = buf->cur; in unpack_uint8() local 35 NET_DBG(">> cur:%p, end:%p", (void *)cur, (void *)end); in unpack_uint8() 37 if ((end - cur) < sizeof(uint8_t)) { in unpack_uint8() 41 *val = cur[0]; in unpack_uint8() 42 buf->cur = (cur + sizeof(uint8_t)); in unpack_uint8() 62 uint8_t *cur = buf->cur; in unpack_uint16() local 65 NET_DBG(">> cur:%p, end:%p", (void *)cur, (void *)end); in unpack_uint16() 67 if ((end - cur) < sizeof(uint16_t)) { in unpack_uint16() 71 *val = sys_get_be16(cur); in unpack_uint16() 72 buf->cur = (cur + sizeof(uint16_t)); in unpack_uint16() [all …]
|
D | mqtt.c | 34 buf->cur = client->tx_buf; in tx_buf_init() 92 err_code = mqtt_transport_write(client, packet.cur, in client_connect() 93 packet.end - packet.cur); in client_connect() 269 io_vector[0].iov_base = packet.cur; in mqtt_publish() 270 io_vector[0].iov_len = packet.end - packet.cur; in mqtt_publish() 316 err_code = client_write(client, packet.cur, packet.end - packet.cur); in mqtt_publish_qos1_ack() 353 err_code = client_write(client, packet.cur, packet.end - packet.cur); in mqtt_publish_qos2_receive() 390 err_code = client_write(client, packet.cur, packet.end - packet.cur); in mqtt_publish_qos2_release() 427 err_code = client_write(client, packet.cur, packet.end - packet.cur); in mqtt_publish_qos2_complete() 462 err_code = client_write(client, packet.cur, packet.end - packet.cur); in mqtt_disconnect() [all …]
|
D | mqtt_rx.c | 155 if (length <= (buf->end - buf->cur)) { in mqtt_read_message_chunk() 162 remaining = length - (buf->end - buf->cur); in mqtt_read_message_chunk() 210 variable_header_length = *buf->cur << 8; /* MSB */ in mqtt_read_publish_var_header() 211 variable_header_length |= *(buf->cur + 1); /* LSB */ in mqtt_read_publish_var_header() 247 buf->cur = client->rx_buf; in mqtt_read_and_parse_fixed_header() 263 buf.cur = client->rx_buf; in mqtt_handle_rx()
|
/Zephyr-latest/samples/subsys/debug/fuzz/src/ |
D | main.c | 40 #define GEN_CHECK(cur, nxt) \ argument 42 void __noinline check##cur(const uint8_t *data, size_t sz) \ 44 if (cur < sz && data[cur] == key[cur]) { \ 45 if (!found[cur]) { \ 46 printk("#\n# Found key %d\n#\n", cur); \ 47 found[cur] = true; \ 49 if (cur == LASTKEY) { \
|
/Zephyr-latest/scripts/west_commands/completion/ |
D | west-completion.bash | 120 cur) 121 cur=$cur_ 224 _tilde "$cur" || return 229 x=$( compgen -d -- "$cur" ) && 236 _quote_readline_by_ref "$cur" quoted 309 if [ "$cur" = "=" ] ; then # key= case 312 elif [[ $cur == *=* ]] ; then # key=value case (OSX) 313 key=${cur%=*} 379 COMPREPLY=($(compgen -W "${*:1}" -- "$cur")) 422 case "$cur" in [all …]
|
/Zephyr-latest/include/zephyr/arch/xtensa/ |
D | atomic_xtensa.h | 82 atomic_val_t res, cur; \ 84 cur = *target; \ 85 res = xtensa_cas(target, cur, (expr)); \ 86 } while (res != cur); \ 100 return Z__GEN_ATOMXCHG(cur + value); in atomic_add() 107 return Z__GEN_ATOMXCHG(cur - value); in atomic_sub() 114 return Z__GEN_ATOMXCHG(cur + 1); in atomic_inc() 121 return Z__GEN_ATOMXCHG(cur - 1); in atomic_dec() 128 return Z__GEN_ATOMXCHG(cur | value); in atomic_or() 135 return Z__GEN_ATOMXCHG(cur ^ value); in atomic_xor() [all …]
|
/Zephyr-latest/subsys/stats/ |
D | stats.c | 22 const struct stats_name_map *cur; in stats_get_name() local 33 cur = hdr->s_map + i; in stats_get_name() 34 if (cur->snm_off == off) { in stats_get_name() 35 return cur->snm_name; in stats_get_name() 175 stats_group_get_next(const struct stats_hdr *cur) in stats_group_get_next() argument 177 if (cur == NULL) { in stats_group_get_next() 182 return cur->s_next; in stats_group_get_next() 222 struct stats_hdr *cur; in stats_register() local 226 for (cur = stats_list; cur != NULL; cur = cur->s_next) { in stats_register() 227 if (strcmp(cur->s_name, name) == 0) { in stats_register() [all …]
|
/Zephyr-latest/drivers/console/ |
D | uart_console.c | 238 static uint8_t cur, end; variable 279 if (ansi_val > cur) { in handle_ansi() 284 cur -= ansi_val; in handle_ansi() 293 cur += ansi_val; in handle_ansi() 297 if (!cur) { in handle_ansi() 301 cursor_backward(cur); in handle_ansi() 302 end += cur; in handle_ansi() 303 cur = 0U; in handle_ansi() 311 cur += end; in handle_ansi() 320 del_char(&line[cur], --end); in handle_ansi() [all …]
|
/Zephyr-latest/subsys/tracing/ |
D | tracing_backend_uart.c | 32 static uint32_t length, cur; in uart_isr() local 53 cmd[cur] = '\0'; in uart_isr() 54 tracing_cmd_handle(cmd, cur); in uart_isr() 56 cur = 0U; in uart_isr() 62 if (cur < length - 1) { in uart_isr() 63 cmd[cur++] = byte; in uart_isr()
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | Kconfig.multilevel.aggregator_template | 3 config $(cur-level)_LVL_INTR_0$(aggregator)_OFFSET 4 int "Level $(prev-level-num) IRQ line for $(cur-level) level aggregator $(aggregator)" 6 depends on $(cur-level)_LEVEL_INTERRUPTS 9 $(cur-level-num) interrupt aggregator $(aggregator).
|
D | Kconfig.multilevel | 72 cur-level-num = 2 73 cur-level = 2ND 126 cur-level-num = 3 127 cur-level = 3RD
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/stat_mgmt/src/ |
D | stat_mgmt.c | 191 const struct stats_hdr *cur = NULL; in stat_mgmt_list() local 197 cur = stats_group_get_next(cur); in stat_mgmt_list() 198 if (cur != NULL) { in stat_mgmt_list() 201 } while (cur != NULL); in stat_mgmt_list() 219 cur = NULL; in stat_mgmt_list() 221 cur = stats_group_get_next(cur); in stat_mgmt_list() 222 if (cur != NULL) { in stat_mgmt_list() 223 ok = zcbor_tstr_put_term(zse, cur->s_name, in stat_mgmt_list() 226 } while (ok && cur != NULL); in stat_mgmt_list()
|
/Zephyr-latest/tests/subsys/fs/fs_api/src/ |
D | test_fs.c | 21 static char *cur = buffer; variable 103 cur = read_pos; in temp_read() 128 cur = buffer + file_length; in temp_write() 142 cur = buffer + offset; in temp_seek() 145 cur += offset; in temp_seek() 148 cur = buffer + file_length + offset; in temp_seek() 154 if ((cur < buffer) || (cur > buffer + file_length)) { in temp_seek() 171 return cur - buffer; in temp_tell()
|
/Zephyr-latest/subsys/fs/fcb/ |
D | fcb_append.c | 18 struct flash_sector *cur; in fcb_new_sector() local 23 cur = fcb->f_active.fe_sector; in fcb_new_sector() 25 cur = fcb_getnext_sector(fcb, cur); in fcb_new_sector() 27 prev = cur; in fcb_new_sector() 29 if (cur == fcb->f_oldest) { in fcb_new_sector()
|
/Zephyr-latest/arch/x86/core/ |
D | spec_ctrl.c | 37 uint64_t cur = z_x86_msr_read(X86_SPEC_CTRL_MSR); in spec_ctrl_init() local 40 cur | enable_bits); in spec_ctrl_init()
|
/Zephyr-latest/subsys/net/ip/ |
D | utils.c | 602 struct net_pkt_cursor *cur = &pkt->cursor; in pkt_calc_chksum() local 605 if (!cur->buf || !cur->pos) { in pkt_calc_chksum() 609 len = cur->buf->len - (cur->pos - cur->buf->data); in pkt_calc_chksum() 611 while (cur->buf) { in pkt_calc_chksum() 612 sum = calc_chksum(sum, cur->pos, len); in pkt_calc_chksum() 614 cur->buf = cur->buf->frags; in pkt_calc_chksum() 615 if (!cur->buf || !cur->buf->len) { in pkt_calc_chksum() 619 cur->pos = cur->buf->data; in pkt_calc_chksum() 622 sum += *cur->pos; in pkt_calc_chksum() 623 if (sum < *cur->pos) { in pkt_calc_chksum() [all …]
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp_phy.c | 261 uint16_t comp, cur; in osdp_phy_check_packet() local 310 cur = (buf[pkt_len + 1] << 8) | buf[pkt_len]; in osdp_phy_check_packet() 312 if (comp != cur) { in osdp_phy_check_packet() 313 LOG_ERR("Invalid crc 0x%04x/0x%04x", comp, cur); in osdp_phy_check_packet() 320 cur = buf[pkt_len]; in osdp_phy_check_packet() 322 if (comp != cur) { in osdp_phy_check_packet() 323 LOG_ERR("Invalid checksum %02x/%02x", comp, cur); in osdp_phy_check_packet() 379 cur = osdp_phy_get_seq_number(pd, is_pd_mode(pd)); in osdp_phy_check_packet() 380 if (cur != comp && !ISSET_FLAG(pd, PD_FLAG_SKIP_SEQ_CHECK)) { in osdp_phy_check_packet() 381 LOG_ERR("packet seq mismatch %d/%d", cur, comp); in osdp_phy_check_packet()
|
/Zephyr-latest/tests/net/lib/mqtt/v3_1_1/mqtt_packet/src/ |
D | mqtt_packet.c | 438 .cur = publish_corrupted, 555 .cur = max_pkt_len, .end = max_pkt_len + sizeof(max_pkt_len) 561 .cur = corrupted_pkt_len, 690 if (buf->end - buf->cur != len) { in eval_buffers() 694 if (memcmp(expected, buf->cur, buf->end - buf->cur) != 0) { in eval_buffers() 703 print_array(buf->cur, buf->end - buf->cur); in eval_buffers() 726 buf.cur = client.tx_buf; in eval_msg_connect() 746 buf.cur = client.tx_buf; in eval_msg_disconnect() 773 buf.cur = client.tx_buf; in eval_msg_publish() 846 buf.cur = client.tx_buf; in eval_msg_subscribe() [all …]
|
/Zephyr-latest/tests/kernel/common/src/ |
D | timeout_order.c | 16 static int results[NUM_TIMEOUTS], cur; variable 28 results[cur++] = id; in thread()
|
/Zephyr-latest/drivers/flash/ |
D | flash_gd32_v3.c | 96 uint32_t cur = 0U, next = 0U; in flash_gd32_valid_range() local 115 cur = next; in flash_gd32_valid_range() 120 if ((offset > cur) && (offset < next)) { in flash_gd32_valid_range() 125 if (((offset + len) > cur) && in flash_gd32_valid_range()
|
/Zephyr-latest/scripts/kconfig/ |
D | kconfiglib.py | 3616 cur = node 3617 while cur.next and _auto_menu_dep(node, cur.next): 3620 self._finalize_node(cur.next, visible_if) 3621 cur = cur.next 3622 cur.parent = node 3624 if cur is not node: 3628 node.next = cur.next 3629 cur.next = None 3644 cur = node.list 3645 while cur: [all …]
|
/Zephyr-latest/tests/arch/x86/pagetables/src/ |
D | main.c | 231 struct k_thread *cur = k_current_get(); in z_impl_dump_my_ptables() local 233 printk("Page tables for thread %p\n", cur); in z_impl_dump_my_ptables() 234 z_x86_dump_page_tables(z_x86_thread_page_tables_get(cur)); in z_impl_dump_my_ptables()
|
/Zephyr-latest/subsys/bluetooth/services/ots/ |
D | ots_client.c | 187 if (cur_inst->rcvd_size >= cur_object->size.cur) { in rx_done() 191 if (cur_inst->rcvd_size > cur_object->size.cur) { in rx_done() 193 cur_object->size.cur); in rx_done() 201 const uint32_t rcv_size = cur_object->size.cur; in rx_done() 213 const uint32_t rcv_size = cur_object->size.cur; in rx_done() 825 cur_object->size.cur = in read_object_size_cb() 832 cur_object->size.cur, in read_object_size_cb() 835 if (cur_object->size.cur == 0) { in read_object_size_cb() 838 } else if (cur_object->size.cur > in read_object_size_cb() 844 cur_object->size.cur); in read_object_size_cb() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | beacon.c | 437 sub->secure_beacon.last = sub->secure_beacon.cur; in sub_update_beacon_observation() 438 sub->secure_beacon.cur = 0U; in sub_update_beacon_observation() 441 sub->priv_beacon.last = sub->priv_beacon.cur; in sub_update_beacon_observation() 442 sub->priv_beacon.cur = 0U; in sub_update_beacon_observation() 616 bt_mesh_beacon_enabled()) && beacon->cur < 0xff) { in net_beacon_register() 617 beacon->cur++; in net_beacon_register() 810 sub->secure_beacon.cur = 0U; in subnet_beacon_enable() 814 sub->priv_beacon.cur = 0U; in subnet_beacon_enable()
|