Lines Matching refs:reply
356 uint32_t reply; in appSecErrToNanohubReply() local
360 reply = NANOHUB_FIRMWARE_UPLOAD_SUCCESS; in appSecErrToNanohubReply()
363 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_KEY_NOT_FOUND; in appSecErrToNanohubReply()
366 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_HEADER_ERROR; in appSecErrToNanohubReply()
369 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_TOO_MUCH_DATA; in appSecErrToNanohubReply()
372 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_TOO_LITTLE_DATA; in appSecErrToNanohubReply()
375 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_SIG_VERIFY_FAIL; in appSecErrToNanohubReply()
378 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_SIG_DECODE_FAIL; in appSecErrToNanohubReply()
381 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_SIG_ROOT_UNKNOWN; in appSecErrToNanohubReply()
384 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_MEMORY_ERROR; in appSecErrToNanohubReply()
387 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_INVALID_DATA; in appSecErrToNanohubReply()
390 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_VERIFY_FAILED; in appSecErrToNanohubReply()
393 reply = NANOHUB_FIRMWARE_UPLOAD_APP_SEC_BAD; in appSecErrToNanohubReply()
396 return reply; in appSecErrToNanohubReply()
541 uint32_t reply; in doFirmwareChunk() local
544 reply = NANOHUB_FIRMWARE_CHUNK_REPLY_CANCEL_NO_RETRY; in doFirmwareChunk()
546 reply = NANOHUB_FIRMWARE_CHUNK_REPLY_RESEND; in doFirmwareChunk()
548 reply = mDownloadState->chunkReply; in doFirmwareChunk()
552 reply = NANOHUB_FIRMWARE_CHUNK_REPLY_WAIT; in doFirmwareChunk()
557 reply = NANOHUB_FIRMWARE_CHUNK_REPLY_CANCEL_NO_RETRY; in doFirmwareChunk()
560 reply = NANOHUB_FIRMWARE_CHUNK_REPLY_RESTART; in doFirmwareChunk()
568 reply = NANOHUB_FIRMWARE_CHUNK_REPLY_ACCEPTED; in doFirmwareChunk()
573 return reply; in doFirmwareChunk()
590 uint32_t reply; in doFinishFirmwareUpload() local
593 reply = appSecErrToNanohubReply(mAppSecStatus); in doFinishFirmwareUpload()
595 reply = NANOHUB_FIRMWARE_UPLOAD_PROCESSING; in doFinishFirmwareUpload()
597 reply = firmwareFinish(false); in doFinishFirmwareUpload()
600 return reply; in doFinishFirmwareUpload()
1115 uint32_t reply; in halContUpload() local
1128 reply = NANOHUB_FIRMWARE_CHUNK_REPLY_CANCEL_NO_RETRY; in halContUpload()
1132 reply = doFirmwareChunk(req->data, offset, len, resp); in halContUpload()
1134 if (reply != NANOHUB_FIRMWARE_CHUNK_REPLY_ACCEPTED) { in halContUpload()
1135 osLog(LOG_ERROR, "%s: reply=%" PRIu32 "\n", __func__, reply); in halContUpload()
1146 uint32_t reply; in halFinishUpload() local
1155 reply = doFinishFirmwareUpload(); in halFinishUpload()
1157 osLog(LOG_INFO, "%s: reply=%" PRIu32 "\n", __func__, reply); in halFinishUpload()
1159 resp->success = (reply == NANOHUB_FIRMWARE_UPLOAD_SUCCESS); in halFinishUpload()