Lines Matching refs:name

140 #define __fdt_set_hdr(name) \
141 static inline void fdt_set_##name(void *fdt, uint32_t val) \
144 fdth->name = cpu_to_fdt32(val); \
247 * @name: name of the subnode to locate
248 * @namelen: number of characters of name to consider
251 * namelen characters of name for matching the subnode name. This is
256 const char *name, int namelen);
261 * @name: name of the subnode to locate
264 * offset parentoffset with the given name. name may include a unit
268 * whose name excluding unit address matches the given name.
280 int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name);
307 * fdt_get_name - retrieve the name of a given node
312 * fdt_get_name() retrieves the name (including unit address) of the
314 * non-NULL, the length of this name is also returned, in the integer
318 * pointer to the node's name, on success
319 * If lenp is non-NULL, *lenp contains the length of that name (>=0)
402 * @name: name of the property to find
403 * @namelen: number of characters of name to consider
407 * namelen characters of name for matching the property name.
411 const char *name,
418 * @name: name of the property to find
423 * named 'name' of the node at offset nodeoffset. If lenp is
442 const char *name, int *lenp);
444 const char *name,
448 fdt_get_property(fdt, nodeoffset, name, lenp);
465 * block, not a new copy of the name).
472 * name.
489 * @name: name of the property to find
490 * @namelen: number of characters of name to consider
494 * characters of name for matching the property name.
497 const char *name, int namelen, int *lenp);
503 * @name: name of the property to find
507 * named 'name' of the node at offset nodeoffset (this will be a
527 const char *name, int *lenp);
529 const char *name, int *lenp)
531 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
551 * @name: name of the alias th look up
552 * @namelen: number of characters of name to consider
555 * characters of name for matching the alias name.
558 const char *name, int namelen);
563 * @name: name of the alias th look up
566 * value of the property named 'name' in the node /aliases.
569 * a pointer to the expansion of the alias named 'name', of it exists
572 const char *fdt_get_alias(const void *fdt, const char *name);
682 * @propname: property name to check
811 * @name: name of the property to change
835 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
842 * @name: name of the property to change
867 const char *name, uint32_t val)
870 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
877 * @name: name of the property to change
902 const char *name, uint64_t val)
905 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
911 * This is an alternative name for fdt_setprop_inplace_u32()
914 const char *name, uint32_t val)
916 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val);
923 * @name: name of the property to nop
943 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
976 int fdt_begin_node(void *fdt, const char *name);
977 int fdt_property(void *fdt, const char *name, const void *val, int len);
978 static inline int fdt_property_u32(void *fdt, const char *name, uint32_t val)
981 return fdt_property(fdt, name, &tmp, sizeof(tmp));
983 static inline int fdt_property_u64(void *fdt, const char *name, uint64_t val)
986 return fdt_property(fdt, name, &tmp, sizeof(tmp));
988 static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val)
990 return fdt_property_u32(fdt, name, val);
992 #define fdt_property_string(fdt, name, str) \
993 fdt_property(fdt, name, str, strlen(str)+1)
1054 * fdt_set_name - change the name of a given node
1057 * @name: name to give the node
1059 * fdt_set_name() replaces the name (including unit address, if any)
1061 * efficiently check if the new name is unique amongst the given
1063 * with a name equal to one of the given node's siblings.
1071 * to contain the new name
1077 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1083 * @name: name of the property to change
1107 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1114 * @name: name of the property to change
1138 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name,
1142 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1149 * @name: name of the property to change
1173 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name,
1177 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1183 * This is an alternative name for fdt_setprop_u32()
1185 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
1188 return fdt_setprop_u32(fdt, nodeoffset, name, val);
1195 * @name: name of the property to change
1219 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
1220 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1226 * @name: name of the property to append to
1249 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1256 * @name: name of the property to change
1281 const char *name, uint32_t val)
1284 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1291 * @name: name of the property to change
1316 const char *name, uint64_t val)
1319 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1325 * This is an alternative name for fdt_appendprop_u32()
1328 const char *name, uint32_t val)
1330 return fdt_appendprop_u32(fdt, nodeoffset, name, val);
1337 * @name: name of the property to change
1360 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \
1361 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1367 * @name: name of the property to nop
1385 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1391 * @name: name of the subnode to locate
1392 * @namelen: number of characters of name to consider
1395 * characters of name as the name of the new node. This is useful for
1400 const char *name, int namelen);
1406 * @name: name of the subnode to locate
1409 * structure block offset parentoffset, with the given name (which
1420 * the given name
1431 int fdt_add_subnode(void *fdt, int parentoffset, const char *name);