• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/scripts/dtc/libfdt/

Lines Matching defs:fdt

55 #include <fdt.h>
125 const void *fdt_offset_ptr(const void *fdt, int offset, int checklen);
126 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen)
128 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen);
131 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
137 int fdt_next_node(const void *fdt, int offset, int *depth);
143 #define fdt_get_header(fdt, field) \
144 (fdt32_to_cpu(((const struct fdt_header *)(fdt))->field))
145 #define fdt_magic(fdt) (fdt_get_header(fdt, magic))
146 #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize))
147 #define fdt_off_dt_struct(fdt) (fdt_get_header(fdt, off_dt_struct))
148 #define fdt_off_dt_strings(fdt) (fdt_get_header(fdt, off_dt_strings))
149 #define fdt_off_mem_rsvmap(fdt) (fdt_get_header(fdt, off_mem_rsvmap))
150 #define fdt_version(fdt) (fdt_get_header(fdt, version))
151 #define fdt_last_comp_version(fdt) (fdt_get_header(fdt, last_comp_version))
152 #define fdt_boot_cpuid_phys(fdt) (fdt_get_header(fdt, boot_cpuid_phys))
153 #define fdt_size_dt_strings(fdt) (fdt_get_header(fdt, size_dt_strings))
154 #define fdt_size_dt_struct(fdt) (fdt_get_header(fdt, size_dt_struct))
157 static inline void fdt_set_##name(void *fdt, uint32_t val) \
159 struct fdt_header *fdth = fdt; \
176 * @fdt: pointer to data which might be a flattened device tree
188 int fdt_check_header(const void *fdt);
192 * @fdt: pointer to the device tree to move
197 * fdt to the buffer at buf of size bufsize. The buffer may overlap
198 * with the existing device tree blob at fdt. Therefore,
199 * fdt_move(fdt, fdt, fdt_totalsize(fdt))
209 int fdt_move(const void *fdt, void *buf, int bufsize);
217 * @fdt: pointer to the device tree blob
221 * strings block of the device tree blob at fdt.
227 const char *fdt_string(const void *fdt, int stroffset);
231 * @fdt: pointer to the device tree blob
240 int fdt_num_mem_rsv(const void *fdt);
244 * @fdt: pointer to the device tree blob
257 int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size);
261 * @fdt: pointer to the device tree blob
271 int fdt_subnode_offset_namelen(const void *fdt, int parentoffset,
275 * @fdt: pointer to the device tree blob
296 int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name);
300 * @fdt: pointer to the device tree blob
320 int fdt_path_offset(const void *fdt, const char *path);
324 * @fdt: pointer to the device tree blob
343 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
347 * @fdt: pointer to the device tree blob
372 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
374 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset,
379 fdt_get_property(fdt, nodeoffset, name, lenp);
384 * @fdt: pointer to the device tree blob
409 const void *fdt_getprop(const void *fdt, int nodeoffset,
411 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
414 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
419 * @fdt: pointer to the device tree blob
429 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
433 * @fdt: pointer to the device tree blob
456 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
460 * @fdt: pointer to the device tree blob
468 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
471 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
488 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
493 * @fdt: pointer to the device tree blob
510 int fdt_node_depth(const void *fdt, int nodeoffset);
514 * @fdt: pointer to the device tree blob
533 int fdt_parent_offset(const void *fdt, int nodeoffset);
537 * @fdt: pointer to the device tree blob
550 * offset = fdt_node_offset_by_prop_value(fdt, -1, propname,
554 * offset = fdt_node_offset_by_prop_value(fdt, offset, propname,
573 int fdt_node_offset_by_prop_value(const void *fdt, int startoffset,
579 * @fdt: pointer to the device tree blob
596 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
600 * @fdt: pointer to the device tree blob
620 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
625 * @fdt: pointer to the device tree blob
636 * offset = fdt_node_offset_by_compatible(fdt, -1, compatible);
639 * offset = fdt_node_offset_by_compatible(fdt, offset, compatible);
657 int fdt_node_offset_by_compatible(const void *fdt, int startoffset,
666 * @fdt: pointer to the device tree blob
692 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
697 * @fdt: pointer to the device tree blob
723 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
727 return fdt_setprop_inplace(fdt, nodeoffset, name, &val, sizeof(val));
732 * @fdt: pointer to the device tree blob
754 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
758 * @fdt: pointer to the device tree blob
778 int fdt_nop_node(void *fdt, int nodeoffset);
785 int fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size);
786 int fdt_finish_reservemap(void *fdt);
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)
796 int fdt_end_node(void *fdt);
797 int fdt_finish(void *fdt);
803 int fdt_open_into(const void *fdt, void *buf, int bufsize);
804 int fdt_pack(void *fdt);
808 * @fdt: pointer to the device tree blob
828 int fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size);
832 * @fdt: pointer to the device tree blob
852 int fdt_del_mem_rsv(void *fdt, int n);
856 * @fdt: pointer to the device tree blob
878 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
882 * @fdt: pointer to the device tree blob
908 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
913 * @fdt: pointer to the device tree blob
939 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
943 return fdt_setprop(fdt, nodeoffset, name, &val, sizeof(val));
948 * @fdt: pointer to the device tree blob
974 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
975 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
979 * @fdt: pointer to the device tree blob
999 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1003 * @fdt: pointer to the device tree blob
1013 int fdt_add_subnode_namelen(void *fdt, int parentoffset,
1018 * @fdt: pointer to the device tree blob
1045 int fdt_add_subnode(void *fdt, int parentoffset, const char *name);
1049 * @fdt: pointer to the device tree blob
1068 int fdt_del_node(void *fdt, int nodeoffset);