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
1047 if (realloc_head && i >= PCI_IOV_RESOURCES && in pbus_size_mem()
1051 add_to_list(realloc_head, dev, r, r_size, 0/* don't care */); in pbus_size_mem()
1080 if (realloc_head) { in pbus_size_mem()
1081 children_add_size += get_res_add_size(realloc_head, r); in pbus_size_mem()
1082 children_add_align = get_res_add_align(realloc_head, r); in pbus_size_mem()
1094 size1 = (!realloc_head || (realloc_head && !add_size)) ? size0 : in pbus_size_mem()
1107 if (size1 > size0 && realloc_head) { in pbus_size_mem()
1108 add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align); in pbus_size_mem()
1127 struct list_head *realloc_head) in pci_bus_size_cardbus() argument
1143 if (realloc_head) { in pci_bus_size_cardbus()
1145 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size, in pci_bus_size_cardbus()
1155 if (realloc_head) { in pci_bus_size_cardbus()
1157 add_to_list(realloc_head, bridge, b_res+1, pci_cardbus_io_size, in pci_bus_size_cardbus()
1193 if (realloc_head) { in pci_bus_size_cardbus()
1195 add_to_list(realloc_head, bridge, b_res+2, in pci_bus_size_cardbus()
1209 if (realloc_head) { in pci_bus_size_cardbus()
1211 add_to_list(realloc_head, bridge, b_res+3, b_res_3_size, in pci_bus_size_cardbus()
1219 void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head) in __pci_bus_size_bridges() argument
1234 pci_bus_size_cardbus(b, realloc_head); in __pci_bus_size_bridges()
1239 __pci_bus_size_bridges(b, realloc_head); in __pci_bus_size_bridges()
1261 pbus_size_io(bus, realloc_head ? 0 : additional_io_size, in __pci_bus_size_bridges()
1262 additional_io_size, realloc_head); in __pci_bus_size_bridges()
1276 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1277 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1300 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1301 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1331 realloc_head ? 0 : additional_mem_size, in __pci_bus_size_bridges()
1332 additional_mem_size, realloc_head); in __pci_bus_size_bridges()
1344 struct list_head *realloc_head, in __pci_bus_assign_resources() argument
1350 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()
1646 LIST_HEAD(realloc_head); /* list of resources that in pci_assign_unassigned_root_bus_resources()
1675 add_list = &realloc_head; in pci_assign_unassigned_root_bus_resources()