Lines Matching refs:realloc_head
204 * @realloc_head: Head of the list tracking requests requiring
209 * Walk through each element of the realloc_head and try to procure additional
212 static void reassign_resources_sorted(struct list_head *realloc_head,
221 list_for_each_entry_safe(add_res, tmp, realloc_head, list) {
343 struct list_head *realloc_head,
375 if (!realloc_head || list_empty(realloc_head))
386 /* Update res in head list with add_size in realloc_head list */
388 dev_res->res->end += get_res_add_size(realloc_head,
400 add_align = get_res_add_align(realloc_head, dev_res->res);
433 /* Remove head list from realloc_head list */
435 remove_from_list(realloc_head, dev_res->res);
447 /* Remove it from realloc_head list */
448 remove_from_list(realloc_head, dev_res->res);
474 if (realloc_head)
475 reassign_resources_sorted(realloc_head, head);
491 struct list_head *realloc_head,
500 __assign_resources_sorted(&head, realloc_head, fail_head);
867 * @realloc_head: Track the additional I/O window on this list
876 struct list_head *realloc_head)
913 if (realloc_head)
914 children_add_size += get_res_add_size(realloc_head, r);
920 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 :
934 if (bus->self && size1 > size0 && realloc_head) {
935 add_to_list(realloc_head, bus->self, b_res, size1-size0,
975 * @realloc_head: Track the additional memory window on this list
982 * required size, add things to realloc_head (if supplied), and return 0.
988 struct list_head *realloc_head)
1026 if (realloc_head && i >= PCI_IOV_RESOURCES &&
1030 add_to_list(realloc_head, dev, r, r_size, 0 /* Don't care */);
1061 if (realloc_head) {
1062 children_add_size += get_res_add_size(realloc_head, r);
1063 children_add_align = get_res_add_align(realloc_head, r);
1073 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 :
1086 if (bus->self && size1 > size0 && realloc_head) {
1087 add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align);
1106 struct list_head *realloc_head)
1123 if (realloc_head) {
1125 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size,
1136 if (realloc_head) {
1138 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size,
1171 if (realloc_head) {
1173 add_to_list(realloc_head, bridge, b_res,
1188 if (realloc_head) {
1190 add_to_list(realloc_head, bridge, b_res, b_res_3_size,
1198 void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head)
1215 pci_bus_size_cardbus(b, realloc_head);
1220 __pci_bus_size_bridges(b, realloc_head);
1253 pbus_size_io(bus, realloc_head ? 0 : additional_io_size,
1254 additional_io_size, realloc_head);
1267 realloc_head ? 0 : additional_mmio_pref_size,
1268 additional_mmio_pref_size, realloc_head);
1291 realloc_head ? 0 : additional_mmio_pref_size,
1292 additional_mmio_pref_size, realloc_head);
1321 realloc_head ? 0 : additional_mmio_size,
1322 additional_mmio_size, realloc_head);
1373 struct list_head *realloc_head,
1379 pbus_assign_resources_sorted(bus, realloc_head, fail_head);
1388 __pci_bus_assign_resources(b, realloc_head, fail_head);
2037 LIST_HEAD(realloc_head);
2063 add_list = &realloc_head;