Lines Matching refs:pci_resource

258 static int sort_by_size(struct pci_resource **head)  in sort_by_size()
260 struct pci_resource *current_res; in sort_by_size()
261 struct pci_resource *next_res; in sort_by_size()
309 static int sort_by_max_size(struct pci_resource **head) in sort_by_max_size()
311 struct pci_resource *current_res; in sort_by_max_size()
312 struct pci_resource *next_res; in sort_by_max_size()
359 static struct pci_resource *do_pre_bridge_resource_split (struct pci_resource **head, struct pci_re… in do_pre_bridge_resource_split()
361 struct pci_resource *prevnode = NULL; in do_pre_bridge_resource_split()
362 struct pci_resource *node; in do_pre_bridge_resource_split()
363 struct pci_resource *split_node; in do_pre_bridge_resource_split()
392 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in do_pre_bridge_resource_split()
437 static struct pci_resource *do_bridge_resource_split (struct pci_resource **head, u32 alignment) in do_bridge_resource_split()
439 struct pci_resource *prevnode = NULL; in do_bridge_resource_split()
440 struct pci_resource *node; in do_bridge_resource_split()
497 static struct pci_resource *get_io_resource (struct pci_resource **head, u32 size) in get_io_resource()
499 struct pci_resource *prevnode; in get_io_resource()
500 struct pci_resource *node; in get_io_resource()
501 struct pci_resource *split_node = NULL; in get_io_resource()
526 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_io_resource()
545 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_io_resource()
592 static struct pci_resource *get_max_resource (struct pci_resource **head, u32 size) in get_max_resource()
594 struct pci_resource *max; in get_max_resource()
595 struct pci_resource *temp; in get_max_resource()
596 struct pci_resource *split_node; in get_max_resource()
626 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_max_resource()
644 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_max_resource()
665 split_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_max_resource()
679 temp = (struct pci_resource*) *head; in get_max_resource()
708 static struct pci_resource *get_resource (struct pci_resource **head, u32 size) in get_resource()
710 struct pci_resource *prevnode; in get_resource()
711 struct pci_resource *node; in get_resource()
712 struct pci_resource *split_node; in get_resource()
740 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_resource()
760 split_node = (struct pci_resource*) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in get_resource()
803 int pciehp_resource_sort_and_combine(struct pci_resource **head) in pciehp_resource_sort_and_combine()
805 struct pci_resource *node1; in pciehp_resource_sort_and_combine()
806 struct pci_resource *node2; in pciehp_resource_sort_and_combine()
1946 struct pci_resource *mem_node; in configure_new_function()
1947 struct pci_resource *p_mem_node; in configure_new_function()
1948 struct pci_resource *io_node; in configure_new_function()
1949 struct pci_resource *bus_node; in configure_new_function()
1950 struct pci_resource *hold_mem_node; in configure_new_function()
1951 struct pci_resource *hold_p_mem_node; in configure_new_function()
1952 struct pci_resource *hold_IO_node; in configure_new_function()
1953 struct pci_resource *hold_bus_node; in configure_new_function()
2066 hold_bus_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2067 hold_IO_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2068 hold_mem_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2069 hold_p_mem_node = (struct pci_resource *) kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in configure_new_function()
2084 memcpy(hold_bus_node, bus_node, sizeof(struct pci_resource)); in configure_new_function()
2094 memcpy(hold_IO_node, io_node, sizeof(struct pci_resource)); in configure_new_function()
2115 memcpy(hold_mem_node, mem_node, sizeof(struct pci_resource)); in configure_new_function()
2142 memcpy(hold_p_mem_node, p_mem_node, sizeof(struct pci_resource)); in configure_new_function()
2473 struct pci_resource **res_node = &func->p_mem_head; in configure_new_function()