Lines Matching full:phase

61 	srv->phase = new_phase;  in dfd_phase_set()
63 if (srv->cb && srv->cb->phase) { in dfd_phase_set()
64 srv->cb->phase(srv, srv->phase); in dfd_phase_set()
82 return srv->phase == BT_MESH_DFD_PHASE_TRANSFER_ACTIVE || in is_busy()
83 srv->phase == BT_MESH_DFD_PHASE_TRANSFER_SUCCESS || in is_busy()
84 srv->phase == BT_MESH_DFD_PHASE_APPLYING_UPDATE; in is_busy()
90 srv->upload.phase == BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_ACTIVE; in upload_is_busy()
187 ((t->phase & BIT_MASK(4)) << 15U) | in handle_receivers_get()
253 net_buf_simple_add_u8(&rsp, srv->phase); in status_rsp()
255 if (srv->phase == BT_MESH_DFD_PHASE_IDLE || !srv->dfu.xfer.slot) { in status_rsp()
354 net_buf_simple_add_u8(&rsp, srv->upload.phase); in upload_status_rsp_with_progress()
356 if (srv->upload.phase == BT_MESH_DFD_UPLOAD_PHASE_IDLE || in upload_status_rsp_with_progress()
419 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_SUCCESS; in set_upload_fwid()
431 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_ACTIVE; in set_upload_fwid()
557 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_ACTIVE; in handle_upload_start()
659 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_IDLE; in handle_upload_cancel()
814 LOG_DBG("reason: %u, phase: %u, apply: %u", reason, srv->phase, srv->apply); in dfu_ended()
816 if (srv->phase == BT_MESH_DFD_PHASE_IDLE) { in dfu_ended()
820 if (srv->phase == BT_MESH_DFD_PHASE_CANCELING_UPDATE) { in dfu_ended()
850 if (srv->phase == BT_MESH_DFD_PHASE_CANCELING_UPDATE) { in dfu_applied()
855 if (srv->phase != BT_MESH_DFD_PHASE_APPLYING_UPDATE) { in dfu_applied()
871 if (srv->phase != BT_MESH_DFD_PHASE_APPLYING_UPDATE && in dfu_confirmed()
872 srv->phase != BT_MESH_DFD_PHASE_CANCELING_UPDATE) { in dfu_confirmed()
898 if (srv->upload.phase != BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_ACTIVE) { in upload_end()
905 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_SUCCESS; in upload_end()
910 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_ERROR; in upload_end()
966 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_IDLE; in dfd_srv_reset()
1056 srv->phase == BT_MESH_DFD_PHASE_COMPLETED) { in bt_mesh_dfd_srv_start()
1059 } else if (srv->phase == BT_MESH_DFD_PHASE_TRANSFER_SUSPENDED) { in bt_mesh_dfd_srv_start()
1065 srv->phase == BT_MESH_DFD_PHASE_TRANSFER_SUSPENDED) { in bt_mesh_dfd_srv_start()
1070 if (srv->phase == BT_MESH_DFD_PHASE_CANCELING_UPDATE) { in bt_mesh_dfd_srv_start()
1121 if (srv->phase == BT_MESH_DFD_PHASE_TRANSFER_SUSPENDED) { in bt_mesh_dfd_srv_suspend()
1125 if (srv->phase != BT_MESH_DFD_PHASE_TRANSFER_ACTIVE) { in bt_mesh_dfd_srv_suspend()
1134 srv->phase = BT_MESH_DFD_PHASE_TRANSFER_SUSPENDED; in bt_mesh_dfd_srv_suspend()
1144 if (srv->phase == BT_MESH_DFD_PHASE_CANCELING_UPDATE || in bt_mesh_dfd_srv_cancel()
1145 srv->phase == BT_MESH_DFD_PHASE_IDLE) { in bt_mesh_dfd_srv_cancel()
1152 if (srv->phase == BT_MESH_DFD_PHASE_COMPLETED || in bt_mesh_dfd_srv_cancel()
1153 srv->phase == BT_MESH_DFD_PHASE_FAILED) { in bt_mesh_dfd_srv_cancel()
1161 /* Phase TRANSFER_ACTIVE, TRANSFER_SUSPENDED, TRANSFER_SUCCESS, APPLYING_UPDATE: */ in bt_mesh_dfd_srv_cancel()
1163 prev_phase = srv->phase; in bt_mesh_dfd_srv_cancel()
1199 if (srv->phase == BT_MESH_DFD_PHASE_IDLE || in bt_mesh_dfd_srv_apply()
1200 srv->phase == BT_MESH_DFD_PHASE_CANCELING_UPDATE || in bt_mesh_dfd_srv_apply()
1201 srv->phase == BT_MESH_DFD_PHASE_TRANSFER_ACTIVE || in bt_mesh_dfd_srv_apply()
1202 srv->phase == BT_MESH_DFD_PHASE_TRANSFER_SUSPENDED || in bt_mesh_dfd_srv_apply()
1203 srv->phase == BT_MESH_DFD_PHASE_FAILED) { in bt_mesh_dfd_srv_apply()
1207 if (srv->phase == BT_MESH_DFD_PHASE_APPLYING_UPDATE || in bt_mesh_dfd_srv_apply()
1208 srv->phase == BT_MESH_DFD_PHASE_COMPLETED) { in bt_mesh_dfd_srv_apply()
1227 if (srv->phase != BT_MESH_DFD_PHASE_IDLE) { in bt_mesh_dfd_srv_fw_delete()
1250 if (srv->phase != BT_MESH_DFD_PHASE_IDLE) { in bt_mesh_dfd_srv_fw_delete_all()
1269 srv->upload.phase == BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_ACTIVE || in bt_mesh_dfd_srv_oob_check_complete()
1301 if (srv->upload.phase != BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_ACTIVE || in bt_mesh_dfd_srv_oob_store_complete()
1320 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_SUCCESS; in bt_mesh_dfd_srv_oob_store_complete()
1324 srv->upload.phase = BT_MESH_DFD_UPLOAD_PHASE_TRANSFER_ERROR; in bt_mesh_dfd_srv_oob_store_complete()