res_cur 577 drivers/pci/hotplug/ibmphp_res.c struct resource_node *res_cur; res_cur 661 drivers/pci/hotplug/ibmphp_res.c res_cur = res_start; res_cur 664 drivers/pci/hotplug/ibmphp_res.c debug("res_cur->rangeno is %d\n", res_cur->rangeno); res_cur 666 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 667 drivers/pci/hotplug/ibmphp_res.c if (res_cur->rangeno >= res->rangeno) res_cur 669 drivers/pci/hotplug/ibmphp_res.c res_prev = res_cur; res_cur 670 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 671 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 673 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 676 drivers/pci/hotplug/ibmphp_res.c if (!res_cur) { res_cur 682 drivers/pci/hotplug/ibmphp_res.c } else if (res_cur->rangeno == res->rangeno) { res_cur 684 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 685 drivers/pci/hotplug/ibmphp_res.c if (res->start < res_cur->start) res_cur 687 drivers/pci/hotplug/ibmphp_res.c res_prev = res_cur; res_cur 688 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 690 drivers/pci/hotplug/ibmphp_res.c if (!res_cur) { res_cur 696 drivers/pci/hotplug/ibmphp_res.c } else if (res->start < res_cur->start) { res_cur 710 drivers/pci/hotplug/ibmphp_res.c } else if (res_prev->rangeno == res_cur->rangeno) res_cur 715 drivers/pci/hotplug/ibmphp_res.c res->next = res_cur; res_cur 737 drivers/pci/hotplug/ibmphp_res.c } else if (res_cur->rangeno > res->rangeno) { res_cur 741 drivers/pci/hotplug/ibmphp_res.c res->nextRange = res_cur; res_cur 760 drivers/pci/hotplug/ibmphp_res.c struct resource_node *res_cur = NULL; res_cur 779 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstIO; res_cur 783 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstMem; res_cur 787 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstPFMem; res_cur 796 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 797 drivers/pci/hotplug/ibmphp_res.c if ((res_cur->start == res->start) && (res_cur->end == res->end)) res_cur 799 drivers/pci/hotplug/ibmphp_res.c res_prev = res_cur; res_cur 800 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 801 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 803 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 806 drivers/pci/hotplug/ibmphp_res.c if (!res_cur) { res_cur 813 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstPFMemFromMem; res_cur 816 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 817 drivers/pci/hotplug/ibmphp_res.c if ((res_cur->start == res->start) && (res_cur->end == res->end)) { res_cur 820 drivers/pci/hotplug/ibmphp_res.c if ((mem_cur->start == res_cur->start) res_cur 821 drivers/pci/hotplug/ibmphp_res.c && (mem_cur->end == res_cur->end)) res_cur 835 drivers/pci/hotplug/ibmphp_res.c bus_cur->firstPFMemFromMem = res_cur->next; res_cur 837 drivers/pci/hotplug/ibmphp_res.c res_prev->next = res_cur->next; res_cur 838 drivers/pci/hotplug/ibmphp_res.c kfree(res_cur); res_cur 841 drivers/pci/hotplug/ibmphp_res.c res_prev = res_cur; res_cur 842 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 843 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 845 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 847 drivers/pci/hotplug/ibmphp_res.c if (!res_cur) { res_cur 858 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) { res_cur 861 drivers/pci/hotplug/ibmphp_res.c bus_cur->firstIO = res_cur->next; res_cur 864 drivers/pci/hotplug/ibmphp_res.c bus_cur->firstMem = res_cur->next; res_cur 867 drivers/pci/hotplug/ibmphp_res.c bus_cur->firstPFMem = res_cur->next; res_cur 870 drivers/pci/hotplug/ibmphp_res.c } else if (res_cur->nextRange) { res_cur 873 drivers/pci/hotplug/ibmphp_res.c bus_cur->firstIO = res_cur->nextRange; res_cur 876 drivers/pci/hotplug/ibmphp_res.c bus_cur->firstMem = res_cur->nextRange; res_cur 879 drivers/pci/hotplug/ibmphp_res.c bus_cur->firstPFMem = res_cur->nextRange; res_cur 895 drivers/pci/hotplug/ibmphp_res.c kfree(res_cur); res_cur 898 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) { res_cur 899 drivers/pci/hotplug/ibmphp_res.c if (res_prev->rangeno == res_cur->rangeno) res_cur 900 drivers/pci/hotplug/ibmphp_res.c res_prev->next = res_cur->next; res_cur 902 drivers/pci/hotplug/ibmphp_res.c res_prev->nextRange = res_cur->next; res_cur 903 drivers/pci/hotplug/ibmphp_res.c } else if (res_cur->nextRange) { res_cur 905 drivers/pci/hotplug/ibmphp_res.c res_prev->nextRange = res_cur->nextRange; res_cur 910 drivers/pci/hotplug/ibmphp_res.c kfree(res_cur); res_cur 957 drivers/pci/hotplug/ibmphp_res.c struct resource_node *res_cur = NULL; res_cur 993 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstIO; res_cur 997 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstMem; res_cur 1001 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstPFMem; res_cur 1010 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1011 drivers/pci/hotplug/ibmphp_res.c range = find_range(bus_cur, res_cur); res_cur 1012 drivers/pci/hotplug/ibmphp_res.c debug("%s - rangeno = %d\n", __func__, res_cur->rangeno); res_cur 1022 drivers/pci/hotplug/ibmphp_res.c len_tmp = res_cur->start - 1 - range->start; res_cur 1024 drivers/pci/hotplug/ibmphp_res.c if ((res_cur->start != range->start) && (len_tmp >= res->len)) { res_cur 1039 drivers/pci/hotplug/ibmphp_res.c while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) { res_cur 1047 drivers/pci/hotplug/ibmphp_res.c if (tmp_start >= res_cur->start - 1) res_cur 1062 drivers/pci/hotplug/ibmphp_res.c if (!res_cur->next) { res_cur 1064 drivers/pci/hotplug/ibmphp_res.c len_tmp = range->end - (res_cur->end + 1); res_cur 1066 drivers/pci/hotplug/ibmphp_res.c if ((range->end != res_cur->end) && (len_tmp >= res->len)) { res_cur 1070 drivers/pci/hotplug/ibmphp_res.c if (((res_cur->end + 1) % tmp_divide) == 0) { res_cur 1074 drivers/pci/hotplug/ibmphp_res.c start_cur = res_cur->end + 1; res_cur 1077 drivers/pci/hotplug/ibmphp_res.c tmp_start = res_cur->end + 1; res_cur 1103 drivers/pci/hotplug/ibmphp_res.c if (res_prev->rangeno != res_cur->rangeno) { res_cur 1105 drivers/pci/hotplug/ibmphp_res.c len_tmp = res_cur->start - 1 - range->start; res_cur 1107 drivers/pci/hotplug/ibmphp_res.c if ((res_cur->start != range->start) && (len_tmp >= res->len)) { res_cur 1119 drivers/pci/hotplug/ibmphp_res.c while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) { res_cur 1127 drivers/pci/hotplug/ibmphp_res.c if (tmp_start >= res_cur->start - 1) res_cur 1142 drivers/pci/hotplug/ibmphp_res.c len_tmp = res_cur->start - 1 - res_prev->end - 1; res_cur 1156 drivers/pci/hotplug/ibmphp_res.c while ((len_tmp = res_cur->start - 1 - tmp_start) >= res->len) { res_cur 1164 drivers/pci/hotplug/ibmphp_res.c if (tmp_start >= res_cur->start - 1) res_cur 1180 drivers/pci/hotplug/ibmphp_res.c res_prev = res_cur; res_cur 1181 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 1182 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1184 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 1253 drivers/pci/hotplug/ibmphp_res.c if (!res_cur) { res_cur 1342 drivers/pci/hotplug/ibmphp_res.c struct resource_node *res_cur; res_cur 1361 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstIO; res_cur 1362 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1363 drivers/pci/hotplug/ibmphp_res.c res_tmp = res_cur; res_cur 1364 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 1365 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1367 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 1374 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstMem; res_cur 1375 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1376 drivers/pci/hotplug/ibmphp_res.c res_tmp = res_cur; res_cur 1377 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 1378 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1380 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 1387 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstPFMem; res_cur 1388 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1389 drivers/pci/hotplug/ibmphp_res.c res_tmp = res_cur; res_cur 1390 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 1391 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1393 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 1401 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstPFMemFromMem; res_cur 1402 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1403 drivers/pci/hotplug/ibmphp_res.c res_tmp = res_cur; res_cur 1404 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1481 drivers/pci/hotplug/ibmphp_res.c struct resource_node *res_cur = NULL; res_cur 1491 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstIO; res_cur 1495 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstMem; res_cur 1499 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstPFMem; res_cur 1507 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1508 drivers/pci/hotplug/ibmphp_res.c if (res_cur->start == start_address) { res_cur 1509 drivers/pci/hotplug/ibmphp_res.c *res = res_cur; res_cur 1512 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 1513 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1515 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 1518 drivers/pci/hotplug/ibmphp_res.c if (!res_cur) { res_cur 1520 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstPFMemFromMem; res_cur 1521 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1522 drivers/pci/hotplug/ibmphp_res.c if (res_cur->start == start_address) { res_cur 1523 drivers/pci/hotplug/ibmphp_res.c *res = res_cur; res_cur 1526 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1528 drivers/pci/hotplug/ibmphp_res.c if (!res_cur) { res_cur 1556 drivers/pci/hotplug/ibmphp_res.c struct resource_node *res_cur; res_cur 1597 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstIO; res_cur 1598 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1599 drivers/pci/hotplug/ibmphp_res.c res_tmp = res_cur; res_cur 1600 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 1601 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1603 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 1610 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstMem; res_cur 1611 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1612 drivers/pci/hotplug/ibmphp_res.c res_tmp = res_cur; res_cur 1613 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 1614 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1616 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 1623 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstPFMem; res_cur 1624 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1625 drivers/pci/hotplug/ibmphp_res.c res_tmp = res_cur; res_cur 1626 drivers/pci/hotplug/ibmphp_res.c if (res_cur->next) res_cur 1627 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next; res_cur 1629 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->nextRange; res_cur 1637 drivers/pci/hotplug/ibmphp_res.c res_cur = bus_cur->firstPFMemFromMem; res_cur 1638 drivers/pci/hotplug/ibmphp_res.c while (res_cur) { res_cur 1639 drivers/pci/hotplug/ibmphp_res.c res_tmp = res_cur; res_cur 1640 drivers/pci/hotplug/ibmphp_res.c res_cur = res_cur->next;