Lines Matching refs:realloc_head
213 static void reassign_resources_sorted(struct list_head *realloc_head, in reassign_resources_sorted() argument
222 list_for_each_entry_safe(add_res, tmp, realloc_head, list) { in reassign_resources_sorted()
344 struct list_head *realloc_head, in __assign_resources_sorted() argument
376 if (!realloc_head || list_empty(realloc_head)) in __assign_resources_sorted()
389 dev_res->res->end += get_res_add_size(realloc_head, in __assign_resources_sorted()
401 add_align = get_res_add_align(realloc_head, dev_res->res); in __assign_resources_sorted()
436 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
449 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
475 if (realloc_head) in __assign_resources_sorted()
476 reassign_resources_sorted(realloc_head, head); in __assign_resources_sorted()
492 struct list_head *realloc_head, in pbus_assign_resources_sorted() argument
501 __assign_resources_sorted(&head, realloc_head, fail_head); in pbus_assign_resources_sorted()
866 struct list_head *realloc_head) in pbus_size_io() argument
900 if (realloc_head) in pbus_size_io()
901 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_io()
907 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 : in pbus_size_io()
921 if (size1 > size0 && realloc_head) { in pbus_size_io()
922 add_to_list(realloc_head, bus->self, b_res, size1-size0, in pbus_size_io()
975 struct list_head *realloc_head) in pbus_size_mem() argument
1009 if (realloc_head && i >= PCI_IOV_RESOURCES && in pbus_size_mem()
1013 add_to_list(realloc_head, dev, r, r_size, 0 /* Don't care */); in pbus_size_mem()
1044 if (realloc_head) { in pbus_size_mem()
1045 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_mem()
1046 children_add_align = get_res_add_align(realloc_head, r); in pbus_size_mem()
1056 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 : in pbus_size_mem()
1069 if (size1 > size0 && realloc_head) { in pbus_size_mem()
1070 add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align); in pbus_size_mem()
1089 struct list_head *realloc_head) in pci_bus_size_cardbus() argument
1105 if (realloc_head) { in pci_bus_size_cardbus()
1107 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size, in pci_bus_size_cardbus()
1117 if (realloc_head) { in pci_bus_size_cardbus()
1119 add_to_list(realloc_head, bridge, b_res+1, pci_cardbus_io_size, in pci_bus_size_cardbus()
1151 if (realloc_head) { in pci_bus_size_cardbus()
1153 add_to_list(realloc_head, bridge, b_res+2, in pci_bus_size_cardbus()
1167 if (realloc_head) { in pci_bus_size_cardbus()
1169 add_to_list(realloc_head, bridge, b_res+3, b_res_3_size, in pci_bus_size_cardbus()
1177 void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head) in __pci_bus_size_bridges() argument
1192 pci_bus_size_cardbus(b, realloc_head); in __pci_bus_size_bridges()
1197 __pci_bus_size_bridges(b, realloc_head); in __pci_bus_size_bridges()
1219 pbus_size_io(bus, realloc_head ? 0 : additional_io_size, in __pci_bus_size_bridges()
1220 additional_io_size, realloc_head); in __pci_bus_size_bridges()
1234 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1235 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1258 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1259 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1288 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1289 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1342 struct list_head *realloc_head, in __pci_bus_assign_resources() argument
1348 pbus_assign_resources_sorted(bus, realloc_head, fail_head); in __pci_bus_assign_resources()
1357 __pci_bus_assign_resources(b, realloc_head, fail_head); in __pci_bus_assign_resources()
1717 LIST_HEAD(realloc_head); in pci_assign_unassigned_root_bus_resources()
1743 add_list = &realloc_head; in pci_assign_unassigned_root_bus_resources()