Home
last modified time | relevance | path

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

123

/optee_os-3.20.0/core/drivers/crypto/caam/hal/common/
A Dhal_cfg_dt.c38 for (; node != -FDT_ERR_NOTFOUND; in find_jr_offset()
39 node = fdt_node_offset_by_compatible(fdt, node, in find_jr_offset()
45 *find_node = node; in find_jr_offset()
57 int node = 0; in caam_hal_cfg_get_ctrl_dt() local
64 if (node < 0) in caam_hal_cfg_get_ctrl_dt()
78 size = _fdt_reg_size(fdt, node); in caam_hal_cfg_get_ctrl_dt()
98 int node = 0; in caam_hal_cfg_get_jobring_dt() local
111 jr_it_num = dt_get_irq(fdt, node); in caam_hal_cfg_get_jobring_dt()
126 for (; node != -FDT_ERR_NOTFOUND; in caam_hal_cfg_disable_jobring_dt()
127 node = fdt_node_offset_by_compatible(fdt, node, in caam_hal_cfg_disable_jobring_dt()
[all …]
/optee_os-3.20.0/core/tee/
A Dfs_htree.c143 node, sizeof(*node)); in rpc_read_node()
174 node, sizeof(*node)); in rpc_write_node()
249 if (node && node->id == node_id) in find_node()
404 uint8_t *ndata = (uint8_t *)&node->node + sizeof(node->node.hash); in calc_node_hash()
405 size_t nsize = sizeof(node->node) - sizeof(node->node.hash); in calc_node_hash()
423 sizeof(node->child[0]->node.hash)); in calc_node_hash()
430 sizeof(node->child[1]->node.hash)); in calc_node_hash()
721 node->parent->node.flags ^= f; in htree_sync_node_to_storage()
732 res = calc_node_hash(node, meta, targ->arg, node->node.hash); in htree_sync_node_to_storage()
739 return rpc_write_node(targ->ht, node->id, vers, &node->node); in htree_sync_node_to_storage()
[all …]
/optee_os-3.20.0/core/kernel/
A Dlockdep.c32 return node; in lockdep_add_to_graph()
34 node = calloc(1, sizeof(*node)); in lockdep_add_to_graph()
35 if (!node) in lockdep_add_to_graph()
42 return node; in lockdep_add_to_graph()
140 qe->node = node; in lockdep_graph_get_shortest_cycle()
343 if (!node) in __lockdep_lock_acquire()
367 lock->node = node; in __lockdep_lock_acquire()
387 if (!node) in __lockdep_lock_tryacquire()
396 lock->node = node; in __lockdep_lock_tryacquire()
435 free(node); in lockdep_node_delete()
[all …]
A Dtpm.c26 static int read_dt_tpm_log_info(void *fdt, int node, paddr_t *buf, in read_dt_tpm_log_info() argument
43 property = fdt_getprop(fdt, node, dt_tpm_event_log_addr, &len_prop); in read_dt_tpm_log_info()
50 err = fdt_setprop(fdt, node, dt_tpm_event_log_addr, &zero_addr, in read_dt_tpm_log_info()
60 property = fdt_getprop(fdt, node, "tpm_event_log_size", &len_prop); in read_dt_tpm_log_info()
76 int node = 0; in get_tpm_phys_params() local
86 node = fdt_node_offset_by_compatible(fdt, -1, dt_tpm_match_table); in get_tpm_phys_params()
88 if (node < 0) { in get_tpm_phys_params()
89 EMSG("TPM: Fail to find TPM node %i", node); in get_tpm_phys_params()
93 if (read_dt_tpm_log_info((void *)fdt, node, addr, size) < 0) { in get_tpm_phys_params()
95 node); in get_tpm_phys_params()
A Ddt.c45 int dt_disable_status(void *fdt, int node) in dt_disable_status() argument
50 prop = fdt_getprop(fdt, node, "status", &len); in dt_disable_status()
52 if (fdt_setprop_string(fdt, node, "status", "disabled")) in dt_disable_status()
69 if (fdt_setprop_inplace(fdt, node, "status", "disabled", len)) in dt_disable_status()
76 int dt_enable_secure_status(void *fdt, int node) in dt_enable_secure_status() argument
78 if (dt_disable_status(fdt, node)) { in dt_enable_secure_status()
83 if (fdt_setprop_string(fdt, node, "secure-status", "okay")) in dt_enable_secure_status()
303 cuint = fdt_getprop(fdt, node, prop_name, &len); in _fdt_read_uint32_array()
322 return _fdt_read_uint32_array(fdt, node, prop_name, value, 1); in _fdt_read_uint32()
325 uint32_t _fdt_read_uint32_default(const void *fdt, int node, in _fdt_read_uint32_default() argument
[all …]
A Ddt_driver_test.c157 static TEE_Result dt_test_consumer_probe(const void *fdt, int node, in dt_test_consumer_probe() argument
169 res = clk_dt_get_by_index(fdt, node, 0, &clk0); in dt_test_consumer_probe()
172 res = clk_dt_get_by_index(fdt, node, 1, &clk1); in dt_test_consumer_probe()
184 res = clk_dt_get_by_name(fdt, node, "clk0", &clk); in dt_test_consumer_probe()
190 res = clk_dt_get_by_name(fdt, node, "clk1", &clk); in dt_test_consumer_probe()
198 res = clk_dt_get_by_index(fdt, node, 3, &clk); in dt_test_consumer_probe()
204 res = clk_dt_get_by_name(fdt, node, "clk2", &clk); in dt_test_consumer_probe()
220 res = rstctrl_dt_get_by_index(fdt, node, 0, &rstctrl0); in dt_test_consumer_probe()
231 res = rstctrl_dt_get_by_name(fdt, node, "rst0", &rstctrl); in dt_test_consumer_probe()
240 res = rstctrl_dt_get_by_name(fdt, node, "rst1", &rstctrl1); in dt_test_consumer_probe()
[all …]
A Ddt_driver.c389 elt->nodeoffset = node; in alloc_elt_and_probe()
411 return alloc_elt_and_probe(fdt, node, drv, dm); in probe_device_by_compat()
536 .nodeoffset = node, in add_node_to_probe()
591 res = add_node_to_probe(fdt, node, dt_drv, dm); in add_probe_node_by_compat()
623 if (_fdt_get_status(fdt, node) == DT_STATUS_DISABLED) in dt_driver_maybe_add_probe_node()
626 count = fdt_stringlist_count(fdt, node, "compatible"); in dt_driver_maybe_add_probe_node()
634 res = add_probe_node_by_compat(fdt, node, compat); in dt_driver_maybe_add_probe_node()
644 static void parse_node(const void *fdt, int node) in parse_node() argument
649 fdt_for_each_subnode(subnode, fdt, node) { in parse_node()
750 static TEE_Result simple_bus_probe(const void *fdt, int node, in simple_bus_probe() argument
[all …]
/optee_os-3.20.0/core/drivers/pm/sam/
A Dat91_pm.c172 int node = 0; in at91_pm_config_ws_ulp1() local
202 node = fdt_node_offset_by_compatible(soc_pm.fdt, node, in at91_pm_config_ws_ulp1()
340 int node = -1; in at91_pm_dt_dram_init() local
344 if (node < 0) in at91_pm_dt_dram_init()
355 int node = -1; in at91_pm_backup_init() local
359 if (node < 0) in at91_pm_backup_init()
373 int node = -1; in at91_pm_sram_init() local
379 if (node < 0) in at91_pm_sram_init()
407 int node = -1; in at91_securam_init() local
413 if (node < 0) in at91_securam_init()
[all …]
/optee_os-3.20.0/core/include/kernel/
A Ddt.h113 TEE_Result (*probe)(const void *fdt, int node, const void *compat_data);
164 int dt_disable_status(void *fdt, int node);
174 int dt_enable_secure_status(void *fdt, int node);
208 int node);
221 int _fdt_read_uint32(const void *fdt, int node, const char *prop_name,
228 uint32_t _fdt_read_uint32_default(const void *fdt, int node,
238 bool _fdt_check_node(const void *fdt, int node);
276 int node __unused) in _fdt_fill_device_info()
282 int node __unused, in _fdt_read_uint32_array()
291 int node __unused, in _fdt_read_uint32()
[all …]
A Dinterrupt.h78 int dt_get_irq_type_prio(const void *fdt, int node, uint32_t *type,
84 static inline int dt_get_irq(const void *fdt, int node) in dt_get_irq() argument
86 return dt_get_irq_type_prio(fdt, node, NULL, NULL); in dt_get_irq()
/optee_os-3.20.0/core/drivers/crypto/versal/
A Dauthenc.c276 if (node->is_aad) { in do_replay()
380 node = calloc(1, sizeof(*node)); in do_init()
381 if (!node) { in do_init()
445 node = calloc(1, sizeof(*node)); in do_update_aad()
446 if (!node) { in do_update_aad()
452 node->aad.mem = p; in do_update_aad()
515 node = calloc(1, sizeof(*node)); in update_payload()
516 if (!node) { in update_payload()
704 free(node); in do_free()
734 node = calloc(1, sizeof(*node)); in do_copy_state()
[all …]
/optee_os-3.20.0/core/arch/arm/plat-sam/
A Dfreq.c17 int node; in get_freq_from_dt() local
24 node = fdt_node_offset_by_compatible(fdt, -1, "arm,cortex-a5"); in get_freq_from_dt()
25 if (!node) in get_freq_from_dt()
28 if (clk_dt_get_by_name(fdt, node, "cpu", &clk)) in get_freq_from_dt()
A Dsam_sfr.c42 static TEE_Result atmel_sfr_probe(const void *fdt, int node, in atmel_sfr_probe() argument
45 if (_fdt_get_status(fdt, node) == DT_STATUS_OK_SEC) in atmel_sfr_probe()
/optee_os-3.20.0/core/drivers/clk/
A Dclk_dt.c50 static TEE_Result clk_probe_clock_provider_node(const void *fdt, int node);
52 static TEE_Result parse_clock_property(const void *fdt, int node) in parse_clock_property() argument
62 prop = fdt_getprop(fdt, node, "clocks", &len); in parse_clock_property()
79 fdt_get_name(fdt, node, NULL), res); in parse_clock_property()
94 static TEE_Result clk_probe_clock_provider_node(const void *fdt, int node) in clk_probe_clock_provider_node() argument
100 status = _fdt_get_status(fdt, node); in clk_probe_clock_provider_node()
105 if (!fdt_getprop(fdt, node, "#clock-cells", &len)) in clk_probe_clock_provider_node()
109 if (dt_driver_get_provider_by_node(node, DT_DRIVER_CLK)) in clk_probe_clock_provider_node()
113 res = parse_clock_property(fdt, node); in clk_probe_clock_provider_node()
117 return dt_driver_probe_device_by_node(fdt, node, DT_DRIVER_CLK); in clk_probe_clock_provider_node()
/optee_os-3.20.0/core/drivers/crypto/se050/glue/
A Di2c_stm32.c42 int node = 0; in dt_i2c_bus_config() local
54 node = fdt_path_offset(fdt, path); in dt_i2c_bus_config()
55 if (node < 0) in dt_i2c_bus_config()
58 cuint = fdt_getprop(fdt, node, "clock-frequency", NULL); in dt_i2c_bus_config()
64 return stm32_i2c_get_setup_from_fdt(fdt, node, init, pctrl, pcnt); in dt_i2c_bus_config()
/optee_os-3.20.0/core/drivers/
A Dstm32_gpio.c201 static int get_pinctrl_from_fdt(void *fdt, int node, in get_pinctrl_from_fdt() argument
212 cuint = fdt_getprop(fdt, node, "pinmux", &len); in get_pinctrl_from_fdt()
224 if (fdt_getprop(fdt, node, "bias-pull-up", NULL)) in get_pinctrl_from_fdt()
226 if (fdt_getprop(fdt, node, "bias-pull-down", NULL)) in get_pinctrl_from_fdt()
318 int node = 0; in stm32_pinctrl_fdt_get_pinctrl() local
322 if (node < 0) in stm32_pinctrl_fdt_get_pinctrl()
325 fdt_for_each_subnode(subnode, fdt, node) { in stm32_pinctrl_fdt_get_pinctrl()
350 int node = 0; in stm32_get_gpio_count() local
353 fdt_for_each_subnode(node, fdt, pinctrl_node) { in stm32_get_gpio_count()
357 cuint = fdt_getprop(fdt, node, "reg", NULL); in stm32_get_gpio_count()
[all …]
A Datmel_tcb.c57 static TEE_Result atmel_tcb_enable_clocks(const void *fdt, int node) in atmel_tcb_enable_clocks() argument
64 res = clk_dt_get_by_name(fdt, node, tcb_clocks[i], &clk); in atmel_tcb_enable_clocks()
152 static TEE_Result atmel_tcb_probe(const void *fdt, int node, in atmel_tcb_probe() argument
161 res = atmel_tcb_enable_clocks(fdt, node); in atmel_tcb_probe()
168 if (_fdt_get_status(fdt, node) != DT_STATUS_OK_SEC) in atmel_tcb_probe()
171 res = clk_dt_get_by_name(fdt, node, "slow_clk", &clk); in atmel_tcb_probe()
175 if (dt_map_dev(fdt, node, &tcb_base, &size, DT_MAP_AUTO) < 0) in atmel_tcb_probe()
A Datmel_rstc.c42 static TEE_Result atmel_rstc_probe(const void *fdt, int node, in atmel_rstc_probe() argument
48 if (_fdt_get_status(fdt, node) != DT_STATUS_OK_SEC) in atmel_rstc_probe()
53 if (dt_map_dev(fdt, node, &rstc_base, &size, DT_MAP_AUTO) < 0) in atmel_rstc_probe()
A Datmel_trng.c84 static TEE_Result trng_node_probe(const void *fdt, int node, in trng_node_probe() argument
87 int status = _fdt_get_status(fdt, node); in trng_node_probe()
97 res = clk_dt_get_by_index(fdt, node, 0, &clk); in trng_node_probe()
101 if (dt_map_dev(fdt, node, &trng_base, &size, DT_MAP_AUTO) < 0) in trng_node_probe()
A Dstm32_iwdg.c249 const void *fdt, int node) in stm32_iwdg_parse_fdt() argument
255 _fdt_fill_device_info(fdt, &dt_info, node); in stm32_iwdg_parse_fdt()
261 res = clk_dt_get_by_name(fdt, node, "pclk", &iwdg->clock); in stm32_iwdg_parse_fdt()
265 res = clk_dt_get_by_name(fdt, node, "lsi", &iwdg->clk_lsi); in stm32_iwdg_parse_fdt()
283 cuint = fdt_getprop(fdt, node, "timeout-sec", NULL); in stm32_iwdg_parse_fdt()
297 if (!fdt_getprop(fdt, node, "stm32,enable-on-stop", NULL)) in stm32_iwdg_parse_fdt()
300 if (!fdt_getprop(fdt, node, "stm32,enable-on-standby", NULL)) in stm32_iwdg_parse_fdt()
318 const void *fdt, int node) in stm32_iwdg_setup() argument
323 res = stm32_iwdg_parse_fdt(iwdg, fdt, node); in stm32_iwdg_setup()
377 static TEE_Result stm32_iwdg_probe(const void *fdt, int node, in stm32_iwdg_probe() argument
[all …]
A Dls_sec_mon.c87 uint32_t node = 0; in ls_sec_mon_init() local
96 node = fdt_node_offset_by_compatible(fdt, node, "fsl,lx2160a-sec-mon"); in ls_sec_mon_init()
97 if (node <= 0) { in ls_sec_mon_init()
102 if (dt_map_dev(fdt, node, &ctrl_base, &size, DT_MAP_AUTO) < 0) { in ls_sec_mon_init()
A Dstm32_rng.c228 int node = -1; in stm32_rng_init() local
239 node = fdt_node_offset_by_compatible(fdt, node, DT_RNG_COMPAT); in stm32_rng_init()
240 if (node < 0) in stm32_rng_init()
243 _fdt_fill_device_info(fdt, &dt_info, node); in stm32_rng_init()
270 res = clk_dt_get_by_index(fdt, node, 0, &stm32_rng->clock); in stm32_rng_init()
A Dstm32_uart.c132 struct stm32_uart_pdata *stm32_uart_init_from_dt_node(void *fdt, int node) in stm32_uart_init_from_dt_node() argument
140 _fdt_fill_device_info(fdt, &info, node); in stm32_uart_init_from_dt_node()
156 res = clk_dt_get_by_index(fdt, node, 0, &pd->clock); in stm32_uart_init_from_dt_node()
171 count = stm32_pinctrl_fdt_get_pinctrl(fdt, node, NULL, 0); in stm32_uart_init_from_dt_node()
180 stm32_pinctrl_fdt_get_pinctrl(fdt, node, pinctrl_cfg, count); in stm32_uart_init_from_dt_node()
A Datmel_saic.c214 static void saic_init_external(const void *fdt, int node) in saic_init_external() argument
223 external = fdt_getprop(fdt, node, "atmel,external-irqs", &len); in saic_init_external()
273 int node = -1; in atmel_saic_setup() local
282 node = fdt_node_offset_by_compatible(fdt, -1, "atmel,sama5d2-saic"); in atmel_saic_setup()
283 if (node < 0) in atmel_saic_setup()
286 ret = dt_map_dev(fdt, node, &saic.base, &size, DT_MAP_AUTO); in atmel_saic_setup()
295 saic_init_external(fdt, node); in atmel_saic_setup()
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/drivers/
A Dstm32mp1_pmic.c48 static int node = -FDT_ERR_BADOFFSET; in dt_get_pmic_node() local
50 if (node == -FDT_ERR_BADOFFSET) in dt_get_pmic_node()
53 return node; in dt_get_pmic_node()
61 int node = dt_get_pmic_node(fdt); in dt_pmic_status() local
63 if (node > 0) in dt_pmic_status()
64 return _fdt_get_status(fdt, node); in dt_pmic_status()
342 int node = 0; in save_cpu_supply_name() local
350 node = fdt_path_offset(fdt, "/cpus/cpu@0"); in save_cpu_supply_name()
351 if (node < 0) in save_cpu_supply_name()
359 if (node < 0) in save_cpu_supply_name()
[all …]

Completed in 32 milliseconds

123