Lines Matching refs:split_node
401 struct pci_resource *split_node; in do_pre_bridge_resource_split() local
431 split_node = kmalloc(sizeof(*split_node), GFP_KERNEL); in do_pre_bridge_resource_split()
433 if (!split_node) in do_pre_bridge_resource_split()
438 split_node->base = node->base; in do_pre_bridge_resource_split()
439 split_node->length = temp_dword; in do_pre_bridge_resource_split()
442 node->base += split_node->length; in do_pre_bridge_resource_split()
445 *head = split_node; in do_pre_bridge_resource_split()
446 split_node->next = node; in do_pre_bridge_resource_split()
530 struct pci_resource *split_node; in get_io_resource() local
556 split_node = kmalloc(sizeof(*split_node), GFP_KERNEL); in get_io_resource()
558 if (!split_node) in get_io_resource()
561 split_node->base = node->base; in get_io_resource()
562 split_node->length = temp_dword - node->base; in get_io_resource()
564 node->length -= split_node->length; in get_io_resource()
567 split_node->next = node->next; in get_io_resource()
568 node->next = split_node; in get_io_resource()
576 split_node = kmalloc(sizeof(*split_node), GFP_KERNEL); in get_io_resource()
578 if (!split_node) in get_io_resource()
581 split_node->base = node->base + size; in get_io_resource()
582 split_node->length = node->length - size; in get_io_resource()
586 split_node->next = node->next; in get_io_resource()
587 node->next = split_node; in get_io_resource()
627 struct pci_resource *split_node; in get_max_resource() local
653 split_node = kmalloc(sizeof(*split_node), GFP_KERNEL); in get_max_resource()
655 if (!split_node) in get_max_resource()
658 split_node->base = max->base; in get_max_resource()
659 split_node->length = temp_dword - max->base; in get_max_resource()
661 max->length -= split_node->length; in get_max_resource()
663 split_node->next = max->next; in get_max_resource()
664 max->next = split_node; in get_max_resource()
671 split_node = kmalloc(sizeof(*split_node), GFP_KERNEL); in get_max_resource()
673 if (!split_node) in get_max_resource()
676 split_node->base = temp_dword; in get_max_resource()
677 split_node->length = max->length + max->base in get_max_resource()
678 - split_node->base; in get_max_resource()
679 max->length -= split_node->length; in get_max_resource()
681 split_node->next = max->next; in get_max_resource()
682 max->next = split_node; in get_max_resource()
724 struct pci_resource *split_node; in get_resource() local
750 split_node = kmalloc(sizeof(*split_node), GFP_KERNEL); in get_resource()
752 if (!split_node) in get_resource()
755 split_node->base = node->base; in get_resource()
756 split_node->length = temp_dword - node->base; in get_resource()
758 node->length -= split_node->length; in get_resource()
760 split_node->next = node->next; in get_resource()
761 node->next = split_node; in get_resource()
770 split_node = kmalloc(sizeof(*split_node), GFP_KERNEL); in get_resource()
772 if (!split_node) in get_resource()
775 split_node->base = node->base + size; in get_resource()
776 split_node->length = node->length - size; in get_resource()
780 split_node->next = node->next; in get_resource()
781 node->next = split_node; in get_resource()