Lines Matching defs:state
34 * Set state of a Secure Partition context.
36 void sp_state_set(sp_context_t *sp_ptr, sp_state_t state)
39 sp_ptr->state = state;
44 * Wait until the state of a Secure Partition is the specified one and change it
45 * to the desired state.
54 if (sp_ptr->state == from) {
55 sp_ptr->state = to;
65 * Check if the state of a Secure Partition is the specified one and, if so,
66 * change it to the desired state. Returns 0 on success, -1 on error.
74 if (sp_ptr->state == from) {
75 sp_ptr->state = to;
109 /* Save secure state */
145 ctx->state = SP_STATE_RESET;
150 ctx->state = SP_STATE_IDLE;
216 assert(sp_ptr->state == SP_STATE_BUSY);
273 /* Restore non-secure state */
300 /* Determine which security state this SMC originated from */
323 if (sp_ctx.state != SP_STATE_RESET) {
334 if (sp_ctx.state != SP_STATE_RESET) {