Lines Matching defs:parent
103 struct par_list **pl; /* parsed parent list */
1743 static char prnt_err[] = "'parent' property already specified";
1748 hwc_begin, parent, drvname, drvclass, prop,
1800 strcmp(tokbuf, "parent") == 0) {
1801 state = parent;
1827 case parent:
2093 * Make sure parent and class not NULL.
2109 * This is a node spec, either parent or class
2115 "missing parent or class attribute");
2887 * Given par_list, get a list of parent major number
2905 /* parent specs cannot be mapped to a driver */
2929 * delete a parent list and all its hwc specs
3120 * Given a parent=/full-pathname, see if the platform
3125 get_major(char *parent)
3130 if (*parent == '/')
3131 major = path_to_major(parent);
3137 if (*parent == '/')
3138 driver = strrchr(parent, '/') + 1;
3140 driver = parent;
3150 * Chain together specs whose parent's module name is the same.
3157 char *parent = spec->hwc_parent_name;
3160 ASSERT(parent || class);
3163 * If given a parent=/full-pathname, see if the platform
3167 * If parent=/full-pathname doesn't resolve to a driver,
3172 if (parent) {
3173 maj = get_major(parent);
3175 if ((*parent == '/') &&
3176 (strncmp(parent, "/pseudo", 7) != 0)) {
3181 parent);
3190 * Scan the list looking for a matching parent. When parent is
3191 * not NULL, we match the parent by major. If parent is NULL but
3195 if ((parent && (maj == pl->par_major)) || ((parent == NULL) &&
3205 * Didn't find a match on the list. Make a new parent list.
3220 /* ensure unresolved "parent=/full-path" goes first */