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);
193 const char *name, int *lenp)
201 if (of_prop_cmp(pp->name, name) == 0) {
212 const char *name,
219 pp = __of_find_property(np, name, lenp);
266 * Find a property with a given name for a given node
270 const char *name, int *lenp)
272 struct property *pp = __of_find_property(np, name, lenp);
278 * Find a property with a given name for a given node
281 const void *of_get_property(const struct device_node *np, const char *name,
284 struct property *pp = of_find_property(np, name, lenp);
295 * @name: required node name, NULL or "" for any match
297 * Checks if the given @compat, @type and @name strings match the
305 * name. Practically speaking, this results in the following priority
308 * 1. specific compatible && type && name
310 * 3. specific compatible && name
312 * 5. general compatible && type && name
314 * 7. general compatible && name
316 * 9. type && name
318 * 11. name
321 const char *compat, const char *type, const char *name)
341 /* Matching type is better than matching name */
348 /* Matching name is a bit better than not */
349 if (name && name[0]) {
350 if (!of_node_name_eq(device, name))
699 * of_get_child_by_name - Find the child node by name for a given parent
701 * @name: child name to look for.
703 * This function looks for child node for given matching name
710 const char *name)
715 if (of_node_name_eq(child, name))
732 const char *name = kbasename(child->full_name);
733 if (strncmp(path, name, len) == 0 && (strlen(name) == len))
760 * start with '/', the name of a property of the /aliases
802 if (strlen(pp->name) == len && !strncmp(pp->name, path, len)) {
823 * of_find_node_by_name - Find a node by its "name" property
828 * @name: The name string to match against
834 const char *name)
841 if (of_node_name_eq(np, name) && of_node_get(np))
910 * the given name.
915 * @prop_name: The name of the property to look for.
930 if (of_prop_cmp(pp->name, prop_name) == 0) {
953 for (; matches->name[0] || matches->type[0] || matches->compatible[0]; matches++) {
955 matches->type, matches->name);
1300 * @list_name: property name that contains a list
1485 * @list_name: property name that contains a list
1486 * @cells_name: property name that specifies phandles' arguments count
1566 if (strcmp(prop->name, (*next)->name) == 0) {
1665 if (of_prop_cmp((*next)->name, newprop->name) == 0)
1703 if (!newprop->name)
1747 const char *name = NULL;
1749 if (of_property_read_string(of_chosen, "stdout-path", &name))
1751 &name);
1752 if (IS_ENABLED(CONFIG_PPC) && !name)
1753 of_property_read_string(of_aliases, "stdout", &name);
1754 if (name)
1755 of_stdout = of_find_node_opts_by_path(name, &of_stdout_options);
1764 const char *start = pp->name;
1771 if (!strcmp(pp->name, "name") ||
1772 !strcmp(pp->name, "phandle") ||
1773 !strcmp(pp->name, "linux,phandle"))
1859 * @name: Name to use for preferred console without index. ex. "ttyS"
1867 bool of_console_check(struct device_node *dn, char *name, int index)
1876 return !add_preferred_console(name, index, (char *)of_stdout_options);
1940 * @map_name: property name of the map to use.
1941 * @map_mask_name: optional property name of the mask to use.