Lines Matching +full:smc +full:- +full:id

1 /* SPDX-License-Identifier: GPL-2.0-only */
12 * This file provides common defines for ARM SMC Calling Convention as
16 * This code is up-to-date with version DEN 0028 C
110 #define SMCCC_RET_NOT_SUPPORTED -1
111 #define SMCCC_RET_NOT_REQUIRED -2
112 #define SMCCC_RET_INVALID_PARAMETER -3
148 * struct arm_smccc_res - Result from SMC/HVC call
149 * @a0-a3 result values from registers 0 to 3
159 * struct arm_smccc_quirk - Contains quirk information
160 * @id: quirk identification
162 * @a6: Qualcomm quirk entry for returning post-smc call contents of a6
165 int id; member
172 * __arm_smccc_smc() - make SMC calls
173 * @a0-a7: arguments passed in registers 0 to 7
177 * This function is used to make SMC calls following SMC Calling Convention.
179 * to the SMC instruction. The return values are updated with the content
180 * from register 0 to 3 on return from the SMC instruction. An optional
189 * __arm_smccc_hvc() - make HVC calls
190 * @a0-a7: arguments passed in registers 0 to 7
194 * This function is used to make HVC calls following SMC Calling
216 #define SMCCC_SMC_INST "smc #0"
220 #include <asm/opcodes-sec.h>
221 #include <asm/opcodes-virt.h>
318 * arm_smccc_1_1_smc() - make an SMCCC v1.1 compliant SMC call
323 * @a0-a7: arguments passed in registers 0 to 7
326 * This macro is used to make SMC calls following SMC Calling Convention v1.1.
328 * to the SMC instruction. The return values are updated with the content
329 * from register 0 to 3 on return from the SMC instruction if not NULL.
334 * arm_smccc_1_1_hvc() - make an SMCCC v1.1 compliant HVC call
339 * @a0-a7: arguments passed in registers 0 to 7
342 * This macro is used to make HVC calls following SMC Calling Convention v1.1.
359 ___res->a0 = SMCCC_RET_NOT_SUPPORTED; \
363 * arm_smccc_1_1_invoke() - make an SMCCC v1.1 compliant call
368 * @a0-a7: arguments passed in registers 0 to 7
371 * This macro will make either an HVC call or an SMC call depending on the
372 * current SMCCC conduit. If no valid conduit is available then -1