/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_opaque.c | 139 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()
|
D | lwm2m_registry.c | 98 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 …]
|
D | lwm2m_rw_plain_text.c | 414 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()
|
D | lwm2m_message_handling.h | 74 struct lwm2m_engine_obj_field *obj_field, struct lwm2m_message *msg);
|
D | lwm2m_registry.h | 148 struct lwm2m_engine_obj_field **obj_field, struct lwm2m_engine_res **res,
|
D | lwm2m_engine.h | 105 struct lwm2m_engine_obj_field **obj_field);
|
D | lwm2m_message_handling.c | 1069 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 …]
|
D | lwm2m_rw_cbor.c | 529 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()
|
D | lwm2m_rw_oma_tlv.c | 840 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()
|
D | lwm2m_rw_senml_cbor.c | 722 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()
|
D | lwm2m_rw_json.c | 901 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()
|
D | lwm2m_observation.c | 222 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()
|
D | lwm2m_rw_senml_json.c | 1419 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()
|
D | lwm2m_engine.c | 271 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/ |
D | main.c | 284 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()
|