Lines Matching refs:modpath

59 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath);
481 static struct parisc_device *create_parisc_device(struct hardware_path *modpath) in create_parisc_device() argument
486 if (modpath->bc[i] == -1) in create_parisc_device()
488 parent = &alloc_tree_node(parent, modpath->bc[i])->dev; in create_parisc_device()
490 return alloc_tree_node(parent, modpath->mod); in create_parisc_device()
656 struct hardware_path *modpath) in match_pci_device() argument
664 return ((modpath->bc[5] == PCI_SLOT(devfn)) && in match_pci_device()
665 (modpath->mod == PCI_FUNC(devfn))); in match_pci_device()
673 return (modpath->bc[index] == id); in match_pci_device()
685 struct hardware_path *modpath) in match_parisc_device() argument
688 char id = (index == 6) ? modpath->mod : modpath->bc[index]; in match_parisc_device()
695 struct hardware_path * modpath; member
705 if (match_parisc_device(dev, d->index, d->modpath)) in check_parent()
708 if (match_pci_device(dev, d->index, d->modpath)) in check_parent()
712 struct device *new = parse_tree_node(dev, d->index, d->modpath); in check_parent()
731 parse_tree_node(struct device *parent, int index, struct hardware_path *modpath) in parse_tree_node() argument
735 .modpath = modpath, in parse_tree_node()
754 struct device *hwpath_to_device(struct hardware_path *modpath) in hwpath_to_device() argument
759 if (modpath->bc[i] == -1) in hwpath_to_device()
761 parent = parse_tree_node(parent, i, modpath); in hwpath_to_device()
768 return parse_tree_node(parent, 6, modpath); in hwpath_to_device()