Lines Matching defs:operation
203 IOCache::OperationCompleted(IOOperation* operation, status_t status,
206 operation->SetStatus(status, transferredBytes);
210 ((Operation*)operation)->finishedCondition.NotifyAll(
211 transferredBytes == operation->Length() ? B_OK : B_ERROR);
213 ((Operation*)operation)->finishedCondition.NotifyAll(status);
459 Operation operation;
460 operation.finishedCondition.Init(this, "I/O cache operation finished");
464 status_t error = fDMAResource->TranslateNext(request, &operation,
469 error = _DoOperation(operation);
471 request->OperationFinished(&operation);
476 fDMAResource->RecycleBuffer(operation.Buffer());
479 TRACE("%p->IOCache::_TransferRequestLineUncached(): operation at "
480 "%" B_PRIdOFF " failed: %s\n", this, operation.Offset(),
491 IOCache::_DoOperation(Operation& operation)
494 operation.Offset(), operation.Length());
498 operation.finishedCondition.Add(&waitEntry);
500 status_t error = fIOCallback(fIOCallbackData, &operation);
502 operation.finishedCondition.NotifyAll(error);
507 // wait for the operation to finish
512 if (operation.Finish())
565 Operation operation;
566 operation.finishedCondition.Init(this, "I/O cache operation finished");
569 error = fDMAResource->TranslateNext(&request, &operation,
574 error = _DoOperation(operation);
576 request.RemoveOperation(&operation);
578 fDMAResource->RecycleBuffer(operation.Buffer());
581 TRACE("%p->IOCache::_TransferLine(): operation at %" B_PRIdOFF
582 " failed: %s\n", this, operation.Offset(), strerror(error));