Lines Matching refs:realloc_head
218 static void reassign_resources_sorted(struct list_head *realloc_head, in reassign_resources_sorted() argument
227 list_for_each_entry_safe(add_res, tmp, realloc_head, list) { in reassign_resources_sorted()
350 struct list_head *realloc_head, in __assign_resources_sorted() argument
382 if (!realloc_head || list_empty(realloc_head)) in __assign_resources_sorted()
395 dev_res->res->end += get_res_add_size(realloc_head, in __assign_resources_sorted()
407 add_align = get_res_add_align(realloc_head, dev_res->res); in __assign_resources_sorted()
442 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
455 remove_from_list(realloc_head, dev_res->res); in __assign_resources_sorted()
482 if (realloc_head) in __assign_resources_sorted()
483 reassign_resources_sorted(realloc_head, head); in __assign_resources_sorted()
499 struct list_head *realloc_head, in pbus_assign_resources_sorted() argument
508 __assign_resources_sorted(&head, realloc_head, fail_head); in pbus_assign_resources_sorted()
894 resource_size_t add_size, struct list_head *realloc_head) in pbus_size_io() argument
928 if (realloc_head) in pbus_size_io()
929 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_io()
937 size1 = (!realloc_head || (realloc_head && !add_size)) ? size0 : in pbus_size_io()
951 if (size1 > size0 && realloc_head) { in pbus_size_io()
952 add_to_list(realloc_head, bus->self, b_res, size1-size0, in pbus_size_io()
1005 struct list_head *realloc_head) in pbus_size_mem() argument
1039 if (realloc_head && i >= PCI_IOV_RESOURCES && in pbus_size_mem()
1043 add_to_list(realloc_head, dev, r, r_size, 0/* don't care */); in pbus_size_mem()
1072 if (realloc_head) { in pbus_size_mem()
1073 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_mem()
1074 children_add_align = get_res_add_align(realloc_head, r); in pbus_size_mem()
1086 size1 = (!realloc_head || (realloc_head && !add_size)) ? size0 : in pbus_size_mem()
1099 if (size1 > size0 && realloc_head) { in pbus_size_mem()
1100 add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align); in pbus_size_mem()
1119 struct list_head *realloc_head) in pci_bus_size_cardbus() argument
1135 if (realloc_head) { in pci_bus_size_cardbus()
1137 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size, in pci_bus_size_cardbus()
1147 if (realloc_head) { in pci_bus_size_cardbus()
1149 add_to_list(realloc_head, bridge, b_res+1, pci_cardbus_io_size, in pci_bus_size_cardbus()
1185 if (realloc_head) { in pci_bus_size_cardbus()
1187 add_to_list(realloc_head, bridge, b_res+2, in pci_bus_size_cardbus()
1201 if (realloc_head) { in pci_bus_size_cardbus()
1203 add_to_list(realloc_head, bridge, b_res+3, b_res_3_size, in pci_bus_size_cardbus()
1211 void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head) in __pci_bus_size_bridges() argument
1226 pci_bus_size_cardbus(b, realloc_head); in __pci_bus_size_bridges()
1231 __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()
1268 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1269 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1292 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1293 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1323 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1324 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1377 struct list_head *realloc_head, in __pci_bus_assign_resources() argument
1383 pbus_assign_resources_sorted(bus, realloc_head, fail_head); in __pci_bus_assign_resources()
1392 __pci_bus_assign_resources(b, realloc_head, fail_head); in __pci_bus_assign_resources()
1752 LIST_HEAD(realloc_head); /* list of resources that in pci_assign_unassigned_root_bus_resources()
1779 add_list = &realloc_head; in pci_assign_unassigned_root_bus_resources()