Lines Matching refs:modpath

59 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath);
482 static struct parisc_device *create_parisc_device(struct hardware_path *modpath) in create_parisc_device() argument
487 if (modpath->bc[i] == -1) in create_parisc_device()
489 parent = &alloc_tree_node(parent, modpath->bc[i])->dev; in create_parisc_device()
491 return alloc_tree_node(parent, modpath->mod); in create_parisc_device()
657 struct hardware_path *modpath) in match_pci_device() argument
665 return ((modpath->bc[5] == PCI_SLOT(devfn)) && in match_pci_device()
666 (modpath->mod == PCI_FUNC(devfn))); in match_pci_device()
674 return (modpath->bc[index] == id); in match_pci_device()
686 struct hardware_path *modpath) in match_parisc_device() argument
689 char id = (index == 6) ? modpath->mod : modpath->bc[index]; in match_parisc_device()
696 struct hardware_path * modpath; member
706 if (match_parisc_device(dev, d->index, d->modpath)) in check_parent()
709 if (match_pci_device(dev, d->index, d->modpath)) in check_parent()
713 struct device *new = parse_tree_node(dev, d->index, d->modpath); in check_parent()
732 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath) in parse_tree_node() argument
736 .modpath = modpath, in parse_tree_node()
755 struct device *hwpath_to_device(struct hardware_path *modpath) in hwpath_to_device() argument
760 if (modpath->bc[i] == -1) in hwpath_to_device()
762 parent = parse_tree_node(parent, i, modpath); in hwpath_to_device()
769 return parse_tree_node(parent, 6, modpath); in hwpath_to_device()