Lines Matching refs:realloc_head
215 static void reassign_resources_sorted(struct list_head *realloc_head, in reassign_resources_sorted() argument
224 list_for_each_entry_safe(add_res, tmp, realloc_head, list) { in reassign_resources_sorted()
346 struct list_head *realloc_head, in __assign_resources_sorted() argument
378 if (!realloc_head || list_empty(realloc_head)) in __assign_resources_sorted()
391 dev_res->res->end += get_res_add_size(realloc_head, in __assign_resources_sorted()
403 add_align = get_res_add_align(realloc_head, dev_res->res); in __assign_resources_sorted()
438 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
451 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
477 if (realloc_head) in __assign_resources_sorted()
478 reassign_resources_sorted(realloc_head, head); in __assign_resources_sorted()
494 struct list_head *realloc_head, in pbus_assign_resources_sorted() argument
503 __assign_resources_sorted(&head, realloc_head, fail_head); in pbus_assign_resources_sorted()
880 struct list_head *realloc_head) in pbus_size_io() argument
918 if (realloc_head) in pbus_size_io()
919 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_io()
925 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 : in pbus_size_io()
939 if (bus->self && size1 > size0 && realloc_head) { in pbus_size_io()
940 add_to_list(realloc_head, bus->self, b_res, size1-size0, in pbus_size_io()
993 struct list_head *realloc_head) in pbus_size_mem() argument
1031 if (realloc_head && i >= PCI_IOV_RESOURCES && in pbus_size_mem()
1035 add_to_list(realloc_head, dev, r, r_size, 0 /* Don't care */); in pbus_size_mem()
1066 if (realloc_head) { in pbus_size_mem()
1067 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_mem()
1068 children_add_align = get_res_add_align(realloc_head, r); in pbus_size_mem()
1078 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 : in pbus_size_mem()
1091 if (bus->self && size1 > size0 && realloc_head) { in pbus_size_mem()
1092 add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align); in pbus_size_mem()
1111 struct list_head *realloc_head) in pci_bus_size_cardbus() argument
1128 if (realloc_head) { in pci_bus_size_cardbus()
1130 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size, in pci_bus_size_cardbus()
1141 if (realloc_head) { in pci_bus_size_cardbus()
1143 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size, in pci_bus_size_cardbus()
1176 if (realloc_head) { in pci_bus_size_cardbus()
1178 add_to_list(realloc_head, bridge, b_res, in pci_bus_size_cardbus()
1193 if (realloc_head) { in pci_bus_size_cardbus()
1195 add_to_list(realloc_head, bridge, b_res, b_res_3_size, in pci_bus_size_cardbus()
1203 void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head) in __pci_bus_size_bridges() argument
1220 pci_bus_size_cardbus(b, realloc_head); in __pci_bus_size_bridges()
1225 __pci_bus_size_bridges(b, realloc_head); in __pci_bus_size_bridges()
1258 pbus_size_io(bus, realloc_head ? 0 : additional_io_size, in __pci_bus_size_bridges()
1259 additional_io_size, realloc_head); in __pci_bus_size_bridges()
1272 realloc_head ? 0 : additional_mmio_pref_size, in __pci_bus_size_bridges()
1273 additional_mmio_pref_size, realloc_head); in __pci_bus_size_bridges()
1296 realloc_head ? 0 : additional_mmio_pref_size, in __pci_bus_size_bridges()
1297 additional_mmio_pref_size, realloc_head); in __pci_bus_size_bridges()
1326 realloc_head ? 0 : additional_mmio_size, in __pci_bus_size_bridges()
1327 additional_mmio_size, realloc_head); in __pci_bus_size_bridges()
1380 struct list_head *realloc_head, in __pci_bus_assign_resources() argument
1386 pbus_assign_resources_sorted(bus, realloc_head, fail_head); in __pci_bus_assign_resources()
1395 __pci_bus_assign_resources(b, realloc_head, fail_head); in __pci_bus_assign_resources()
1755 LIST_HEAD(realloc_head); in pci_assign_unassigned_root_bus_resources()
1781 add_list = &realloc_head; in pci_assign_unassigned_root_bus_resources()