Lines Matching refs:req
132 struct NanohubAppVersionsRequest *req = rx; in getAppVersion() local
136 if (osAppInfoById(le64toh(req->appId), &appIdx, &appVer, &appSize)) { in getAppVersion()
146 struct NanohubAppInfoRequest *req = rx; in queryAppInfo() local
151 if (osAppInfoByIndex(le32toh(req->appIdx), &appId, &appVer, &appSize)) { in queryAppInfo()
280 static bool doStartFirmwareUpload(struct NanohubStartFirmwareUploadRequest *req) in doStartFirmwareUpload() argument
291 mDownloadState->size = le32toh(req->size); in doStartFirmwareUpload()
292 mDownloadState->crc = le32toh(req->crc); in doStartFirmwareUpload()
301 struct NanohubStartFirmwareUploadRequest *req = rx; in startFirmwareUpload() local
304 resp->accepted = doStartFirmwareUpload(req); in startFirmwareUpload()
578 struct NanohubFirmwareChunkRequest *req = rx; in firmwareChunk() local
580 uint32_t offset = le32toh(req->offset); in firmwareChunk()
581 uint8_t len = rx_len - sizeof(req->offset); in firmwareChunk()
583 resp->chunkReply = doFirmwareChunk(req->data, offset, len, NULL); in firmwareChunk()
614 struct NanohubGetInterruptRequest *req = rx; in getInterrupt() local
620 if (req->clear[i/32] & (1UL << (i & 31))) in getInterrupt()
632 struct NanohubMaskInterruptRequest *req = rx; in maskInterrupt() local
635 hostIntfSetInterruptMask(req->interrupt); in maskInterrupt()
643 struct NanohubUnmaskInterruptRequest *req = rx; in unmaskInterrupt() local
646 hostIntfClearInterruptMask(req->interrupt); in unmaskInterrupt()
821 struct NanohubReadEventRequest *req = rx; in readEventFast() local
829 addDelta(&mTimeSync, req->apBootTime, timestamp); in readEventFast()
846 struct NanohubReadEventRequest *req = rx; in readEvent() local
851 addDelta(&mTimeSync, req->apBootTime, timestamp); in readEvent()
885 struct NanohubWriteEventRequest *req = rx; in writeEvent() local
892 if (le32toh(req->evtType) == EVT_APP_FROM_HOST) { in writeEvent()
893 rawPacket = (struct HostHubRawPacket *)req->evtData; in writeEvent()
894 …if (rx_len >= sizeof(req->evtType) + sizeof(struct HostHubRawPacket) && rx_len == sizeof(req->evtT… in writeEvent()
915 packet = heapAlloc(rx_len - sizeof(req->evtType)); in writeEvent()
921 memcpy(packet, req->evtData, rx_len - sizeof(req->evtType)); in writeEvent()
922 resp->accepted = osEnqueueEvtOrFree(le32toh(req->evtType), packet, free); in writeEvent()
1017 struct NanohubHalMgmtRx *req = rx; in halExtAppsOn() local
1019 halSendMgmtResponse(NANOHUB_HAL_EXT_APPS_ON, osExtAppStartApps(le64toh(req->appId))); in halExtAppsOn()
1024 struct NanohubHalMgmtRx *req = rx; in halExtAppsOff() local
1026 halSendMgmtResponse(NANOHUB_HAL_EXT_APPS_OFF, osExtAppStopApps(le64toh(req->appId))); in halExtAppsOff()
1031 struct NanohubHalMgmtRx *req = rx; in halExtAppDelete() local
1033 halSendMgmtResponse(NANOHUB_HAL_EXT_APP_DELETE, osExtAppEraseApps(le64toh(req->appId))); in halExtAppDelete()
1042 struct NanohubHalQueryAppsRx *req = rx; in halQueryApps() local
1048 if (osAppInfoByIndex(le32toh(req->idx), &appId, &appVer, &appSize)) { in halQueryApps()
1069 struct NanohubHalQueryRsaKeysRx *req = rx; in halQueryRsaKeys() local
1079 if (ptr && numKeys * RSA_BYTES > req->offset) { in halQueryRsaKeys()
1080 len = numKeys * RSA_BYTES - req->offset; in halQueryRsaKeys()
1083 memcpy(resp->data, (uint8_t *)ptr + req->offset, len); in halQueryRsaKeys()
1095 struct NanohubHalStartUploadRx *req = rx; in halStartUpload() local
1097 .size= req->length in halStartUpload()
1117 struct NanohubHalContUploadRx *req = rx; in halContUpload() local
1130 offset = le32toh(req->offset); in halContUpload()
1131 len = rx_len - sizeof(req->offset); in halContUpload()
1132 reply = doFirmwareChunk(req->data, offset, len, resp); in halContUpload()