Lines Matching refs:res1
333 struct apei_res *res1, *resn1, *res2, *res;
334 res1 = list_entry(res_list1->next, struct apei_res, list);
335 resn1 = list_entry(res1->list.next, struct apei_res, list);
336 while (&res1->list != res_list1) {
338 if (res1->start >= res2->end ||
339 res1->end <= res2->start)
341 else if (res1->end <= res2->end &&
342 res1->start >= res2->start) {
343 list_del(&res1->list);
344 kfree(res1);
346 } else if (res1->end > res2->end &&
347 res1->start < res2->start) {
352 res->end = res1->end;
353 res1->end = res2->start;
354 list_add(&res->list, &res1->list);
357 if (res1->start < res2->start)
358 res1->end = res2->start;
360 res1->start = res2->end;
363 res1 = resn1;