Lines Matching refs:modpath
61 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath);
462 static struct parisc_device *create_parisc_device(struct hardware_path *modpath) in create_parisc_device() argument
467 if (modpath->bc[i] == -1) in create_parisc_device()
469 parent = &alloc_tree_node(parent, modpath->bc[i])->dev; in create_parisc_device()
471 return alloc_tree_node(parent, modpath->mod); in create_parisc_device()
639 struct hardware_path *modpath) in match_pci_device() argument
647 return ((modpath->bc[5] == PCI_SLOT(devfn)) && in match_pci_device()
648 (modpath->mod == PCI_FUNC(devfn))); in match_pci_device()
652 return (modpath->bc[index] == id); in match_pci_device()
664 struct hardware_path *modpath) in match_parisc_device() argument
667 char id = (index == 6) ? modpath->mod : modpath->bc[index]; in match_parisc_device()
674 struct hardware_path * modpath; member
684 if (match_parisc_device(dev, d->index, d->modpath)) in check_parent()
687 if (match_pci_device(dev, d->index, d->modpath)) in check_parent()
691 struct device *new = parse_tree_node(dev, d->index, d->modpath); in check_parent()
710 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath) in parse_tree_node() argument
714 .modpath = modpath, in parse_tree_node()
733 struct device *hwpath_to_device(struct hardware_path *modpath) in hwpath_to_device() argument
738 if (modpath->bc[i] == -1) in hwpath_to_device()
740 parent = parse_tree_node(parent, i, modpath); in hwpath_to_device()
747 return parse_tree_node(parent, 6, modpath); in hwpath_to_device()