Lines Matching refs:realloc_head
207 * @realloc_head: Head of the list tracking requests requiring
212 * Walk through each element of the realloc_head and try to procure additional
215 static void reassign_resources_sorted(struct list_head *realloc_head,
224 list_for_each_entry_safe(add_res, tmp, realloc_head, list) {
346 struct list_head *realloc_head,
378 if (!realloc_head || list_empty(realloc_head))
389 /* Update res in head list with add_size in realloc_head list */
391 dev_res->res->end += get_res_add_size(realloc_head,
403 add_align = get_res_add_align(realloc_head, dev_res->res);
436 /* Remove head list from realloc_head list */
438 remove_from_list(realloc_head, dev_res->res);
450 /* Remove it from realloc_head list */
451 remove_from_list(realloc_head, dev_res->res);
477 if (realloc_head)
478 reassign_resources_sorted(realloc_head, head);
494 struct list_head *realloc_head,
503 __assign_resources_sorted(&head, realloc_head, fail_head);
871 * @realloc_head: Track the additional I/O window on this list
880 struct list_head *realloc_head)
918 if (realloc_head)
919 children_add_size += get_res_add_size(realloc_head, r);
925 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 :
939 if (bus->self && size1 > size0 && realloc_head) {
940 add_to_list(realloc_head, bus->self, b_res, size1-size0,
980 * @realloc_head: Track the additional memory window on this list
987 * required size, add things to realloc_head (if supplied), and return 0.
993 struct list_head *realloc_head)
1031 if (realloc_head && i >= PCI_IOV_RESOURCES &&
1035 add_to_list(realloc_head, dev, r, r_size, 0 /* Don't care */);
1066 if (realloc_head) {
1067 children_add_size += get_res_add_size(realloc_head, r);
1068 children_add_align = get_res_add_align(realloc_head, r);
1078 size1 = (!realloc_head || (realloc_head && !add_size && !children_add_size)) ? size0 :
1091 if (bus->self && size1 > size0 && realloc_head) {
1092 add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align);
1111 struct list_head *realloc_head)
1128 if (realloc_head) {
1130 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size,
1141 if (realloc_head) {
1143 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size,
1176 if (realloc_head) {
1178 add_to_list(realloc_head, bridge, b_res,
1193 if (realloc_head) {
1195 add_to_list(realloc_head, bridge, b_res, b_res_3_size,
1203 void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head)
1220 pci_bus_size_cardbus(b, realloc_head);
1225 __pci_bus_size_bridges(b, realloc_head);
1258 pbus_size_io(bus, realloc_head ? 0 : additional_io_size,
1259 additional_io_size, realloc_head);
1272 realloc_head ? 0 : additional_mmio_pref_size,
1273 additional_mmio_pref_size, realloc_head);
1296 realloc_head ? 0 : additional_mmio_pref_size,
1297 additional_mmio_pref_size, realloc_head);
1326 realloc_head ? 0 : additional_mmio_size,
1327 additional_mmio_size, realloc_head);
1380 struct list_head *realloc_head,
1386 pbus_assign_resources_sorted(bus, realloc_head, fail_head);
1395 __pci_bus_assign_resources(b, realloc_head, fail_head);
1755 LIST_HEAD(realloc_head);
1781 add_list = &realloc_head;