Lines Matching refs:realloc_head

212 static void reassign_resources_sorted(struct list_head *realloc_head,  in reassign_resources_sorted()  argument
221 list_for_each_entry_safe(add_res, tmp, realloc_head, list) { in reassign_resources_sorted()
343 struct list_head *realloc_head, in __assign_resources_sorted() argument
375 if (!realloc_head || list_empty(realloc_head)) in __assign_resources_sorted()
388 dev_res->res->end += get_res_add_size(realloc_head, in __assign_resources_sorted()
400 add_align = get_res_add_align(realloc_head, dev_res->res); in __assign_resources_sorted()
435 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
448 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
474 if (realloc_head) in __assign_resources_sorted()
475 reassign_resources_sorted(realloc_head, head); in __assign_resources_sorted()
491 struct list_head *realloc_head, in pbus_assign_resources_sorted() argument
500 __assign_resources_sorted(&head, realloc_head, fail_head); in pbus_assign_resources_sorted()
876 struct list_head *realloc_head) in pbus_size_io() argument
913 if (realloc_head) in pbus_size_io()
914 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_io()
920 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 : in pbus_size_io()
934 if (bus->self && size1 > size0 && realloc_head) { in pbus_size_io()
935 add_to_list(realloc_head, bus->self, b_res, size1-size0, in pbus_size_io()
988 struct list_head *realloc_head) in pbus_size_mem() argument
1026 if (realloc_head && i >= PCI_IOV_RESOURCES && in pbus_size_mem()
1030 add_to_list(realloc_head, dev, r, r_size, 0 /* Don't care */); in pbus_size_mem()
1061 if (realloc_head) { in pbus_size_mem()
1062 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_mem()
1063 children_add_align = get_res_add_align(realloc_head, r); in pbus_size_mem()
1073 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 : in pbus_size_mem()
1086 if (bus->self && size1 > size0 && realloc_head) { in pbus_size_mem()
1087 add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align); in pbus_size_mem()
1106 struct list_head *realloc_head) in pci_bus_size_cardbus() argument
1123 if (realloc_head) { in pci_bus_size_cardbus()
1125 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size, in pci_bus_size_cardbus()
1136 if (realloc_head) { in pci_bus_size_cardbus()
1138 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size, in pci_bus_size_cardbus()
1171 if (realloc_head) { in pci_bus_size_cardbus()
1173 add_to_list(realloc_head, bridge, b_res, in pci_bus_size_cardbus()
1188 if (realloc_head) { in pci_bus_size_cardbus()
1190 add_to_list(realloc_head, bridge, b_res, b_res_3_size, in pci_bus_size_cardbus()
1198 void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head) in __pci_bus_size_bridges() argument
1215 pci_bus_size_cardbus(b, realloc_head); in __pci_bus_size_bridges()
1220 __pci_bus_size_bridges(b, realloc_head); in __pci_bus_size_bridges()
1253 pbus_size_io(bus, realloc_head ? 0 : additional_io_size, in __pci_bus_size_bridges()
1254 additional_io_size, realloc_head); in __pci_bus_size_bridges()
1267 realloc_head ? 0 : additional_mmio_pref_size, in __pci_bus_size_bridges()
1268 additional_mmio_pref_size, realloc_head); in __pci_bus_size_bridges()
1291 realloc_head ? 0 : additional_mmio_pref_size, in __pci_bus_size_bridges()
1292 additional_mmio_pref_size, realloc_head); in __pci_bus_size_bridges()
1321 realloc_head ? 0 : additional_mmio_size, in __pci_bus_size_bridges()
1322 additional_mmio_size, realloc_head); in __pci_bus_size_bridges()
1373 struct list_head *realloc_head, in __pci_bus_assign_resources() argument
1379 pbus_assign_resources_sorted(bus, realloc_head, fail_head); in __pci_bus_assign_resources()
1388 __pci_bus_assign_resources(b, realloc_head, fail_head); in __pci_bus_assign_resources()
2037 LIST_HEAD(realloc_head); in pci_assign_unassigned_root_bus_resources()
2063 add_list = &realloc_head; in pci_assign_unassigned_root_bus_resources()