Searched refs:fdt (Results 1 - 25 of 353) sorted by relevance

1234567891011>>

/freebsd-current/sys/amd64/include/
H A Dfdt.h5 #include <x86/fdt.h>
/freebsd-current/sys/i386/include/
H A Dfdt.h5 #include <x86/fdt.h>
/freebsd-current/sys/contrib/libfdt/
H A Dlibfdt_internal.h53 #include <fdt.h>
58 #define FDT_CHECK_HEADER(fdt) \
61 if ((err_ = fdt_check_header(fdt)) != 0) \
65 int fdt_check_node_offset_(const void *fdt, int offset);
66 int fdt_check_prop_offset_(const void *fdt, int offset);
68 int fdt_node_end_offset_(void *fdt, int nodeoffset);
70 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) argument
72 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset;
75 static inline void *fdt_offset_ptr_w_(void *fdt, in argument
80 fdt_mem_rsv_(const void *fdt, int n) argument
88 fdt_mem_rsv_w_(void *fdt, int n) argument
[all...]
H A Dlibfdt.h55 #include <fdt.h>
147 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);
149 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) argument
151 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen);
154 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
160 int fdt_next_node(const void *fdt, int offset, int *depth);
165 * @fdt: FDT blob
169 int fdt_first_subnode(const void *fdt, int offset);
177 * @fdt: FDT blob
182 int fdt_next_subnode(const void *fdt, in
598 fdt_get_property_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument
656 fdt_getprop_namelen_w(void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument
695 fdt_getprop_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument
1193 fdt_setprop_inplace_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1228 fdt_setprop_inplace_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1240 fdt_setprop_inplace_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1306 fdt_property_u32(void *fdt, const char *name, uint32_t val) argument
1311 fdt_property_u64(void *fdt, const char *name, uint64_t val) argument
1316 fdt_property_cell(void *fdt, const char *name, uint32_t val) argument
1513 fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1548 fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1560 fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1685 fdt_appendprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1720 fdt_appendprop_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1732 fdt_appendprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
[all...]
H A Dfdt_sw.c53 #include <fdt.h>
58 static int fdt_sw_check_header_(void *fdt) argument
60 if (fdt_magic(fdt) != FDT_SW_MAGIC)
66 #define FDT_SW_CHECK_HEADER(fdt) \
69 if ((err = fdt_sw_check_header_(fdt)) != 0) \
73 static void *fdt_grab_space_(void *fdt, size_t len) argument
75 int offset = fdt_size_dt_struct(fdt);
78 spaceleft = fdt_totalsize(fdt) - fdt_off_dt_struct(fdt)
79 - fdt_size_dt_strings(fdt);
90 void *fdt = buf; local
110 fdt_resize(void *fdt, void *buf, int bufsize) argument
142 fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size) argument
165 fdt_finish_reservemap(void *fdt) argument
170 fdt_begin_node(void *fdt, const char *name) argument
186 fdt_end_node(void *fdt) argument
200 fdt_find_add_string_(void *fdt, const char *s) argument
223 fdt_property_placeholder(void *fdt, const char *name, int len, void **valp) argument
245 fdt_property(void *fdt, const char *name, const void *val, int len) argument
257 fdt_finish(void *fdt) argument
[all...]
H A Dfdt_rw.c53 #include <fdt.h>
58 static int fdt_blocks_misordered_(const void *fdt, argument
61 return (fdt_off_mem_rsvmap(fdt) < FDT_ALIGN(sizeof(struct fdt_header), 8))
62 || (fdt_off_dt_struct(fdt) <
63 (fdt_off_mem_rsvmap(fdt) + mem_rsv_size))
64 || (fdt_off_dt_strings(fdt) <
65 (fdt_off_dt_struct(fdt) + struct_size))
66 || (fdt_totalsize(fdt) <
67 (fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt)));
70 fdt_rw_check_header_(void *fdt) argument
92 fdt_data_size_(void *fdt) argument
97 fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) argument
112 fdt_splice_mem_rsv_(void *fdt, struct fdt_reserve_entry *p, int oldn, int newn) argument
125 fdt_splice_struct_(void *fdt, void *p, int oldlen, int newlen) argument
139 fdt_splice_string_(void *fdt, int newlen) argument
152 fdt_find_add_string_(void *fdt, const char *s) argument
174 fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size) argument
191 fdt_del_mem_rsv(void *fdt, int n) argument
203 fdt_resize_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
221 fdt_add_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
249 fdt_set_name(void *fdt, int nodeoffset, const char *name) argument
272 fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, int len, void **prop_data) argument
290 fdt_setprop(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
305 fdt_appendprop(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
332 fdt_delprop(void *fdt, int nodeoffset, const char *name) argument
347 fdt_add_subnode_namelen(void *fdt, int parentoffset, const char *name, int namelen) argument
388 fdt_add_subnode(void *fdt, int parentoffset, const char *name) argument
393 fdt_del_node(void *fdt, int nodeoffset) argument
429 fdt_open_into(const void *fdt, void *buf, int bufsize) argument
493 fdt_pack(void *fdt) argument
[all...]
H A Dfdt.c53 #include <fdt.h>
58 int fdt_check_header(const void *fdt) argument
60 if (fdt_magic(fdt) == FDT_MAGIC) {
62 if (fdt_version(fdt) < FDT_FIRST_SUPPORTED_VERSION)
64 if (fdt_last_comp_version(fdt) > FDT_LAST_SUPPORTED_VERSION)
66 } else if (fdt_magic(fdt) == FDT_SW_MAGIC) {
68 if (fdt_size_dt_struct(fdt) == 0)
77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) argument
79 unsigned absoffset = offset + fdt_off_dt_struct(fdt);
83 || (absoffset + len) > fdt_totalsize(fdt))
94 fdt_next_tag(const void *fdt, int startoffset, int *nextoffset) argument
147 fdt_check_node_offset_(const void *fdt, int offset) argument
156 fdt_check_prop_offset_(const void *fdt, int offset) argument
165 fdt_next_node(const void *fdt, int offset, int *depth) argument
205 fdt_first_subnode(const void *fdt, int offset) argument
216 fdt_next_subnode(const void *fdt, int offset) argument
245 fdt_move(const void *fdt, void *buf, int bufsize) argument
[all...]
H A Dfdt_wip.c53 #include <fdt.h>
58 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, argument
66 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen,
78 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, argument
84 propval = fdt_getprop(fdt, nodeoffset, name, &proplen);
91 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name,
104 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) argument
109 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
118 int fdt_node_end_offset_(void *fdt, int offset) argument
123 offset = fdt_next_node(fdt, offse
128 fdt_nop_node(void *fdt, int nodeoffset) argument
[all...]
H A Dfdt_addresses.c53 #include <fdt.h>
58 int fdt_address_cells(const void *fdt, int nodeoffset) argument
64 ac = fdt_getprop(fdt, nodeoffset, "#address-cells", &len);
78 int fdt_size_cells(const void *fdt, int nodeoffset) argument
84 sc = fdt_getprop(fdt, nodeoffset, "#size-cells", &len);
H A Dfdt_ro.c53 #include <fdt.h>
58 static int fdt_nodename_eq_(const void *fdt, int offset, argument
62 const char *p = fdt_get_name(fdt, offset, &olen);
79 const char *fdt_string(const void *fdt, int stroffset) argument
81 return (const char *)fdt + fdt_off_dt_strings(fdt) + stroffset;
84 static int fdt_string_eq_(const void *fdt, int stroffset, argument
87 const char *p = fdt_string(fdt, stroffset);
92 uint32_t fdt_get_max_phandle(const void *fdt) argument
97 for (offset = fdt_next_node(fdt,
118 fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size) argument
126 fdt_num_mem_rsv(const void *fdt) argument
135 nextprop_(const void *fdt, int offset) argument
159 fdt_subnode_offset_namelen(const void *fdt, int offset, const char *name, int namelen) argument
178 fdt_subnode_offset(const void *fdt, int parentoffset, const char *name) argument
184 fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) argument
229 fdt_path_offset(const void *fdt, const char *path) argument
234 fdt_get_name(const void *fdt, int nodeoffset, int *len) argument
272 fdt_first_property_offset(const void *fdt, int nodeoffset) argument
282 fdt_next_property_offset(const void *fdt, int offset) argument
290 fdt_get_property_by_offset_(const void *fdt, int offset, int *lenp) argument
311 fdt_get_property_by_offset(const void *fdt, int offset, int *lenp) argument
327 fdt_get_property_namelen_(const void *fdt, int offset, const char *name, int namelen, int *lenp, int *poffset) argument
357 fdt_get_property_namelen(const void *fdt, int offset, const char *name, int namelen, int *lenp) argument
375 fdt_get_property(const void *fdt, int nodeoffset, const char *name, int *lenp) argument
383 fdt_getprop_namelen(const void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument
401 fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp) argument
419 fdt_getprop(const void *fdt, int nodeoffset, const char *name, int *lenp) argument
425 fdt_get_phandle(const void *fdt, int nodeoffset) argument
442 fdt_get_alias_namelen(const void *fdt, const char *name, int namelen) argument
454 fdt_get_alias(const void *fdt, const char *name) argument
459 fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) argument
511 fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset, int supernodedepth, int *nodedepth) argument
547 fdt_node_depth(const void *fdt, int nodeoffset) argument
558 fdt_parent_offset(const void *fdt, int nodeoffset) argument
568 fdt_node_offset_by_prop_value(const void *fdt, int startoffset, const char *propname, const void *propval, int proplen) argument
595 fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) argument
637 fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property) argument
662 fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property, const char *string) argument
692 fdt_stringlist_get(const void *fdt, int nodeoffset, const char *property, int idx, int *lenp) argument
737 fdt_node_check_compatible(const void *fdt, int nodeoffset, const char *compatible) argument
750 fdt_node_offset_by_compatible(const void *fdt, int startoffset, const char *compatible) argument
[all...]
H A Dfdt_overlay.c54 #include <fdt.h>
90 * @fdt: Base device tree blob
103 static int overlay_get_target(const void *fdt, const void *fdto, argument
120 ret = fdt_path_offset(fdt, path);
124 ret = fdt_node_offset_by_phandle(fdt, phandle);
149 * @fdt: Base device tree blob
161 static int overlay_phandle_add_offset(void *fdt, int node, argument
168 val = fdt_getprop(fdt, node, name, &len);
183 return fdt_setprop_inplace_u32(fdt, node, name, adj_val);
391 * @fdt
412 overlay_fixup_one_phandle(void *fdt, void *fdto, int symbols_off, const char *path, uint32_t path_len, const char *name, uint32_t name_len, int poffset, const char *label) argument
472 overlay_fixup_phandle(void *fdt, void *fdto, int symbols_off, int property) argument
554 overlay_fixup_phandles(void *fdt, void *fdto) argument
601 overlay_apply_node(void *fdt, int target, void *fdto, int node) argument
663 overlay_merge(void *fdt, void *fdto) argument
695 get_path_len(const void *fdt, int nodeoffset) argument
739 overlay_symbol_update(void *fdt, void *fdto) argument
864 fdt_overlay_apply(void *fdt, void *fdto) argument
[all...]
/freebsd-current/usr.sbin/bhyve/aarch64/
H A Dfdt.c43 #include "fdt.h"
63 assign_phandle(void *fdt) argument
70 fdt_property_u32(fdt, "phandle", phandle);
76 set_single_reg(void *fdt, uint64_t start, uint64_t len) argument
80 fdt_property_placeholder(fdt, "reg", 2 * sizeof(uint64_t), &reg);
86 add_cpu(void *fdt, int cpuid) argument
92 fdt_begin_node(fdt, node_name);
93 fdt_property_string(fdt, "device_type", "cpu");
94 fdt_property_string(fdt, "compatible", "arm,armv8");
95 fdt_property_u64(fdt, "re
101 add_cpus(void *fdt, int ncpu) argument
119 void *fdt; local
178 void *fdt, *prop; local
214 void *fdt, *interrupts, *prop; local
254 void *fdt, *interrupts, *prop; local
285 void *fdt, *interrupts; local
308 void *fdt, *prop; local
[all...]
H A DMakefile.inc2 fdt.c \
/freebsd-current/stand/uboot/
H A DMakefile.depend5 stand/fdt \
/freebsd-current/stand/
H A Dfdt.mk4 CFLAGS+= -I${BOOTOBJ}/fdt
7 LIBSAFDT= ${BOOTOBJ}/fdt/libfdt.a
/freebsd-current/lib/libfdt/
H A DMakefile1 LIB= fdt
9 fdt.c \
20 fdt.h \
/freebsd-current/sys/dts/
H A DMakefile.inc6 @env MACHINE=`basename ${.CURDIR}` ${SYSDIR}/tools/fdt/make_dtb.sh ${SYSDIR} ${dts} /tmp
11 @env MACHINE=`basename ${.CURDIR}` ${SYSDIR}/tools/fdt/make_dtbo.sh ${SYSDIR} ${dtso} /tmp
/freebsd-current/sys/dev/fdt/
H A Dsimple_mfd.h30 #include <dev/fdt/simplebus.h>
/freebsd-current/sys/dev/syscon/
H A Dsyscon_generic.h30 #include <dev/fdt/simplebus.h>
/freebsd-current/usr.sbin/fdwrite/
H A Dfdwrite.c71 struct fd_type fdt; local
130 if(ioctl(fd, FD_GTYPE, &fdt) < 0)
133 bpt = fdt.sectrac * (1<<fdt.secsize) * 128;
146 fdt.tracks,fdt.heads,fdt.sectrac,(1<<fdt.secsize) * 128,
147 fdt.tracks*bpt*fdt
[all...]
/freebsd-current/usr.sbin/fdformat/
H A Dfdformat.c142 struct fd_type fdt, newft, *fdtp; local
248 if(ioctl(fd, FD_GTYPE, &fdt) < 0)
259 fdt = *fdtp;
262 parse_fmt(fmtstring, type, fdt, &newft);
263 fdt = newft;
265 if (ioctl(fd, FD_STYPE, &fdt) < 0)
273 bytes_per_track = fdt.sectrac * (128 << fdt.secsize);
276 tracks_per_dot = (fdt.tracks * fdt
[all...]
/freebsd-current/stand/fdt/
H A DMakefile6 LIB= fdt
9 SRCS+= fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c \
12 # Loader's fdt commands extension sources.
/freebsd-current/sys/arm/altera/socfpga/
H A Dsocfpga_common.c39 #include <machine/fdt.h>
/freebsd-current/stand/efi/
H A DMakefile7 SUBDIR.${MK_FDT}+= fdt
/freebsd-current/sys/modules/fdt/fdt_slicer/
H A DMakefile2 .PATH: ${SRCTOP}/sys/dev/fdt

Completed in 184 milliseconds

1234567891011>>