Lines Matching refs:pci_resource
270 static int sort_by_size(struct pci_resource **head) in sort_by_size()
272 struct pci_resource *current_res; in sort_by_size()
273 struct pci_resource *next_res; in sort_by_size()
321 static int sort_by_max_size(struct pci_resource **head) in sort_by_max_size()
323 struct pci_resource *current_res; in sort_by_max_size()
324 struct pci_resource *next_res; in sort_by_max_size()
371 static struct pci_resource *do_pre_bridge_resource_split (struct pci_resource **head, struct pci_re… in do_pre_bridge_resource_split()
373 struct pci_resource *prevnode = NULL; in do_pre_bridge_resource_split()
374 struct pci_resource *node; in do_pre_bridge_resource_split()
375 struct pci_resource *split_node; in do_pre_bridge_resource_split()
404 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in do_pre_bridge_resource_split()
449 static struct pci_resource *do_bridge_resource_split (struct pci_resource **head, u32 alignment) in do_bridge_resource_split()
451 struct pci_resource *prevnode = NULL; in do_bridge_resource_split()
452 struct pci_resource *node; in do_bridge_resource_split()
509 static struct pci_resource *get_io_resource (struct pci_resource **head, u32 size) in get_io_resource()
511 struct pci_resource *prevnode; in get_io_resource()
512 struct pci_resource *node; in get_io_resource()
513 struct pci_resource *split_node = NULL; in get_io_resource()
538 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_io_resource()
557 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_io_resource()
604 static struct pci_resource *get_max_resource (struct pci_resource **head, u32 size) in get_max_resource()
606 struct pci_resource *max; in get_max_resource()
607 struct pci_resource *temp; in get_max_resource()
608 struct pci_resource *split_node; in get_max_resource()
638 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_max_resource()
656 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_max_resource()
677 split_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), in get_max_resource()
692 temp = (struct pci_resource*) *head; in get_max_resource()
721 static struct pci_resource *get_resource (struct pci_resource **head, u32 size) in get_resource()
723 struct pci_resource *prevnode; in get_resource()
724 struct pci_resource *node; in get_resource()
725 struct pci_resource *split_node; in get_resource()
753 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_resource()
773 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_resource()
816 int shpchp_resource_sort_and_combine(struct pci_resource **head) in shpchp_resource_sort_and_combine()
818 struct pci_resource *node1; in shpchp_resource_sort_and_combine()
819 struct pci_resource *node2; in shpchp_resource_sort_and_combine()
2391 struct pci_resource *mem_node; in configure_new_function()
2392 struct pci_resource *p_mem_node; in configure_new_function()
2393 struct pci_resource *io_node; in configure_new_function()
2394 struct pci_resource *bus_node; in configure_new_function()
2395 struct pci_resource *hold_mem_node; in configure_new_function()
2396 struct pci_resource *hold_p_mem_node; in configure_new_function()
2397 struct pci_resource *hold_IO_node; in configure_new_function()
2398 struct pci_resource *hold_bus_node; in configure_new_function()
2509 hold_bus_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2510 hold_IO_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2511 hold_mem_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2512 hold_p_mem_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2527 memcpy(hold_bus_node, bus_node, sizeof(struct pci_resource)); in configure_new_function()
2537 memcpy(hold_IO_node, io_node, sizeof(struct pci_resource)); in configure_new_function()
2558 memcpy(hold_mem_node, mem_node, sizeof(struct pci_resource)); in configure_new_function()
2585 memcpy(hold_p_mem_node, p_mem_node, sizeof(struct pci_resource)); in configure_new_function()
2916 struct pci_resource **res_node = &func->p_mem_head; in configure_new_function()