Lines Matching refs:smf_state
23 static bool share_paren(const struct smf_state *test_state, in share_paren()
24 const struct smf_state *target_state) in share_paren()
26 for (const struct smf_state *state = test_state; in share_paren()
38 const struct smf_state *state) in last_state_share_paren()
48 static const struct smf_state *get_child_of(const struct smf_state *states, in get_child_of()
49 const struct smf_state *parent) in get_child_of()
51 for (const struct smf_state *tmp = states; ; tmp = tmp->parent) { in get_child_of()
64 static const struct smf_state *get_last_of(const struct smf_state *states) in get_last_of()
77 struct smf_ctx *const ctx, const struct smf_state *target) in smf_execute_ancestor_entry_actions()
81 for (const struct smf_state *to_execute = get_last_of(target); in smf_execute_ancestor_entry_actions()
122 for (const struct smf_state *tmp_state = ctx->current->parent; in smf_execute_ancestor_run_actions()
153 struct smf_ctx *const ctx, const struct smf_state *target) in smf_execute_ancestor_exit_actions()
159 for (const struct smf_state *tmp_state = ctx->current->parent; in smf_execute_ancestor_exit_actions()
174 void smf_set_initial(struct smf_ctx *ctx, const struct smf_state *init_state) in smf_set_initial()
198 void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *target) in smf_set_state()