Lines Matching refs:pci_resource
298 static int sort_by_size(struct pci_resource **head) in sort_by_size()
300 struct pci_resource *current_res; in sort_by_size()
301 struct pci_resource *next_res; in sort_by_size()
346 static int sort_by_max_size(struct pci_resource **head) in sort_by_max_size()
348 struct pci_resource *current_res; in sort_by_max_size()
349 struct pci_resource *next_res; in sort_by_max_size()
396 static struct pci_resource *do_pre_bridge_resource_split(struct pci_resource **head, in do_pre_bridge_resource_split()
397 struct pci_resource **orig_head, u32 alignment) in do_pre_bridge_resource_split()
399 struct pci_resource *prevnode = NULL; in do_pre_bridge_resource_split()
400 struct pci_resource *node; in do_pre_bridge_resource_split()
401 struct pci_resource *split_node; in do_pre_bridge_resource_split()
473 static struct pci_resource *do_bridge_resource_split(struct pci_resource **head, u32 alignment) in do_bridge_resource_split()
475 struct pci_resource *prevnode = NULL; in do_bridge_resource_split()
476 struct pci_resource *node; in do_bridge_resource_split()
526 static struct pci_resource *get_io_resource(struct pci_resource **head, u32 size) in get_io_resource()
528 struct pci_resource *prevnode; in get_io_resource()
529 struct pci_resource *node; in get_io_resource()
530 struct pci_resource *split_node; in get_io_resource()
623 static struct pci_resource *get_max_resource(struct pci_resource **head, u32 size) in get_max_resource()
625 struct pci_resource *max; in get_max_resource()
626 struct pci_resource *temp; in get_max_resource()
627 struct pci_resource *split_node; in get_max_resource()
720 static struct pci_resource *get_resource(struct pci_resource **head, u32 size) in get_resource()
722 struct pci_resource *prevnode; in get_resource()
723 struct pci_resource *node; in get_resource()
724 struct pci_resource *split_node; in get_resource()
813 int cpqhp_resource_sort_and_combine(struct pci_resource **head) in cpqhp_resource_sort_and_combine()
815 struct pci_resource *node1; in cpqhp_resource_sort_and_combine()
816 struct pci_resource *node2; in cpqhp_resource_sort_and_combine()
2323 struct pci_resource *mem_node; in configure_new_function()
2324 struct pci_resource *p_mem_node; in configure_new_function()
2325 struct pci_resource *io_node; in configure_new_function()
2326 struct pci_resource *bus_node; in configure_new_function()
2327 struct pci_resource *hold_mem_node; in configure_new_function()
2328 struct pci_resource *hold_p_mem_node; in configure_new_function()
2329 struct pci_resource *hold_IO_node; in configure_new_function()
2330 struct pci_resource *hold_bus_node; in configure_new_function()
2452 memcpy(hold_bus_node, bus_node, sizeof(struct pci_resource)); in configure_new_function()
2460 memcpy(hold_IO_node, io_node, sizeof(struct pci_resource)); in configure_new_function()
2473 memcpy(hold_mem_node, mem_node, sizeof(struct pci_resource)); in configure_new_function()
2483 memcpy(hold_p_mem_node, p_mem_node, sizeof(struct pci_resource)); in configure_new_function()