Lines Matching refs:obj
221 struct lwm2m_engine_obj *obj; in engine_observe_get_attributes() local
233 obj = get_engine_obj(path->obj_id); in engine_observe_get_attributes()
234 if (!obj) { in engine_observe_get_attributes()
239 ret = update_attrs(obj, attrs); in engine_observe_get_attributes()
274 obj_field = lwm2m_get_engine_obj_field(obj, obj_inst->resources[i].res_id); in engine_observe_get_attributes()
979 int lwm2m_get_path_reference_ptr(struct lwm2m_engine_obj *obj, const struct lwm2m_obj_path *path, in lwm2m_get_path_reference_ptr() argument
987 if (!obj) { in lwm2m_get_path_reference_ptr()
989 obj = get_engine_obj(path->obj_id); in lwm2m_get_path_reference_ptr()
990 if (!obj) { in lwm2m_get_path_reference_ptr()
997 *ref = obj; in lwm2m_get_path_reference_ptr()
1134 int lwm2m_write_attr_handler(struct lwm2m_engine_obj *obj, struct lwm2m_message *msg) in lwm2m_write_attr_handler() argument
1147 if (!obj || !msg) { in lwm2m_write_attr_handler()
1152 if (obj->obj_id == LWM2M_OBJECT_SECURITY_ID) { in lwm2m_write_attr_handler()
1164 ret = lwm2m_get_path_reference_ptr(obj, &msg->path, &ref); in lwm2m_write_attr_handler()