Lines Matching refs:res1
336 struct apei_res *res1, *resn1, *res2, *res;
337 res1 = list_entry(res_list1->next, struct apei_res, list);
338 resn1 = list_entry(res1->list.next, struct apei_res, list);
339 while (&res1->list != res_list1) {
341 if (res1->start >= res2->end ||
342 res1->end <= res2->start)
344 else if (res1->end <= res2->end &&
345 res1->start >= res2->start) {
346 list_del(&res1->list);
347 kfree(res1);
349 } else if (res1->end > res2->end &&
350 res1->start < res2->start) {
355 res->end = res1->end;
356 res1->end = res2->start;
357 list_add(&res->list, &res1->list);
360 if (res1->start < res2->start)
361 res1->end = res2->start;
363 res1->start = res2->end;
366 res1 = resn1;