Lines Matching refs:fdt

120 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);
122 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) in fdt_offset_ptr_w() argument
124 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen); in fdt_offset_ptr_w()
127 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
193 int fdt_next_node(const void *fdt, int offset, int *depth);
202 int fdt_first_subnode(const void *fdt, int offset);
215 int fdt_next_subnode(const void *fdt, int offset);
239 #define fdt_for_each_subnode(node, fdt, parent) \ argument
240 for (node = fdt_first_subnode(fdt, parent); \
242 node = fdt_next_subnode(fdt, node))
247 #define fdt_get_header(fdt, field) \ argument
248 (fdt32_ld(&((const struct fdt_header *)(fdt))->field))
249 #define fdt_magic(fdt) (fdt_get_header(fdt, magic)) argument
250 #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize)) argument
251 #define fdt_off_dt_struct(fdt) (fdt_get_header(fdt, off_dt_struct)) argument
252 #define fdt_off_dt_strings(fdt) (fdt_get_header(fdt, off_dt_strings)) argument
253 #define fdt_off_mem_rsvmap(fdt) (fdt_get_header(fdt, off_mem_rsvmap)) argument
254 #define fdt_version(fdt) (fdt_get_header(fdt, version)) argument
255 #define fdt_last_comp_version(fdt) (fdt_get_header(fdt, last_comp_version)) argument
256 #define fdt_boot_cpuid_phys(fdt) (fdt_get_header(fdt, boot_cpuid_phys)) argument
257 #define fdt_size_dt_strings(fdt) (fdt_get_header(fdt, size_dt_strings)) argument
258 #define fdt_size_dt_struct(fdt) (fdt_get_header(fdt, size_dt_struct)) argument
261 static inline void fdt_set_##name(void *fdt, uint32_t val) \
263 struct fdt_header *fdth = (struct fdt_header *)fdt; \
284 size_t fdt_header_size(const void *fdt);
310 int fdt_check_header(const void *fdt);
331 int fdt_move(const void *fdt, void *buf, int bufsize);
337 int fdt_check_full(const void *fdt, size_t bufsize);
353 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp);
367 const char *fdt_string(const void *fdt, int stroffset);
381 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle);
398 static inline uint32_t fdt_get_max_phandle(const void *fdt) in fdt_get_max_phandle() argument
403 err = fdt_find_max_phandle(fdt, &phandle); in fdt_get_max_phandle()
422 int fdt_generate_phandle(const void *fdt, uint32_t *phandle);
435 int fdt_num_mem_rsv(const void *fdt);
454 int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size);
471 int fdt_subnode_offset_namelen(const void *fdt, int parentoffset,
498 int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name);
512 int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen);
538 int fdt_path_offset(const void *fdt, const char *path);
563 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
583 int fdt_first_property_offset(const void *fdt, int nodeoffset);
604 int fdt_next_property_offset(const void *fdt, int offset);
628 #define fdt_for_each_property_offset(property, fdt, node) \ argument
629 for (property = fdt_first_property_offset(fdt, node); \
631 property = fdt_next_property_offset(fdt, property))
660 const struct fdt_property *fdt_get_property_by_offset(const void *fdt,
679 const struct fdt_property *fdt_get_property_namelen(const void *fdt,
713 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
715 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
720 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
755 const void *fdt_getprop_by_offset(const void *fdt, int offset,
773 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
775 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument
779 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w()
812 const void *fdt_getprop(const void *fdt, int nodeoffset,
814 static inline void *fdt_getprop_w(void *fdt, int nodeoffset, in fdt_getprop_w() argument
817 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); in fdt_getprop_w()
832 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
847 const char *fdt_get_alias_namelen(const void *fdt,
863 const char *fdt_get_alias(const void *fdt, const char *name);
890 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
922 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
944 int fdt_node_depth(const void *fdt, int nodeoffset);
967 int fdt_parent_offset(const void *fdt, int nodeoffset);
1007 int fdt_node_offset_by_prop_value(const void *fdt, int startoffset,
1030 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
1053 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
1090 int fdt_node_offset_by_compatible(const void *fdt, int startoffset,
1118 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1139 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1166 const char *fdt_stringlist_get(const void *fdt, int nodeoffset,
1203 int fdt_address_cells(const void *fdt, int nodeoffset);
1224 int fdt_size_cells(const void *fdt, int nodeoffset);
1250 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset,
1285 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
1317 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset, in fdt_setprop_inplace_u32() argument
1321 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u32()
1352 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset, in fdt_setprop_inplace_u64() argument
1356 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u64()
1369 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset, in fdt_setprop_inplace_cell() argument
1372 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell()
1399 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1423 int fdt_nop_node(void *fdt, int nodeoffset);
1468 int fdt_resize(void *fdt, void *buf, int bufsize);
1469 int fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size);
1470 int fdt_finish_reservemap(void *fdt);
1471 int fdt_begin_node(void *fdt, const char *name);
1472 int fdt_property(void *fdt, const char *name, const void *val, int len);
1473 static inline int fdt_property_u32(void *fdt, const char *name, uint32_t val) in fdt_property_u32() argument
1476 return fdt_property(fdt, name, &tmp, sizeof(tmp)); in fdt_property_u32()
1478 static inline int fdt_property_u64(void *fdt, const char *name, uint64_t val) in fdt_property_u64() argument
1481 return fdt_property(fdt, name, &tmp, sizeof(tmp)); in fdt_property_u64()
1485 static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val) in fdt_property_cell() argument
1487 return fdt_property_u32(fdt, name, val); in fdt_property_cell()
1504 int fdt_property_placeholder(void *fdt, const char *name, int len, void **valp);
1506 #define fdt_property_string(fdt, name, str) \ argument
1507 fdt_property(fdt, name, str, strlen(str)+1)
1508 int fdt_end_node(void *fdt);
1509 int fdt_finish(void *fdt);
1516 int fdt_open_into(const void *fdt, void *buf, int bufsize);
1517 int fdt_pack(void *fdt);
1542 int fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size);
1566 int fdt_del_mem_rsv(void *fdt, int n);
1592 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1622 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1653 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name,
1684 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u32() argument
1688 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u32()
1719 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u64() argument
1723 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u64()
1737 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, in fdt_setprop_cell() argument
1740 return fdt_setprop_u32(fdt, nodeoffset, name, val); in fdt_setprop_cell()
1771 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument
1772 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1801 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument
1802 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
1831 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1862 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset, in fdt_appendprop_u32() argument
1866 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u32()
1897 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset, in fdt_appendprop_u64() argument
1901 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u64()
1915 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset, in fdt_appendprop_cell() argument
1918 return fdt_appendprop_u32(fdt, nodeoffset, name, val); in fdt_appendprop_cell()
1948 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ argument
1949 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1985 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset,
2010 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
2028 int fdt_add_subnode_namelen(void *fdt, int parentoffset,
2063 int fdt_add_subnode(void *fdt, int parentoffset, const char *name);
2086 int fdt_del_node(void *fdt, int nodeoffset);
2117 int fdt_overlay_apply(void *fdt, void *fdto);