Home
last modified time | relevance | path

Searched refs:obj_field (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_opaque.c139 struct lwm2m_engine_obj_field *obj_field; in do_write_op_opaque() local
150 ret = lwm2m_engine_validate_write_access(msg, obj_inst, &obj_field); in do_write_op_opaque()
164 return lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in do_write_op_opaque()
Dlwm2m_registry.c98 static void lwm2m_engine_cache_write(const struct lwm2m_engine_obj_field *obj_field,
368 struct lwm2m_engine_obj_field **obj_field, struct lwm2m_engine_res **res, in path_to_objs() argument
428 if (obj_field) { in path_to_objs()
429 *obj_field = of; in path_to_objs()
445 struct lwm2m_engine_obj_field *obj_field; in is_string() local
448 ret = path_to_objs(path, NULL, &obj_field, NULL, NULL); in is_string()
449 if (ret < 0 || !obj_field) { in is_string()
452 if (obj_field->data_type == LWM2M_RES_TYPE_STRING) { in is_string()
540 struct lwm2m_engine_obj_field *obj_field; in lwm2m_engine_set() local
558 ret = path_to_objs(path, &obj_inst, &obj_field, &res, &res_inst); in lwm2m_engine_set()
[all …]
Dlwm2m_rw_plain_text.c414 struct lwm2m_engine_obj_field *obj_field; in do_write_op_plain_text() local
425 ret = lwm2m_engine_validate_write_access(msg, obj_inst, &obj_field); in do_write_op_plain_text()
439 return lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in do_write_op_plain_text()
Dlwm2m_message_handling.h74 struct lwm2m_engine_obj_field *obj_field, struct lwm2m_message *msg);
Dlwm2m_registry.h148 struct lwm2m_engine_obj_field **obj_field, struct lwm2m_engine_res **res,
Dlwm2m_engine.h105 struct lwm2m_engine_obj_field **obj_field);
Dlwm2m_message_handling.c1069 struct lwm2m_engine_obj_field *obj_field, struct lwm2m_message *msg) in lwm2m_write_handler() argument
1084 if (!obj_inst || !res || !res_inst || !obj_field || !msg) { in lwm2m_write_handler()
1140 switch (obj_field->data_type) { in lwm2m_write_handler()
1252 LOG_ERR("unknown obj data_type %d", obj_field->data_type); in lwm2m_write_handler()
1263 if (obj_field->data_type != LWM2M_RES_TYPE_OPAQUE) { in lwm2m_write_handler()
1281 if (obj_field->data_type == LWM2M_RES_TYPE_STRING) { in lwm2m_write_handler()
1298 if (LWM2M_HAS_PERM(obj_field, LWM2M_PERM_R)) { in lwm2m_write_handler()
1491 struct lwm2m_engine_obj_field *obj_field, struct lwm2m_message *msg) in lwm2m_read_handler() argument
1501 if (!obj_inst || !res || !obj_field || !msg) { in lwm2m_read_handler()
1507 temp_path.res_id = obj_field->res_id; in lwm2m_read_handler()
[all …]
Dlwm2m_rw_cbor.c529 struct lwm2m_engine_obj_field *obj_field; in do_write_op_cbor() local
540 ret = lwm2m_engine_validate_write_access(msg, obj_inst, &obj_field); in do_write_op_cbor()
554 return lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in do_write_op_cbor()
Dlwm2m_rw_oma_tlv.c840 struct lwm2m_engine_obj_field *obj_field = NULL; in do_write_op_tlv_item() local
849 ret = lwm2m_engine_validate_write_access(msg, obj_inst, &obj_field); in do_write_op_tlv_item()
860 LWM2M_HAS_PERM(obj_field, BIT(LWM2M_FLAG_OPTIONAL))) { in do_write_op_tlv_item()
869 ret = lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in do_write_op_tlv_item()
Dlwm2m_rw_senml_cbor.c722 struct lwm2m_engine_obj_field *obj_field; in do_write_op_item() local
764 ret = lwm2m_engine_validate_write_access(msg, obj_inst, &obj_field); in do_write_op_item()
774 LWM2M_HAS_PERM(obj_field, BIT(LWM2M_FLAG_OPTIONAL))) { in do_write_op_item()
783 ret = lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in do_write_op_item()
Dlwm2m_rw_json.c901 struct lwm2m_engine_obj_field *obj_field = NULL; in do_write_op_json() local
999 ret = lwm2m_engine_validate_write_access(msg, obj_inst, &obj_field); in do_write_op_json()
1010 ret = lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in do_write_op_json()
Dlwm2m_observation.c222 struct lwm2m_engine_obj_field *obj_field = NULL; in engine_observe_get_attributes() local
274 obj_field = lwm2m_get_engine_obj_field(obj, obj_inst->resources[i].res_id); in engine_observe_get_attributes()
275 if (!obj_field) { in engine_observe_get_attributes()
282 if (!LWM2M_HAS_PERM(obj_field, LWM2M_PERM_R)) { in engine_observe_get_attributes()
Dlwm2m_rw_senml_json.c1419 struct lwm2m_engine_obj_field *obj_field = NULL; in lwm2m_senml_write_operation() local
1436 ret = lwm2m_engine_validate_write_access(msg, obj_inst, &obj_field); in lwm2m_senml_write_operation()
1446 LWM2M_HAS_PERM(obj_field, BIT(LWM2M_FLAG_OPTIONAL))) { in lwm2m_senml_write_operation()
1456 ret = lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in lwm2m_senml_write_operation()
Dlwm2m_engine.c271 struct lwm2m_engine_obj_field **obj_field) in lwm2m_engine_validate_write_access() argument
280 *obj_field = o_f; in lwm2m_engine_validate_write_access()
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/
Dmain.c284 struct lwm2m_engine_obj_field *obj_field = NULL; in ZTEST() local
293 ret = lwm2m_engine_validate_write_access(&msg, &obj_inst, &obj_field); in ZTEST()
297 ret = lwm2m_engine_validate_write_access(&msg, &obj_inst, &obj_field); in ZTEST()
301 ret = lwm2m_engine_validate_write_access(&msg, &obj_inst, &obj_field); in ZTEST()