Searched defs:fdt (Results 1 - 24 of 24) sorted by relevance

/freebsd-head/sys/contrib/libfdt/
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 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 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.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_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_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...]
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_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...]
/freebsd-head/usr.bin/dtc/
H A Dchecking.hh38 #include "fdt.hh"
42 namespace fdt namespace in namespace:dtc
106 bool check_tree(fdt::device_tree *tree)
308 } // namespace fdt
H A Dchecking.cc42 namespace fdt namespace in namespace:dtc
284 } // namespace fdt
H A Dfdt.cc37 #include "fdt.hh"
60 namespace fdt namespace in namespace:dtc
2208 } // namespace fdt
H A Dfdt.hh56 namespace fdt namespace in namespace:dtc
1064 } // namespace fdt
/freebsd-head/usr.sbin/fdread/
H A Dfdread.c167 struct fd_type fdt; local
169 if (ioctl(fd, FD_GTYPE, &fdt) == -1)
172 secsize = 128 << fdt.secsize;
173 tracksize = fdt.sectrac * secsize;
174 mediasize = tracksize * fdt.tracks * fdt.heads;
180 fdt.tracks, fdt.heads, fdt.sectrac, secsize, _devname);
310 struct fd_type fdt; local
[all...]
/freebsd-head/usr.sbin/fdwrite/
H A Dfdwrite.c74 struct fd_type fdt; local
133 if(ioctl(fd, FD_GTYPE, &fdt) < 0)
136 bpt = fdt.sectrac * (1<<fdt.secsize) * 128;
149 fdt.tracks,fdt.heads,fdt.sectrac,(1<<fdt.secsize) * 128,
150 fdt.tracks*bpt*fdt
[all...]
/freebsd-head/usr.sbin/fdformat/
H A Dfdformat.c144 struct fd_type fdt, newft, *fdtp; local
250 if(ioctl(fd, FD_GTYPE, &fdt) < 0)
261 fdt = *fdtp;
264 parse_fmt(fmtstring, type, fdt, &newft);
265 fdt = newft;
267 if (ioctl(fd, FD_STYPE, &fdt) < 0)
275 bytes_per_track = fdt.sectrac * (128 << fdt.secsize);
278 tracks_per_dot = (fdt.tracks * fdt
[all...]
/freebsd-head/sys/powerpc/aim/
H A Daim_machdep.c169 void aim_early_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry,
174 aim_early_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp, argument
200 __restartkernel_virtual(fdt, 0, ofentry, mdp,
203 __restartkernel(fdt, 0, ofentry, mdp, mdp_cookie,
/freebsd-head/sys/powerpc/powerpc/
H A Dmachdep.c247 void aim_early_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry,
257 powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp, argument
296 aim_early_init(fdt, toc, ofentry, mdp, mdp_cookie);
344 if (fdt == 0) {
345 fdt = MD_FETCH(kmdp, MODINFOMD_DTBP, uintptr_t);
346 if (fdt != 0)
347 fdt += md_offset;
382 OF_initial_setup((void *)fdt, NULL, (int (*)(void *))ofentry);
/freebsd-head/sys/powerpc/ofw/
H A Dofw_machdep.c54 #include <dev/fdt/fdt_common.h>
78 static void *fdt; variable
447 if (fdt != NULL) {
448 fdtmap[j].mr_start = (vm_offset_t)fdt & ~PAGE_MASK;
449 fdtmap[j].mr_size = round_page(fdt_totalsize(fdt));
597 fdt = fdt_ptr;
624 if (fdt != NULL) {
639 tmp_fdt_ptr = pmap_early_io_map((vm_paddr_t)fdt, PAGE_SIZE);
657 bus_space_map(fdt_bt, (vm_paddr_t)fdt, fdt_size, 0, &fdt_va);
661 err = OF_init(fdt);
[all...]
/freebsd-head/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c335 int fdt; /* current connecting socket */ member in struct:gpsd_unit
524 up->fdt = -1;
625 if (up->fdt != -1)
626 close(up->fdt);
841 } else if (-1 != up->fdt) {
849 else if (-1 != up->fdt)
856 if (-1 == pp->io.fd && -1 != up->fdt)
1864 up->fdt = socket(
1866 if (-1 == up->fdt) {
1878 rc = fcntl(up->fdt, F_SETF
[all...]
/freebsd-head/lib/libprocstat/
H A Dlibprocstat.c463 struct fdescenttbl *fdt; local
565 fdt_size = sizeof(*fdt) + nfiles * sizeof(struct filedescent);
566 fdt = malloc(fdt_size);
567 if (fdt == NULL) {
571 if (!kvm_read_all(kd, (unsigned long)filed.fd_files, fdt, fdt_size)) {
573 free(fdt);
577 if (fdt->fdt_ofiles[i].fde_file == NULL) {
580 if (!kvm_read_all(kd, (unsigned long)fdt->fdt_ofiles[i].fde_file, &file,
583 (void *)fdt->fdt_ofiles[i].fde_file);
634 free(fdt);
[all...]
/freebsd-head/sys/kern/
H A Dsys_generic.c1484 const struct fdescenttbl *fdt; local
1492 fdt = fdp->fd_files;
1493 fde = &fdt->fdt_ofiles[fd];
H A Dkern_descrip.c2718 const struct fdescenttbl *fdt; local
2726 fdt = fdp->fd_files;
2727 if (__predict_false((u_int)fd >= fdt->fdt_nfiles))
2739 seq = seqc_read(fd_seqc(fdt, fd));
2740 fde = &fdt->fdt_ofiles[fd];
2743 if (!seqc_consistent(fd_seqc(fdt, fd), seq))
2746 fp = fdt->fdt_ofiles[fd].fde_file;
2768 fdt = atomic_load_ptr(&fdp->fd_files);
2772 * Use an acquire barrier to force re-reading of fdt so it is
2776 fdt
2808 const struct fdescenttbl *fdt; local
[all...]
/freebsd-head/sys/dev/qlxgbe/
H A Dql_hw.h1679 qla_flash_desc_table_t fdt; member in struct:_qla_hw

Completed in 119 milliseconds