/Zephyr-latest/samples/subsys/smf/hsm_psicc2/src/ |
D | hsm_psicc2_thread.c | 78 smf_set_state(SMF_CTX(obj), &demo_states[STATE_S11]); in s_run() 87 smf_set_handled(SMF_CTX(obj)); in s_run() 91 smf_set_terminate(SMF_CTX(obj), -1); in s_run() 114 smf_set_state(SMF_CTX(obj), &demo_states[STATE_S1]); in s1_run() 118 smf_set_state(SMF_CTX(obj), &demo_states[STATE_S11]); in s1_run() 122 smf_set_state(SMF_CTX(obj), &demo_states[STATE_S2]); in s1_run() 128 smf_set_state(SMF_CTX(obj), &demo_states[STATE_S]); in s1_run() 135 smf_set_state(SMF_CTX(obj), &demo_states[STATE_S211]); in s1_run() 139 smf_set_handled(SMF_CTX(obj)); in s1_run() 165 smf_set_state(SMF_CTX(obj), &demo_states[STATE_S1]); in s11_run() [all …]
|
/Zephyr-latest/subsys/mgmt/hawkbit/ |
D | hawkbit.c | 1134 smf_set_terminate(SMF_CTX(s), HAWKBIT_NOT_INITIALIZED); in s_start() 1139 smf_set_terminate(SMF_CTX(s), HAWKBIT_NETWORKING_ERROR); in s_start() 1145 smf_set_terminate(SMF_CTX(s), HAWKBIT_PROBE_IN_PROGRESS); in s_start() 1152 smf_set_terminate(SMF_CTX(s), HAWKBIT_UNCONFIRMED_IMAGE); in s_start() 1158 smf_set_terminate(SMF_CTX(s), HAWKBIT_METADATA_ERROR); in s_start() 1175 smf_set_state(SMF_CTX(s), &hawkbit_states[S_HAWKBIT_TERMINATE]); in s_http_start() 1184 smf_set_state(SMF_CTX(s), &hawkbit_states[S_HAWKBIT_TERMINATE]); in s_http_start() 1212 smf_set_state(SMF_CTX(s), &hawkbit_states[S_HAWKBIT_TERMINATE]); in s_probe() 1225 smf_set_state(SMF_CTX(s), &hawkbit_states[S_HAWKBIT_CANCEL]); in s_probe() 1229 smf_set_state(SMF_CTX(s), &hawkbit_states[S_HAWKBIT_CONFIG_DEVICE]); in s_probe() [all …]
|
/Zephyr-latest/doc/services/smf/ |
D | index.rst | 33 type with the :c:macro:`SMF_CTX` macro. 36 use ``SMF_CTX(&user_obj)``. 202 smf_set_state(SMF_CTX(&s_obj), &demo_states[S1]); 212 smf_set_state(SMF_CTX(&s_obj), &demo_states[S2]); 226 smf_set_state(SMF_CTX(&s_obj), &demo_states[S0]); 243 smf_set_initial(SMF_CTX(&s_obj), &demo_states[S0]); 248 ret = smf_run_state(SMF_CTX(&s_obj)); 316 smf_set_state(SMF_CTX(&s_obj), &demo_states[S1]); 322 smf_set_state(SMF_CTX(&s_obj), &demo_states[S2]); 328 smf_set_state(SMF_CTX(&s_obj), &demo_states[S0]); [all …]
|
/Zephyr-latest/tests/lib/smf/src/ |
D | test_lib_flat_smf.c | 107 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()
|
D | test_lib_self_transition_smf.c | 227 smf_set_handled(SMF_CTX(obj)); in parent_ab_run() 228 smf_set_state(SMF_CTX(obj), &test_states[STATE_C]); in parent_ab_run() 272 smf_set_state(SMF_CTX(obj), &test_states[PARENT_C]); in parent_c_run() 317 smf_set_state(SMF_CTX(obj), &test_states[STATE_B]); in state_a_run() 357 smf_set_handled(SMF_CTX(obj)); in state_b_run() 404 smf_set_state(SMF_CTX(obj), &test_states[STATE_D]); in state_c_run()
|
D | test_lib_hierarchical_5_ancestor_smf.c | 137 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()
|
D | test_lib_hierarchical_smf.c | 150 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-latest/include/zephyr/ |
D | smf.h | 50 #define SMF_CTX(o) ((struct smf_ctx *)o) macro
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_tc_common.c | 31 smf_set_initial(SMF_CTX(tc), &tc_states[TC_DISABLED_STATE]); in tc_subsys_init() 104 smf_run_state(SMF_CTX(tc)); in tc_run() 188 smf_set_state(SMF_CTX(tc), &tc_states[state]); in tc_set_state()
|
D | usbc_prl.c | 131 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()
|
D | usbc_pe_common.c | 73 smf_set_initial(SMF_CTX(pe), &pe_states[PE_SUSPEND]); in pe_subsys_init() 179 smf_run_state(SMF_CTX(pe)); in pe_run() 441 smf_set_state(SMF_CTX(data->pe), &pe_states[state]); in pe_set_state()
|
/Zephyr-latest/samples/subsys/smf/smf_calculator/src/ |
D | smf_calculator_thread.c | 694 smf_set_initial(SMF_CTX(&s_obj), &calculator_states[STATE_ON]); in smf_calculator_thread() 705 int ret = smf_run_state(SMF_CTX(&s_obj)); in smf_calculator_thread()
|