Lines Matching refs:bState
197 if (status.bState == DFU_STATE_ERROR) { in open_device()
212 if (status.bState == DFU_STATE_DFU_IDLE) { in open_device()
221 if (status.bState != DFU_STATE_APP_IDLE) { in open_device()
222 printf("Device is not idle, can't detach it (state %d)\n", status.bState); in open_device()
245 if (status.bState != DFU_STATE_APP_DETACH) { in open_device()
301 if (status.bState != DFU_STATE_DFU_IDLE) { in open_device()
513 status.bStatus, status.bState); in cmd_upgrade()
517 if (status.bState != DFU_STATE_DFU_IDLE && in cmd_upgrade()
518 status.bState != DFU_STATE_DFU_DNLOAD_IDLE) { in cmd_upgrade()
640 status.bStatus, status.bState); in cmd_archive()
644 if (status.bState != DFU_STATE_DFU_IDLE && in cmd_archive()
645 status.bState != DFU_STATE_UPLOAD_IDLE) { in cmd_archive()