Lines Matching refs:in

236 static int get_s64(struct lwm2m_input_context *in, int64_t *value)  in get_s64()  argument
238 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_s64()
245 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_s64()
247 in->offset += len; in get_s64()
252 static int get_s32(struct lwm2m_input_context *in, int32_t *value) in get_s32() argument
254 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_s32()
262 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_s32()
264 in->offset += len; in get_s32()
269 static int get_float(struct lwm2m_input_context *in, double *value) in get_float() argument
271 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_float()
278 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_float()
280 in->offset += len; in get_float()
285 static int get_string(struct lwm2m_input_context *in, uint8_t *value, size_t buflen) in get_string() argument
290 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_string()
303 len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_string()
305 in->offset += len; in get_string()
314 static int get_time_string(struct lwm2m_input_context *in, int64_t *value) in get_time_string() argument
319 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_time_string()
335 static int get_time_numerical(struct lwm2m_input_context *in, int64_t *value) in get_time_numerical() argument
337 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_time_numerical()
347 static int get_time(struct lwm2m_input_context *in, time_t *value) in get_time() argument
356 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_time()
361 tag_sz = ICTX_CBOR_R_SZ(states[0].payload, in); in get_time()
362 in->offset += tag_sz; in get_time()
366 ret = get_time_numerical(in, &temp64); in get_time()
372 ret = get_time_string(in, &temp64); in get_time()
384 ret = get_time_string(in, &temp64); in get_time()
386 ret = get_time_numerical(in, &temp64); in get_time()
394 data_len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_time()
395 in->offset += data_len; in get_time()
404 static int get_bool(struct lwm2m_input_context *in, bool *value) in get_bool() argument
406 ZCBOR_STATE_D(states, 0, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_bool()
413 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_bool()
415 in->offset += len; in get_bool()
420 static int get_opaque(struct lwm2m_input_context *in, uint8_t *value, size_t buflen, in get_opaque() argument
426 ZCBOR_STATE_D(states, 1, ICTX_BUF_R_PTR(in), ICTX_BUF_R_LEFT_SZ(in), 1, 0); in get_opaque()
440 int len = ICTX_CBOR_R_SZ(states[0].payload, in); in get_opaque()
442 in->offset += len; in get_opaque()
445 return lwm2m_engine_get_opaque_more(in, value, buflen, opaque, last_block); in get_opaque()
448 static int get_objlnk(struct lwm2m_input_context *in, struct lwm2m_objlnk *value) in get_objlnk() argument
457 int len = get_string(in, objlnk, sizeof(objlnk)); in get_objlnk()