Lines Matching defs:fdt
34 #include <fdt.h>
39 #define FDT_CHECK_HEADER(fdt) \
42 if ((err = fdt_check_header(fdt)) != 0) \
46 int _fdt_check_node_offset(const void *fdt, int offset);
47 int _fdt_check_prop_offset(const void *fdt, int offset);
49 int _fdt_node_end_offset(void *fdt, int nodeoffset);
51 static inline const void *_fdt_offset_ptr(const void *fdt, int offset)
53 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset;
56 static inline void *_fdt_offset_ptr_w(void *fdt, int offset)
58 return (void *)(uintptr_t)_fdt_offset_ptr(fdt, offset);
61 static inline const struct fdt_reserve_entry *_fdt_mem_rsv(const void *fdt, int n)
65 ((const char *)fdt + fdt_off_mem_rsvmap(fdt));
69 static inline struct fdt_reserve_entry *_fdt_mem_rsv_w(void *fdt, int n)
71 return (void *)(uintptr_t)_fdt_mem_rsv(fdt, n);