| /rk3399_ARM-atf/services/std_svc/ |
| H A D | std_svc_setup.c | 106 static uintptr_t std_svc_smc_handler(uint32_t smc_fid, in std_svc_smc_handler() argument 120 if (((smc_fid >> FUNCID_CC_SHIFT) & FUNCID_CC_MASK) == SMC_32) { in std_svc_smc_handler() 133 if (is_psci_fid(smc_fid)) { in std_svc_smc_handler() 148 ret = psci_smc_handler(smc_fid, x1, x2, x3, x4, in std_svc_smc_handler() 165 if (is_spm_mm_fid(smc_fid)) { in std_svc_smc_handler() 166 return spm_mm_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in std_svc_smc_handler() 176 if (is_ffa_fid(smc_fid)) { in std_svc_smc_handler() 177 return spmd_ffa_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in std_svc_smc_handler() 183 if (is_sdei_fid(smc_fid)) { in std_svc_smc_handler() 184 return sdei_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in std_svc_smc_handler() [all …]
|
| /rk3399_ARM-atf/plat/imx/common/ |
| H A D | imx_sip_svc.c | 24 static uintptr_t imx_sip_handler(unsigned int smc_fid, in imx_sip_handler() argument 33 switch (smc_fid) { in imx_sip_handler() 35 SMC_RET1(handle, imx_kernel_entry_handler(smc_fid, x1, x2, x3, x4)); in imx_sip_handler() 43 SMC_RET1(handle, imx_hifi_xrdc(smc_fid)); in imx_sip_handler() 46 return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); in imx_sip_handler() 50 SMC_RET1(handle, imx_soc_info_handler(smc_fid, x1, x2, x3)); in imx_sip_handler() 53 SMC_RET1(handle, imx_gpc_handler(smc_fid, x1, x2, x3)); in imx_sip_handler() 56 return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); in imx_sip_handler() 60 return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); in imx_sip_handler() 62 SMC_RET1(handle, imx_gpc_handler(smc_fid, x1, x2, x3)); in imx_sip_handler() [all …]
|
| H A D | imx_sip_handler.c | 48 int imx_srtc_handler(uint32_t smc_fid, in imx_srtc_handler() argument 85 int imx_cpufreq_handler(uint32_t smc_fid, in imx_cpufreq_handler() argument 108 int imx_wakeup_src_handler(uint32_t smc_fid, in imx_wakeup_src_handler() argument 127 int imx_otp_handler(uint32_t smc_fid, in imx_otp_handler() argument 135 switch (smc_fid) { in imx_otp_handler() 153 int imx_misc_set_temp_handler(uint32_t smc_fid, in imx_misc_set_temp_handler() argument 165 int imx_src_handler(uint32_t smc_fid, in imx_src_handler() argument 245 int imx_src_handler(uint32_t smc_fid, in imx_src_handler() argument 289 uint64_t imx_buildinfo_handler(uint32_t smc_fid, in imx_buildinfo_handler() argument 308 int imx_kernel_entry_handler(uint32_t smc_fid, in imx_kernel_entry_handler() argument [all …]
|
| /rk3399_ARM-atf/plat/imx/common/include/ |
| H A D | imx_sip_svc.h | 52 int imx_kernel_entry_handler(uint32_t smc_fid, u_register_t x1, 61 int imx_soc_info_handler(uint32_t smc_fid, u_register_t x1, 63 int imx_gpc_handler(uint32_t smc_fid, u_register_t x1, 66 int dram_dvfs_handler(uint32_t smc_fid, void *handle, 69 static inline int dram_dvfs_handler(uint32_t smc_fid, void *handle, in dram_dvfs_handler() argument 75 int imx_hab_handler(uint32_t smc_fid, u_register_t x1, 79 int dram_dvfs_handler(uint32_t smc_fid, void *handle, 82 int imx_gpc_handler(uint32_t smc_fid, u_register_t x1, 89 int imx_src_handler(uint32_t smc_fid, u_register_t x1, 94 int imx_hab_handler(uint32_t smc_fid, u_register_t x1, [all …]
|
| /rk3399_ARM-atf/services/el3/ |
| H A D | ven_el3_svc.c | 45 static uintptr_t ven_el3_svc_handler(unsigned int smc_fid, in ven_el3_svc_handler() argument 59 if (is_debugfs_fid(smc_fid)) { in ven_el3_svc_handler() 60 return debugfs_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in ven_el3_svc_handler() 71 if (is_pmf_fid(smc_fid)) { in ven_el3_svc_handler() 72 return pmf_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in ven_el3_svc_handler() 82 if (is_acs_fid(smc_fid)) { in ven_el3_svc_handler() 83 return plat_arm_acs_smc_handler(smc_fid, x1, x2, x3, x4, handle); in ven_el3_svc_handler() 87 switch (smc_fid) { in ven_el3_svc_handler() 101 return spm_mm_tpm_start_handler(smc_fid, x1, x2, x3, x4, cookie, in ven_el3_svc_handler() 106 WARN("Unimplemented vendor-specific EL3 Service call: 0x%x\n", smc_fid); in ven_el3_svc_handler()
|
| /rk3399_ARM-atf/plat/xilinx/zynqmp/ |
| H A D | sip_svc_setup.c | 72 static uintptr_t sip_svc_smc_handler(uint32_t smc_fid, in sip_svc_smc_handler() argument 82 smc_fid, x1, x2, x3, x4); in sip_svc_smc_handler() 84 if ((smc_fid & (uint32_t)SIP_FID_MASK) != 0U) { in sip_svc_smc_handler() 85 WARN("SMC out of SiP assinged range: 0x%x\n", smc_fid); in sip_svc_smc_handler() 90 if (is_pm_fid(smc_fid)) { in sip_svc_smc_handler() 91 return pm_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler() 96 if (is_ipi_fid(smc_fid)) { in sip_svc_smc_handler() 97 return ipi_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler() 101 switch (smc_fid) { in sip_svc_smc_handler() 110 return custom_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in sip_svc_smc_handler() [all …]
|
| /rk3399_ARM-atf/plat/xilinx/versal/ |
| H A D | sip_svc_setup.c | 72 static uintptr_t sip_svc_smc_handler(uint32_t smc_fid, in sip_svc_smc_handler() argument 82 smc_fid, x1, x2, x3, x4); in sip_svc_smc_handler() 84 if ((smc_fid & SIP_FID_MASK) != 0U) { in sip_svc_smc_handler() 85 WARN("SMC out of SiP assinged range: 0x%x\n", smc_fid); in sip_svc_smc_handler() 90 if (is_pm_fid(smc_fid)) { in sip_svc_smc_handler() 91 return pm_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler() 96 if (is_ipi_fid(smc_fid)) { in sip_svc_smc_handler() 97 return ipi_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler() 102 switch (smc_fid) { in sip_svc_smc_handler() 111 return custom_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in sip_svc_smc_handler() [all …]
|
| /rk3399_ARM-atf/plat/amd/versal2/ |
| H A D | sip_svc_setup.c | 63 static uintptr_t sip_svc_smc_handler(uint32_t smc_fid, in sip_svc_smc_handler() argument 73 smc_fid, x1, x2, x3, x4); in sip_svc_smc_handler() 75 if ((smc_fid & SIP_FID_MASK) != 0U) { in sip_svc_smc_handler() 76 WARN("SMC out of SiP assinged range: 0x%x\n", smc_fid); in sip_svc_smc_handler() 81 if (is_pm_fid(smc_fid)) { in sip_svc_smc_handler() 82 return smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in sip_svc_smc_handler() 86 if (is_ipi_fid(smc_fid)) { in sip_svc_smc_handler() 87 return ipi_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in sip_svc_smc_handler() 91 switch (smc_fid) { in sip_svc_smc_handler() 109 return custom_smc_handler(smc_fid, x1, x2, x3, x4, in sip_svc_smc_handler() [all …]
|
| /rk3399_ARM-atf/lib/pmf/ |
| H A D | pmf_smc.c | 17 uintptr_t pmf_smc_handler(unsigned int smc_fid, in pmf_smc_handler() argument 33 if (((smc_fid >> FUNCID_CC_SHIFT) & FUNCID_CC_MASK) == SMC_32) { in pmf_smc_handler() 39 if (smc_fid == PMF_SMC_GET_TIMESTAMP_32 || in pmf_smc_handler() 40 smc_fid == PMF_SMC_GET_TIMESTAMP_32_DEP) { in pmf_smc_handler() 53 if (smc_fid == PMF_SMC_GET_VERSION_32) { in pmf_smc_handler() 57 if (smc_fid == PMF_SMC_GET_TIMESTAMP_64 || in pmf_smc_handler() 58 smc_fid == PMF_SMC_GET_TIMESTAMP_64_DEP) { in pmf_smc_handler() 70 if (smc_fid == PMF_SMC_GET_VERSION_64) { in pmf_smc_handler() 75 WARN("Unimplemented PMF Call: 0x%x \n", smc_fid); in pmf_smc_handler()
|
| /rk3399_ARM-atf/plat/xilinx/versal_net/ |
| H A D | sip_svc_setup.c | 60 static uintptr_t sip_svc_smc_handler(uint32_t smc_fid, in sip_svc_smc_handler() argument 70 smc_fid, x1, x2, x3, x4); in sip_svc_smc_handler() 72 if ((smc_fid & SIP_FID_MASK) != 0U) { in sip_svc_smc_handler() 73 WARN("SMC out of SiP assinged range: 0x%x\n", smc_fid); in sip_svc_smc_handler() 78 if (is_pm_fid(smc_fid)) { in sip_svc_smc_handler() 79 return smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler() 84 if (is_ipi_fid(smc_fid)) { in sip_svc_smc_handler() 85 return ipi_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in sip_svc_smc_handler() 89 switch (smc_fid) { in sip_svc_smc_handler() 97 WARN("Unimplemented SiP Service Call: 0x%x\n", smc_fid); in sip_svc_smc_handler()
|
| /rk3399_ARM-atf/plat/arm/common/ |
| H A D | arm_sip_svc.c | 53 static uintptr_t arm_sip_handler(unsigned int smc_fid, in arm_sip_handler() argument 69 if (is_pmf_fid_deprecated(smc_fid)) { in arm_sip_handler() 72 return pmf_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler() 79 if (is_debugfs_fid_deprecated(smc_fid)) { in arm_sip_handler() 82 return debugfs_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler() 90 if (is_ethosn_fid(smc_fid)) { in arm_sip_handler() 91 return ethosn_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler() 97 switch (smc_fid) { in arm_sip_handler() 108 return (uintptr_t) arm_execution_state_switch(smc_fid, in arm_sip_handler() 148 return plat_arm_sip_handler(smc_fid, x1, x2, x3, x4, in arm_sip_handler()
|
| /rk3399_ARM-atf/plat/mediatek/common/ |
| H A D | mtk_sip_svc.c | 25 uintptr_t mediatek_plat_sip_handler(uint32_t smc_fid, in mediatek_plat_sip_handler() argument 34 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in mediatek_plat_sip_handler() 40 uintptr_t mediatek_sip_handler(uint32_t smc_fid, in mediatek_sip_handler() argument 52 clean_top_32b_of_param(smc_fid, &x1, &x2, &x3, &x4); in mediatek_sip_handler() 61 switch (smc_fid) { in mediatek_sip_handler() 83 return mediatek_plat_sip_handler(smc_fid, x1, x2, x3, x4, in mediatek_sip_handler() 91 uintptr_t sip_smc_handler(uint32_t smc_fid, in sip_smc_handler() argument 100 switch (smc_fid) { in sip_smc_handler() 116 return mediatek_sip_handler(smc_fid, x1, x2, x3, x4, in sip_smc_handler()
|
| /rk3399_ARM-atf/plat/nxp/common/sip_svc/ |
| H A D | sip_svc.c | 26 static uintptr_t nxp_plat_sip_handler(unsigned int smc_fid, in nxp_plat_sip_handler() argument 35 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in nxp_plat_sip_handler() 45 static void clean_top_32b_of_param(uint32_t smc_fid, in clean_top_32b_of_param() argument 52 if (GET_SMC_CC(smc_fid) == SMC_32) { in clean_top_32b_of_param() 61 static uintptr_t nxp_sip_handler(unsigned int smc_fid, in nxp_sip_handler() argument 75 clean_top_32b_of_param(smc_fid, &x1, &x2, &x3, &x4); in nxp_sip_handler() 87 switch (smc_fid & SMC_FUNC_MASK) { in nxp_sip_handler() 132 ret = prefetch_disable(smc_fid, x1); in nxp_sip_handler() 140 ret = el2_2_aarch32(smc_fid, x1, x2, x3); in nxp_sip_handler() 151 return nxp_plat_sip_handler(smc_fid, x1, x2, x3, x4, in nxp_sip_handler() [all …]
|
| /rk3399_ARM-atf/services/std_svc/trng/ |
| H A D | trng_main.c | 100 bool is_trng_fid(uint32_t smc_fid) in is_trng_fid() argument 102 return ((smc_fid == ARM_TRNG_VERSION) || in is_trng_fid() 103 (smc_fid == ARM_TRNG_FEATURES) || in is_trng_fid() 104 (smc_fid == ARM_TRNG_GET_UUID) || in is_trng_fid() 105 (smc_fid == ARM_TRNG_RND32) || in is_trng_fid() 106 (smc_fid == ARM_TRNG_RND64)); in is_trng_fid() 109 uintptr_t trng_smc_handler(uint32_t smc_fid, u_register_t x1, u_register_t x2, in trng_smc_handler() argument 117 switch (smc_fid) { in trng_smc_handler() 142 WARN("Unimplemented TRNG Service Call: 0x%x\n", smc_fid); in trng_smc_handler()
|
| /rk3399_ARM-atf/plat/marvell/armada/a3k/common/ |
| H A D | a3700_sip_svc.c | 29 uintptr_t mrvl_sip_smc_handler(uint32_t smc_fid, in mrvl_sip_smc_handler() argument 41 __func__, smc_fid, x1, x2); in mrvl_sip_smc_handler() 42 if (is_comphy_fid(smc_fid)) { in mrvl_sip_smc_handler() 45 __func__, smc_fid, x2); in mrvl_sip_smc_handler() 50 switch (smc_fid) { in mrvl_sip_smc_handler() 71 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in mrvl_sip_smc_handler()
|
| /rk3399_ARM-atf/plat/hisilicon/hikey/ |
| H A D | hisi_sip_svc.c | 31 static uintptr_t hisi_sip_handler(unsigned int smc_fid, in hisi_sip_handler() argument 46 if (is_pmf_fid(smc_fid)) { in hisi_sip_handler() 47 return pmf_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in hisi_sip_handler() 51 switch (smc_fid) { in hisi_sip_handler() 70 WARN("Unimplemented HISI SiP Service Call: 0x%x \n", smc_fid); in hisi_sip_handler()
|
| /rk3399_ARM-atf/plat/rockchip/common/ |
| H A D | rockchip_sip_svc.c | 23 uintptr_t rockchip_plat_sip_handler(uint32_t smc_fid, in rockchip_plat_sip_handler() argument 32 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in rockchip_plat_sip_handler() 39 uintptr_t sip_smc_handler(uint32_t smc_fid, in sip_smc_handler() argument 55 switch (smc_fid) { in sip_smc_handler() 71 return rockchip_plat_sip_handler(smc_fid, x1, x2, x3, x4, in sip_smc_handler()
|
| /rk3399_ARM-atf/services/std_svc/spm/el3_spmc/ |
| H A D | spmc_shared_mem.h | 57 long spmc_ffa_mem_send(uint32_t smc_fid, 67 long spmc_ffa_mem_frag_tx(uint32_t smc_fid, 77 long spmc_ffa_mem_retrieve_req(uint32_t smc_fid, 87 long spmc_ffa_mem_frag_rx(uint32_t smc_fid, 98 int spmc_ffa_mem_relinquish(uint32_t smc_fid, 108 int spmc_ffa_mem_reclaim(uint32_t smc_fid,
|
| /rk3399_ARM-atf/include/plat/arm/common/ |
| H A D | plat_acs_smc_handler.h | 14 #define is_acs_fid(smc_fid) (smc_fid == ARM_VEN_EL3_ACS_SMC_HANDLER) argument 16 uintptr_t plat_arm_acs_smc_handler(unsigned int smc_fid,
|
| /rk3399_ARM-atf/plat/rockchip/rk3588/ |
| H A D | plat_sip_calls.c | 14 uintptr_t rockchip_plat_sip_handler(uint32_t smc_fid, in rockchip_plat_sip_handler() argument 23 switch (smc_fid) { in rockchip_plat_sip_handler() 29 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in rockchip_plat_sip_handler()
|
| /rk3399_ARM-atf/plat/rockchip/rk3576/ |
| H A D | plat_sip_calls.c | 13 uintptr_t rockchip_plat_sip_handler(uint32_t smc_fid, in rockchip_plat_sip_handler() argument 22 switch (smc_fid) { in rockchip_plat_sip_handler() 28 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in rockchip_plat_sip_handler()
|
| /rk3399_ARM-atf/plat/rockchip/rk3568/ |
| H A D | plat_sip_calls.c | 17 uintptr_t rockchip_plat_sip_handler(uint32_t smc_fid, in rockchip_plat_sip_handler() argument 26 switch (smc_fid) { in rockchip_plat_sip_handler() 31 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in rockchip_plat_sip_handler()
|
| /rk3399_ARM-atf/plat/st/stm32mp2/services/ |
| H A D | stm32mp2_svc_setup.c | 23 void plat_svc_smc_handler(uint32_t smc_fid, u_register_t x1, in plat_svc_smc_handler() argument 29 switch (smc_fid) { in plat_svc_smc_handler() 42 WARN("Unimplemented STM32MP2 Service Call: 0x%x\n", smc_fid); in plat_svc_smc_handler()
|
| /rk3399_ARM-atf/bl1/ |
| H A D | bl1_main.c | 227 u_register_t bl1_smc_handler(unsigned int smc_fid, in bl1_smc_handler() argument 247 if (is_fwu_fid(smc_fid)) { in bl1_smc_handler() 248 return bl1_fwu_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in bl1_smc_handler() 253 switch (smc_fid) { in bl1_smc_handler() 264 WARN("Unimplemented BL1 SMC Call: 0x%x\n", smc_fid); in bl1_smc_handler() 273 u_register_t bl1_smc_wrapper(uint32_t smc_fid, in bl1_smc_wrapper() argument 283 return bl1_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in bl1_smc_wrapper()
|
| /rk3399_ARM-atf/plat/st/stm32mp1/services/ |
| H A D | stm32mp1_svc_setup.c | 25 void plat_svc_smc_handler(uint32_t smc_fid, u_register_t x1, in plat_svc_smc_handler() argument 31 switch (smc_fid) { in plat_svc_smc_handler() 48 WARN("Unimplemented STM32MP1 Service Call: 0x%x\n", smc_fid); in plat_svc_smc_handler()
|