Lines Matching refs:name

156 #define __fdt_set_hdr(name) \
157 static inline void fdt_set_##name(void *fdt, uint32_t val) \
160 fdth->name = cpu_to_fdt32(val); \
263 * @name: name of the subnode to locate
264 * @namelen: number of characters of name to consider
267 * namelen characters of name for matching the subnode name. This is
272 const char *name, int namelen);
277 * @name: name of the subnode to locate
280 * offset parentoffset with the given name. name may include a unit
284 * whose name excluding unit address matches the given name.
296 int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name);
323 * fdt_get_name - retrieve the name of a given node
328 * fdt_get_name() retrieves the name (including unit address) of the
330 * non-NULL, the length of this name is also returned, in the integer
334 * pointer to the node's name, on success
335 * If lenp is non-NULL, *lenp contains the length of that name (>=0)
349 * @name: name of the property to find
354 * named 'name' of the node at offset nodeoffset. If lenp is
373 const char *name, int *lenp);
375 const char *name,
379 fdt_get_property(fdt, nodeoffset, name, lenp);
386 * @name: name of the property to find
390 * named 'name' of the node at offset nodeoffset (this will be a
410 const char *name, int *lenp);
412 const char *name, int *lenp)
414 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
539 * @propname: property name to check
668 * @name: name of the property to change
692 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
699 * @name: name of the property to change
724 const char *name, uint32_t val)
727 return fdt_setprop_inplace(fdt, nodeoffset, name, &val, sizeof(val));
734 * @name: name of the property to nop
754 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
787 int fdt_begin_node(void *fdt, const char *name);
788 int fdt_property(void *fdt, const char *name, const void *val, int len);
789 static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val)
792 return fdt_property(fdt, name, &val, sizeof(val));
794 #define fdt_property_string(fdt, name, str) \
795 fdt_property(fdt, name, str, strlen(str)+1)
855 * fdt_set_name - change the name of a given node
858 * @name: name to give the node
860 * fdt_set_name() replaces the name (including unit address, if any)
862 * efficiently check if the new name is unique amongst the given
864 * with a name equal to one of the given node's siblings.
872 * to contain the new name
878 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
884 * @name: name of the property to change
908 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
915 * @name: name of the property to change
939 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
943 return fdt_setprop(fdt, nodeoffset, name, &val, sizeof(val));
950 * @name: name of the property to change
974 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
975 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
981 * @name: name of the property to nop
999 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1005 * @name: name of the subnode to locate
1006 * @namelen: number of characters of name to consider
1009 * characters of name as the name of the new node. This is useful for
1014 const char *name, int namelen);
1020 * @name: name of the subnode to locate
1023 * structure block offset parentoffset, with the given name (which
1034 * the given name
1045 int fdt_add_subnode(void *fdt, int parentoffset, const char *name);