Lines Matching full:phase
81 /* return phase back to give client one more chance. */ in apply_rsp_sent()
82 srv->update.phase = BT_MESH_DFU_PHASE_VERIFY_OK; in apply_rsp_sent()
90 srv->update.phase = BT_MESH_DFU_PHASE_IDLE; in apply_rsp_sent()
100 srv->update.phase = BT_MESH_DFU_PHASE_IDLE; in apply_rsp_sent()
115 srv->update.phase = BT_MESH_DFU_PHASE_VERIFY; in verify()
128 if (srv->update.phase == BT_MESH_DFU_PHASE_VERIFY) { in verify()
139 if (srv->update.phase == BT_MESH_DFU_PHASE_APPLYING) { in handle_info_get()
186 if (srv->update.phase != BT_MESH_DFU_PHASE_IDLE) { in handle_info_get()
214 if (srv->update.phase != BT_MESH_DFU_PHASE_IDLE) { in handle_metadata_check()
232 (srv->update.phase << 5))); in update_status_rsp()
234 if (srv->update.phase != BT_MESH_DFU_PHASE_IDLE) { in update_status_rsp()
291 srv->update.phase == BT_MESH_DFU_PHASE_TRANSFER_ERR && in handle_start()
296 srv->update.phase = BT_MESH_DFU_PHASE_TRANSFER_ACTIVE; in handle_start()
314 LOG_WRN("Busy. Phase: %u", srv->update.phase); in handle_start()
334 * self-update. Skip the transfer phase and proceed to in handle_start()
340 srv->update.phase = BT_MESH_DFU_PHASE_VERIFY; in handle_start()
369 srv->update.phase = BT_MESH_DFU_PHASE_TRANSFER_ACTIVE; in handle_start()
391 srv->update.phase = BT_MESH_DFU_PHASE_IDLE; in handle_cancel()
411 if (srv->update.phase == BT_MESH_DFU_PHASE_APPLYING) { in handle_apply()
416 if (srv->update.phase != BT_MESH_DFU_PHASE_VERIFY_OK) { in handle_apply()
417 LOG_WRN("Apply: Invalid phase %u", srv->update.phase); in handle_apply()
425 srv->update.phase = BT_MESH_DFU_PHASE_APPLYING; in handle_apply()
488 LOG_DBG("Recovered transfer (phase: %u, idx: %u)", srv->update.phase, in dfu_srv_settings_set()
490 if (srv->update.phase == BT_MESH_DFU_PHASE_TRANSFER_ACTIVE) { in dfu_srv_settings_set()
492 srv->update.phase = BT_MESH_DFU_PHASE_TRANSFER_ERR; in dfu_srv_settings_set()
493 } else if (srv->update.phase == BT_MESH_DFU_PHASE_VERIFY_OK) { in dfu_srv_settings_set()
495 srv->update.phase = BT_MESH_DFU_PHASE_VERIFY_FAIL; in dfu_srv_settings_set()
505 srv->update.phase = BT_MESH_DFU_PHASE_IDLE; in dfu_srv_reset()
519 srv->update.phase = BT_MESH_DFU_PHASE_TRANSFER_ERR; in blob_suspended()
531 srv->update.phase = BT_MESH_DFU_PHASE_TRANSFER_ERR; in blob_end()
547 srv->update.phase != BT_MESH_DFU_PHASE_TRANSFER_ERR || in blob_recover()
563 if (srv->update.phase != BT_MESH_DFU_PHASE_VERIFY) { in bt_mesh_dfu_srv_verified()
570 srv->update.phase = BT_MESH_DFU_PHASE_VERIFY_OK; in bt_mesh_dfu_srv_verified()
576 if (srv->update.phase != BT_MESH_DFU_PHASE_VERIFY) { in bt_mesh_dfu_srv_rejected()
583 srv->update.phase = BT_MESH_DFU_PHASE_VERIFY_FAIL; in bt_mesh_dfu_srv_rejected()
589 if (srv->update.phase == BT_MESH_DFU_PHASE_IDLE) { in bt_mesh_dfu_srv_cancel()
599 if (srv->update.phase != BT_MESH_DFU_PHASE_APPLYING) { in bt_mesh_dfu_srv_applied()
606 srv->update.phase = BT_MESH_DFU_PHASE_IDLE; in bt_mesh_dfu_srv_applied()
612 return srv->update.phase != BT_MESH_DFU_PHASE_IDLE && in bt_mesh_dfu_srv_is_busy()
613 srv->update.phase != BT_MESH_DFU_PHASE_TRANSFER_ERR && in bt_mesh_dfu_srv_is_busy()
614 srv->update.phase != BT_MESH_DFU_PHASE_VERIFY_FAIL; in bt_mesh_dfu_srv_is_busy()
623 if (srv->update.phase == BT_MESH_DFU_PHASE_TRANSFER_ACTIVE) { in bt_mesh_dfu_srv_progress()