Lines Matching refs:entry

50 	struct lwm2m_obj_path_list *entry, *tmp;  in assert_path_list_order()  local
61 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(lwm2m_path_list, entry, tmp, node) { in assert_path_list_order()
63 if (entry->path.level > prev->path.level) { in assert_path_list_order()
68 is_after = entry->path.obj_id >= prev->path.obj_id; 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()
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()
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()
92 if (entry->path.level >= LWM2M_PATH_LEVEL_OBJECT) { in assert_path_list_order()
93 zassert_true(entry->path.obj_id >= obj_id_max, in assert_path_list_order()
96 entry->path.obj_id, obj_id_max); in assert_path_list_order()
99 if (entry->path.level >= LWM2M_PATH_LEVEL_OBJECT_INST) { in assert_path_list_order()
101 &entry->path, &prev->path, in assert_path_list_order()
107 zassert_true(entry->path.obj_inst_id >= obj_inst_id_max, in assert_path_list_order()
111 entry->path.obj_inst_id, obj_inst_id_max); in assert_path_list_order()
114 if (entry->path.level >= LWM2M_PATH_LEVEL_RESOURCE) { in assert_path_list_order()
116 &entry->path, &prev->path, in assert_path_list_order()
123 entry->path.res_id >= res_id_max, in assert_path_list_order()
126 entry->path.res_id, res_id_max); in assert_path_list_order()
129 if (entry->path.level >= LWM2M_PATH_LEVEL_RESOURCE_INST) { in assert_path_list_order()
131 &entry->path, &prev->path, in assert_path_list_order()
136 zassert_true(entry->path.res_inst_id >= res_inst_id_max, in assert_path_list_order()
140 entry->path.res_inst_id, res_inst_id_max); in assert_path_list_order()
144 if (entry->path.level >= LWM2M_PATH_LEVEL_OBJECT) { in assert_path_list_order()
145 zassert_true(entry->path.obj_id >= obj_id_max, in assert_path_list_order()
148 entry->path.obj_id, obj_id_max); in assert_path_list_order()
151 if (entry->path.level >= LWM2M_PATH_LEVEL_OBJECT_INST) { in assert_path_list_order()
152 zassert_true(entry->path.obj_inst_id >= obj_inst_id_max, in assert_path_list_order()
156 entry->path.obj_inst_id, obj_inst_id_max); in assert_path_list_order()
159 if (entry->path.level >= LWM2M_PATH_LEVEL_RESOURCE) { in assert_path_list_order()
161 entry->path.res_id >= res_id_max, in assert_path_list_order()
164 entry->path.res_id, res_id_max); in assert_path_list_order()
167 if (entry->path.level >= LWM2M_PATH_LEVEL_RESOURCE_INST) { in assert_path_list_order()
168 zassert_true(entry->path.res_inst_id >= res_inst_id_max, in assert_path_list_order()
172 entry->path.res_inst_id, res_inst_id_max); in assert_path_list_order()
176 &entry->path, &prev->path, entry->path.level), in assert_path_list_order()
179 entry->path.level); in assert_path_list_order()
183 if (entry->path.level >= LWM2M_PATH_LEVEL_OBJECT) { in assert_path_list_order()
184 obj_id_max = entry->path.obj_id; in assert_path_list_order()
189 if (entry->path.level >= LWM2M_PATH_LEVEL_OBJECT_INST && in assert_path_list_order()
190 (prev == NULL || entry->path.obj_id == prev->path.obj_id)) { in assert_path_list_order()
191 obj_inst_id_max = entry->path.obj_inst_id; in assert_path_list_order()
196 if (entry->path.level >= LWM2M_PATH_LEVEL_RESOURCE && 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()
199 res_id_max = entry->path.res_id; in assert_path_list_order()
204 if (entry->path.level >= LWM2M_PATH_LEVEL_RESOURCE_INST && 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()
208 res_inst_id_max = entry->path.res_inst_id; in assert_path_list_order()
213 prev = entry; in assert_path_list_order()
245 struct lwm2m_obj_path_list *entry, *tmp; in run_insertion_test() local
248 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&lwm2m_path_list, entry, tmp, node) { in run_insertion_test()
252 zassert_mem_equal(&entry->path, &expected_path, sizeof(struct lwm2m_obj_path), in run_insertion_test()