Lines Matching refs:storageRequest

354 void AppleRAIDMirrorSet::completeRAIDRequest(AppleRAIDStorageRequest *storageRequest)
362 isWrite = (storageRequest->srMemoryDescriptorDirection == kIODirectionOut);
364 expectedByteCount = isWrite ? storageRequest->srByteCount * storageRequest->srActiveCount : storageRequest->srByteCount;
377 assert(storageRequest->srRequestByteCounts[cnt] == 0);
381 if (storageRequest->srRequestStatus[cnt] != kIOReturnSuccess ||
382 storageRequest->srRequestByteCounts[cnt] != storageRequest->srByteCount) {
387 storageRequest->srRequestStatus[cnt], getSetNameString(), getUUIDString(),
388 arMembers[cnt]->getUUIDString(), storageRequest->srByteStart);
396 (uint32_t)cnt, storageRequest->srByteCount, storageRequest->srRequestByteCounts[cnt],
405 if (storageRequest->srRequestStatus[cnt] != kIOReturnSuccess) {
407 storageRequest->srRequestStatus[cnt], getSetNameString(), getUUIDString(),
408 arMembers[cnt]->getUUIDString(), storageRequest->srByteStart);
410 status = storageRequest->srRequestStatus[cnt];
417 byteCount += storageRequest->srRequestByteCounts[cnt];
420 (uint32_t)cnt, storageRequest->srByteCount, storageRequest->srRequestByteCounts[cnt],
433 expectedByteCount, storageRequest->srByteCount, byteCount);
440 byteCount = storageRequest->srByteCount;
464 queue_enter(&arFailedRequestQueue, storageRequest, AppleRAIDStorageRequest *, fCommandChain);
483 storageRequest->srMemoryDescriptor->release();
484 returnRAIDRequest(storageRequest);
487 IOStorage::complete(&storageRequest->srClientsCompletion, status, byteCount);
950 AppleRAIDMemoryDescriptor * AppleRAIDMirrorSet::allocateMemoryDescriptor(AppleRAIDStorageRequest *storageRequest, UInt32 memberIndex)
952 return AppleRAIDMirrorMemoryDescriptor::withStorageRequest(storageRequest, memberIndex);
965 AppleRAIDMirrorMemoryDescriptor::withStorageRequest(AppleRAIDStorageRequest *storageRequest, UInt32 memberIndex)
970 if (!memoryDescriptor->initWithStorageRequest(storageRequest, memberIndex)) {
979 bool AppleRAIDMirrorMemoryDescriptor::initWithStorageRequest(AppleRAIDStorageRequest *storageRequest, UInt32 memberIndex)
981 if (!super::initWithStorageRequest(storageRequest, memberIndex)) return false;
983 mdSetBlockSize = storageRequest->srSetBlockSize;