Lines Matching refs:prev
49 struct lwm2m_obj_path_list *prev = NULL; in assert_path_list_order() local
62 if (prev) { in assert_path_list_order()
63 if (entry->path.level > prev->path.level) { in assert_path_list_order()
67 if (prev->path.level >= LWM2M_PATH_LEVEL_OBJECT) { in assert_path_list_order()
68 is_after = entry->path.obj_id >= prev->path.obj_id; in assert_path_list_order()
70 if (is_after && prev->path.level >= LWM2M_PATH_LEVEL_OBJECT_INST && in assert_path_list_order()
71 entry->path.obj_id == prev->path.obj_id) { in assert_path_list_order()
73 entry->path.obj_inst_id >= prev->path.obj_inst_id; in assert_path_list_order()
76 if (is_after && prev->path.level >= LWM2M_PATH_LEVEL_RESOURCE && in assert_path_list_order()
77 entry->path.obj_inst_id == prev->path.obj_inst_id) { in assert_path_list_order()
78 is_after = entry->path.res_id >= prev->path.res_id; in assert_path_list_order()
82 prev->path.level >= LWM2M_PATH_LEVEL_RESOURCE_INST && in assert_path_list_order()
83 entry->path.res_id == prev->path.res_id) { in assert_path_list_order()
85 entry->path.res_inst_id >= prev->path.res_inst_id; in assert_path_list_order()
89 entry, prev); in assert_path_list_order()
90 } else if (entry->path.level == prev->path.level) { in assert_path_list_order()
101 &entry->path, &prev->path, in assert_path_list_order()
116 &entry->path, &prev->path, in assert_path_list_order()
131 &entry->path, &prev->path, in assert_path_list_order()
176 &entry->path, &prev->path, entry->path.level), in assert_path_list_order()
190 (prev == NULL || entry->path.obj_id == prev->path.obj_id)) { in assert_path_list_order()
197 (prev == NULL || entry->path.obj_id == prev->path.obj_id) && in assert_path_list_order()
198 (prev == NULL || entry->path.obj_inst_id == prev->path.obj_inst_id)) { in assert_path_list_order()
205 (prev == NULL || entry->path.obj_id == prev->path.obj_id) && in assert_path_list_order()
206 (prev == NULL || entry->path.obj_inst_id == prev->path.obj_inst_id) && in assert_path_list_order()
207 (prev == NULL || entry->path.res_id == prev->path.res_id)) { in assert_path_list_order()
213 prev = entry; in assert_path_list_order()