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
146 #define SMCCC_RET_NOT_SUPPORTED -1
147 #define SMCCC_RET_NOT_REQUIRED -2
148 #define SMCCC_RET_INVALID_PARAMETER -3
184 * struct arm_smccc_res - Result from SMC/HVC call
185 * @a0-a3 result values from registers 0 to 3
195 * struct arm_smccc_quirk - Contains quirk information
196 * @id: quirk identification
198 * @a6: Qualcomm quirk entry for returning post-smc call contents of a6
201 int id; member
208 * __arm_smccc_smc() - make SMC calls
209 * @a0-a7: arguments passed in registers 0 to 7
213 * This function is used to make SMC calls following SMC Calling Convention.
215 * to the SMC instruction. The return values are updated with the content
216 * from register 0 to 3 on return from the SMC instruction. An optional
225 * __arm_smccc_hvc() - make HVC calls
226 * @a0-a7: arguments passed in registers 0 to 7
230 * This function is used to make HVC calls following SMC Calling
252 #define SMCCC_SMC_INST "smc #0"
256 #include <asm/opcodes-sec.h>
257 #include <asm/opcodes-virt.h>
354 * arm_smccc_1_1_smc() - make an SMCCC v1.1 compliant SMC call
359 * @a0-a7: arguments passed in registers 0 to 7
362 * This macro is used to make SMC calls following SMC Calling Convention v1.1.
364 * to the SMC instruction. The return values are updated with the content
365 * from register 0 to 3 on return from the SMC instruction if not NULL.
370 * arm_smccc_1_1_hvc() - make an SMCCC v1.1 compliant HVC call
375 * @a0-a7: arguments passed in registers 0 to 7
378 * This macro is used to make HVC calls following SMC Calling Convention v1.1.
395 ___res->a0 = SMCCC_RET_NOT_SUPPORTED; \
399 * arm_smccc_1_1_invoke() - make an SMCCC v1.1 compliant call
404 * @a0-a7: arguments passed in registers 0 to 7
407 * This macro will make either an HVC call or an SMC call depending on the
408 * current SMCCC conduit. If no valid conduit is available then -1