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

1234

/linux-master/scripts/dtc/libfdt/
H A Dlibfdt.h10 #include "fdt.h"
120 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);
122 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) argument
124 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen);
127 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
193 int fdt_next_node(const void *fdt, int offset, int *depth);
197 * @fdt: FDT blob
202 int fdt_first_subnode(const void *fdt, int offset);
206 * @fdt: FDT blob
215 int fdt_next_subnode(const void *fdt, in
398 fdt_get_max_phandle(const void *fdt) argument
663 fdt_get_property_by_offset_w(void *fdt, int offset, int *lenp) argument
722 fdt_get_property_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument
782 fdt_getprop_namelen_w(void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument
821 fdt_getprop_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument
1324 fdt_setprop_inplace_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1359 fdt_setprop_inplace_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1376 fdt_setprop_inplace_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1480 fdt_property_u32(void *fdt, const char *name, uint32_t val) argument
1485 fdt_property_u64(void *fdt, const char *name, uint64_t val) argument
1492 fdt_property_cell(void *fdt, const char *name, uint32_t val) argument
1691 fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1726 fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1744 fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1869 fdt_appendprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
1904 fdt_appendprop_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument
1922 fdt_appendprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument
[all...]
H A Dfdt_sw.c8 #include <fdt.h>
13 static int fdt_sw_probe_(void *fdt) argument
16 if (fdt_magic(fdt) == FDT_MAGIC)
18 else if (fdt_magic(fdt) != FDT_SW_MAGIC)
25 #define FDT_SW_PROBE(fdt) \
28 if ((err = fdt_sw_probe_(fdt)) != 0) \
38 static int fdt_sw_probe_memrsv_(void *fdt) argument
40 int err = fdt_sw_probe_(fdt);
44 if (!can_assume(VALID_INPUT) && fdt_off_dt_strings(fdt) != 0)
49 #define FDT_SW_PROBE_MEMRSV(fdt) \
64 fdt_sw_probe_struct_(void *fdt) argument
83 sw_flags(void *fdt) argument
94 fdt_grab_space_(void *fdt, size_t len) argument
113 void *fdt = buf; local
148 fdt_resize(void *fdt, void *buf, int bufsize) argument
188 fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size) argument
208 fdt_finish_reservemap(void *fdt) argument
219 fdt_begin_node(void *fdt, const char *name) argument
236 fdt_end_node(void *fdt) argument
250 fdt_add_string_(void *fdt, const char *s) argument
268 fdt_del_last_string_(void *fdt, const char *s) argument
276 fdt_find_add_string_(void *fdt, const char *s, int *allocated) argument
293 fdt_property_placeholder(void *fdt, const char *name, int len, void **valp) argument
325 fdt_property(void *fdt, const char *name, const void *val, int len) argument
337 fdt_finish(void *fdt) argument
[all...]
H A Dfdt_rw.c8 #include <fdt.h>
13 static int fdt_blocks_misordered_(const void *fdt, argument
16 return (fdt_off_mem_rsvmap(fdt) < FDT_ALIGN(sizeof(struct fdt_header), 8))
17 || (fdt_off_dt_struct(fdt) <
18 (fdt_off_mem_rsvmap(fdt) + mem_rsv_size))
19 || (fdt_off_dt_strings(fdt) <
20 (fdt_off_dt_struct(fdt) + struct_size))
21 || (fdt_totalsize(fdt) <
22 (fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt)));
25 fdt_rw_probe_(void *fdt) argument
49 fdt_data_size_(void *fdt) argument
54 fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) argument
70 fdt_splice_mem_rsv_(void *fdt, struct fdt_reserve_entry *p, int oldn, int newn) argument
83 fdt_splice_struct_(void *fdt, void *p, int oldlen, int newlen) argument
98 fdt_del_last_string_(void *fdt, const char *s) argument
105 fdt_splice_string_(void *fdt, int newlen) argument
127 fdt_find_add_string_(void *fdt, const char *s, int *allocated) argument
155 fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size) argument
172 fdt_del_mem_rsv(void *fdt, int n) argument
184 fdt_resize_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
202 fdt_add_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
235 fdt_set_name(void *fdt, int nodeoffset, const char *name) argument
258 fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, int len, void **prop_data) argument
276 fdt_setprop(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
291 fdt_appendprop(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument
318 fdt_delprop(void *fdt, int nodeoffset, const char *name) argument
333 fdt_add_subnode_namelen(void *fdt, int parentoffset, const char *name, int namelen) argument
377 fdt_add_subnode(void *fdt, int parentoffset, const char *name) argument
382 fdt_del_node(void *fdt, int nodeoffset) argument
419 fdt_open_into(const void *fdt, void *buf, int bufsize) argument
487 fdt_pack(void *fdt) argument
[all...]
H A Dlibfdt_internal.h8 #include <fdt.h>
13 int32_t fdt_ro_probe_(const void *fdt);
14 #define FDT_RO_PROBE(fdt) \
17 if ((totalsize_ = fdt_ro_probe_(fdt)) < 0) \
21 int fdt_check_node_offset_(const void *fdt, int offset);
22 int fdt_check_prop_offset_(const void *fdt, int offset);
24 int fdt_node_end_offset_(void *fdt, int nodeoffset);
26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) argument
28 return (const char *)fdt + fdt_off_dt_struct(fdt)
31 fdt_offset_ptr_w_(void *fdt, int offset) argument
36 fdt_mem_rsv_(const void *fdt, int n) argument
44 fdt_mem_rsv_w_(void *fdt, int n) argument
[all...]
H A Dfdt.c8 #include <fdt.h>
18 int32_t fdt_ro_probe_(const void *fdt) argument
20 uint32_t totalsize = fdt_totalsize(fdt);
26 if ((uintptr_t)fdt & 7)
29 if (fdt_magic(fdt) == FDT_MAGIC) {
32 if (fdt_version(fdt) < FDT_FIRST_SUPPORTED_VERSION)
34 if (fdt_last_comp_version(fdt) >
38 } else if (fdt_magic(fdt) == FDT_SW_MAGIC) {
40 if (!can_assume(VALID_INPUT) && fdt_size_dt_struct(fdt) == 0)
83 size_t fdt_header_size(const void *fdt) argument
89 fdt_check_header(const void *fdt) argument
140 fdt_offset_ptr(const void *fdt, int offset, unsigned int len) argument
162 fdt_next_tag(const void *fdt, int startoffset, int *nextoffset) argument
223 fdt_check_node_offset_(const void *fdt, int offset) argument
235 fdt_check_prop_offset_(const void *fdt, int offset) argument
247 fdt_next_node(const void *fdt, int offset, int *depth) argument
287 fdt_first_subnode(const void *fdt, int offset) argument
298 fdt_next_subnode(const void *fdt, int offset) argument
327 fdt_move(const void *fdt, void *buf, int bufsize) argument
[all...]
H A Dfdt_wip.c8 #include <fdt.h>
13 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, argument
21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen,
33 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, argument
39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen);
46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name,
59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) argument
64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
73 int fdt_node_end_offset_(void *fdt, int offset) argument
78 offset = fdt_next_node(fdt, offse
83 fdt_nop_node(void *fdt, int nodeoffset) argument
[all...]
H A Dfdt_ro.c8 #include <fdt.h>
13 static int fdt_nodename_eq_(const void *fdt, int offset, argument
17 const char *p = fdt_get_name(fdt, offset, &olen);
34 const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) argument
43 s = (const char *)fdt + fdt_off_dt_strings(fdt) + stroffset;
49 totalsize = fdt_ro_probe_(fdt);
55 absoffset = stroffset + fdt_off_dt_strings(fdt);
60 if (fdt_magic(fdt) == FDT_MAGIC) {
63 if (can_assume(LATEST) || fdt_version(fdt) >
100 fdt_string(const void *fdt, int stroffset) argument
105 fdt_string_eq_(const void *fdt, int stroffset, const char *s, int len) argument
114 fdt_find_max_phandle(const void *fdt, uint32_t *phandle) argument
142 fdt_generate_phandle(const void *fdt, uint32_t *phandle) argument
160 fdt_mem_rsv(const void *fdt, int n) argument
175 fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size) argument
189 fdt_num_mem_rsv(const void *fdt) argument
201 nextprop_(const void *fdt, int offset) argument
225 fdt_subnode_offset_namelen(const void *fdt, int offset, const char *name, int namelen) argument
244 fdt_subnode_offset(const void *fdt, int parentoffset, const char *name) argument
250 fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) argument
295 fdt_path_offset(const void *fdt, const char *path) argument
300 fdt_get_name(const void *fdt, int nodeoffset, int *len) argument
338 fdt_first_property_offset(const void *fdt, int nodeoffset) argument
348 fdt_next_property_offset(const void *fdt, int offset) argument
356 fdt_get_property_by_offset_(const void *fdt, int offset, int *lenp) argument
378 fdt_get_property_by_offset(const void *fdt, int offset, int *lenp) argument
394 fdt_get_property_namelen_(const void *fdt, int offset, const char *name, int namelen, int *lenp, int *poffset) argument
425 fdt_get_property_namelen(const void *fdt, int offset, const char *name, int namelen, int *lenp) argument
443 fdt_get_property(const void *fdt, int nodeoffset, const char *name, int *lenp) argument
451 fdt_getprop_namelen(const void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument
469 fdt_getprop_by_offset(const void *fdt, int offset, const char **namep, int *lenp) argument
502 fdt_getprop(const void *fdt, int nodeoffset, const char *name, int *lenp) argument
508 fdt_get_phandle(const void *fdt, int nodeoffset) argument
525 fdt_get_alias_namelen(const void *fdt, const char *name, int namelen) argument
537 fdt_get_alias(const void *fdt, const char *name) argument
542 fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) argument
594 fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset, int supernodedepth, int *nodedepth) argument
632 fdt_node_depth(const void *fdt, int nodeoffset) argument
644 fdt_parent_offset(const void *fdt, int nodeoffset) argument
654 fdt_node_offset_by_prop_value(const void *fdt, int startoffset, const char *propname, const void *propval, int proplen) argument
681 fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) argument
723 fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property) argument
748 fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property, const char *string) argument
778 fdt_stringlist_get(const void *fdt, int nodeoffset, const char *property, int idx, int *lenp) argument
823 fdt_node_check_compatible(const void *fdt, int nodeoffset, const char *compatible) argument
836 fdt_node_offset_by_compatible(const void *fdt, int startoffset, const char *compatible) argument
[all...]
H A Dfdt_addresses.c9 #include <fdt.h>
14 static int fdt_cells(const void *fdt, int nodeoffset, const char *name) argument
20 c = fdt_getprop(fdt, nodeoffset, name, &len);
34 int fdt_address_cells(const void *fdt, int nodeoffset) argument
38 val = fdt_cells(fdt, nodeoffset, "#address-cells");
46 int fdt_size_cells(const void *fdt, int nodeoffset) argument
50 val = fdt_cells(fdt, nodeoffset, "#size-cells");
57 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, argument
63 ret = fdt_address_cells(fdt, parent);
68 ret = fdt_size_cells(fdt, paren
[all...]
/linux-master/arch/mips/generic/
H A Dboard-ocelot.its.S4 fdt-ocelot_pcb123 {
15 fdt-ocelot_pcb120 {
31 fdt = "fdt-ocelot_pcb123"; define
37 fdt = "fdt-ocelot_pcb120"; define
H A Dboard-jaguar2.its.S4 fdt-jaguar2_pcb110 {
14 fdt-jaguar2_pcb111 {
30 fdt = "fdt-jaguar2_pcb110"; define
36 fdt = "fdt-jaguar2_pcb111"; define
H A Dboard-ni169445.its.S3 fdt-ni169445 {
19 fdt = "fdt-ni169445"; define
H A Dboard-serval.its.S4 fdt-serval_pcb105 {
20 fdt = "fdt-serval_pcb105"; define
H A Dboard-boston.its.S3 fdt-boston {
19 fdt = "fdt-boston"; define
H A Dboard-luton.its.S4 fdt-luton_pcb091 {
20 fdt = "fdt-luton_pcb091"; define
H A Dboard-xilfpga.its.S3 fdt-xilfpga {
19 fdt = "fdt-xilfpga"; define
H A Dboard-marduk.its.S3 fdt-marduk {
19 fdt = "fdt-marduk"; define
H A Dboard-sead3.c43 static __init int append_memory(void *fdt) argument
45 return yamon_dt_append_memory(fdt, mem_regions);
48 static __init int remove_gic(void *fdt) argument
61 gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic");
67 err = fdt_nop_node(fdt, gic_off);
73 cpu_off = fdt_node_offset_by_compatible(fdt, -1,
80 cpu_phandle = fdt_get_phandle(fdt, cpu_off);
86 uart_off = fdt_node_offset_by_compatible(fdt, -1, "ns16550a");
88 err = fdt_setprop_u32(fdt, uart_off, "interrupt-parent",
96 err = fdt_setprop_u32(fdt, uart_of
159 sead3_fixup_fdt(const void *fdt, const void *match_data) argument
[all...]
H A Dinit.c23 static __initconst const void *fdt; variable
30 BUG_ON(!fdt);
38 if (fdt)
40 return (void *)fdt;
42 fdt = (void *)get_fdt();
43 if (fdt && !fdt_check_header(fdt)) {
50 match = mips_machine_is_compatible(check_mach, fdt);
80 fdt = mach->fdt;
[all...]
/linux-master/arch/powerpc/include/asm/
H A Ddt_cpu_ftrs.h16 bool dt_cpu_ftrs_init(void *fdt);
20 static inline bool dt_cpu_ftrs_init(void *fdt) { return false; } argument
/linux-master/arch/mips/mobileye/
H A Dboard-epm5.its.S4 fdt-mobileye-epm5 {
21 fdt = "fdt-mobileye-epm5"; define
/linux-master/arch/riscv/kernel/
H A Dsoc.c16 void (*early_fn)(const void *fdt);
18 const void *fdt = dtb_early_va; local
22 if (!fdt_node_check_compatible(fdt, 0, s->compatible)) {
24 early_fn(fdt);
/linux-master/arch/mips/include/asm/
H A Dyamon-dt.h26 * @fdt: the FDT blob
29 * /chosen node in @fdt.
33 extern __init int yamon_dt_append_cmdline(void *fdt);
37 * @fdt: the FDT blob
40 * Generate a /memory node in @fdt based upon memory size information provided
45 extern __init int yamon_dt_append_memory(void *fdt,
50 * @fdt: the FDT blob
52 * Generate a stdout-path property in the /chosen node of @fdt, based upon
58 extern __init int yamon_dt_serial_config(void *fdt);
/linux-master/arch/openrisc/include/asm/
H A Dsetup.h12 void __init or1k_early_setup(void *fdt);
/linux-master/arch/arm/boot/compressed/
H A Dfdt_check_mem_start.c8 static const void *get_prop(const void *fdt, const char *node_path, argument
14 offset = fdt_path_offset(fdt, node_path);
18 prop = fdt_getprop(fdt, offset, property, &len);
25 static uint32_t get_cells(const void *fdt, const char *name) argument
27 const fdt32_t *prop = get_prop(fdt, "/", name, sizeof(fdt32_t));
64 uint32_t fdt_check_mem_start(uint32_t mem_start, const void *fdt) argument
73 if (!fdt)
76 if (fdt_magic(fdt) != FDT_MAGIC)
80 addr_cells = get_cells(fdt, "#address-cells");
81 size_cells = get_cells(fdt, "#siz
[all...]
/linux-master/drivers/of/
H A Dkexec.c34 * @fdt: Flattened device tree for the current kernel.
40 static int fdt_find_and_del_mem_rsv(void *fdt, unsigned long start, unsigned long size) argument
42 int i, ret, num_rsvs = fdt_num_mem_rsv(fdt);
47 ret = fdt_get_mem_rsv(fdt, i, &rsv_start, &rsv_size);
54 ret = fdt_del_mem_rsv(fdt, i);
193 * remove_ima_buffer - remove the IMA buffer property and reservation from @fdt
195 * @fdt: Flattened Device Tree to update
201 static void remove_ima_buffer(void *fdt, int chosen_node) argument
211 prop = fdt_getprop(fdt, chosen_node, "linux,ima-kexec-buffer", &len);
216 fdt_delprop(fdt, chosen_nod
234 setup_ima_buffer(const struct kimage *image, void *fdt, int chosen_node) argument
260 setup_ima_buffer(const struct kimage *image, void *fdt, int chosen_node) argument
284 void *fdt; local
[all...]

Completed in 287 milliseconds

1234