Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 115) sorted by relevance

12345

/trusted-firmware-a-latest/plat/st/common/
Dstm32mp_dt.c57 bool fdt_check_node(int node) in fdt_check_node() argument
62 cchar = fdt_get_name(fdt, node, &len); in fdt_check_node()
70 uint8_t fdt_get_status(int node) in fdt_get_status() argument
75 cchar = fdt_getprop(fdt, node, "status", NULL); in fdt_get_status()
81 cchar = fdt_getprop(fdt, node, "secure-status", NULL); in fdt_get_status()
99 static int fdt_get_node_parent_address_cells(int node) in fdt_get_node_parent_address_cells() argument
103 parent = fdt_parent_offset(fdt, node); in fdt_get_node_parent_address_cells()
119 int node; in dt_set_stdout_pinctrl() local
121 node = fdt_get_stdout_node_offset(fdt); in dt_set_stdout_pinctrl()
122 if (node < 0) { in dt_set_stdout_pinctrl()
[all …]
Dstm32mp_gic.c45 int node; in stm32mp_gic_init() local
54 node = dt_get_node(&dt_gic, -1, "arm,cortex-a7-gic"); in stm32mp_gic_init()
55 if (node < 0) { in stm32mp_gic_init()
61 cuint = fdt_getprop(fdt, node, "reg", NULL); in stm32mp_gic_init()
68 cuint = fdt_getprop(fdt, node, "#interrupt-cells", NULL); in stm32mp_gic_init()
75 stm32mp_gic.phandle_node = fdt_get_phandle(fdt, node); in stm32mp_gic_init()
Dstm32mp_fconf_io.c117 int node; in fconf_populate_stm32mp_io_policies() local
126 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_stm32mp_io_policies()
127 if (node < 0) { in fconf_populate_stm32mp_io_policies()
129 return node; in fconf_populate_stm32mp_io_policies()
139 err = fdtw_read_uuid(dtb, node, load_info[i].name, 16, in fconf_populate_stm32mp_io_policies()
156 uuid_helper.uuid_struct.node[0], uuid_helper.uuid_struct.node[1], in fconf_populate_stm32mp_io_policies()
157 uuid_helper.uuid_struct.node[2], uuid_helper.uuid_struct.node[3], in fconf_populate_stm32mp_io_policies()
158 uuid_helper.uuid_struct.node[4], uuid_helper.uuid_struct.node[5]); in fconf_populate_stm32mp_io_policies()
/trusted-firmware-a-latest/include/common/
Dfdt_wrappers.h18 int fdt_read_uint32(const void *dtb, int node, const char *prop_name,
20 uint32_t fdt_read_uint32_default(const void *dtb, int node,
22 int fdt_read_uint64(const void *dtb, int node, const char *prop_name,
24 int fdt_read_uint32_array(const void *dtb, int node, const char *prop_name,
26 int fdtw_read_string(const void *dtb, int node, const char *prop,
28 int fdtw_read_uuid(const void *dtb, int node, const char *prop,
30 int fdtw_write_inplace_cells(void *dtb, int node, const char *prop,
32 int fdtw_read_bytes(const void *dtb, int node, const char *prop,
34 int fdtw_write_inplace_bytes(void *dtb, int node, const char *prop,
36 int fdt_get_reg_props_by_index(const void *dtb, int node, int index,
[all …]
/trusted-firmware-a-latest/plat/arm/board/fvp/fconf/
Dfconf_hw_config_getter.c36 int node; in fconf_populate_gicv3_config() local
47 node = fdt_node_offset_by_compatible(hw_config_dtb, -1, "arm,gic-v3"); in fconf_populate_gicv3_config()
48 if (node < 0) { in fconf_populate_gicv3_config()
56 err = fdt_get_reg_props_by_index(hw_config_dtb, node, 0, &addr, NULL); in fconf_populate_gicv3_config()
63 err = fdt_get_reg_props_by_index(hw_config_dtb, node, 1, &addr, NULL); in fconf_populate_gicv3_config()
75 int err, node, cluster_node, core_node, thread_node; in fconf_populate_topology() local
83 node = fdt_node_offset_by_compatible(hw_config_dtb, -1, "arm,psci-1.0"); in fconf_populate_topology()
84 if (node < 0) { in fconf_populate_topology()
86 return node; in fconf_populate_topology()
89 err = fdt_read_uint32(hw_config_dtb, node, "max-pwr-lvl", &max_pwr_lvl); in fconf_populate_topology()
[all …]
Dfconf_nt_config_getter.c20 int node; in fconf_populate_event_log_config() local
31 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_event_log_config()
32 if (node < 0) { in fconf_populate_event_log_config()
35 return node; in fconf_populate_event_log_config()
40 err = fdtw_read_cells(dtb, node, "tpm_event_log_sm_addr", 2, in fconf_populate_event_log_config()
47 err = fdtw_read_cells(dtb, node, in fconf_populate_event_log_config()
54 err = fdtw_read_cells(dtb, node, in fconf_populate_event_log_config()
/trusted-firmware-a-latest/drivers/st/clk/
Dstm32mp_clkfunc.c28 int node, subnode; in fdt_osc_read_freq() local
35 node = fdt_path_offset(fdt, "/clocks"); in fdt_osc_read_freq()
36 if (node < 0) { in fdt_osc_read_freq()
40 fdt_for_each_subnode(subnode, fdt, node) { in fdt_osc_read_freq()
78 int node, subnode; in fdt_clk_read_bool() local
85 node = fdt_path_offset(fdt, "/clocks"); in fdt_clk_read_bool()
86 if (node < 0) { in fdt_clk_read_bool()
90 fdt_for_each_subnode(subnode, fdt, node) { in fdt_clk_read_bool()
121 int node, subnode; in fdt_clk_read_uint32_default() local
128 node = fdt_path_offset(fdt, "/clocks"); in fdt_clk_read_uint32_default()
[all …]
/trusted-firmware-a-latest/drivers/allwinner/axp/
Dcommon.c58 static int fdt_get_regulator_millivolt(const void *fdt, int node) in fdt_get_regulator_millivolt() argument
63 prop = fdt_getprop(fdt, node, "regulator-min-microvolt", NULL); in fdt_get_regulator_millivolt()
68 prop = fdt_getprop(fdt, node, "regulator-max-microvolt", NULL); in fdt_get_regulator_millivolt()
78 static int setup_regulator(const void *fdt, int node, in setup_regulator() argument
84 mvolt = fdt_get_regulator_millivolt(fdt, node); in setup_regulator()
101 static bool should_enable_regulator(const void *fdt, int node) in should_enable_regulator() argument
103 if (!fdt_node_is_enabled(fdt, node)) { in should_enable_regulator()
106 if (fdt_getprop(fdt, node, "phandle", NULL) != NULL) { in should_enable_regulator()
109 if (fdt_getprop(fdt, node, "regulator-always-on", NULL) != NULL) { in should_enable_regulator()
117 int node, length; in board_uses_usb0_host_mode() local
[all …]
/trusted-firmware-a-latest/lib/fconf/
Dfconf_amu_getter.c31 int node = 0; in fconf_populate_amu_cpu_amu() local
33 fdt_for_each_subnode(node, fdt, parent) { in fconf_populate_amu_cpu_amu()
40 name = fdt_get_name(fdt, node, &len); in fconf_populate_amu_cpu_amu()
45 ret = fdt_get_reg_props_by_index(fdt, node, 0, &idx, NULL); in fconf_populate_amu_cpu_amu()
50 value = fdt_getprop(fdt, node, "enable-at-el3", &len); in fconf_populate_amu_cpu_amu()
60 if ((node < 0) && (node != -FDT_ERR_NOTFOUND)) { in fconf_populate_amu_cpu_amu()
61 return node; in fconf_populate_amu_cpu_amu()
73 static int fconf_populate_amu_cpu(const void *fdt, int node, uintptr_t mpidr) in fconf_populate_amu_cpu() argument
81 ret = fdt_read_uint32(fdt, node, "amu", &amu_phandle); in fconf_populate_amu_cpu()
90 node = fdt_node_offset_by_phandle(fdt, amu_phandle); in fconf_populate_amu_cpu()
[all …]
Dfconf_cot_getter.c191 static int get_oid(const void *dtb, int node, const char *prop, char **oid) in get_oid() argument
196 rc = fdt_read_uint32(dtb, node, prop, &phandle); in get_oid()
201 node = fdt_node_offset_by_phandle(dtb, phandle); in get_oid()
202 if (node < 0) { in get_oid()
203 return node; in get_oid()
207 rc = fdtw_read_string(dtb, node, "oid", *oid, MAX_OID_NAME_LEN); in get_oid()
224 static int populate_and_set_auth_methods(const void *dtb, int node, in populate_and_set_auth_methods() argument
243 rc = get_oid(dtb, node, "signing-key", &oid); in populate_and_set_auth_methods()
252 rc = get_oid(dtb, node, "hash", &oid); in populate_and_set_auth_methods()
267 rc = get_oid(dtb, node, "antirollback-counter", &oid); in populate_and_set_auth_methods()
[all …]
Dfconf_tbbr_getter.c19 int node; in fconf_populate_tbbr_dyn_config() local
28 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_tbbr_dyn_config()
29 if (node < 0) { in fconf_populate_tbbr_dyn_config()
32 return node; in fconf_populate_tbbr_dyn_config()
36 err = fdt_read_uint32(dtb, node, "disable_auth", in fconf_populate_tbbr_dyn_config()
58 err = fdt_read_uint64(dtb, node, "mbedtls_heap_addr", &val64); in fconf_populate_tbbr_dyn_config()
66 err = fdt_read_uint32(dtb, node, "mbedtls_heap_size", &val32); in fconf_populate_tbbr_dyn_config()
/trusted-firmware-a-latest/fdts/
Dstm32mp15-bl32.dtsi16 /delete-node/ cpu@1;
19 /delete-node/ psci;
22 /delete-node/ usb-otg@49000000;
23 /delete-node/ hash@54002000;
24 /delete-node/ memory-controller@58002000;
25 /delete-node/ spi@58003000;
26 /delete-node/ mmc@58005000;
27 /delete-node/ mmc@58007000;
28 /delete-node/ usbphyc@5a006000;
29 /delete-node/ stgen@5c008000;
Dstm32mp15-bl2.dtsi18 /delete-node/ cpu@1;
21 /delete-node/ psci;
24 /delete-node/ timer@40006000;
25 /delete-node/ timer@44006000;
27 /delete-node/ usb-otg@49000000;
29 /delete-node/ pwr_mcu@50001014;
30 /delete-node/ cryp@54001000;
31 /delete-node/ rng@54003000;
33 /delete-node/ memory-controller@58002000;
36 /delete-node/ spi@58003000;
[all …]
/trusted-firmware-a-latest/common/
Dfdt_wrappers.c26 int fdt_read_uint32_array(const void *dtb, int node, const char *prop_name, in fdt_read_uint32_array() argument
35 assert(node >= 0); in fdt_read_uint32_array()
38 prop = fdt_getprop(dtb, node, prop_name, &value_len); in fdt_read_uint32_array()
57 int fdt_read_uint32(const void *dtb, int node, const char *prop_name, in fdt_read_uint32() argument
60 return fdt_read_uint32_array(dtb, node, prop_name, 1, value); in fdt_read_uint32()
63 uint32_t fdt_read_uint32_default(const void *dtb, int node, in fdt_read_uint32_default() argument
67 int err = fdt_read_uint32(dtb, node, prop_name, &ret); in fdt_read_uint32_default()
76 int fdt_read_uint64(const void *dtb, int node, const char *prop_name, in fdt_read_uint64() argument
82 ret = fdt_read_uint32_array(dtb, node, prop_name, 2, array); in fdt_read_uint64()
96 int fdtw_read_bytes(const void *dtb, int node, const char *prop, in fdtw_read_bytes() argument
[all …]
/trusted-firmware-a-latest/plat/qemu/qemu_sbsa/
Dsbsa_sip_svc.c40 int node; in read_platform_config_from_dt() local
57 node = fdt_path_offset(dtb, "/intc"); in read_platform_config_from_dt()
58 if (node < 0) { in read_platform_config_from_dt()
62 data = fdt_getprop(dtb, node, "reg", NULL); in read_platform_config_from_dt()
67 err = fdt_get_reg_props_by_index(dtb, node, 0, &gicd_base, NULL); in read_platform_config_from_dt()
74 err = fdt_get_reg_props_by_index(dtb, node, 1, &gicr_base, NULL); in read_platform_config_from_dt()
83 node = fdt_path_offset(dtb, "/intc/its"); in read_platform_config_from_dt()
84 if (node < 0) { in read_platform_config_from_dt()
88 err = fdt_get_reg_props_by_index(dtb, node, 0, &gic_its_addr, NULL); in read_platform_config_from_dt()
98 int node; in read_platform_version() local
[all …]
/trusted-firmware-a-latest/drivers/st/iwdg/
Dstm32_iwdg.c43 int node; in stm32_iwdg_get_dt_node() local
45 node = dt_get_node(info, offset, DT_IWDG_COMPAT); in stm32_iwdg_get_dt_node()
46 if (node < 0) { in stm32_iwdg_get_dt_node()
53 return node; in stm32_iwdg_get_dt_node()
77 int node = -1; in stm32_iwdg_init() local
86 for (node = stm32_iwdg_get_dt_node(&dt_info, node); in stm32_iwdg_init()
87 node != -FDT_ERR_NOTFOUND; in stm32_iwdg_init()
88 node = stm32_iwdg_get_dt_node(&dt_info, node)) { in stm32_iwdg_init()
101 if (fdt_getprop(fdt, node, "stm32,enable-on-stop", NULL) == in stm32_iwdg_init()
106 if (fdt_getprop(fdt, node, "stm32,enable-on-standby", NULL) == in stm32_iwdg_init()
/trusted-firmware-a-latest/plat/arm/common/
Darm_dyn_cfg_helpers.c49 int arm_dyn_tb_fw_cfg_init(void *dtb, int *node) in arm_dyn_tb_fw_cfg_init() argument
52 assert(node != NULL); in arm_dyn_tb_fw_cfg_init()
61 *node = fdt_node_offset_by_compatible(dtb, -1, "arm,tb_fw"); in arm_dyn_tb_fw_cfg_init()
62 if (*node < 0) { in arm_dyn_tb_fw_cfg_init()
143 int err, node; in arm_set_event_log_info() local
158 node = fdt_node_offset_by_compatible(dtb, -1, compatible); in arm_set_event_log_info()
159 if (node < 0) { in arm_set_event_log_info()
162 return node; in arm_set_event_log_info()
169 err = fdtw_write_inplace_cells(dtb, node, in arm_set_event_log_info()
178 err = fdtw_write_inplace_cells(dtb, node, in arm_set_event_log_info()
[all …]
/trusted-firmware-a-latest/plat/arm/board/arm_fpga/
Dfpga_bl31_setup.c164 int node, err; in fpga_get_system_frequency() local
170 node = fdt_node_offset_by_compatible(fdt, 0, "arm,armv8-timer"); in fpga_get_system_frequency()
171 if (node >= 0) { in fpga_get_system_frequency()
174 err = fdt_read_uint32(fdt, node, "clock-frequency", &freq); in fpga_get_system_frequency()
180 node = fdt_node_offset_by_compatible(fdt, 0, "arm,pl011"); in fpga_get_system_frequency()
181 if (node >= 0) { in fpga_get_system_frequency()
185 err = fdt_get_reg_props_by_index(fdt, node, 0, in fpga_get_system_frequency()
222 int node, err; in fpga_dtb_update_clock() local
224 node = fdt_node_offset_by_compatible(fdt, 0, "arm,pl011"); in fpga_dtb_update_clock()
225 if (node < 0) { in fpga_dtb_update_clock()
[all …]
Dfpga_console.c22 int node; in fpga_console_init() local
29 node = fdt_get_stdout_node_offset(fdt); in fpga_console_init()
30 if (node >= 0) { in fpga_console_init()
31 fdt_get_reg_props_by_index(fdt, node, 0, &base_addr, NULL); in fpga_console_init()
/trusted-firmware-a-latest/plat/common/
Dplat_spmd_manifest.c28 int node) in manifest_parse_attribute() argument
35 rc = fdt_read_uint32(fdt, node, "maj_ver", &attr->major_version); in manifest_parse_attribute()
42 rc = fdt_read_uint32(fdt, node, "min_ver", &attr->minor_version); in manifest_parse_attribute()
49 rc = fdt_read_uint32(fdt, node, "spmc_id", &val32); in manifest_parse_attribute()
57 rc = fdt_read_uint32(fdt, node, "exec_state", &attr->exec_state); in manifest_parse_attribute()
63 rc = fdt_read_uint32(fdt, node, "binary_size", &attr->binary_size); in manifest_parse_attribute()
69 rc = fdt_read_uint64(fdt, node, "load_address", &attr->load_address); in manifest_parse_attribute()
75 rc = fdt_read_uint64(fdt, node, "entrypoint", &attr->entrypoint); in manifest_parse_attribute()
98 int node; in manifest_parse_root() local
102 node = fdt_subnode_offset_namelen(fdt, root, ATTRIBUTE_ROOT_NODE_STR, in manifest_parse_root()
[all …]
/trusted-firmware-a-latest/plat/xilinx/common/
Dplat_console.c36 int node; in get_baudrate() local
42 node = fdt_path_offset(dtb, "/secure-chosen"); in get_baudrate()
43 if (node < 0) { in get_baudrate()
44 node = fdt_path_offset(dtb, "/chosen"); in get_baudrate()
45 if (node < 0) { in get_baudrate()
51 prop = fdt_getprop(dtb, node, "stdout-path", NULL); in get_baudrate()
84 static uint32_t get_node_status(void *dtb, int node) in get_node_status() argument
89 status_cell = fdt_getprop(dtb, node, "status", NULL); in get_node_status()
107 static uint32_t fdt_add_uart_info(dt_uart_info_t *info, int node, void *dtb) in fdt_add_uart_info() argument
113 com = fdt_getprop(dtb, node, "compatible", NULL); in fdt_add_uart_info()
[all …]
/trusted-firmware-a-latest/plat/arm/common/fconf/
Darm_fconf_sp.c29 int sp_node, node, err; in fconf_populate_arm_sp() local
50 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_arm_sp()
51 if (node < 0) { in fconf_populate_arm_sp()
53 return node; in fconf_populate_arm_sp()
56 fdt_for_each_subnode(sp_node, dtb, node) { in fconf_populate_arm_sp()
98 uuid_helper.uuid_struct.node[0], uuid_helper.uuid_struct.node[1], in fconf_populate_arm_sp()
99 uuid_helper.uuid_struct.node[2], uuid_helper.uuid_struct.node[3], in fconf_populate_arm_sp()
100 uuid_helper.uuid_struct.node[4], uuid_helper.uuid_struct.node[5], in fconf_populate_arm_sp()
155 ERROR("%u: fdt_for_each_subnode(): %d\n", __LINE__, node); in fconf_populate_arm_sp()
Dfconf_nv_cntr_getter.c25 int rc, node, child; in fconf_populate_nv_cntrs() local
33 node = fdt_node_offset_by_compatible(dtb, -1, compatible_str); in fconf_populate_nv_cntrs()
34 if (node < 0) { in fconf_populate_nv_cntrs()
37 return node; in fconf_populate_nv_cntrs()
40 fdt_for_each_subnode(child, dtb, node) { in fconf_populate_nv_cntrs()
Dfconf_sdei_getter.c26 int node, err; in fconf_populate_sdei_dyn_config() local
33 node = fdt_node_offset_by_compatible(dtb, -1, "arm,sdei-1.0"); in fconf_populate_sdei_dyn_config()
34 if (node < 0) { in fconf_populate_sdei_dyn_config()
36 return node; in fconf_populate_sdei_dyn_config()
40 err = fdt_read_uint32(dtb, node, "private_event_count", in fconf_populate_sdei_dyn_config()
56 err = fdt_read_uint32_array(dtb, node, "private_events", in fconf_populate_sdei_dyn_config()
71 err = fdt_read_uint32(dtb, node, "shared_event_count", in fconf_populate_sdei_dyn_config()
86 err = fdt_read_uint32_array(dtb, node, "shared_events", in fconf_populate_sdei_dyn_config()
Dfconf_sec_intr_config.c31 int node, err; in fconf_populate_sec_intr_config() local
39 node = fdt_node_offset_by_compatible(hw_config_dtb, -1, in fconf_populate_sec_intr_config()
41 if (node < 0) { in fconf_populate_sec_intr_config()
44 return node; in fconf_populate_sec_intr_config()
48 err = fdt_read_uint32(hw_config_dtb, node, "g0_intr_cnt", &g0_intr_count); in fconf_populate_sec_intr_config()
61 err = fdt_read_uint32(hw_config_dtb, node, "g1s_intr_cnt", in fconf_populate_sec_intr_config()
87 err = fdt_read_uint32_array(hw_config_dtb, node, "g0_intr_desc", in fconf_populate_sec_intr_config()
95 err = fdt_read_uint32_array(hw_config_dtb, node, "g1s_intr_desc", in fconf_populate_sec_intr_config()

12345