Lines Matching refs:ctx
16 * @ctx: State machine context
21 efc_sm_post_event(struct efc_sm_ctx *ctx,
24 if (!ctx->current_state)
27 ctx->current_state(ctx, evt, data);
32 efc_sm_transition(struct efc_sm_ctx *ctx,
37 if (ctx->current_state == state) {
38 efc_sm_post_event(ctx, EFC_EVT_REENTER, data);
40 efc_sm_post_event(ctx, EFC_EVT_EXIT, data);
41 ctx->current_state = state;
42 efc_sm_post_event(ctx, EFC_EVT_ENTER, data);