Searched refs:in_cpkt (Results 1 – 17 of 17) sorted by relevance
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_plain_text.c | 186 if (in->offset >= in->in_cpkt->offset) { in plain_text_read_int() 194 while (in->offset < in->in_cpkt->offset) { in plain_text_read_int() 195 if (buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), in plain_text_read_int() 254 coap_packet_get_payload(in->in_cpkt, &in_len); in get_string() 261 if (buf_read(value, in_len, CPKT_BUF_READ(in->in_cpkt), in get_string() 278 if (in->offset >= in->in_cpkt->offset) { in get_float() 283 while (in->offset < in->in_cpkt->offset) { in get_float() 284 if (buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), in get_float() 326 if (in->offset >= in->in_cpkt->offset) { in get_bool() 331 ret = buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), &in->offset); in get_bool()
|
D | lwm2m_rw_oma_tlv.c | 229 ret = buf_read_u8(&buf[0], CPKT_BUF_READ(in->in_cpkt), &tmp_offset); in oma_tlv_get() 238 ret = buf_read_u8(&buf[1], CPKT_BUF_READ(in->in_cpkt), &tmp_offset); in oma_tlv_get() 247 ret = buf_read_u8(&buf[1], CPKT_BUF_READ(in->in_cpkt), in oma_tlv_get() 262 ret = buf_read_u8(&buf[1], CPKT_BUF_READ(in->in_cpkt), in oma_tlv_get() 600 CPKT_BUF_READ(in->in_cpkt), &in->offset); in get_number() 673 ret = buf_read(buf, tlv.length, CPKT_BUF_READ(in->in_cpkt), in get_string() 703 ret = buf_read(buf, tlv.length, CPKT_BUF_READ(in->in_cpkt), in get_float() 826 if (buf_read_u8(&read_char, CPKT_BUF_READ(msg->in.in_cpkt), in do_write_op_tlv_dummy_read()
|
D | lwm2m_message_handling.c | 321 msg->mid = coap_header_get_id(msg->in.in_cpkt); in build_msg_block_for_send() 322 tkl = coap_header_get_token(msg->in.in_cpkt, token); in build_msg_block_for_send() 2086 payload_start = coap_packet_get_payload(msg->in.in_cpkt, &payload_len); in parse_write_op() 2088 msg->in.offset = payload_start - msg->in.in_cpkt->data; in parse_write_op() 2090 msg->in.offset = msg->in.in_cpkt->offset; in parse_write_op() 2094 block_opt = coap_get_option_int(msg->in.in_cpkt, COAP_OPTION_BLOCK1); in parse_write_op() 2148 r = coap_update_from_block(msg->in.in_cpkt, &block_ctx->ctx); in parse_write_op() 2197 payload_start = coap_packet_get_payload(msg->in.in_cpkt, &payload_len); in do_composite_write_op() 2199 msg->in.offset = payload_start - msg->in.in_cpkt->data; in do_composite_write_op() 2201 msg->in.offset = msg->in.in_cpkt->offset; in do_composite_write_op() [all …]
|
D | lwm2m_rw_opaque.c | 61 coap_packet_get_payload(in->in_cpkt, &in_len); in get_opaque()
|
D | lwm2m_obj_gateway.c | 156 ret = coap_find_options(msg->in.in_cpkt, COAP_OPTION_URI_PATH, options, in lwm2m_gw_handle_req()
|
D | lwm2m_object.h | 153 #define ICTX_BUF_R_LEFT_SZ(i_ctx) ((i_ctx)->in_cpkt->max_len - (i_ctx)->offset) 154 #define ICTX_BUF_R_PTR(i_ctx) ((i_ctx)->in_cpkt->data + (i_ctx)->offset) 464 struct coap_packet *in_cpkt; member
|
D | lwm2m_rw_cbor.c | 35 #define ICTX_CBOR_R_SZ(pos, ictx) ((size_t)pos - (size_t)(ictx)->in_cpkt->data - (ictx)->offset)
|
D | lwm2m_registry.c | 1093 uint16_t remaining = in->in_cpkt->max_len - in->offset; in lwm2m_engine_get_opaque_more() 1109 if (buf_read(buf, in_len, CPKT_BUF_READ(in->in_cpkt), &in->offset) < 0) { in lwm2m_engine_get_opaque_more()
|
D | lwm2m_rw_senml_json.c | 1485 data_ptr = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in do_write_op_senml_json() 1574 data_ptr = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in json_parse_composite_read_paths()
|
D | lwm2m_rw_json.c | 922 data_ptr = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in do_write_op_json()
|
D | lwm2m_rw_senml_cbor.c | 857 payload = (char *)coap_packet_get_payload(msg->in.in_cpkt, &in_len); in parse_composite_read_paths()
|
D | lwm2m_observation.c | 1156 nr_opt = coap_find_options(msg->in.in_cpkt, COAP_OPTION_URI_QUERY, options, NR_LWM2M_ATTR); in lwm2m_write_attr_handler()
|
/Zephyr-latest/tests/net/lib/lwm2m/content_plain_text/src/ |
D | main.c | 26 test_in.in_cpkt = &test_packet; in context_reset()
|
/Zephyr-latest/tests/net/lib/lwm2m/content_json/src/ |
D | main.c | 119 test_msg.in.in_cpkt = &test_msg.cpkt; in context_reset()
|
/Zephyr-latest/tests/net/lib/lwm2m/content_raw_cbor/src/ |
D | main.c | 34 test_in.in_cpkt = &test_packet; in context_reset()
|
/Zephyr-latest/tests/net/lib/lwm2m/content_senml_cbor/src/ |
D | main.c | 135 test_msg.in.in_cpkt = &test_msg.cpkt; in context_reset()
|
/Zephyr-latest/tests/net/lib/lwm2m/content_oma_tlv/src/ |
D | main.c | 46 test_in.in_cpkt = &test_packet; in context_reset()
|