Lines Matching defs:ctx
137 static void spmd_build_direct_message_req(spmd_spm_core_context_t *ctx,
141 gp_regs_t *gpregs = get_gpregs_ctx(&ctx->cpu_ctx);
153 static void spmd_encode_ctx_to_ffa_value(spmd_spm_core_context_t *ctx,
156 gp_regs_t *gpregs = get_gpregs_ctx(&ctx->cpu_ctx);
178 static void spmd_logical_sp_set_dir_req_ongoing(spmd_spm_core_context_t *ctx)
180 ctx->spmd_lp_sync_req_ongoing |= SPMD_LP_FFA_DIR_REQ_ONGOING;
183 static void spmd_logical_sp_reset_dir_req_ongoing(spmd_spm_core_context_t *ctx)
185 ctx->spmd_lp_sync_req_ongoing &= ~SPMD_LP_FFA_DIR_REQ_ONGOING;
188 static void spmd_build_ffa_info_get_regs(spmd_spm_core_context_t *ctx,
193 gp_regs_t *gpregs = get_gpregs_ctx(&ctx->cpu_ctx);
219 static void spmd_logical_sp_set_info_regs_ongoing(spmd_spm_core_context_t *ctx)
221 ctx->spmd_lp_sync_req_ongoing |= SPMD_LP_FFA_INFO_GET_REG_ONGOING;
225 spmd_spm_core_context_t *ctx)
227 ctx->spmd_lp_sync_req_ongoing &= ~SPMD_LP_FFA_INFO_GET_REG_ONGOING;
508 spmd_spm_core_context_t *ctx = spmd_get_context();
536 spmd_build_ffa_info_get_regs(ctx, target_uuid, start_index, tag);
537 spmd_logical_sp_set_info_regs_ongoing(ctx);
539 rc = spmd_spm_core_sync_entry(ctx);
546 spmd_logical_sp_reset_info_regs_ongoing(ctx);
547 spmd_encode_ctx_to_ffa_value(ctx, retval);
587 spmd_spm_core_context_t *ctx = spmd_get_context();
680 spmd_build_direct_message_req(ctx, x1, x2, x3, x4);
681 spmd_logical_sp_set_dir_req_ongoing(ctx);
683 rc = spmd_spm_core_sync_entry(ctx);
685 spmd_logical_sp_reset_dir_req_ongoing(ctx);
692 spmd_encode_ctx_to_ffa_value(ctx, retval);
723 spmd_spm_core_context_t *ctx)
726 return ((ctx->spmd_lp_sync_req_ongoing & SPMD_LP_FFA_INFO_GET_REG_ONGOING)
734 spmd_spm_core_context_t *ctx)
737 return ((ctx->spmd_lp_sync_req_ongoing & SPMD_LP_FFA_DIR_REQ_ONGOING)