Home
last modified time | relevance | path

Searched refs:obj_inst (Results 1 – 13 of 13) sorted by relevance

/Zephyr-Core-2.7.6/subsys/net/lib/lwm2m/
Dlwm2m_engine.c385 struct lwm2m_engine_obj_inst *obj_inst = NULL; in engine_add_observer() local
441 obj_inst = get_engine_obj_inst(msg->path.obj_id, in engine_add_observer()
443 if (!obj_inst) { in engine_add_observer()
449 ret = update_attrs(obj_inst, &attrs); in engine_add_observer()
457 for (i = 0; i < obj_inst->resource_count; i++) { in engine_add_observer()
458 if (obj_inst->resources[i].res_id == msg->path.res_id) { in engine_add_observer()
463 if (i == obj_inst->resource_count) { in engine_add_observer()
472 obj_inst->resources[i].res_id); in engine_add_observer()
485 ret = update_attrs(&obj_inst->resources[i], &attrs); in engine_add_observer()
676 static void engine_register_obj_inst(struct lwm2m_engine_obj_inst *obj_inst) in engine_register_obj_inst() argument
[all …]
Dlwm2m_rw_plain_text.c177 value->obj_inst); in put_objlnk()
372 value->obj_inst = (uint16_t)tmp; in get_objlnk()
410 struct lwm2m_engine_obj_inst *obj_inst = NULL; in do_write_op_plain_text() local
417 ret = lwm2m_get_or_create_engine_obj(msg, &obj_inst, &created); in do_write_op_plain_text()
422 obj_field = lwm2m_get_engine_obj_field(obj_inst->obj, msg->path.res_id); in do_write_op_plain_text()
431 if (!obj_inst->resources || obj_inst->resource_count == 0U) { in do_write_op_plain_text()
435 for (i = 0; i < obj_inst->resource_count; i++) { in do_write_op_plain_text()
436 if (obj_inst->resources[i].res_id == msg->path.res_id) { in do_write_op_plain_text()
437 res = &obj_inst->resources[i]; in do_write_op_plain_text()
462 return lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in do_write_op_plain_text()
Dlwm2m_rw_json.c526 value->obj_inst); in put_objlnk()
714 value->obj_inst = (uint16_t)tmp; in get_objlnk()
811 struct lwm2m_engine_obj_inst *obj_inst = NULL; in do_write_op_json() local
909 ret = lwm2m_get_or_create_engine_obj(msg, &obj_inst, in do_write_op_json()
916 obj_inst->obj, in do_write_op_json()
937 if (!obj_inst->resources || in do_write_op_json()
938 obj_inst->resource_count == 0U) { in do_write_op_json()
943 for (index = 0; index < obj_inst->resource_count; in do_write_op_json()
945 if (obj_inst->resources[index].res_id == in do_write_op_json()
947 res = &obj_inst->resources[index]; in do_write_op_json()
[all …]
Dlwm2m_rw_oma_tlv.c559 int32_t value_s32 = (value->obj_id << 16) | value->obj_inst; in put_objlnk()
740 value->obj_inst = value_s32 & 0xFFFF; in get_objlnk()
801 struct lwm2m_engine_obj_inst *obj_inst = NULL; in do_write_op_tlv_item() local
808 ret = lwm2m_get_or_create_engine_obj(msg, &obj_inst, &created); in do_write_op_tlv_item()
813 obj_field = lwm2m_get_engine_obj_field(obj_inst->obj, in do_write_op_tlv_item()
825 if (!obj_inst->resources || obj_inst->resource_count == 0U) { in do_write_op_tlv_item()
830 for (i = 0; i < obj_inst->resource_count; i++) { in do_write_op_tlv_item()
831 if (obj_inst->resources[i].res_id == msg->path.res_id) { in do_write_op_tlv_item()
832 res = &obj_inst->resources[i]; in do_write_op_tlv_item()
860 ret = lwm2m_write_handler(obj_inst, res, res_inst, obj_field, msg); in do_write_op_tlv_item()
[all …]
Dlwm2m_engine.h67 struct lwm2m_engine_obj_inst **obj_inst);
70 struct lwm2m_engine_obj_inst **obj_inst,
101 int lwm2m_write_handler(struct lwm2m_engine_obj_inst *obj_inst,
Dlwm2m_obj_location.c99 struct lwm2m_engine_obj_inst *obj_inst = NULL; in ipso_location_init() local
112 ret = lwm2m_create_obj_inst(LWM2M_OBJECT_LOCATION_ID, 0, &obj_inst); in ipso_location_init()
Dlwm2m_obj_connmon.c149 struct lwm2m_engine_obj_inst *obj_inst = NULL; in lwm2m_connmon_init() local
165 0, &obj_inst); in lwm2m_connmon_init()
Dlwm2m_obj_security.c178 struct lwm2m_engine_obj_inst *obj_inst = NULL; in lwm2m_security_init() local
192 ret = lwm2m_create_obj_inst(LWM2M_OBJECT_SECURITY_ID, 0, &obj_inst); in lwm2m_security_init()
Dlwm2m_rw_link_format.c380 struct lwm2m_engine_obj_inst *obj_inst = in put_obj_inst_corelink() local
383 if (obj_inst == NULL) { in put_obj_inst_corelink()
387 ret = put_corelink_attributes(out, obj_inst, obj_buf, in put_obj_inst_corelink()
Dlwm2m_obj_firmware.c347 struct lwm2m_engine_obj_inst *obj_inst = NULL; in lwm2m_firmware_init() local
373 ret = lwm2m_create_obj_inst(LWM2M_OBJECT_FIRMWARE_ID, 0, &obj_inst); in lwm2m_firmware_init()
Dlwm2m_obj_server.c252 struct lwm2m_engine_obj_inst *obj_inst = NULL; in lwm2m_server_init() local
266 ret = lwm2m_create_obj_inst(LWM2M_OBJECT_SERVER_ID, 0, &obj_inst); in lwm2m_server_init()
Dlwm2m_obj_device.c262 struct lwm2m_engine_obj_inst *obj_inst = NULL; in lwm2m_device_init() local
281 ret = lwm2m_create_obj_inst(LWM2M_OBJECT_DEVICE_ID, 0, &obj_inst); in lwm2m_device_init()
/Zephyr-Core-2.7.6/include/net/
Dlwm2m.h391 uint16_t obj_inst; member