Lines Matching defs:res1
347 struct apei_res *res1, *resn1, *res2, *res;
348 res1 = list_entry(res_list1->next, struct apei_res, list);
349 resn1 = list_entry(res1->list.next, struct apei_res, list);
350 while (&res1->list != res_list1) {
352 if (res1->start >= res2->end ||
353 res1->end <= res2->start)
355 else if (res1->end <= res2->end &&
356 res1->start >= res2->start) {
357 list_del(&res1->list);
358 kfree(res1);
360 } else if (res1->end > res2->end &&
361 res1->start < res2->start) {
366 res->end = res1->end;
367 res1->end = res2->start;
368 list_add(&res->list, &res1->list);
371 if (res1->start < res2->start)
372 res1->end = res2->start;
374 res1->start = res2->end;
377 res1 = resn1;