Lines Matching full:out

34  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
123 static int oma_tlv_put_u8(struct lwm2m_output_context *out, in oma_tlv_put_u8() argument
130 fd = engine_get_out_user_data(out); in oma_tlv_put_u8()
135 ret = buf_insert(CPKT_BUF_WRITE(out->out_cpkt), in oma_tlv_put_u8()
143 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), &value, 1); in oma_tlv_put_u8()
153 struct lwm2m_output_context *out, uint8_t *value, in oma_tlv_put() argument
169 ret = oma_tlv_put_u8(out, tmp, insert); in oma_tlv_put()
178 ret = oma_tlv_put_u8(out, (tlv->id >> 8) & 0xff, insert); in oma_tlv_put()
186 ret = oma_tlv_put_u8(out, tlv->id & 0xff, insert); in oma_tlv_put()
195 ret = oma_tlv_put_u8(out, in oma_tlv_put()
208 ret = buf_append(CPKT_BUF_WRITE(out->out_cpkt), in oma_tlv_put()
274 /* and read out the data??? */ in oma_tlv_get()
291 static int put_begin_tlv(struct lwm2m_output_context *out, uint16_t *mark_pos, in put_begin_tlv() argument
300 *mark_pos = out->out_cpkt->offset; in put_begin_tlv()
305 static int put_end_tlv(struct lwm2m_output_context *out, uint16_t mark_pos, in put_end_tlv() argument
313 fd = engine_get_out_user_data(out); in put_end_tlv()
320 len = out->out_cpkt->offset - mark_pos; in put_end_tlv()
327 len = oma_tlv_put(&tlv, out, NULL, true) - tlv.length; in put_end_tlv()
332 static int put_begin_oi(struct lwm2m_output_context *out, in put_begin_oi() argument
342 fd = engine_get_out_user_data(out); in put_begin_oi()
347 return put_begin_tlv(out, &fd->mark_pos_oi, &fd->writer_flags, 0); in put_begin_oi()
350 static int put_end_oi(struct lwm2m_output_context *out, in put_end_oi() argument
359 fd = engine_get_out_user_data(out); in put_end_oi()
364 return put_end_tlv(out, fd->mark_pos_oi, &fd->writer_flags, 0, in put_end_oi()
368 static int put_begin_ri(struct lwm2m_output_context *out, in put_begin_ri() argument
373 fd = engine_get_out_user_data(out); in put_begin_ri()
378 return put_begin_tlv(out, &fd->mark_pos_ri, &fd->writer_flags, in put_begin_ri()
382 static int put_end_ri(struct lwm2m_output_context *out, in put_end_ri() argument
387 fd = engine_get_out_user_data(out); in put_end_ri()
398 return put_end_tlv(out, fd->mark_pos_ri, &fd->writer_flags, in put_end_ri()
403 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_s8() argument
410 fd = engine_get_out_user_data(out); in put_s8()
418 len = oma_tlv_put(&tlv, out, (uint8_t *)&value, false); in put_s8()
422 static int put_s16(struct lwm2m_output_context *out, in put_s16() argument
431 return put_s8(out, path, (int8_t)value); in put_s16()
434 fd = engine_get_out_user_data(out); in put_s16()
443 len = oma_tlv_put(&tlv, out, (uint8_t *)&net_value, false); in put_s16()
447 static int put_s32(struct lwm2m_output_context *out, in put_s32() argument
456 return put_s16(out, path, (int16_t)value); in put_s32()
459 fd = engine_get_out_user_data(out); in put_s32()
468 len = oma_tlv_put(&tlv, out, (uint8_t *)&net_value, false); in put_s32()
473 static int put_s64(struct lwm2m_output_context *out, in put_s64() argument
482 return put_s32(out, path, (int32_t)value); in put_s64()
485 fd = engine_get_out_user_data(out); in put_s64()
494 len = oma_tlv_put(&tlv, out, (uint8_t *)&net_value, false); in put_s64()
499 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time() argument
501 return put_s64(out, path, (int64_t)value); in put_time()
504 static int put_string(struct lwm2m_output_context *out, in put_string() argument
511 fd = engine_get_out_user_data(out); in put_string()
518 len = oma_tlv_put(&tlv, out, (uint8_t *)buf, false); in put_string()
522 static int put_float(struct lwm2m_output_context *out, in put_float() argument
531 fd = engine_get_out_user_data(out); in put_float()
544 len = oma_tlv_put(&tlv, out, b64, false); in put_float()
548 static int put_bool(struct lwm2m_output_context *out, in put_bool() argument
553 return put_s8(out, path, value_s8); in put_bool()
556 static int put_opaque(struct lwm2m_output_context *out, in put_opaque() argument
559 return put_string(out, path, buf, buflen); in put_opaque()
562 static int put_objlnk(struct lwm2m_output_context *out, in put_objlnk() argument
570 fd = engine_get_out_user_data(out); in put_objlnk()
578 return oma_tlv_put(&tlv, out, (uint8_t *)&net_value, false); in put_objlnk()
813 engine_set_out_user_data(&msg->out, &fd); in do_read_op_tlv()
815 engine_clear_out_user_data(&msg->out); in do_read_op_tlv()