Lines Matching full:out
37 static int put_time(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, time_t value) in put_time() argument
69 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_time()
79 tag_sz = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_time()
81 out->out_cpkt->offset += tag_sz; in put_time()
89 str_sz = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_time()
91 out->out_cpkt->offset += str_sz; in put_time()
96 static int put_s64(struct lwm2m_output_context *out, in put_s64() argument
102 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_s64()
107 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_s64()
108 out->out_cpkt->offset += payload_len; in put_s64()
117 static int put_s32(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int32_t value) in put_s32() argument
122 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_s32()
127 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_s32()
128 out->out_cpkt->offset += payload_len; in put_s32()
137 static int put_s16(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int16_t value) in put_s16() argument
139 return put_s32(out, path, value); in put_s16()
142 static int put_s8(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, int8_t value) in put_s8() argument
144 return put_s32(out, path, value); in put_s8()
147 static int put_float(struct lwm2m_output_context *out, in put_float() argument
153 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_float()
158 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_float()
159 out->out_cpkt->offset += payload_len; in put_float()
167 static int put_string(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_string() argument
173 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_string()
178 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_string()
179 out->out_cpkt->offset += payload_len; in put_string()
187 static int put_opaque(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_opaque() argument
193 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_opaque()
198 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_opaque()
199 out->out_cpkt->offset += payload_len; in put_opaque()
207 static int put_bool(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, bool value) in put_bool() argument
212 ZCBOR_STATE_E(states, 0, CPKT_BUF_W_PTR(out->out_cpkt), CPKT_BUF_W_SIZE(out->out_cpkt), 1); in put_bool()
217 payload_len = CPKT_CBOR_W_SZ(states[0].payload, out->out_cpkt); in put_bool()
218 out->out_cpkt->offset += payload_len; in put_bool()
226 static int put_objlnk(struct lwm2m_output_context *out, struct lwm2m_obj_path *path, in put_objlnk() argument
233 return put_string(out, path, objlnk, strlen(objlnk) + 1); in put_objlnk()
468 LOG_WRN("decoded id %lu out of range[0..65535]", id); in get_objlnk()