Lines Matching refs:pci_resource
327 static int sort_by_size(struct pci_resource **head) in sort_by_size()
329 struct pci_resource *current_res; in sort_by_size()
330 struct pci_resource *next_res; in sort_by_size()
378 static int sort_by_max_size(struct pci_resource **head) in sort_by_max_size()
380 struct pci_resource *current_res; in sort_by_max_size()
381 struct pci_resource *next_res; in sort_by_max_size()
428 static struct pci_resource *do_pre_bridge_resource_split (struct pci_resource **head, struct pci_re… in do_pre_bridge_resource_split()
430 struct pci_resource *prevnode = NULL; in do_pre_bridge_resource_split()
431 struct pci_resource *node; in do_pre_bridge_resource_split()
432 struct pci_resource *split_node; in do_pre_bridge_resource_split()
460 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in do_pre_bridge_resource_split()
505 static struct pci_resource *do_bridge_resource_split (struct pci_resource **head, u32 alignment) in do_bridge_resource_split()
507 struct pci_resource *prevnode = NULL; in do_bridge_resource_split()
508 struct pci_resource *node; in do_bridge_resource_split()
565 static struct pci_resource *get_io_resource (struct pci_resource **head, u32 size) in get_io_resource()
567 struct pci_resource *prevnode; in get_io_resource()
568 struct pci_resource *node; in get_io_resource()
569 struct pci_resource *split_node; in get_io_resource()
594 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_io_resource()
613 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_io_resource()
658 static struct pci_resource *get_max_resource (struct pci_resource **head, u32 size) in get_max_resource()
660 struct pci_resource *max; in get_max_resource()
661 struct pci_resource *temp; in get_max_resource()
662 struct pci_resource *split_node; in get_max_resource()
690 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_max_resource()
708 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_max_resource()
728 temp = (struct pci_resource*) *head; in get_max_resource()
757 static struct pci_resource *get_resource (struct pci_resource **head, u32 size) in get_resource()
759 struct pci_resource *prevnode; in get_resource()
760 struct pci_resource *node; in get_resource()
761 struct pci_resource *split_node; in get_resource()
789 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_resource()
809 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_resource()
852 int cpqhp_resource_sort_and_combine(struct pci_resource **head) in cpqhp_resource_sort_and_combine()
854 struct pci_resource *node1; in cpqhp_resource_sort_and_combine()
855 struct pci_resource *node2; in cpqhp_resource_sort_and_combine()
2460 struct pci_resource *mem_node; in configure_new_function()
2461 struct pci_resource *p_mem_node; in configure_new_function()
2462 struct pci_resource *io_node; in configure_new_function()
2463 struct pci_resource *bus_node; in configure_new_function()
2464 struct pci_resource *hold_mem_node; in configure_new_function()
2465 struct pci_resource *hold_p_mem_node; in configure_new_function()
2466 struct pci_resource *hold_IO_node; in configure_new_function()
2467 struct pci_resource *hold_bus_node; in configure_new_function()
2561 hold_bus_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2562 hold_IO_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2563 hold_mem_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2564 hold_p_mem_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2579 memcpy(hold_bus_node, bus_node, sizeof(struct pci_resource)); in configure_new_function()
2588 memcpy(hold_IO_node, io_node, sizeof(struct pci_resource)); in configure_new_function()
2606 memcpy(hold_mem_node, mem_node, sizeof(struct pci_resource)); in configure_new_function()
2630 memcpy(hold_p_mem_node, p_mem_node, sizeof(struct pci_resource)); in configure_new_function()