Lines Matching refs:realloc_head
232 static void reassign_resources_sorted(struct list_head *realloc_head, in reassign_resources_sorted() argument
241 list_for_each_entry_safe(add_res, tmp, realloc_head, list) { in reassign_resources_sorted()
364 struct list_head *realloc_head, in __assign_resources_sorted() argument
396 if (!realloc_head || list_empty(realloc_head)) in __assign_resources_sorted()
409 dev_res->res->end += get_res_add_size(realloc_head, in __assign_resources_sorted()
421 add_align = get_res_add_align(realloc_head, dev_res->res); in __assign_resources_sorted()
456 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
469 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
496 if (realloc_head) in __assign_resources_sorted()
497 reassign_resources_sorted(realloc_head, head); in __assign_resources_sorted()
513 struct list_head *realloc_head, in pbus_assign_resources_sorted() argument
522 __assign_resources_sorted(&head, realloc_head, fail_head); in pbus_assign_resources_sorted()
903 resource_size_t add_size, struct list_head *realloc_head) in pbus_size_io() argument
937 if (realloc_head) in pbus_size_io()
938 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_io()
946 size1 = (!realloc_head || (realloc_head && !add_size)) ? size0 : in pbus_size_io()
960 if (size1 > size0 && realloc_head) { in pbus_size_io()
961 add_to_list(realloc_head, bus->self, b_res, size1-size0, in pbus_size_io()
1014 struct list_head *realloc_head) in pbus_size_mem() argument
1048 if (realloc_head && i >= PCI_IOV_RESOURCES && in pbus_size_mem()
1052 add_to_list(realloc_head, dev, r, r_size, 0/* don't care */); in pbus_size_mem()
1081 if (realloc_head) { in pbus_size_mem()
1082 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_mem()
1083 children_add_align = get_res_add_align(realloc_head, r); in pbus_size_mem()
1095 size1 = (!realloc_head || (realloc_head && !add_size)) ? size0 : in pbus_size_mem()
1108 if (size1 > size0 && realloc_head) { in pbus_size_mem()
1109 add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align); in pbus_size_mem()
1128 struct list_head *realloc_head) in pci_bus_size_cardbus() argument
1144 if (realloc_head) { in pci_bus_size_cardbus()
1146 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size, in pci_bus_size_cardbus()
1156 if (realloc_head) { in pci_bus_size_cardbus()
1158 add_to_list(realloc_head, bridge, b_res+1, pci_cardbus_io_size, in pci_bus_size_cardbus()
1194 if (realloc_head) { in pci_bus_size_cardbus()
1196 add_to_list(realloc_head, bridge, b_res+2, in pci_bus_size_cardbus()
1210 if (realloc_head) { in pci_bus_size_cardbus()
1212 add_to_list(realloc_head, bridge, b_res+3, b_res_3_size, in pci_bus_size_cardbus()
1220 void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head) in __pci_bus_size_bridges() argument
1235 pci_bus_size_cardbus(b, realloc_head); in __pci_bus_size_bridges()
1240 __pci_bus_size_bridges(b, realloc_head); in __pci_bus_size_bridges()
1262 pbus_size_io(bus, realloc_head ? 0 : additional_io_size, in __pci_bus_size_bridges()
1263 additional_io_size, realloc_head); in __pci_bus_size_bridges()
1277 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1278 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1301 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1302 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1332 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1333 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1386 struct list_head *realloc_head, in __pci_bus_assign_resources() argument
1392 pbus_assign_resources_sorted(bus, realloc_head, fail_head); in __pci_bus_assign_resources()
1401 __pci_bus_assign_resources(b, realloc_head, fail_head); in __pci_bus_assign_resources()
1690 LIST_HEAD(realloc_head); /* list of resources that in pci_assign_unassigned_root_bus_resources()
1719 add_list = &realloc_head; in pci_assign_unassigned_root_bus_resources()