Lines Matching refs:modpath
61 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath);
460 static struct parisc_device *create_parisc_device(struct hardware_path *modpath) in create_parisc_device() argument
465 if (modpath->bc[i] == -1) in create_parisc_device()
467 parent = &alloc_tree_node(parent, modpath->bc[i])->dev; in create_parisc_device()
469 return alloc_tree_node(parent, modpath->mod); in create_parisc_device()
636 struct hardware_path *modpath) in match_pci_device() argument
644 return ((modpath->bc[5] == PCI_SLOT(devfn)) && in match_pci_device()
645 (modpath->mod == PCI_FUNC(devfn))); in match_pci_device()
653 return (modpath->bc[index] == id); in match_pci_device()
665 struct hardware_path *modpath) in match_parisc_device() argument
668 char id = (index == 6) ? modpath->mod : modpath->bc[index]; in match_parisc_device()
675 struct hardware_path * modpath; member
685 if (match_parisc_device(dev, d->index, d->modpath)) in check_parent()
688 if (match_pci_device(dev, d->index, d->modpath)) in check_parent()
692 struct device *new = parse_tree_node(dev, d->index, d->modpath); in check_parent()
711 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath) in parse_tree_node() argument
715 .modpath = modpath, in parse_tree_node()
734 struct device *hwpath_to_device(struct hardware_path *modpath) in hwpath_to_device() argument
739 if (modpath->bc[i] == -1) in hwpath_to_device()
741 parent = parse_tree_node(parent, i, modpath); in hwpath_to_device()
748 return parse_tree_node(parent, 6, modpath); in hwpath_to_device()