Lines Matching refs:ret
80 struct args ret; in trusty_context_switch() local
86 ret.r7 = 0; in trusty_context_switch()
91 ret.r7 = SMC_GET_GP(ctx_smc, CTX_GPREG_X7); in trusty_context_switch()
94 ret.r6 = 0; in trusty_context_switch()
95 ret.r5 = 0; in trusty_context_switch()
96 ret.r4 = 0; in trusty_context_switch()
97 ret.r3 = r3; in trusty_context_switch()
98 ret.r2 = r2; in trusty_context_switch()
99 ret.r1 = r1; in trusty_context_switch()
100 ret.r0 = r0; in trusty_context_switch()
115 ret = trusty_context_switch_helper(&ctx->saved_sp, &ret); in trusty_context_switch()
127 return ret; in trusty_context_switch()
135 struct args ret; in trusty_fiq_handler() local
140 ret = trusty_context_switch(NON_SECURE, SMC_FC_FIQ_ENTER, 0, 0, 0); in trusty_fiq_handler()
141 if (ret.r0) { in trusty_fiq_handler()
190 struct args ret; in trusty_fiq_exit() local
198 ret = trusty_context_switch(NON_SECURE, SMC_FC_FIQ_EXIT, 0, 0, 0); in trusty_fiq_exit()
199 if (ret.r0 != 1) { in trusty_fiq_exit()
201 __func__, handle, ret.r0); in trusty_fiq_exit()
230 struct args ret; in trusty_smc_handler() local
247 ret = trusty_context_switch(SECURE, x1, 0, 0, 0); in trusty_smc_handler()
248 SMC_RET8(handle, ret.r0, ret.r1, ret.r2, ret.r3, in trusty_smc_handler()
249 ret.r4, ret.r5, ret.r6, ret.r7); in trusty_smc_handler()
277 ret = trusty_context_switch(NON_SECURE, smc_fid, x1, in trusty_smc_handler()
280 SMC_RET1(handle, ret.r0); in trusty_smc_handler()
333 struct args ret; in trusty_cpu_suspend() local
335 ret = trusty_context_switch(NON_SECURE, SMC_FC_CPU_SUSPEND, 0, 0, 0); in trusty_cpu_suspend()
336 if (ret.r0 != 0) { in trusty_cpu_suspend()
338 __func__, plat_my_core_pos(), ret.r0); in trusty_cpu_suspend()
344 struct args ret; in trusty_cpu_resume() local
346 ret = trusty_context_switch(NON_SECURE, SMC_FC_CPU_RESUME, 0, 0, 0); in trusty_cpu_resume()
347 if (ret.r0 != 0) { in trusty_cpu_resume()
349 __func__, plat_my_core_pos(), ret.r0); in trusty_cpu_resume()
392 int ret; in trusty_setup() local
422 ret = register_interrupt_type_handler(INTR_TYPE_S_EL1, in trusty_setup()
425 if (ret) in trusty_setup()
426 ERROR("trusty: failed to register fiq handler, ret = %d\n", ret); in trusty_setup()