Home
last modified time | relevance | path

Searched refs:smc_fid (Results 1 – 25 of 108) sorted by relevance

12345

/trusted-firmware-a-latest/services/std_svc/
Dstd_svc_setup.c96 static uintptr_t std_svc_smc_handler(uint32_t smc_fid, in std_svc_smc_handler() argument
105 if (((smc_fid >> FUNCID_CC_SHIFT) & FUNCID_CC_MASK) == SMC_32) { in std_svc_smc_handler()
118 if (is_psci_fid(smc_fid)) { in std_svc_smc_handler()
133 ret = psci_smc_handler(smc_fid, x1, x2, x3, x4, in std_svc_smc_handler()
150 if (is_spm_mm_fid(smc_fid)) { in std_svc_smc_handler()
151 return spm_mm_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in std_svc_smc_handler()
161 if (is_ffa_fid(smc_fid)) { in std_svc_smc_handler()
162 return spmd_ffa_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in std_svc_smc_handler()
168 if (is_sdei_fid(smc_fid)) { in std_svc_smc_handler()
169 return sdei_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in std_svc_smc_handler()
[all …]
/trusted-firmware-a-latest/plat/imx/common/
Dimx_sip_svc.c19 static uintptr_t imx_sip_handler(unsigned int smc_fid, in imx_sip_handler() argument
28 switch (smc_fid) { in imx_sip_handler()
30 SMC_RET1(handle, imx_kernel_entry_handler(smc_fid, x1, x2, x3, x4)); in imx_sip_handler()
34 SMC_RET1(handle, imx_soc_info_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
37 SMC_RET1(handle, imx_gpc_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
40 return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); in imx_sip_handler()
44 return dram_dvfs_handler(smc_fid, handle, x1, x2, x3); in imx_sip_handler()
46 SMC_RET1(handle, imx_gpc_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
51 return imx_srtc_handler(smc_fid, handle, x1, x2, x3, x4); in imx_sip_handler()
53 SMC_RET1(handle, imx_cpufreq_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
[all …]
Dimx_sip_handler.c38 int imx_srtc_handler(uint32_t smc_fid, in imx_srtc_handler() argument
70 int imx_cpufreq_handler(uint32_t smc_fid, in imx_cpufreq_handler() argument
93 int imx_wakeup_src_handler(uint32_t smc_fid, in imx_wakeup_src_handler() argument
112 int imx_otp_handler(uint32_t smc_fid, in imx_otp_handler() argument
120 switch (smc_fid) { in imx_otp_handler()
138 int imx_misc_set_temp_handler(uint32_t smc_fid, in imx_misc_set_temp_handler() argument
150 int imx_src_handler(uint32_t smc_fid, in imx_src_handler() argument
204 uint64_t imx_buildinfo_handler(uint32_t smc_fid, in imx_buildinfo_handler() argument
223 int imx_kernel_entry_handler(uint32_t smc_fid, in imx_kernel_entry_handler() argument
/trusted-firmware-a-latest/plat/imx/common/include/
Dimx_sip_svc.h52 int imx_kernel_entry_handler(uint32_t smc_fid, u_register_t x1,
56 int imx_soc_info_handler(uint32_t smc_fid, u_register_t x1,
58 int imx_gpc_handler(uint32_t smc_fid, u_register_t x1,
60 int dram_dvfs_handler(uint32_t smc_fid, void *handle,
64 int dram_dvfs_handler(uint32_t smc_fid, void *handle,
67 int imx_gpc_handler(uint32_t smc_fid, u_register_t x1,
72 int imx_src_handler(uint32_t smc_fid, u_register_t x1,
77 int imx_hab_handler(uint32_t smc_fid, u_register_t x1,
82 int imx_cpufreq_handler(uint32_t smc_fid, u_register_t x1,
84 int imx_srtc_handler(uint32_t smc_fid, void *handle, u_register_t x1,
[all …]
/trusted-firmware-a-latest/plat/xilinx/zynqmp/
Dsip_svc_setup.c73 static uintptr_t sip_svc_smc_handler(uint32_t smc_fid, in sip_svc_smc_handler() argument
83 smc_fid, x1, x2, x3, x4); in sip_svc_smc_handler()
85 if (smc_fid & SIP_FID_MASK) { in sip_svc_smc_handler()
86 WARN("SMC out of SiP assinged range: 0x%x\n", smc_fid); in sip_svc_smc_handler()
91 if (is_pm_fid(smc_fid)) { in sip_svc_smc_handler()
92 return pm_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler()
97 if (is_ipi_fid(smc_fid)) { in sip_svc_smc_handler()
98 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()
115 return custom_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in sip_svc_smc_handler()
[all …]
/trusted-firmware-a-latest/plat/xilinx/versal_net/
Dsip_svc_setup.c61 static uintptr_t sip_svc_smc_handler(uint32_t smc_fid, in sip_svc_smc_handler() argument
71 smc_fid, x1, x2, x3, x4); in sip_svc_smc_handler()
73 if (smc_fid & SIP_FID_MASK) { in sip_svc_smc_handler()
74 WARN("SMC out of SiP assinged range: 0x%x\n", smc_fid); in sip_svc_smc_handler()
79 if (is_pm_fid(smc_fid)) { in sip_svc_smc_handler()
80 return smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler()
85 if (is_ipi_fid(smc_fid)) { in sip_svc_smc_handler()
86 return ipi_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in sip_svc_smc_handler()
90 switch (smc_fid) { in sip_svc_smc_handler()
102 WARN("Unimplemented SiP Service Call: 0x%x\n", smc_fid); in sip_svc_smc_handler()
/trusted-firmware-a-latest/plat/arm/common/
Darm_sip_svc.c51 static uintptr_t arm_sip_handler(unsigned int smc_fid, in arm_sip_handler() argument
68 if (is_pmf_fid(smc_fid)) { in arm_sip_handler()
69 return pmf_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler()
77 if (is_debugfs_fid(smc_fid)) { in arm_sip_handler()
78 return debugfs_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler()
86 if (is_ethosn_fid(smc_fid)) { in arm_sip_handler()
87 return ethosn_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler()
93 switch (smc_fid) { in arm_sip_handler()
104 return (uintptr_t) arm_execution_state_switch(smc_fid, in arm_sip_handler()
144 return plat_arm_sip_handler(smc_fid, x1, x2, x3, x4, in arm_sip_handler()
Dplat_arm_sip_svc.c19 uintptr_t plat_arm_sip_handler(uint32_t smc_fid, in plat_arm_sip_handler() argument
34 switch (smc_fid) { in plat_arm_sip_handler()
51 return plat_spmd_logical_sp_smc_handler(smc_fid, x1, x2, x3, x4, in plat_arm_sip_handler()
54 WARN("Unimplemented ARM SiP Service Call: 0x%x\n", smc_fid); in plat_arm_sip_handler()
/trusted-firmware-a-latest/plat/xilinx/versal/
Dsip_svc_setup.c72 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) { 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()
114 WARN("Unimplemented SiP Service Call: 0x%x\n", smc_fid); in sip_svc_smc_handler()
/trusted-firmware-a-latest/plat/mediatek/common/
Dmtk_sip_svc.c25 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()
/trusted-firmware-a-latest/plat/nxp/common/sip_svc/
Dsip_svc.c26 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 …]
/trusted-firmware-a-latest/services/std_svc/trng/
Dtrng_main.c100 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()
/trusted-firmware-a-latest/plat/marvell/armada/a3k/common/
Da3700_sip_svc.c29 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()
/trusted-firmware-a-latest/plat/hisilicon/hikey/
Dhisi_sip_svc.c31 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()
/trusted-firmware-a-latest/lib/pmf/
Dpmf_smc.c17 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()
52 if (smc_fid == PMF_SMC_GET_TIMESTAMP_64) { in pmf_smc_handler()
65 WARN("Unimplemented PMF Call: 0x%x \n", smc_fid); in pmf_smc_handler()
/trusted-firmware-a-latest/plat/rockchip/common/
Drockchip_sip_svc.c23 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()
/trusted-firmware-a-latest/services/std_svc/spm/el3_spmc/
Dspmc_shared_mem.h54 long spmc_ffa_mem_send(uint32_t smc_fid,
64 long spmc_ffa_mem_frag_tx(uint32_t smc_fid,
74 long spmc_ffa_mem_retrieve_req(uint32_t smc_fid,
84 long spmc_ffa_mem_frag_rx(uint32_t smc_fid,
95 int spmc_ffa_mem_relinquish(uint32_t smc_fid,
105 int spmc_ffa_mem_reclaim(uint32_t smc_fid,
/trusted-firmware-a-latest/include/services/
Derrata_abi_svc.h30 bool is_errata_fid(uint32_t smc_fid);
32 static inline bool is_errata_fid(uint32_t smc_fid) in is_errata_fid() argument
38 uint32_t smc_fid,
Dspmd_svc.h15 uint64_t spmd_ffa_smc_handler(uint32_t smc_fid,
23 uint64_t spmd_smc_handler(uint32_t smc_fid,
31 uint64_t spmd_smc_switch_state(uint32_t smc_fid,
/trusted-firmware-a-latest/plat/hisilicon/hikey960/
Dhikey960_el3_spmc_logical_sp.c24 static uint64_t handle_ffa_direct_request(uint32_t smc_fid, bool secure_origin, in handle_ffa_direct_request() argument
32 if (smc_fid == FFA_MSG_SEND_DIRECT_REQ_SMC32) { in handle_ffa_direct_request()
34 } else if (smc_fid == FFA_MSG_SEND_DIRECT_REQ_SMC64) { in handle_ffa_direct_request()
/trusted-firmware-a-latest/bl1/
Dbl1_main.c245 u_register_t bl1_smc_handler(unsigned int smc_fid, in bl1_smc_handler() argument
265 if (is_fwu_fid(smc_fid)) { in bl1_smc_handler()
266 return bl1_fwu_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in bl1_smc_handler()
271 switch (smc_fid) { in bl1_smc_handler()
282 WARN("Unimplemented BL1 SMC Call: 0x%x\n", smc_fid); in bl1_smc_handler()
291 u_register_t bl1_smc_wrapper(uint32_t smc_fid, in bl1_smc_wrapper() argument
301 return bl1_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in bl1_smc_wrapper()
/trusted-firmware-a-latest/services/std_svc/rmmd/
Drmmd_main.c310 uint64_t rmmd_rmi_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, in rmmd_rmi_handler() argument
341 smc_fid |= (FUNCID_SVE_HINT_MASK << in rmmd_rmi_handler()
345 return rmmd_smc_forward(NON_SECURE, REALM, smc_fid, in rmmd_rmi_handler()
353 switch (smc_fid) { in rmmd_rmi_handler()
361 WARN("RMMD: Unsupported RMM call 0x%08x\n", smc_fid); in rmmd_rmi_handler()
418 static int gpt_to_gts_error(int error, uint32_t smc_fid, uint64_t address) in gpt_to_gts_error() argument
435 error, address, smc_fid); in gpt_to_gts_error()
442 uint64_t rmmd_rmm_el3_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, in rmmd_rmm_el3_handler() argument
463 switch (smc_fid) { in rmmd_rmm_el3_handler()
466 SMC_RET1(handle, gpt_to_gts_error(ret, smc_fid, x1)); in rmmd_rmm_el3_handler()
[all …]
/trusted-firmware-a-latest/services/std_svc/errata_abi/
Derrata_abi_main.c213 bool is_errata_fid(uint32_t smc_fid) in is_errata_fid() argument
215 return ((smc_fid == ARM_EM_VERSION) || in is_errata_fid()
216 (smc_fid == ARM_EM_FEATURES) || in is_errata_fid()
217 (smc_fid == ARM_EM_CPU_ERRATUM_FEATURES)); in is_errata_fid()
242 uintptr_t errata_abi_smc_handler(uint32_t smc_fid, u_register_t x1, in errata_abi_smc_handler() argument
248 switch (smc_fid) { in errata_abi_smc_handler()
276 WARN("Unimplemented Errata ABI Service Call: 0x%x\n", smc_fid); in errata_abi_smc_handler()
/trusted-firmware-a-latest/plat/marvell/armada/common/
Dmrvl_sip_svc.c73 uintptr_t mrvl_sip_smc_handler(uint32_t smc_fid, in mrvl_sip_smc_handler() argument
86 __func__, smc_fid, x1, x2, x3); in mrvl_sip_smc_handler()
88 if (is_comphy_fid(smc_fid)) { in mrvl_sip_smc_handler()
92 __func__, smc_fid, x1); in mrvl_sip_smc_handler()
101 __func__, smc_fid, x2); in mrvl_sip_smc_handler()
106 switch (smc_fid) { in mrvl_sip_smc_handler()
175 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in mrvl_sip_smc_handler()
/trusted-firmware-a-latest/plat/mediatek/mt8186/
Dplat_sip_calls.c16 uintptr_t mediatek_plat_sip_handler(uint32_t smc_fid, in mediatek_plat_sip_handler() argument
27 switch (smc_fid) { in mediatek_plat_sip_handler()
44 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in mediatek_plat_sip_handler()

12345