Home
last modified time | relevance | path

Searched refs:nodeoffset (Results 1 – 17 of 17) sorted by relevance

/components/legacy/fdt/libfdt/
A Dlibfdt.h591 int nodeoffset,
631 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
721 const void *fdt_getprop(const void *fdt, int nodeoffset,
850 int fdt_node_depth(const void *fdt, int nodeoffset);
873 int fdt_parent_offset(const void *fdt, int nodeoffset);
1109 int fdt_address_cells(const void *fdt, int nodeoffset);
1130 int fdt_size_cells(const void *fdt, int nodeoffset);
1322 int fdt_nop_node(void *fdt, int nodeoffset);
1605 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument
1606 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
[all …]
A Dfdt_wip.c56 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, in fdt_setprop_inplace_namelen_partial() argument
64 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial()
76 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument
82 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
89 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace()
102 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument
107 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
126 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument
130 endoffset = _fdt_node_end_offset(fdt, nodeoffset); in fdt_nop_node()
134 _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0), in fdt_nop_node()
[all …]
A Dfdt_ro.c315 int nodeoffset, in fdt_get_property() argument
347 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument
360 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); in fdt_get_phandle()
399 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path()
420 if (offset == nodeoffset) { in fdt_get_path()
451 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset()
456 if (offset == nodeoffset) { in fdt_supernode_atdepth_offset()
475 int fdt_node_depth(const void *fdt, int nodeoffset) in fdt_node_depth() argument
486 int fdt_parent_offset(const void *fdt, int nodeoffset) in fdt_parent_offset() argument
488 int nodedepth = fdt_node_depth(fdt, nodeoffset); in fdt_parent_offset()
[all …]
A Dfdt_addresses.c12 static int fdt_cells(const void *fdt, int nodeoffset, const char *name) in fdt_cells() argument
18 c = fdt_getprop(fdt, nodeoffset, name, &len); in fdt_cells()
32 int fdt_address_cells(const void *fdt, int nodeoffset) in fdt_address_cells() argument
36 val = fdt_cells(fdt, nodeoffset, "#address-cells"); in fdt_address_cells()
44 int fdt_size_cells(const void *fdt, int nodeoffset) in fdt_size_cells() argument
48 val = fdt_cells(fdt, nodeoffset, "#size-cells"); in fdt_size_cells()
55 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, in fdt_appendprop_addrrange() argument
97 return fdt_appendprop(fdt, nodeoffset, name, data, in fdt_appendprop_addrrange()
A Dfdt_rw.c209 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property()
249 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument
272 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument
280 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop()
291 int fdt_appendprop(void *fdt, int nodeoffset, const char *name, in fdt_appendprop() argument
299 prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_appendprop()
318 int fdt_delprop(void *fdt, int nodeoffset, const char *name) in fdt_delprop() argument
325 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_delprop()
379 int fdt_del_node(void *fdt, int nodeoffset) in fdt_del_node() argument
385 endoffset = _fdt_node_end_offset(fdt, nodeoffset); in fdt_del_node()
[all …]
A Dlibfdt_internal.h68 int _fdt_node_end_offset(void *fdt, int nodeoffset);
/components/drivers/ofw/libfdt/
A Dlibfdt.h687 int nodeoffset,
727 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
819 const void *fdt_getprop(const void *fdt, int nodeoffset,
951 int fdt_node_depth(const void *fdt, int nodeoffset);
974 int fdt_parent_offset(const void *fdt, int nodeoffset);
1210 int fdt_address_cells(const void *fdt, int nodeoffset);
1231 int fdt_size_cells(const void *fdt, int nodeoffset);
1430 int fdt_nop_node(void *fdt, int nodeoffset);
1808 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument
1809 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
[all …]
A Dfdt_wip.c13 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, in fdt_setprop_inplace_namelen_partial() argument
21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial()
33 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument
39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace()
59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument
64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
83 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument
87 endoffset = fdt_node_end_offset_(fdt, nodeoffset); in fdt_nop_node()
91 fdt_nop_region_(fdt_offset_ptr_w(fdt, nodeoffset, 0), in fdt_nop_node()
[all …]
A Dfdt_addresses.c14 static int fdt_cells(const void *fdt, int nodeoffset, const char *name) in fdt_cells() argument
20 c = fdt_getprop(fdt, nodeoffset, name, &len); in fdt_cells()
34 int fdt_address_cells(const void *fdt, int nodeoffset) in fdt_address_cells() argument
38 val = fdt_cells(fdt, nodeoffset, "#address-cells"); in fdt_address_cells()
46 int fdt_size_cells(const void *fdt, int nodeoffset) in fdt_size_cells() argument
50 val = fdt_cells(fdt, nodeoffset, "#size-cells"); in fdt_size_cells()
57 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, in fdt_appendprop_addrrange() argument
99 return fdt_appendprop(fdt, nodeoffset, name, data, in fdt_appendprop_addrrange()
A Dfdt_ro.c444 int nodeoffset, in fdt_get_property() argument
502 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument
515 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); in fdt_get_phandle()
554 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path()
575 if (offset == nodeoffset) { in fdt_get_path()
606 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset()
611 if (offset == nodeoffset) { in fdt_supernode_atdepth_offset()
632 int fdt_node_depth(const void *fdt, int nodeoffset) in fdt_node_depth() argument
644 int fdt_parent_offset(const void *fdt, int nodeoffset) in fdt_parent_offset() argument
646 int nodedepth = fdt_node_depth(fdt, nodeoffset); in fdt_parent_offset()
[all …]
A Dfdt_rw.c190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_()
235 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument
266 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder()
276 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument
291 int fdt_appendprop(void *fdt, int nodeoffset, const char *name, in fdt_appendprop() argument
299 prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_appendprop()
318 int fdt_delprop(void *fdt, int nodeoffset, const char *name) in fdt_delprop() argument
325 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_delprop()
382 int fdt_del_node(void *fdt, int nodeoffset) in fdt_del_node() argument
388 endoffset = fdt_node_end_offset_(fdt, nodeoffset); in fdt_del_node()
[all …]
A Dfdt_overlay.c636 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() argument
644 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len()
652 nodeoffset = fdt_parent_offset(fdt, nodeoffset); in get_path_len()
653 if (nodeoffset < 0) in get_path_len()
654 return nodeoffset; in get_path_len()
A Dlibfdt_internal.h24 int fdt_node_end_offset_(void *fdt, int nodeoffset);
/components/drivers/include/drivers/
A Dofw_raw.h32 #define fdt_setprop_cstring(fdt, nodeoffset, name, str) \ argument
33 fdt_setprop((fdt), (nodeoffset), (name), (str), sizeof(str))
35 #define fdt_prop_cells_ops(ops, fdt, nodeoffset, prop, ...) \ argument
43 ret += ops(fdt, nodeoffset, prop, tmp, sizeof(tmp)); \
47 #define fdt_setprop_cells(fdt, nodeoffset, prop, ...) \ argument
48 fdt_prop_cells_ops(fdt_setprop, fdt, nodeoffset, prop, __VA_ARGS__)
50 #define fdt_appendprop_cells(fdt, nodeoffset, prop, ...) \ argument
51 fdt_prop_cells_ops(fdt_appendprop, fdt, nodeoffset, prop, __VA_ARGS__)
53 int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, uint64_t val, bool is_u64);
61 int fdt_io_addr_cells(void *fdt, int nodeoffset);
[all …]
A Dofw_fdt.h24 long nodeoffset; member
58 rt_uint64_t rt_fdt_translate_address(void *fdt, int nodeoffset, rt_uint64_t address);
59 rt_bool_t rt_fdt_device_is_available(void *fdt, int nodeoffset);
/components/drivers/ofw/
A Draw.c15 int nodeoffset; in fdt_add_subnode_possible() local
17 if ((nodeoffset = fdt_add_subnode(fdt, parentoffset, name)) < 0) in fdt_add_subnode_possible()
20 nodeoffset = fdt_add_subnode(fdt, parentoffset, name); in fdt_add_subnode_possible()
23 return nodeoffset; in fdt_add_subnode_possible()
45 err = fdt_setprop_u64(fdt, nodeoffset, name, val); in fdt_setprop_uxx()
84 int fdt_io_addr_cells(void *fdt, int nodeoffset) in fdt_io_addr_cells() argument
87 int parentoffset = fdt_parent_offset(fdt, nodeoffset); in fdt_io_addr_cells()
101 cells = fdt_address_cells(fdt, nodeoffset); in fdt_io_addr_cells()
107 int fdt_io_size_cells(void *fdt, int nodeoffset) in fdt_io_size_cells() argument
110 int parentoffset = fdt_parent_offset(fdt, nodeoffset); in fdt_io_size_cells()
[all …]
A Dfdt.c78 if (fdt && nodeoffset >= 0) in rt_fdt_translate_address()
90 parent = fdt_parent_offset(fdt, nodeoffset); in rt_fdt_translate_address()
272 int nodeoffset, child; in fdt_scan_reserved_memory() local
276 if (nodeoffset >= 0) in fdt_scan_reserved_memory()
278 if (!fdt_reserved_mem_check_root(nodeoffset)) in fdt_scan_reserved_memory()
280 fdt_for_each_subnode(child, _fdt, nodeoffset) in fdt_scan_reserved_memory()
308 int nodeoffset, no; in fdt_scan_memory() local
325 fdt_for_each_subnode(nodeoffset, _fdt, 0) in fdt_scan_memory()
342 reg = fdt_getprop(_fdt, nodeoffset, "reg", &len); in fdt_scan_memory()
597 fdt_earlycon.nodeoffset = -1; in rt_fdt_scan_chosen_stdout()
[all …]

Completed in 78 milliseconds