Lines Matching refs:smf_state
25 static bool share_paren(const struct smf_state *test_state, const struct smf_state *target_state) in share_paren()
27 for (const struct smf_state *state = test_state; state != NULL; state = state->parent) { in share_paren()
36 static const struct smf_state *get_child_of(const struct smf_state *states, in get_child_of()
37 const struct smf_state *parent) in get_child_of()
39 const struct smf_state *tmp = states; in get_child_of()
54 static const struct smf_state *get_last_of(const struct smf_state *states) in get_last_of()
66 static const struct smf_state *get_lca_of(const struct smf_state *source, in get_lca_of()
67 const struct smf_state *dest) in get_lca_of()
69 for (const struct smf_state *ancestor = source->parent; ancestor != NULL; in get_lca_of()
90 const struct smf_state *new_state, in smf_execute_all_entry_actions()
91 const struct smf_state *topmost) in smf_execute_all_entry_actions()
100 for (const struct smf_state *to_execute = get_child_of(new_state, topmost); in smf_execute_all_entry_actions()
157 for (const struct smf_state *tmp_state = ctx->current->parent; tmp_state != NULL; in smf_execute_ancestor_run_actions()
191 static bool smf_execute_all_exit_actions(struct smf_ctx *const ctx, const struct smf_state *topmost) in smf_execute_all_exit_actions()
195 for (const struct smf_state *to_execute = ctx->current; in smf_execute_all_exit_actions()
212 void smf_set_initial(struct smf_ctx *ctx, const struct smf_state *init_state) in smf_set_initial()
236 const struct smf_state *topmost = get_last_of(init_state); in smf_set_initial()
261 void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *new_state) in smf_set_state()
281 const struct smf_state *topmost; in smf_set_state()