Lines Matching refs:ctx
79 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_cpu_on_finish_handler() local
83 assert(ctx != NULL); in spmd_cpu_on_finish_handler()
84 assert(ctx->state != SPMC_STATE_ON); in spmd_cpu_on_finish_handler()
100 cm_setup_context(&ctx->cpu_ctx, spmc_ep_info); in spmd_cpu_on_finish_handler()
103 ctx->state = SPMC_STATE_ON_PENDING; in spmd_cpu_on_finish_handler()
105 rc = spmd_spm_core_sync_entry(ctx); in spmd_cpu_on_finish_handler()
109 ctx->state = SPMC_STATE_OFF; in spmd_cpu_on_finish_handler()
113 ctx->state = SPMC_STATE_ON; in spmd_cpu_on_finish_handler()
123 spmd_spm_core_context_t *ctx = spmd_get_context(); in spmd_cpu_off_handler() local
127 assert(ctx != NULL); in spmd_cpu_off_handler()
128 assert(ctx->state != SPMC_STATE_OFF); in spmd_cpu_off_handler()
131 spmd_build_spmc_message(get_gpregs_ctx(&ctx->cpu_ctx), PSCI_CPU_OFF); in spmd_cpu_off_handler()
133 rc = spmd_spm_core_sync_entry(ctx); in spmd_cpu_off_handler()
139 u_register_t ffa_resp_func = read_ctx_reg(get_gpregs_ctx(&ctx->cpu_ctx), in spmd_cpu_off_handler()
147 ctx->state = SPMC_STATE_OFF; in spmd_cpu_off_handler()