Lines Matching refs:ec
44 struct sp_exec_ctx *ec; in spmc_cpu_on_finish_handler() local
53 ec = &sp->ec[get_ec_index(sp)]; in spmc_cpu_on_finish_handler()
61 cm_set_context(&(ec->cpu_ctx), SECURE); in spmc_cpu_on_finish_handler()
89 ec = spmc_get_sp_ec(sp); in spmc_cpu_on_finish_handler()
97 ec->rt_model = RT_MODEL_INIT; in spmc_cpu_on_finish_handler()
98 ec->rt_state = RT_STATE_RUNNING; in spmc_cpu_on_finish_handler()
99 ec->dir_req_origin_id = INV_SP_ID; in spmc_cpu_on_finish_handler()
103 rc = spmc_sp_synchronous_entry(ec); in spmc_cpu_on_finish_handler()
109 ec->rt_state = RT_STATE_WAITING; in spmc_cpu_on_finish_handler()
120 struct sp_exec_ctx *ec; in spmc_send_pm_msg() local
127 ec = spmc_get_sp_ec(sp); in spmc_send_pm_msg()
138 spmc_build_pm_message(get_gpregs_ctx(&ec->cpu_ctx), in spmc_send_pm_msg()
144 assert(ec->rt_state == RT_STATE_WAITING); in spmc_send_pm_msg()
147 ec->rt_model = RT_MODEL_DIR_REQ; in spmc_send_pm_msg()
148 ec->rt_state = RT_STATE_RUNNING; in spmc_send_pm_msg()
149 ec->dir_req_origin_id = FFA_SPMC_ID; in spmc_send_pm_msg()
151 ec->dir_req_funcid = FFA_FNUM_MSG_SEND_DIRECT_REQ; in spmc_send_pm_msg()
153 rc = spmc_sp_synchronous_entry(ec); in spmc_send_pm_msg()
166 gpregs_ctx = get_gpregs_ctx(&ec->cpu_ctx); in spmc_send_pm_msg()
195 ec->rt_state = RT_STATE_WAITING; in spmc_send_pm_msg()