Lines Matching refs:engine_state

120 	uint8_t engine_state;  member
193 } else if (client.engine_state == ENGINE_BOOTSTRAP_TRANS_DONE && in set_sm_state_delayed()
198 if (client.engine_state == ENGINE_UPDATE_SENT && in set_sm_state_delayed()
224 client.engine_state = sm_state; in set_sm_state_delayed()
254 bool is_bootstrap = (client.engine_state >= ENGINE_DO_BOOTSTRAP_REG && in sm_is_bootstrap()
255 client.engine_state <= ENGINE_BOOTSTRAP_TRANS_DONE); in sm_is_bootstrap()
266 bool registered = (client.engine_state >= ENGINE_REGISTRATION_DONE && in sm_is_registered()
267 client.engine_state <= ENGINE_DEREGISTER_SENT); in sm_is_registered()
276 bool suspended = (client.engine_state == ENGINE_SUSPENDED); in sm_is_suspended()
286 uint8_t state = client.engine_state; in get_sm_state()
298 switch (client.engine_state) { in sm_handle_timeout_state()
341 if (client.engine_state == ENGINE_BOOTSTRAP_REG_SENT) { in sm_handle_failure_state()
345 if (client.engine_state == ENGINE_REGISTRATION_SENT) { in sm_handle_failure_state()
347 } else if (client.engine_state == ENGINE_UPDATE_SENT) { in sm_handle_failure_state()
351 } else if (client.engine_state == ENGINE_DEREGISTER_SENT) { in sm_handle_failure_state()
389 if (client.engine_state > ENGINE_IDLE && in socket_fault_cb()
390 client.engine_state < ENGINE_SERVER_DISABLED) { in socket_fault_cb()
392 } else if (client.engine_state != ENGINE_SUSPENDED && in socket_fault_cb()
402 if (client.engine_state < ENGINE_REGISTRATION_SENT || in engine_trigger_update()
403 client.engine_state > ENGINE_UPDATE_SENT) { in engine_trigger_update()
1158 (client.engine_state != ENGINE_REGISTRATION_DONE_RX_OFF) && in sm_registration_done()
1555 if (client.ctx && (client.engine_state != ENGINE_IDLE || client.ctx->sock_fd != -1)) { in lwm2m_rd_client_start()
1556 LOG_WRN("Client is already running. state %d ", client.engine_state); in lwm2m_rd_client_start()
1671 client.engine_state = suspended_client_state; in lwm2m_rd_client_resume()
1676 client.engine_state = ENGINE_DO_BOOTSTRAP_REG; in lwm2m_rd_client_resume()
1680 if (client.engine_state >= ENGINE_DO_REGISTRATION && in lwm2m_rd_client_resume()
1681 client.engine_state <= ENGINE_SERVER_DISABLED) { in lwm2m_rd_client_resume()
1685 client.engine_state = ENGINE_DO_REGISTRATION; in lwm2m_rd_client_resume()
1688 client.engine_state = ENGINE_REGISTRATION_DONE_RX_OFF; in lwm2m_rd_client_resume()
1743 if (client.engine_state == ENGINE_REGISTRATION_DONE_RX_OFF) { in lwm2m_rd_client_connection_resume()
1754 client.engine_state = ENGINE_REGISTRATION_DONE; in lwm2m_rd_client_connection_resume()
1762 client.engine_state = ENGINE_DO_REGISTRATION; in lwm2m_rd_client_connection_resume()
1809 client.engine_state = ENGINE_IDLE; in lwm2m_rd_client_init()