Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libfdt/include/
A Dlibfdt.h654 int nodeoffset,
694 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
913 int fdt_node_depth(const void *fdt, int nodeoffset);
936 int fdt_parent_offset(const void *fdt, int nodeoffset);
1172 int fdt_address_cells(const void *fdt, int nodeoffset);
1193 int fdt_size_cells(const void *fdt, int nodeoffset);
1385 int fdt_nop_node(void *fdt, int nodeoffset);
1695 return fdt_setprop_u32(fdt, nodeoffset, name, val); in fdt_setprop_cell()
1756 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument
1757 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
[all …]
/optee_os-3.20.0/core/lib/libfdt/
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.c428 int nodeoffset, in fdt_get_property() argument
431 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property()
494 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); in fdt_get_phandle()
533 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path()
554 if (offset == nodeoffset) { in fdt_get_path()
585 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset()
590 if (offset == nodeoffset) { in fdt_supernode_atdepth_offset()
609 int fdt_node_depth(const void *fdt, int nodeoffset) in fdt_node_depth() argument
620 int fdt_parent_offset(const void *fdt, int nodeoffset) in fdt_parent_offset() argument
622 int nodedepth = fdt_node_depth(fdt, nodeoffset); in fdt_parent_offset()
[all …]
A Dfdt_rw.c176 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_()
220 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument
253 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder()
261 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument
284 prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_appendprop()
295 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_appendprop()
303 int fdt_delprop(void *fdt, int nodeoffset, const char *name) in fdt_delprop() argument
310 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_delprop()
364 int fdt_del_node(void *fdt, int nodeoffset) in fdt_del_node() argument
370 endoffset = fdt_node_end_offset_(fdt, nodeoffset); in fdt_del_node()
[all …]
A Dfdt_overlay.c650 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() argument
658 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len()
666 nodeoffset = fdt_parent_offset(fdt, nodeoffset); in get_path_len()
667 if (nodeoffset < 0) in get_path_len()
668 return nodeoffset; in get_path_len()
A Dlibfdt_internal.h24 int fdt_node_end_offset_(void *fdt, int nodeoffset);
/optee_os-3.20.0/core/include/kernel/
A Ddt_driver.h61 TEE_Result dt_driver_register_provider(const void *fdt, int nodeoffset,
84 const void *fdt, int nodeoffset,
108 dt_driver_get_provider_by_node(int nodeoffset, enum dt_driver_type type);
134 TEE_Result dt_driver_probe_device_by_node(const void *fdt, int nodeoffset,
146 int fdt_get_dt_driver_cells(const void *fdt, int nodeoffset,
155 TEE_Result dt_driver_maybe_add_probe_node(const void *fdt, int nodeoffset);
A Ddt.h95 typedef TEE_Result (*dt_driver_probe_func)(const void *fdt, int nodeoffset,
/optee_os-3.20.0/core/drivers/clk/
A Dclk_dt.c16 TEE_Result clk_dt_get_by_name(const void *fdt, int nodeoffset, in clk_dt_get_by_name() argument
21 clk_id = fdt_stringlist_search(fdt, nodeoffset, "clock-names", name); in clk_dt_get_by_name()
27 return clk_dt_get_by_index(fdt, nodeoffset, clk_id, clk); in clk_dt_get_by_name()
31 int nodeoffset, unsigned int clk_idx, in clk_dt_get_by_idx_prop() argument
36 *clk = dt_driver_device_from_node_idx_prop(prop_name, fdt, nodeoffset, in clk_dt_get_by_idx_prop()
42 TEE_Result clk_dt_get_by_index(const void *fdt, int nodeoffset, in clk_dt_get_by_index() argument
45 return clk_dt_get_by_idx_prop("clocks", fdt, nodeoffset, clk_idx, clk); in clk_dt_get_by_index()
138 static void parse_assigned_clock(const void *fdt, int nodeoffset) in parse_assigned_clock() argument
148 rate_prop = fdt_getprop(fdt, nodeoffset, "assigned-clock-rates", in parse_assigned_clock()
153 res = clk_dt_get_by_idx_prop("assigned-clocks", fdt, nodeoffset, in parse_assigned_clock()
[all …]
/optee_os-3.20.0/core/kernel/
A Ddt_driver.c32 int nodeoffset; member
54 int nodeoffset; member
135 phandle = fdt_get_phandle(fdt, nodeoffset); in dt_driver_register_provider()
148 prv->nodeoffset = nodeoffset; in dt_driver_register_provider()
203 if (prv->nodeoffset == nodeoffset && prv->type == type) in dt_driver_get_provider_by_node()
248 const void *fdt, int nodeoffset, in dt_driver_device_from_node_idx_prop() argument
264 fdt_get_name(fdt, nodeoffset, NULL)); in dt_driver_device_from_node_idx_prop()
313 fdt_get_name(fdt, elt->nodeoffset, NULL)); in print_probe_list()
389 elt->nodeoffset = node; in alloc_elt_and_probe()
514 if (candidate->nodeoffset != elt->nodeoffset || in driver_probe_compare()
[all …]
/optee_os-3.20.0/core/include/drivers/
A Dclk_dt.h46 TEE_Result clk_dt_get_by_index(const void *fdt, int nodeoffset,
62 TEE_Result clk_dt_get_by_name(const void *fdt, int nodeoffset,
92 TEE_Result clk_dt_register_clk_provider(const void *fdt, int nodeoffset,
95 return dt_driver_register_provider(fdt, nodeoffset,
A Drstctrl.h160 int nodeoffset, in rstctrl_dt_get_by_index() argument
167 nodeoffset, index, in rstctrl_dt_get_by_index()
173 int nodeoffset __unused, in rstctrl_dt_get_by_index()
196 TEE_Result rstctrl_dt_get_by_name(const void *fdt, int nodeoffset,
227 TEE_Result rstctrl_register_provider(const void *fdt, int nodeoffset,
231 return dt_driver_register_provider(fdt, nodeoffset,
/optee_os-3.20.0/core/drivers/rstctrl/
A Drstctrl.c42 TEE_Result rstctrl_dt_get_by_name(const void *fdt, int nodeoffset, in rstctrl_dt_get_by_name() argument
47 index = fdt_stringlist_search(fdt, nodeoffset, "reset-names", name); in rstctrl_dt_get_by_name()
51 return rstctrl_dt_get_by_index(fdt, nodeoffset, index, rstctrl); in rstctrl_dt_get_by_name()
/optee_os-3.20.0/core/drivers/clk/sam/
A Dsama5d2_clk.c312 static TEE_Result pmc_setup(const void *fdt, int nodeoffset, in pmc_setup() argument
347 if (dt_map_dev(fdt, nodeoffset, &base, &size, DT_MAP_AUTO) < 0) in pmc_setup()
350 if (_fdt_get_status(fdt, nodeoffset) == DT_STATUS_OK_SEC) in pmc_setup()
353 res = clk_dt_get_by_name(fdt, nodeoffset, "slow_clk", &slow_clk); in pmc_setup()
357 res = clk_dt_get_by_name(fdt, nodeoffset, "main_xtal", &main_xtal_clk); in pmc_setup()
375 fdt_prop = fdt_getprop(fdt, nodeoffset, "atmel,osc-bypass", NULL); in pmc_setup()
596 clk_dt_register_clk_provider(fdt, nodeoffset, clk_dt_pmc_get, pmc); in pmc_setup()

Completed in 21 milliseconds