/netbsd/sys/external/bsd/libfdt/dist/ |
H A D | libfdt.h | 228 #define fdt_for_each_subnode(node, fdt, parent) \ argument 236 #define fdt_get_header(fdt, field) \ argument 238 #define fdt_magic(fdt) (fdt_get_header(fdt, magic)) argument 239 #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize)) argument 243 #define fdt_version(fdt) (fdt_get_header(fdt, version)) argument 272 static inline size_t fdt_header_size(const void *fdt) in fdt_header_size() 382 static inline uint32_t fdt_get_max_phandle(const void *fdt) in fdt_get_max_phandle() 607 #define fdt_for_each_property_offset(property, fdt, node) \ argument 1470 #define fdt_property_string(fdt, name, str) \ argument 1728 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument [all …]
|
H A D | fdt_sw.c | 15 static int fdt_sw_probe_(void *fdt) in fdt_sw_probe_() 24 #define FDT_SW_PROBE(fdt) \ argument 37 static int fdt_sw_probe_memrsv_(void *fdt) in fdt_sw_probe_memrsv_() 48 #define FDT_SW_PROBE_MEMRSV(fdt) \ argument 63 static int fdt_sw_probe_struct_(void *fdt) in fdt_sw_probe_struct_() 74 #define FDT_SW_PROBE_STRUCT(fdt) \ argument 81 static inline uint32_t sw_flags(void *fdt) in sw_flags() 111 void *fdt = buf; in fdt_create_with_flags() local 202 int fdt_finish_reservemap(void *fdt) in fdt_finish_reservemap() 230 int fdt_end_node(void *fdt) in fdt_end_node() [all …]
|
H A D | fdt_ro.c | 15 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() 91 const char *fdt_string(const void *fdt, int stroffset) in fdt_string() 96 static int fdt_string_eq_(const void *fdt, int stroffset, in fdt_string_eq_() 177 int fdt_num_mem_rsv(const void *fdt) in fdt_num_mem_rsv() 189 static int nextprop_(const void *fdt, int offset) in nextprop_() 232 int fdt_subnode_offset(const void *fdt, int parentoffset, in fdt_subnode_offset() 283 int fdt_path_offset(const void *fdt, const char *path) in fdt_path_offset() 506 const char *fdt_get_alias_namelen(const void *fdt, in fdt_get_alias_namelen() 611 int fdt_node_depth(const void *fdt, int nodeoffset) in fdt_node_depth() 622 int fdt_parent_offset(const void *fdt, int nodeoffset) in fdt_parent_offset() [all …]
|
H A D | fdt_rw.c | 15 static int fdt_blocks_misordered_(const void *fdt, in fdt_blocks_misordered_() 27 static int fdt_rw_probe_(void *fdt) in fdt_rw_probe_() 42 #define FDT_RW_PROBE(fdt) \ argument 49 static inline int fdt_data_size_(void *fdt) in fdt_data_size_() 82 static int fdt_splice_struct_(void *fdt, void *p, in fdt_splice_struct_() 97 static void fdt_del_last_string_(void *fdt, const char *s) in fdt_del_last_string_() 104 static int fdt_splice_string_(void *fdt, int newlen) in fdt_splice_string_() 160 int fdt_del_mem_rsv(void *fdt, int n) in fdt_del_mem_rsv() 320 int fdt_add_subnode_namelen(void *fdt, int parentoffset, in fdt_add_subnode_namelen() 366 int fdt_del_node(void *fdt, int nodeoffset) in fdt_del_node() [all …]
|
H A D | fdt.c | 20 int32_t fdt_ro_probe_(const void *fdt) in fdt_ro_probe_() 75 int fdt_check_header(const void *fdt) in fdt_check_header() 116 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() 133 uint32_t fdt_next_tag(const void *fdt, int startoffset, int *nextoffset) in fdt_next_tag() 186 int fdt_check_node_offset_(const void *fdt, int offset) in fdt_check_node_offset_() 195 int fdt_check_prop_offset_(const void *fdt, int offset) in fdt_check_prop_offset_() 204 int fdt_next_node(const void *fdt, int offset, int *depth) in fdt_next_node() 244 int fdt_first_subnode(const void *fdt, int offset) in fdt_first_subnode() 255 int fdt_next_subnode(const void *fdt, int offset) in fdt_next_subnode() 284 int fdt_move(const void *fdt, void *buf, int bufsize) in fdt_move()
|
H A D | libfdt_internal.h | 16 #define FDT_RO_PROBE(fdt) \ argument 28 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) in fdt_offset_ptr_() 33 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() 38 static inline const struct fdt_reserve_entry *fdt_mem_rsv_(const void *fdt, int n) in fdt_mem_rsv_() 46 static inline struct fdt_reserve_entry *fdt_mem_rsv_w_(void *fdt, int n) in fdt_mem_rsv_w_()
|
H A D | fdt_wip.c | 15 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, in fdt_setprop_inplace_namelen_partial() 35 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() 61 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() 75 int fdt_node_end_offset_(void *fdt, int offset) in fdt_node_end_offset_() 85 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node()
|
H A D | fdt_addresses.c | 16 static int fdt_cells(const void *fdt, int nodeoffset, const char *name) in fdt_cells() 36 int fdt_address_cells(const void *fdt, int nodeoffset) in fdt_address_cells() 48 int fdt_size_cells(const void *fdt, int nodeoffset) in fdt_size_cells() 59 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, in fdt_appendprop_addrrange()
|
H A D | fdt_overlay.c | 60 static int overlay_get_target(const void *fdt, const void *fdto, in overlay_get_target() 118 static int overlay_phandle_add_offset(void *fdt, int node, in overlay_phandle_add_offset() 369 static int overlay_fixup_one_phandle(void *fdt, void *fdto, in overlay_fixup_one_phandle() 429 static int overlay_fixup_phandle(void *fdt, void *fdto, int symbols_off, in overlay_fixup_phandle() 511 static int overlay_fixup_phandles(void *fdt, void *fdto) in overlay_fixup_phandles() 558 static int overlay_apply_node(void *fdt, int target, in overlay_apply_node() 620 static int overlay_merge(void *fdt, void *fdto) in overlay_merge() 652 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() 696 static int overlay_symbol_update(void *fdt, void *fdto) in overlay_symbol_update() 831 int fdt_overlay_apply(void *fdt, void *fdto) in fdt_overlay_apply()
|
/netbsd/external/gpl2/dtc/dist/tests/ |
H A D | overlay.c | 27 static int fdt_getprop_u32_by_poffset(void *fdt, const char *path, in fdt_getprop_u32_by_poffset() 48 static int check_getprop_string_by_name(void *fdt, const char *path, in check_getprop_string_by_name() 62 static int check_getprop_u32_by_name(void *fdt, const char *path, in check_getprop_u32_by_name() 75 static int check_getprop_null_by_name(void *fdt, const char *path, in check_getprop_null_by_name() 88 static int fdt_overlay_change_int_property(void *fdt) in fdt_overlay_change_int_property() 94 static int fdt_overlay_change_str_property(void *fdt) in fdt_overlay_change_str_property() 100 static int fdt_overlay_add_str_property(void *fdt) in fdt_overlay_add_str_property() 106 static int fdt_overlay_add_node(void *fdt) in fdt_overlay_add_node() 112 static int fdt_overlay_add_subnode_property(void *fdt) in fdt_overlay_add_subnode_property() 122 static int fdt_overlay_local_phandle(void *fdt) in fdt_overlay_local_phandle() [all …]
|
H A D | node_offset_by_prop_value.c | 20 static void vcheck_search(void *fdt, const char *propname, const void *propval, in vcheck_search() 39 static void check_search(void *fdt, const char *propname, const void *propval, in check_search() 49 static void check_search_str(void *fdt, const char *propname, in check_search_str() 59 #define check_search_cell(fdt, propname, propval, ...) \ argument 68 void *fdt; in main() local
|
H A D | stringlist.c | 20 static void check_expected_failure(const void *fdt, const char *path, in check_expected_failure() 60 static void check_string_count(const void *fdt, const char *path, in check_string_count() 79 static void check_string_index(const void *fdt, const char *path, in check_string_index() 96 static void check_string(const void *fdt, const char *path, in check_string() 119 void *fdt; in main() local
|
H A D | path_offset.c | 19 static int check_subnode(void *fdt, int parent, const char *name) in check_subnode() 46 static void check_path_offset(void *fdt, char *path, int offset) in check_path_offset() 61 static void check_path_offset_namelen(void *fdt, char *path, int namelen, in check_path_offset_namelen() 83 void *fdt; in main() local
|
H A D | node_check_compatible.c | 20 static void check_compatible(const void *fdt, const char *path, in check_compatible() 37 static void check_not_compatible(const void *fdt, const char *path, in check_not_compatible() 56 void *fdt; in main() local
|
H A D | subnode_iterate.c | 23 static void test_node(void *fdt, int parent_offset) in test_node() 50 static void check_fdt_next_subnode(void *fdt) in check_fdt_next_subnode() 66 void *fdt; in main() local
|
H A D | property_iterate.c | 23 static void test_node(void *fdt, int parent_offset) in test_node() 57 static void check_fdt_next_subnode(void *fdt) in check_fdt_next_subnode() 73 void *fdt; in main() local
|
H A D | get_path.c | 21 static void check_path_buf(void *fdt, const char *path, int pathlen, int buflen) in check_path_buf() 57 static void check_path(void *fdt, const char *path) in check_path() 70 void *fdt; in main() local
|
H A D | supernode_atdepth_offset.c | 58 static void check_supernode_atdepth(struct fdt_header *fdt, const char *path, in check_supernode_atdepth() 97 static void check_supernode_overdepth(struct fdt_header *fdt, const char *path) in check_supernode_overdepth() 112 static void check_path(struct fdt_header *fdt, const char *path) in check_path() 122 void *fdt; in main() local
|
H A D | get_phandle.c | 20 static void check_phandle(void *fdt, const char *path, uint32_t checkhandle) in check_phandle() 35 static void check_phandle_unique(const void *fdt, uint32_t checkhandle) in check_phandle_unique() 59 void *fdt; in main() local
|
H A D | path-references.c | 19 static void check_ref(const void *fdt, int node, const char *checkpath) in check_ref() 39 static void check_rref(const void *fdt) in check_rref() 55 void *fdt; in main() local
|
H A D | tests.h | 89 #define check_property_cell(fdt, nodeoffset, name, val) \ argument 98 #define check_getprop_cell(fdt, nodeoffset, name, val) \ argument 103 #define check_getprop_64(fdt, nodeoffset, name, val) \ argument 108 #define check_getprop_string(fdt, nodeoffset, name, s) \ argument 114 #define check_get_prop_offset_cell(fdt, poffset, name, val) \ argument
|
H A D | testutils.c | 77 void check_mem_rsv(void *fdt, int n, uint64_t addr, uint64_t size) in check_mem_rsv() 92 void check_property(void *fdt, int nodeoffset, const char *name, in check_property() 134 const void *check_getprop(void *fdt, int nodeoffset, const char *name, in check_getprop() 153 const void *check_get_prop_offset(void *fdt, int poffset, const char *exp_name, in check_get_prop_offset() 177 const void *check_getprop_addrrange(void *fdt, int parent, int nodeoffset, in check_getprop_addrrange() 249 void vg_prepare_blob(void *fdt, size_t bufsize) in vg_prepare_blob() 319 void save_blob(const char *filename, void *fdt) in save_blob()
|
H A D | references.c | 19 static void check_ref(const void *fdt, int node, uint32_t checkref) in check_ref() 48 static void check_rref(const void *fdt) in check_rref() 67 void *fdt; in main() local
|
H A D | get_alias.c | 20 static void check_alias(void *fdt, const char *path, const char *alias) in check_alias() 36 void *fdt; in main() local
|
H A D | path_offset_aliases.c | 20 static void check_alias(void *fdt, const char *full_path, const char *alias_path) in check_alias() 34 void *fdt; in main() local
|