Lines Matching defs:handle

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