Lines Matching refs:name
58 bool of_node_name_eq(const struct device_node *np, const char *name)
69 return (strlen(name) == len) && (strncmp(node_name, name, len) == 0);
192 const char *name, int *lenp)
200 if (of_prop_cmp(pp->name, name) == 0) {
211 const char *name,
218 pp = __of_find_property(np, name, lenp);
265 * Find a property with a given name for a given node
269 const char *name, int *lenp)
271 struct property *pp = __of_find_property(np, name, lenp);
277 * Find a property with a given name for a given node
280 const void *of_get_property(const struct device_node *np, const char *name,
283 struct property *pp = of_find_property(np, name, lenp);
459 * @name: required node name, NULL or "" for any match
461 * Checks if the given @compat, @type and @name strings match the
469 * name. Practically speaking, this results in the following priority
472 * 1. specific compatible && type && name
474 * 3. specific compatible && name
476 * 5. general compatible && type && name
478 * 7. general compatible && name
480 * 9. type && name
482 * 11. name
485 const char *compat, const char *type, const char *name)
505 /* Matching type is better than matching name */
512 /* Matching name is a bit better than not */
513 if (name && name[0]) {
514 if (!of_node_name_eq(device, name))
837 * of_get_child_by_name - Find the child node by name for a given parent
839 * @name: child name to look for.
841 * This function looks for child node for given matching name
848 const char *name)
853 if (of_node_name_eq(child, name))
870 const char *name = kbasename(child->full_name);
871 if (strncmp(path, name, len) == 0 && (strlen(name) == len))
898 * start with '/', the name of a property of the /aliases
940 if (strlen(pp->name) == len && !strncmp(pp->name, path, len)) {
961 * of_find_node_by_name - Find a node by its "name" property
966 * @name: The name string to match against
972 const char *name)
979 if (of_node_name_eq(np, name) && of_node_get(np))
1048 * the given name.
1053 * @prop_name: The name of the property to look for.
1068 if (of_prop_cmp(pp->name, prop_name) == 0) {
1091 for (; matches->name[0] || matches->type[0] || matches->compatible[0]; matches++) {
1093 matches->type, matches->name);
1456 * @list_name: property name that contains a list
1457 * @cells_name: property name that specifies phandles' arguments count
1506 * @list_name: property name that contains a list
1691 * @list_name: property name that contains a list
1732 * @list_name: property name that contains a list
1733 * @cells_name: property name that specifies phandles' arguments count
1793 if (strcmp(prop->name, (*next)->name) == 0)
1892 if (of_prop_cmp((*next)->name, newprop->name) == 0)
1927 if (!newprop->name)
1979 const char *name = NULL;
1981 if (of_property_read_string(of_chosen, "stdout-path", &name))
1983 &name);
1984 if (IS_ENABLED(CONFIG_PPC) && !name)
1985 of_property_read_string(of_aliases, "stdout", &name);
1986 if (name)
1987 of_stdout = of_find_node_opts_by_path(name, &of_stdout_options);
1994 const char *start = pp->name;
2001 if (!strcmp(pp->name, "name") ||
2002 !strcmp(pp->name, "phandle") ||
2003 !strcmp(pp->name, "linux,phandle"))
2142 * @name: Name to use for preferred console without index. ex. "ttyS"
2150 bool of_console_check(struct device_node *dn, char *name, int index)
2159 return !add_preferred_console(name, index, (char *)of_stdout_options);
2222 * @map_name: property name of the map to use.
2223 * @map_mask_name: optional property name of the mask to use.