Lines Matching refs:name
127 const char *name, int *lenp) in of_find_property() argument
135 if (strcmp(pp->name, name) == 0) { in of_find_property()
169 const void *of_get_property(const struct device_node *np, const char *name, in of_get_property() argument
172 struct property *pp = of_find_property(np, name, lenp); in of_get_property()
196 const char **name, in of_get_property_by_prop() argument
201 if (name) in of_get_property_by_prop()
202 *name = property->name; in of_get_property_by_prop()
228 const char *name) in of_device_is_compatible() argument
256 if (name && name[0]) { in of_device_is_compatible()
257 if (!device->name || of_node_cmp(name, device->name)) in of_device_is_compatible()
334 const char *name = strrchr(child->full_name, '/'); in __of_find_node_by_path() local
336 name++; in __of_find_node_by_path()
337 if (strncmp(path, name, len) == 0 && (strlen(name) == len)) in __of_find_node_by_path()
379 if (strlen(pp->name) == len && !strncmp(pp->name, path, in of_find_node_opts_by_path()
870 const char *name; in of_alias_scan() local
872 name = of_get_property(of_chosen, "stdout-path", NULL); in of_alias_scan()
873 if (name) in of_alias_scan()
874 of_stdout = of_find_node_opts_by_path(NULL, name, in of_alias_scan()
882 const char *start = pp->name; in of_alias_scan()
890 if (!strcmp(pp->name, "name") || in of_alias_scan()
891 !strcmp(pp->name, "phandle") || in of_alias_scan()
892 !strcmp(pp->name, "linux,phandle")) in of_alias_scan()
976 if (strcmp(pp->name, propname) == 0) { in of_write_prop()
990 new->name = strdup(propname); in of_write_prop()
991 if (!new->name) { in of_write_prop()
1008 int of_add_subnode(struct device_node *parent, const char *name, int len, in of_add_subnode() argument
1016 len = strlen(name); in of_add_subnode()
1022 if (!strncmp(child->name, name, len) && strlen(name) == len) { in of_add_subnode()
1034 new_name = memdup(name, len + 1); in of_add_subnode()
1045 parent_fnl = *parent->name ? strlen(parent->full_name) : 0; in of_add_subnode()
1052 new->name = new_name; /* assign to constant pointer */ in of_add_subnode()
1056 strlcpy(&full_name[parent_fnl + 1], name, len + 1); in of_add_subnode()