Lines Matching refs:in

218 static int oma_tlv_get(struct oma_tlv *tlv, struct lwm2m_input_context *in,  in oma_tlv_get()  argument
228 tmp_offset = in->offset; in oma_tlv_get()
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()
278 in->offset = tmp_offset; in oma_tlv_get()
285 in->offset = tmp_offset; in oma_tlv_get()
581 static int get_number(struct lwm2m_input_context *in, int64_t *value, in get_number() argument
589 size = oma_tlv_get(&tlv, in, false); in get_number()
600 CPKT_BUF_READ(in->in_cpkt), &in->offset); in get_number()
626 static int get_s64(struct lwm2m_input_context *in, int64_t *value) in get_s64() argument
628 return get_number(in, value, 8); in get_s64()
631 static int get_time(struct lwm2m_input_context *in, time_t *value) in get_time() argument
636 ret = get_number(in, &temp64, 8); in get_time()
642 static int get_s32(struct lwm2m_input_context *in, int32_t *value) in get_s32() argument
647 size = get_number(in, &temp, 4); in get_s32()
657 static int get_string(struct lwm2m_input_context *in, uint8_t *buf, in get_string() argument
664 size = oma_tlv_get(&tlv, in, false); in get_string()
673 ret = buf_read(buf, tlv.length, CPKT_BUF_READ(in->in_cpkt), in get_string()
674 &in->offset); in get_string()
685 static int get_float(struct lwm2m_input_context *in, double *value) in get_float() argument
692 size = oma_tlv_get(&tlv, in, false); in get_float()
703 ret = buf_read(buf, tlv.length, CPKT_BUF_READ(in->in_cpkt), in get_float()
704 &in->offset); in get_float()
724 static int get_bool(struct lwm2m_input_context *in, bool *value) in get_bool() argument
729 size = get_number(in, &temp, 2); in get_bool()
740 static int get_opaque(struct lwm2m_input_context *in, uint8_t *value, in get_opaque() argument
749 size = oma_tlv_get(&tlv, in, false); in get_opaque()
758 return lwm2m_engine_get_opaque_more(in, value, buflen, in get_opaque()
762 static int get_objlnk(struct lwm2m_input_context *in, in get_objlnk() argument
768 size = get_s32(in, &value_s32); in get_objlnk()
824 oma_tlv_get(&tlv, &msg->in, false); in do_write_op_tlv_dummy_read()
826 if (buf_read_u8(&read_char, CPKT_BUF_READ(msg->in.in_cpkt), in do_write_op_tlv_dummy_read()
827 &msg->in.offset) < 0) { in do_write_op_tlv_dummy_read()
887 if (msg->in.block_ctx) { in write_tlv_resource()
888 msg->in.block_ctx->path.res_id = tlv->id; in write_tlv_resource()
915 if (msg->in.block_ctx) { in write_tlv_resource_instance()
916 msg->in.block_ctx->path.res_inst_id = tlv->id; in write_tlv_resource_instance()
939 if (msg->in.block_ctx) { in lwm2m_multi_resource_tlv_parse()
940 msg->in.block_ctx->path.res_id = multi_resource_tlv->id; in lwm2m_multi_resource_tlv_parse()
949 (len2 = oma_tlv_get(&tlv_resource_instance, &msg->in, true))) { in lwm2m_multi_resource_tlv_parse()
989 if (msg->in.block_ctx != NULL && msg->in.block_ctx->ctx.current > 0) { in do_write_op_tlv()
990 msg->path.res_id = msg->in.block_ctx->path.res_id; in do_write_op_tlv()
1004 len = oma_tlv_get(&tlv, &msg->in, true); in do_write_op_tlv()
1014 oma_tlv_get(&tlv, &msg->in, false); in do_write_op_tlv()
1032 (len2 = oma_tlv_get(&tlv2, &msg->in, true))) { in do_write_op_tlv()
1039 oma_tlv_get(&tlv2, &msg->in, false); in do_write_op_tlv()
1063 oma_tlv_get(&tlv, &msg->in, false); in do_write_op_tlv()