Lines Matching full:phase

207 		      enum bt_mesh_blob_xfer_phase phase)  in phase_set()  argument
209 srv->phase = phase; in phase_set()
210 LOG_DBG("Phase: %u", phase); in phase_set()
280 srv->phase == BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_CHUNK && in pull_mode_xfer_complete()
291 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_START) { in timeout()
307 if (srv->phase != BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_BLOCK && in report_timeout()
308 srv->phase != BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_CHUNK) { in report_timeout()
329 net_buf_simple_add_u8(&buf, srv->phase); in xfer_status_rsp()
331 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_INACTIVE) { in xfer_status_rsp()
337 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_START) { in xfer_status_rsp()
364 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_INACTIVE || in block_status_rsp()
365 srv->phase == BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_START) { in block_status_rsp()
367 } else if (srv->phase == BT_MESH_BLOB_XFER_PHASE_COMPLETE) { in block_status_rsp()
410 if (srv->phase != BT_MESH_BLOB_XFER_PHASE_INACTIVE) { in block_status_rsp()
466 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_INACTIVE) { in handle_xfer_start()
482 if (srv->phase != BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_START) { in handle_xfer_start()
492 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_SUSPENDED) { in handle_xfer_start()
579 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_INACTIVE) { in handle_xfer_cancel()
602 switch (srv->phase) { in handle_block_get()
638 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_START || in handle_block_start()
639 srv->phase == BT_MESH_BLOB_XFER_PHASE_INACTIVE) { in handle_block_start()
646 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_CHUNK) { in handle_block_start()
680 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_COMPLETE || in handle_block_start()
687 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_SUSPENDED && srv->cb && in handle_block_start()
736 if (srv->phase != BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_CHUNK || in handle_chunk()
738 LOG_ERR("Invalid phase or index (%u %u)", srv->phase, in handle_chunk()
829 if (srv->phase != BT_MESH_BLOB_XFER_PHASE_INACTIVE) { in handle_info_get()
889 * BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_START phase, so `XFER_START` can be accepted in blob_srv_settings_set()
910 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_INACTIVE) { in blob_srv_start()
988 return srv->phase != BT_MESH_BLOB_XFER_PHASE_INACTIVE && in bt_mesh_blob_srv_is_busy()
989 srv->phase != BT_MESH_BLOB_XFER_PHASE_SUSPENDED && in bt_mesh_blob_srv_is_busy()
990 srv->phase != BT_MESH_BLOB_XFER_PHASE_COMPLETE; in bt_mesh_blob_srv_is_busy()
998 if (srv->phase == BT_MESH_BLOB_XFER_PHASE_INACTIVE || in bt_mesh_blob_srv_progress()
999 srv->phase == BT_MESH_BLOB_XFER_PHASE_WAITING_FOR_START) { in bt_mesh_blob_srv_progress()