Home
last modified time | relevance | path

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

1234

/trusted-firmware-a/services/std_svc/
A Dstd_svc_setup.c79 static uintptr_t std_svc_smc_handler(uint32_t smc_fid, in std_svc_smc_handler() argument
101 if (is_psci_fid(smc_fid)) { in std_svc_smc_handler()
116 ret = psci_smc_handler(smc_fid, x1, x2, x3, x4, in std_svc_smc_handler()
133 if (is_spm_mm_fid(smc_fid)) { in std_svc_smc_handler()
144 if (is_ffa_fid(smc_fid)) { in std_svc_smc_handler()
145 return spmd_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in std_svc_smc_handler()
151 if (is_sdei_fid(smc_fid)) { in std_svc_smc_handler()
158 if (is_trng_fid(smc_fid)) { in std_svc_smc_handler()
168 if (is_gtsi_fid(smc_fid)) { in std_svc_smc_handler()
175 if (is_pci_fid(smc_fid)) { in std_svc_smc_handler()
[all …]
/trusted-firmware-a/plat/imx/common/
A 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()
39 return imx_srtc_handler(smc_fid, handle, x1, x2, x3, x4); in imx_sip_handler()
41 SMC_RET1(handle, imx_cpufreq_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
44 SMC_RET1(handle, imx_wakeup_src_handler(smc_fid, x1, x2, x3)); in imx_sip_handler()
47 return imx_otp_handler(smc_fid, handle, x1, x2); in imx_sip_handler()
53 SMC_RET1(handle, imx_src_handler(smc_fid, x1, x2, x3, handle)); in imx_sip_handler()
57 SMC_RET1(handle, imx_buildinfo_handler(smc_fid, x1, x2, x3, x4)); in imx_sip_handler()
[all …]
A 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/plat/arm/common/
A Darm_sip_svc.c43 static uintptr_t arm_sip_handler(unsigned int smc_fid, in arm_sip_handler() argument
60 if (is_pmf_fid(smc_fid)) { in arm_sip_handler()
61 return pmf_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler()
69 if (is_debugfs_fid(smc_fid)) { in arm_sip_handler()
70 return debugfs_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler()
78 if (is_ethosn_fid(smc_fid)) { in arm_sip_handler()
79 return ethosn_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_sip_handler()
85 switch (smc_fid) { in arm_sip_handler()
96 return (uintptr_t) arm_execution_state_switch(smc_fid, in arm_sip_handler()
128 WARN("Unimplemented ARM SiP Service Call: 0x%x \n", smc_fid); in arm_sip_handler()
/trusted-firmware-a/plat/xilinx/zynqmp/
A Dsip_svc_setup.c56 uintptr_t sip_svc_smc_handler(uint32_t smc_fid, in sip_svc_smc_handler() argument
66 if (is_em_fid(smc_fid)) { in sip_svc_smc_handler()
67 return em_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler()
69 } else if (is_pm_fid(smc_fid)) { in sip_svc_smc_handler()
71 return pm_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler()
76 if (is_ipi_fid(smc_fid)) { in sip_svc_smc_handler()
77 return ipi_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler()
81 switch (smc_fid) { in sip_svc_smc_handler()
93 WARN("Unimplemented SiP Service Call: 0x%x\n", smc_fid); in sip_svc_smc_handler()
/trusted-firmware-a/plat/imx/common/include/
A Dimx_sip_svc.h37 int imx_kernel_entry_handler(uint32_t smc_fid, u_register_t x1,
41 int imx_soc_info_handler(uint32_t smc_fid, u_register_t x1,
46 int imx_src_handler(uint32_t smc_fid, u_register_t x1,
51 int imx_cpufreq_handler(uint32_t smc_fid, u_register_t x1,
53 int imx_srtc_handler(uint32_t smc_fid, void *handle, u_register_t x1,
55 int imx_wakeup_src_handler(uint32_t smc_fid, u_register_t x1,
57 int imx_otp_handler(uint32_t smc_fid, void *handle,
59 int imx_misc_set_temp_handler(uint32_t smc_fid, u_register_t x1,
63 uint64_t imx_buildinfo_handler(uint32_t smc_fid, u_register_t x1,
/trusted-firmware-a/plat/mediatek/common/
A 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/plat/nxp/common/sip_svc/
A 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()
166 switch (smc_fid & SMC_FUNC_MASK) { in sip_smc_handler()
[all …]
/trusted-firmware-a/plat/mediatek/common/custom/
A Doem_svc.c37 uintptr_t oem_smc_handler(uint32_t smc_fid, in oem_smc_handler() argument
46 WARN("Unimplemented OEM Call: 0x%x\n", smc_fid); in oem_smc_handler()
54 uintptr_t oem_svc_smc_handler(uint32_t smc_fid, in oem_svc_smc_handler() argument
66 if (is_oem_fid(smc_fid)) { in oem_svc_smc_handler()
67 return oem_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in oem_svc_smc_handler()
71 switch (smc_fid) { in oem_svc_smc_handler()
87 WARN("Unimplemented OEM Service Call: 0x%x\n", smc_fid); in oem_svc_smc_handler()
/trusted-firmware-a/plat/xilinx/versal/
A Dsip_svc_setup.c56 uintptr_t sip_svc_smc_handler(uint32_t smc_fid, in sip_svc_smc_handler() argument
66 if (is_pm_fid(smc_fid)) { in sip_svc_smc_handler()
67 return pm_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler()
72 if (is_ipi_fid(smc_fid)) { in sip_svc_smc_handler()
73 return ipi_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, in sip_svc_smc_handler()
78 switch (smc_fid) { in sip_svc_smc_handler()
90 WARN("Unimplemented SiP Service Call: 0x%x\n", smc_fid); in sip_svc_smc_handler()
/trusted-firmware-a/services/std_svc/trng/
A 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()
139 smc_fid); in trng_smc_handler()
/trusted-firmware-a/plat/marvell/armada/a3k/common/
A 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/plat/hisilicon/hikey/
A 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/lib/pmf/
A Dpmf_smc.c17 uintptr_t pmf_smc_handler(unsigned int smc_fid, in pmf_smc_handler() argument
29 if (((smc_fid >> FUNCID_CC_SHIFT) & FUNCID_CC_MASK) == SMC_32) { in pmf_smc_handler()
35 if (smc_fid == PMF_SMC_GET_TIMESTAMP_32) { in pmf_smc_handler()
48 if (smc_fid == PMF_SMC_GET_TIMESTAMP_64) { in pmf_smc_handler()
61 WARN("Unimplemented PMF Call: 0x%x \n", smc_fid); in pmf_smc_handler()
/trusted-firmware-a/plat/rockchip/common/
A 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/services/arm_arch_svc/
A Darm_arch_svc_setup.c110 static uintptr_t arm_arch_svc_smc_handler(uint32_t smc_fid, in arm_arch_svc_smc_handler() argument
119 switch (smc_fid) { in arm_arch_svc_smc_handler()
151 if (is_rmi_fid(smc_fid)) { in arm_arch_svc_smc_handler()
152 return rmmd_rmi_handler(smc_fid, x1, x2, x3, x4, cookie, in arm_arch_svc_smc_handler()
157 smc_fid); in arm_arch_svc_smc_handler()
/trusted-firmware-a/bl1/
A Dbl1_main.c229 u_register_t bl1_smc_handler(unsigned int smc_fid, in bl1_smc_handler() argument
249 if (is_fwu_fid(smc_fid)) { in bl1_smc_handler()
250 return bl1_fwu_smc_handler(smc_fid, x1, x2, x3, x4, cookie, in bl1_smc_handler()
255 switch (smc_fid) { in bl1_smc_handler()
266 WARN("Unimplemented BL1 SMC Call: 0x%x\n", smc_fid); in bl1_smc_handler()
275 u_register_t bl1_smc_wrapper(uint32_t smc_fid, in bl1_smc_wrapper() argument
285 return bl1_smc_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in bl1_smc_wrapper()
/trusted-firmware-a/services/std_svc/rmmd/
A Drmmd_main.c51 static uint64_t rmmd_smc_forward(uint32_t smc_fid, uint32_t src_sec_state,
194 static uint64_t rmmd_smc_forward(uint32_t smc_fid, uint32_t src_sec_state, in rmmd_smc_forward() argument
208 SMC_RET8(cm_get_context(dst_sec_state), smc_fid, x1, x2, x3, x4, in rmmd_smc_forward()
218 uint64_t rmmd_rmi_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, in rmmd_rmi_handler() argument
240 return rmmd_smc_forward(smc_fid, NON_SECURE, REALM, in rmmd_rmi_handler()
246 switch (smc_fid) { in rmmd_rmi_handler()
257 WARN("RMM: Unsupported RMM call 0x%08x\n", smc_fid); in rmmd_rmi_handler()
322 uint64_t rmmd_gtsi_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, in rmmd_gtsi_handler() argument
336 switch (smc_fid) { in rmmd_gtsi_handler()
344 WARN("RMM: Unsupported GTF call 0x%08x\n", smc_fid); in rmmd_gtsi_handler()
/trusted-firmware-a/drivers/arm/ethosn/
A Dethosn_smc.c113 uintptr_t ethosn_smc_handler(uint32_t smc_fid, in ethosn_smc_handler() argument
123 const uint32_t fid = smc_fid & FUNCID_NUM_MASK; in ethosn_smc_handler()
126 if ((GET_SMC_TYPE(smc_fid) != SMC_TYPE_FAST) || in ethosn_smc_handler()
127 (GET_SMC_OEN(smc_fid) != OEN_SIP_START)) { in ethosn_smc_handler()
132 if (GET_SMC_CC(smc_fid) == SMC_32) { in ethosn_smc_handler()
139 if (!is_ethosn_fid(smc_fid)) { in ethosn_smc_handler()
/trusted-firmware-a/plat/marvell/armada/common/
A 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/services/std_svc/spm_mm/
A Dspm_mm_main.c187 uint64_t spm_mm_sp_call(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3) in spm_mm_sp_call() argument
198 write_ctx_reg(get_gpregs_ctx(cpu_ctx), CTX_GPREG_X0, smc_fid); in spm_mm_sp_call()
216 static uint64_t mm_communicate(uint32_t smc_fid, uint64_t mm_cookie, in mm_communicate() argument
253 rc = spm_mm_sp_call(smc_fid, comm_buffer_address, comm_size_address, in mm_communicate()
272 uint64_t spm_mm_smc_handler(uint32_t smc_fid, in spm_mm_smc_handler() argument
295 switch (smc_fid) { in spm_mm_smc_handler()
333 switch (smc_fid) { in spm_mm_smc_handler()
340 return mm_communicate(smc_fid, x1, x2, x3, handle); in spm_mm_smc_handler()
/trusted-firmware-a/include/services/
A Dtrng_svc.h35 bool is_trng_fid(uint32_t smc_fid);
41 static inline bool is_trng_fid(uint32_t smc_fid) in is_trng_fid() argument
47 uint32_t smc_fid,
/trusted-firmware-a/plat/xilinx/common/ipi_mailbox_service/
A Dipi_mailbox_svc.c66 uint64_t ipi_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, in ipi_smc_handler() argument
78 if (SMC_ENTITY(smc_fid) >= SMC_ENTITY_TRUSTED_APP) in ipi_smc_handler()
88 switch (SMC_FUNCTION(smc_fid)) { in ipi_smc_handler()
130 WARN("Unimplemented IPI service call: 0x%x\n", smc_fid); in ipi_smc_handler()
/trusted-firmware-a/plat/nvidia/tegra/common/
A Dtegra_sip_calls.c32 uintptr_t tegra_sip_handler(uint32_t smc_fid, in tegra_sip_handler() argument
45 err = plat_sip_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in tegra_sip_handler()
52 switch (smc_fid) { in tegra_sip_handler()
141 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in tegra_sip_handler()
/trusted-firmware-a/plat/mediatek/mt8195/
A Dplat_sip_calls.c16 uintptr_t mediatek_plat_sip_handler(uint32_t smc_fid, in mediatek_plat_sip_handler() argument
28 switch (smc_fid) { in mediatek_plat_sip_handler()
45 ERROR("%s: unhandled SMC (0x%x)\n", __func__, smc_fid); in mediatek_plat_sip_handler()

Completed in 26 milliseconds

1234