Home
last modified time | relevance | path

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

/optee_os/core/kernel/
H A Ddt_driver.c57 uint32_t phandle; member
132 uint32_t phandle = 0; in dt_driver_register_provider() local
143 phandle = fdt_get_phandle(fdt, nodeoffset); in dt_driver_register_provider()
144 if (phandle == (uint32_t)-1) { in dt_driver_register_provider()
157 prv->phandle = phandle; in dt_driver_register_provider()
247 dt_driver_get_provider_by_phandle(uint32_t phandle, enum dt_driver_type type) in dt_driver_get_provider_by_phandle() argument
252 if (prv->phandle == phandle && prv->type == type) in dt_driver_get_provider_by_phandle()
316 uint32_t phandle, in dt_driver_device_from_node_idx_prop_phandle() argument
336 prv = dt_driver_get_provider_by_phandle(phandle, type); in dt_driver_device_from_node_idx_prop_phandle()
344 phandle_node = fdt_node_offset_by_phandle(fdt, phandle); in dt_driver_device_from_node_idx_prop_phandle()
[all …]
H A Dinterrupt.c302 uint32_t phandle = 0; in get_legacy_interrupt_by_index() local
330 phandle = fdt32_to_cpu(prop[0]); in get_legacy_interrupt_by_index()
336 phandle, in get_legacy_interrupt_by_index()
H A Ddt.c475 uint32_t phandle; member
557 int fdt_find_cached_node_phandle(const void *fdt, uint32_t phandle, in fdt_find_cached_node_phandle() argument
567 if (dt_node_cache->array[n].phandle == phandle) in fdt_find_cached_node_phandle()
616 .phandle = fdt_get_phandle(dt_node_cache->fdt, node_offset), in add_cached_node()
/optee_os/core/lib/libfdt/
H A Dfdt_overlay.c61 uint32_t phandle; in overlay_get_target() local
66 phandle = overlay_get_target_phandle(fdto, fragment); in overlay_get_target()
67 if (phandle == (uint32_t)-1) in overlay_get_target()
71 if (!phandle) { in overlay_get_target()
79 ret = fdt_node_offset_by_phandle(fdt, phandle); in overlay_get_target()
374 uint32_t phandle; in overlay_fixup_one_phandle() local
391 phandle = fdt_get_phandle(fdt, symbol_off); in overlay_fixup_one_phandle()
392 if (!phandle) in overlay_fixup_one_phandle()
401 phandle_prop = cpu_to_fdt32(phandle); in overlay_fixup_one_phandle()
H A Dfdt_ro.c104 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle) in fdt_find_max_phandle() argument
126 if (phandle) in fdt_find_max_phandle()
127 *phandle = max; in fdt_find_max_phandle()
132 int fdt_generate_phandle(const void *fdt, uint32_t *phandle) in fdt_generate_phandle() argument
144 if (phandle) in fdt_generate_phandle()
145 *phandle = max + 1; in fdt_generate_phandle()
664 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument
668 if ((phandle == 0) || (phandle == -1)) in fdt_node_offset_by_phandle()
671 if (fdt_find_cached_node_phandle(fdt, phandle, &offset) == 0) in fdt_node_offset_by_phandle()
685 if (fdt_get_phandle(fdt, offset) == phandle) in fdt_node_offset_by_phandle()
/optee_os/core/include/kernel/
H A Ddt_driver.h198 uint32_t phandle,
226 dt_driver_get_provider_by_phandle(uint32_t phandle, enum dt_driver_type type);
H A Ddt.h541 int fdt_find_cached_node_phandle(const void *fdt, uint32_t phandle,
560 uint32_t phandle __unused, in fdt_find_cached_node_phandle()
/optee_os/core/drivers/clk/
H A Dclk_dt.c62 uint32_t phandle = 0; in parse_clock_property() local
72 phandle = fdt32_to_cpu(prop[idx]); in parse_clock_property()
74 parent_node = fdt_node_offset_by_phandle(fdt, phandle); in parse_clock_property()
/optee_os/core/lib/libfdt/include/
H A Dlibfdt.h363 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle);
382 uint32_t phandle; in fdt_get_max_phandle() local
385 err = fdt_find_max_phandle(fdt, &phandle); in fdt_get_max_phandle()
389 return phandle; in fdt_get_max_phandle()
405 int fdt_generate_phandle(const void *fdt, uint32_t *phandle);
999 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle);
/optee_os/core/drivers/
H A Dstm32_bsec.c626 uint32_t phandle; member
676 TEE_Result stm32_bsec_find_otp_by_phandle(const uint32_t phandle, in stm32_bsec_find_otp_by_phandle() argument
683 if (!phandle) in stm32_bsec_find_otp_by_phandle()
687 if (nvmem_layout[i].phandle != phandle) in stm32_bsec_find_otp_by_phandle()
694 DMSG("nvmem %u not found", phandle); in stm32_bsec_find_otp_by_phandle()
849 layout_cell->phandle = fdt_get_phandle(fdt, node); in save_dt_nvmem_layout()
850 assert(layout_cell->phandle != (uint32_t)-1); in save_dt_nvmem_layout()
H A Dstm32_cpu_opp.c446 uint32_t phandle = 0; in stm32_cpu_init() local
463 phandle = fdt32_to_cpu(*cuint); in stm32_cpu_init()
464 opp_node = fdt_node_offset_by_phandle(fdt, phandle); in stm32_cpu_init()
/optee_os/core/drivers/regulator/
H A Dregulator_dt.c146 uint32_t phandle = 0; in regulator_register_provider() local
148 phandle = fdt_get_phandle(fdt, node); in regulator_register_provider()
149 switch (phandle) { in regulator_register_provider()
/optee_os/core/include/drivers/
H A Dstm32_bsec.h190 TEE_Result stm32_bsec_find_otp_by_phandle(const uint32_t phandle,
/optee_os/core/arch/arm/plat-stm32mp1/
H A Dplat_tzc400.c316 uint32_t phandle = fdt32_to_cpu(*(conf_list + i)); in add_node_memory_regions() local
323 pnode = fdt_node_offset_by_phandle(fdt, phandle); in add_node_memory_regions()
/optee_os/core/drivers/firewall/
H A Dstm32_risaf.c773 uint32_t phandle = 0; in stm32_risaf_probe() local
778 phandle = fdt32_to_cpu(*(conf_list + i)); in stm32_risaf_probe()
779 pnode = fdt_node_offset_by_phandle(fdt, phandle); in stm32_risaf_probe()
H A Dstm32_risab.c497 uint32_t phandle = fdt32_to_cpu(mem_regions[i]); in parse_dt() local
502 mem_reg_node = fdt_node_offset_by_phandle(fdt, phandle); in parse_dt()
/optee_os/core/arch/arm/dts/
H A Dsama7g5.dtsi133 sfr-phandle = <&sfr>;
148 sfr-phandle = <&sfr>;
157 sfr-phandle = <&sfr>;
166 sfr-phandle = <&sfr>;