Home
last modified time | relevance | path

Searched refs:a0 (Results 1 – 25 of 53) sorted by relevance

123

/optee_os/core/arch/arm/tee/
A Dentry_fast.c21 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_get_shm_config()
62 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_fastcall_l2cc_mutex()
88 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_exchange_capabilities()
126 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_disable_shm_cache()
134 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_enable_shm_cache()
143 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_boot_secondary()
153 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_get_thread_count()
171 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_vm_created()
202 args->a0 = OPTEE_SMC_RETURN_OK; in get_async_notif_value()
217 switch (args->a0) { in __tee_entry_fast()
[all …]
/optee_os/core/arch/arm/sm/
A Dpsci.c142 uint32_t smc_fid = args->a0; in tee_psci_handler()
149 args->a0 = psci_version(); in tee_psci_handler()
155 args->a0 = psci_cpu_off(); in tee_psci_handler()
158 args->a0 = psci_cpu_on(a1, a2, a3); in tee_psci_handler()
161 args->a0 = psci_affinity_info(a1, a2); in tee_psci_handler()
164 args->a0 = psci_migrate(a1); in tee_psci_handler()
167 args->a0 = psci_migrate_info_type(); in tee_psci_handler()
170 args->a0 = psci_migrate_info_up_cpu(); in tee_psci_handler()
183 args->a0 = psci_features(a1); in tee_psci_handler()
186 args->a0 = psci_system_reset2(a1, a2); in tee_psci_handler()
[all …]
A Dsm.c25 uint32_t smc_fid = args->a0; in smc_arch_handler()
30 args->a0 = SMCCC_V_1_1; in smc_arch_handler()
36 args->a0 = ARM_SMCCC_RET_SUCCESS; in smc_arch_handler()
39 args->a0 = ARM_SMCCC_RET_NOT_SUPPORTED; in smc_arch_handler()
44 args->a0 = ARM_SMCCC_RET_NOT_SUPPORTED; in smc_arch_handler()
48 args->a0 = ARM_SMCCC_RET_NOT_REQUIRED; in smc_arch_handler()
51 args->a0 = OPTEE_SMC_RETURN_UNKNOWN_FUNCTION; in smc_arch_handler()
74 switch (OPTEE_SMC_OWNER_NUM(args->a0)) { in sm_from_nsec()
A Dstd_smc.c46 uint32_t smc_fid = args->a0; in smc_std_handler()
56 args->a0 = PSCI_NUM_CALLS; in smc_std_handler()
59 args->a0 = uuid.timeLow; in smc_std_handler()
71 args->a0 = STD_SVC_VERSION_MAJOR; in smc_std_handler()
75 args->a0 = OPTEE_SMC_RETURN_UNKNOWN_FUNCTION; in smc_std_handler()
/optee_os/core/arch/arm/plat-stm32mp1/nsec-service/
A Dstm32mp1_svc_setup.c19 switch (OPTEE_SMC_FUNC_NUM(args->a0)) { in sip_service()
21 args->a0 = STM32_SIP_SVC_FUNCTION_COUNT; in sip_service()
24 args->a0 = STM32_SIP_SVC_VERSION_MAJOR; in sip_service()
28 args->a0 = STM32_SIP_SVC_UID_0; in sip_service()
36 args->a0 = STM32_SIP_SVC_OK; in sip_service()
38 args->a0 = ARM_SMCCC_RET_NOT_SUPPORTED; in sip_service()
44 args->a0 = STM32_SIP_SVC_OK; in sip_service()
46 args->a0 = ARM_SMCCC_RET_NOT_SUPPORTED; in sip_service()
63 if (!OPTEE_SMC_IS_FAST_CALL(args->a0)) in sm_platform_handler()
66 switch (OPTEE_SMC_OWNER_NUM(args->a0)) { in sm_platform_handler()
A Dbsec_svc.c24 args->a0 = STM32_SIP_SVC_INVALID_PARAMS; in bsec_main()
62 args->a0 = STM32_SIP_SVC_OK; in bsec_main()
64 args->a0 = STM32_SIP_SVC_INVALID_PARAMS; in bsec_main()
66 args->a0 = STM32_SIP_SVC_FAILED; in bsec_main()
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/
A Dprimitives.h202 { return (a64 == b64) && (a0 == b0); } in softfloat_eq128()
249 z.v64 = a64<<count | a0>>(-count & 63); in softfloat_shortShiftLeft128()
250 z.v0 = a0<<count; in softfloat_shortShiftLeft128()
271 z.v0 = a64<<(-count & 63) | a0>>count; in softfloat_shortShiftRight128()
321 a64<<(negCount & 63) | a0>>count in softfloat_shortShiftRightJam128()
346 z.v.v0 = a64<<(negCount & 63) | a0>>count; in softfloat_shortShiftRightJam128Extra()
466 z.v0 = a0 + b0; in softfloat_add128()
467 z.v64 = a64 + b64 + (z.v0 < a0); in softfloat_add128()
501 z.v0 = a0 - b0; in softfloat_sub128()
503 z.v64 -= (a0 < b0); in softfloat_sub128()
[all …]
/optee_os/core/arch/arm/plat-ti/
A Dsm_platform_handler_a9.c48 uint16_t sip_func = OPTEE_SMC_FUNC_NUM(smc_args->a0); in ti_sip_handler()
57 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
61 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
66 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
70 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
74 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
79 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
83 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
87 smc_args->a0 = OPTEE_SMC_RETURN_EBADCMD; in ti_sip_handler()
A Dsm_platform_handler_a15.c39 uint16_t sip_func = OPTEE_SMC_FUNC_NUM(smc_args->a0); in ti_sip_handler()
45 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
50 smc_args->a0 = OPTEE_SMC_RETURN_OK; in ti_sip_handler()
54 smc_args->a0 = OPTEE_SMC_RETURN_EBADCMD; in ti_sip_handler()
/optee_os/core/arch/arm/plat-imx/
A Dsm_platform_handler.c15 uint16_t sip_func = OPTEE_SMC_FUNC_NUM(smc_args->a0); in imx_sip_handler()
20 smc_args->a0 = pl310_enable(); in imx_sip_handler()
23 smc_args->a0 = pl310_disable(); in imx_sip_handler()
26 smc_args->a0 = pl310_enable_writeback(); in imx_sip_handler()
29 smc_args->a0 = pl310_disable_writeback(); in imx_sip_handler()
32 smc_args->a0 = pl310_enable_wflz(); in imx_sip_handler()
37 smc_args->a0 = OPTEE_SMC_RETURN_EBADCMD; in imx_sip_handler()
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/
A Ds_shiftRightJam128.c45 softfloat_shiftRightJam128( uint64_t a64, uint64_t a0, uint_fast32_t count ) in softfloat_shiftRightJam128() argument
54 a64<<(negCount & 63) | a0>>count in softfloat_shiftRightJam128()
55 | ((uint64_t) (a0<<(negCount & 63)) != 0); in softfloat_shiftRightJam128()
61 | (((a64 & (((uint_fast64_t) 1<<(count & 63)) - 1)) | a0) in softfloat_shiftRightJam128()
63 : ((a64 | a0) != 0); in softfloat_shiftRightJam128()
A Ds_shiftRightJam128Extra.c46 uint64_t a64, uint64_t a0, uint64_t extra, uint_fast32_t count ) in softfloat_shiftRightJam128Extra() argument
54 z.v.v0 = a64<<(negCount & 63) | a0>>count; in softfloat_shiftRightJam128Extra()
55 z.extra = a0<<(negCount & 63); in softfloat_shiftRightJam128Extra()
60 z.extra = a0; in softfloat_shiftRightJam128Extra()
62 extra |= a0; in softfloat_shiftRightJam128Extra()
A Ds_mul64To128.c46 uint32_t a32, a0, b32, b0; in softfloat_mul64To128() local
51 a0 = a; in softfloat_mul64To128()
54 z.v0 = (uint_fast64_t) a0 * b0; in softfloat_mul64To128()
56 mid = mid1 + (uint_fast64_t) a0 * b32; in softfloat_mul64To128()
A Ds_mul64To128M.c46 uint32_t a32, a0, b32, b0; in softfloat_mul64To128M() local
50 a0 = a; in softfloat_mul64To128M()
53 z0 = (uint64_t) a0 * b0; in softfloat_mul64To128M()
55 mid = mid1 + (uint64_t) a0 * b32; in softfloat_mul64To128M()
A Ds_shortShiftLeft128.c45 softfloat_shortShiftLeft128( uint64_t a64, uint64_t a0, uint_fast8_t count ) in softfloat_shortShiftLeft128() argument
49 z.v64 = a64<<count | a0>>(-count & 63); in softfloat_shortShiftLeft128()
50 z.v0 = a0<<count; in softfloat_shortShiftLeft128()
A Ds_sub128.c45 softfloat_sub128( uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0 ) in softfloat_sub128() argument
49 z.v0 = a0 - b0; in softfloat_sub128()
50 z.v64 = a64 - b64 - (a0 < b0); in softfloat_sub128()
A Ds_add128.c45 softfloat_add128( uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0 ) in softfloat_add128() argument
49 z.v0 = a0 + b0; in softfloat_add128()
50 z.v64 = a64 + b64 + (z.v0 < a0); in softfloat_add128()
A Ds_shortShiftRightJam128.c46 uint64_t a64, uint64_t a0, uint_fast8_t count ) in softfloat_shortShiftRightJam128() argument
54 a64<<(negCount & 63) | a0>>count in softfloat_shortShiftRightJam128()
55 | ((uint64_t) (a0<<(negCount & 63)) != 0); in softfloat_shortShiftRightJam128()
A Ds_shortShiftRightJam128Extra.c46 uint64_t a64, uint64_t a0, uint64_t extra, uint_fast8_t count ) in softfloat_shortShiftRightJam128Extra() argument
53 z.v.v0 = a64<<(negCount & 63) | a0>>count; in softfloat_shortShiftRightJam128Extra()
54 z.extra = a0<<(negCount & 63) | (extra != 0); in softfloat_shortShiftRightJam128Extra()
A Ds_mul128By32.c44 struct uint128 softfloat_mul128By32( uint64_t a64, uint64_t a0, uint32_t b ) in softfloat_mul128By32() argument
50 z.v0 = a0 * b; in softfloat_mul128By32()
51 mid = (uint_fast64_t) (uint32_t) (a0>>32) * b; in softfloat_mul128By32()
A Ds_mul128To256M.c48 uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0, uint64_t *zPtr ) in softfloat_mul128To256M() argument
53 p0 = softfloat_mul64To128( a0, b0 ); in softfloat_mul128To256M()
61 p64 = softfloat_mul64To128( a0, b64 ); in softfloat_mul128To256M()
/optee_os/core/arch/arm/plat-rzn1/
A Dsm_platform_handler.c72 switch (OPTEE_SMC_FUNC_NUM(args->a0)) { in oem_service()
74 args->a0 = oem_sysreg(args->a1, args->a2, &args->a3); in oem_service()
91 if (!OPTEE_SMC_IS_FAST_CALL(args->a0)) in sm_platform_handler()
94 switch (OPTEE_SMC_OWNER_NUM(args->a0)) { in sm_platform_handler()
/optee_os/core/arch/arm/kernel/
A Dthread_private.h128 void thread_std_smc_entry(uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3,
130 uint32_t __thread_std_smc_entry(uint32_t a0, uint32_t a1, uint32_t a2,
191 void thread_alloc_and_run(uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3,
193 void thread_resume_from_rpc(uint32_t thread_id, uint32_t a0, uint32_t a1,
240 uint32_t thread_handle_std_smc(uint32_t a0, uint32_t a1, uint32_t a2,
A Dthread.c472 thread->regs.r0 = a0; in init_regs()
503 thread->regs.x[0] = a0; in init_regs()
566 init_regs(threads + n, a0, a1, a2, a3, a4, a5, a6, a7, pc); in __thread_alloc_and_run()
579 __thread_alloc_and_run(a0, a1, a2, a3, a4, a5, 0, 0, in thread_alloc_and_run()
593 static void copy_a0_to_a3(struct thread_ctx_regs *regs, uint32_t a0, in copy_a0_to_a3() argument
600 regs->r0 = a0; in copy_a0_to_a3()
615 regs->x[0] = a0; in copy_a0_to_a3()
709 copy_a0_to_a3(&threads[n].regs, a0, a1, a2, a3); in thread_resume_from_rpc()
1446 regs->r0 = a0; in set_ctx_regs()
1455 regs->x[0] = a0; in set_ctx_regs()
[all …]
/optee_os/core/arch/arm/include/kernel/
A Dthread.h78 uint32_t a0; /* SMC function ID */ member
90 uint64_t a0; /* SMC function ID */ member
278 unsigned long thread_cpu_off_handler(unsigned long a0, unsigned long a1);
279 unsigned long thread_cpu_suspend_handler(unsigned long a0, unsigned long a1);
280 unsigned long thread_cpu_resume_handler(unsigned long a0, unsigned long a1);
281 unsigned long thread_system_off_handler(unsigned long a0, unsigned long a1);
282 unsigned long thread_system_reset_handler(unsigned long a0, unsigned long a1);
499 uint32_t thread_enter_user_mode(unsigned long a0, unsigned long a1,

Completed in 29 milliseconds

123