Home
last modified time | relevance | path

Searched refs:SMF_CTX (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.4.0/doc/services/smf/
Dindex.rst31 type with the following macro: ``SMF_CTX(o)``
34 use ``SMF_CTX(&user_obj)``.
148 smf_set_state(SMF_CTX(&s_obj), &demo_states[S1]);
158 smf_set_state(SMF_CTX(&s_obj), &demo_states[S2]);
172 smf_set_state(SMF_CTX(&s_obj), &demo_states[S0]);
189 smf_set_initial(SMF_CTX(&s_obj), &demo_states[S0]);
194 ret = smf_run_state(SMF_CTX(&s_obj));
262 smf_set_state(SMF_CTX(&s_obj), &demo_states[S1]);
268 smf_set_state(SMF_CTX(&s_obj), &demo_states[S2]);
274 smf_set_state(SMF_CTX(&s_obj), &demo_states[S0]);
[all …]
/Zephyr-Core-3.4.0/tests/lib/smf/src/
Dtest_lib_flat_smf.c107 smf_set_state(SMF_CTX(obj), &test_states[STATE_B]); in state_a_run()
147 smf_set_state(SMF_CTX(obj), &test_states[STATE_C]); in state_b_run()
179 smf_set_state(SMF_CTX(obj), &test_states[STATE_D]); in state_c_run()
Dtest_lib_hierarchical_5_ancestor_smf.c137 smf_set_state(SMF_CTX(obj), &test_states[C]); in p05_run()
319 smf_set_state(SMF_CTX(obj), &test_states[B]); in a_run()
392 smf_set_state(SMF_CTX(obj), &test_states[D]); in c_run()
Dtest_lib_hierarchical_smf.c150 smf_set_state(SMF_CTX(obj), &test_states[STATE_B]); in parent_ab_run()
267 smf_set_state(SMF_CTX(obj), &test_states[STATE_C]); in state_b_run()
302 smf_set_state(SMF_CTX(obj), &test_states[STATE_D]); in state_c_run()
/Zephyr-Core-3.4.0/subsys/usb/usb_c/
Dusbc_tc_common.c30 smf_set_initial(SMF_CTX(tc), &tc_states[TC_DISABLED_STATE]); in tc_subsys_init()
84 smf_run_state(SMF_CTX(tc)); in tc_run()
148 smf_set_state(SMF_CTX(tc), &tc_states[state]); in tc_set_state()
Dusbc_prl.c131 smf_set_initial(SMF_CTX(prl_hr), &prl_hr_states[PRL_HR_SUSPEND]); in prl_subsys_init()
132 smf_set_initial(SMF_CTX(prl_tx), &prl_tx_states[PRL_TX_SUSPEND]); in prl_subsys_init()
317 smf_run_state(SMF_CTX(prl_hr)); in prl_run()
331 smf_run_state(SMF_CTX(prl_tx)); in prl_run()
403 smf_set_state(SMF_CTX(prl_tx), &prl_tx_states[state]); in prl_tx_set_state()
415 smf_set_state(SMF_CTX(prl_hr), &prl_hr_states[state]); in prl_hr_set_state()
Dusbc_pe_common.c59 smf_set_initial(SMF_CTX(pe), &pe_states[PE_SUSPEND]); in pe_subsys_init()
165 smf_run_state(SMF_CTX(pe)); in pe_run()
424 smf_set_state(SMF_CTX(data->pe), &pe_states[state]); in pe_set_state()
/Zephyr-Core-3.4.0/include/zephyr/
Dsmf.h53 #define SMF_CTX(o) ((struct smf_ctx *)o) macro