Lines Matching refs:handle

141 				   void *handle,  in trusty_fiq_handler()  argument
151 SMC_RET0(handle); in trusty_fiq_handler()
156 SMC_RET0(handle); in trusty_fiq_handler()
160 (void)memcpy(&ctx->fiq_gpregs, get_gpregs_ctx(handle), sizeof(ctx->fiq_gpregs)); in trusty_fiq_handler()
161 ctx->fiq_pc = SMC_GET_EL3(handle, CTX_ELR_EL3); in trusty_fiq_handler()
162 ctx->fiq_cpsr = SMC_GET_EL3(handle, CTX_SPSR_EL3); in trusty_fiq_handler()
163 ctx->fiq_sp_el1 = read_ctx_reg(get_el1_sysregs_ctx(handle), CTX_SP_EL1); in trusty_fiq_handler()
165 write_ctx_reg(get_el1_sysregs_ctx(handle), CTX_SP_EL1, ctx->fiq_handler_sp); in trusty_fiq_handler()
168 SMC_RET0(handle); in trusty_fiq_handler()
171 static uint64_t trusty_set_fiq_handler(void *handle, uint64_t cpu, in trusty_set_fiq_handler() argument
183 ctx->fiq_handler_cpsr = SMC_GET_EL3(handle, CTX_SPSR_EL3); in trusty_set_fiq_handler()
186 SMC_RET1(handle, 0); in trusty_set_fiq_handler()
189 static uint64_t trusty_get_fiq_regs(void *handle) in trusty_get_fiq_regs() argument
194 SMC_RET4(handle, ctx->fiq_pc, ctx->fiq_cpsr, sp_el0, ctx->fiq_sp_el1); in trusty_get_fiq_regs()
197 static uint64_t trusty_fiq_exit(void *handle, uint64_t x1, uint64_t x2, uint64_t x3) in trusty_fiq_exit() argument
204 SMC_RET1(handle, (uint64_t)SM_ERR_INVALID_PARAMETERS); in trusty_fiq_exit()
210 __func__, handle, ret.r0); in trusty_fiq_exit()
222 (void)memcpy(get_gpregs_ctx(handle), &ctx->fiq_gpregs, sizeof(ctx->fiq_gpregs)); in trusty_fiq_exit()
224 write_ctx_reg(get_el1_sysregs_ctx(handle), CTX_SP_EL1, ctx->fiq_sp_el1); in trusty_fiq_exit()
227 SMC_RET0(handle); in trusty_fiq_exit()
236 void *handle, in trusty_smc_handler() argument
249 SMC_RET1(handle, 0); in trusty_smc_handler()
251 SMC_RET1(handle, SMC_UNK); in trusty_smc_handler()
259 SMC_RET8(handle, ret.r0, ret.r1, ret.r2, ret.r3, in trusty_smc_handler()
264 __func__, smc_fid, x1, x2, x3, x4, cookie, handle, flags, in trusty_smc_handler()
266 SMC_RET1(handle, SMC_UNK); in trusty_smc_handler()
272 SMC_UUID_RET(handle, trusty_uuid); in trusty_smc_handler()
275 return trusty_set_fiq_handler(handle, x1, x2, x3); in trusty_smc_handler()
277 return trusty_get_fiq_regs(handle); in trusty_smc_handler()
279 return trusty_fiq_exit(handle, x1, x2, x3); in trusty_smc_handler()
284 SMC_RET1(handle, SMC_UNK); in trusty_smc_handler()
288 vmid = SMC_GET_GP(handle, CTX_GPREG_X7); in trusty_smc_handler()
296 SMC_RET1(handle, SM_ERR_BUSY); in trusty_smc_handler()
302 SMC_RET1(handle, ret.r0); in trusty_smc_handler()