Searched refs:operation (Results 1 - 25 of 55) sorted by relevance

123

/haiku/src/system/kernel/device_manager/
H A DIOCallback.cpp17 IOCallback::DoIO(IOOperation* operation) argument
24 IOCallback::WrapperFunction(void* data, io_operation* operation) argument
26 return ((IOCallback*)data)->DoIO(operation);
H A DIOCallback.h13 typedef status_t (*io_callback)(void* data, io_operation* operation);
20 virtual status_t DoIO(IOOperation* operation) = 0;
23 io_operation* operation);
H A DIOSchedulerSimple.cpp60 IOOperation* operation = it.Next();) {
61 kprintf(" %p", operation);
103 fFinishedOperationCondition.Init(this, "I/O finished operation");
133 while (IOOperation* operation = fUnusedOperations.RemoveHead())
134 delete operation;
152 IOOperation* operation = new(std::nothrow) IOOperation; local
153 if (operation == NULL)
156 fUnusedOperations.Add(operation);
285 IOSchedulerSimple::OperationCompleted(IOOperation* operation, status_t status, argument
290 // finish operation onl
329 IOOperation* operation = fCompletedOperations.RemoveHead(); local
426 IOOperation* operation = fUnusedOperations.RemoveHead(); local
457 IOOperation* operation = fUnusedOperations.RemoveHead(); local
570 IOOperation* operation = sortedOperations.Head(); local
[all...]
H A DIOSchedulerRoster.cpp46 IORequest* request, IOOperation* operation)
59 if (operation != NULL)
60 event.AddPointer("operation", operation);
45 Notify(uint32 eventCode, const IOScheduler* scheduler, IORequest* request, IOOperation* operation) argument
H A DIOCache.cpp203 IOCache::OperationCompleted(IOOperation* operation, status_t status, argument
208 ((Operation*)operation)->finishedCondition.NotifyAll(
209 transferredBytes == operation->Length() ? B_OK : B_ERROR);
211 ((Operation*)operation)->finishedCondition.NotifyAll(status);
457 Operation operation; local
458 operation.finishedCondition.Init(this, "I/O cache operation finished");
462 status_t error = fDMAResource->TranslateNext(request, &operation,
467 error = _DoOperation(operation);
469 request->OperationFinished(&operation, erro
490 _DoOperation(Operation& operation) argument
[all...]
H A DIOSchedulerRoster.h47 IOOperation* operation = NULL);
H A DIOCache.h35 virtual void OperationCompleted(IOOperation* operation,
53 status_t _DoOperation(Operation& operation);
H A DIOScheduler.h55 virtual void OperationCompleted(IOOperation* operation,
58 // called by the driver when the operation
H A Ddma_resources.cpp401 DMAResource::TranslateNext(IORequest* request, IOOperation* operation, argument
615 // this request to the next I/O operation.
723 operation->SetBuffer(dmaBuffer);
724 operation->SetBlockSize(fBlockSize);
725 operation->SetOriginalRange(originalOffset,
727 operation->SetRange(offset, dmaLength);
728 operation->SetPartial(partialBegin != 0,
732 operation->SetUsesBounceBuffer(bounceLeft < fBounceBufferSize);
733 if (operation->UsesBounceBuffer())
739 status_t error = operation
[all...]
H A DIOSchedulerSimple.h31 virtual void OperationCompleted(IOOperation* operation,
34 // called by the driver when the operation
H A DIORequest.h257 void OperationFinished(IOOperation* operation,
298 void AddOperation(IOOperation* operation);
299 void RemoveOperation(IOOperation* operation);
/haiku/src/bin/
H A Deject.cpp78 static int do_eject(char operation, char *device);
83 char operation = 'e'; local
92 operation = argv[i][1];
99 ret = do_eject(operation, device);
126 return do_eject(operation, device);
133 static int do_eject(char operation, char *device) argument
153 switch (operation) {
/haiku/src/tests/system/kernel/device_manager/
H A Ddma_resource_test.cpp78 status_t _DoIO(IOOperation& operation);
184 do_io(void* data, IOOperation* operation) argument
187 off_t offset = operation->Offset();
189 for (uint32 i = 0; i < operation->VecCount(); i++) {
190 const generic_io_vec& vec = operation->Vecs()[i];
194 if (operation->IsWrite())
201 sIOScheduler->OperationCompleted(operation, B_OK, operation->Length());
538 Test::_DoIO(IOOperation& operation) argument
540 return do_io(NULL, &operation);
557 IOOperation operation; local
[all...]
/haiku/src/add-ons/kernel/drivers/disk/usb/usb_disk/
H A Dusb_disk_scsi.h29 uint8 operation; member in struct:scsi_command_6_s
37 uint8 operation; member in struct:scsi_command_10_s
/haiku/src/add-ons/kernel/drivers/disk/virtual/virtio_block/
H A Dvirtio_block.cpp200 do_io(void* cookie, IOOperation* operation) argument
207 physical_entry entries[operation->VecCount() + 2];
211 header->type = operation->IsWrite() ? VIRTIO_BLK_T_OUT : VIRTIO_BLK_T_IN;
212 header->sector = operation->Offset() / 512;
220 entries[operation->VecCount() + 1].address = entries[0].address
222 entries[operation->VecCount() + 1].size = sizeof(uint8);
225 memcpy(entries + 1, operation->Vecs(), operation->VecCount()
229 1 + (operation->IsWrite() ? operation
[all...]
/haiku/src/apps/debuganalyzer/model_loader/
H A DModelLoader.cpp100 while (IOOperation* operation = operations.RemoveHead())
101 delete operation;
104 void AddOperation(IOOperation* operation) argument
106 operations.Add(operation);
114 IOOperation* operation = it.Next();) {
115 if (operation->startedEvent->operation == address)
116 return operation;
133 IOOperation* operation = it.Next();) {
136 modelOperation.startedEvent = operation
1186 IOOperation* operation = new(std::nothrow) IOOperation(event); local
1204 IOOperation* operation = request->FindOperation(event->operation); local
[all...]
/haiku/src/servers/package/
H A DFSTransaction.cpp153 const OperationInfo& operation = fOperations[i]; local
155 if (operation.IsEnabled())
156 rolledBack = operation.RollBack() == B_OK;
158 if (!rolledBack && operation.ModifiedOperation() >= 0)
159 fOperations[operation.ModifiedOperation()].SetEnabled(false);
202 "operation index %" B_PRId32 "/%" B_PRId32, index, count);
H A DFSTransaction.h55 Operation(FSTransaction* transaction, int32 operation) argument
58 fOperation(operation),
69 /*! Arms the operation rollback, i.e. rolling back the transaction will
70 revert this operation.
77 /*! Unregisters the operation rollback, i.e. rolling back the transaction
78 will not revert this operation.
/haiku/src/apps/showimage/
H A DFilter.h82 // for an operation executed in Run() method which
87 // To start the operation Start() method has to
88 // be called. The operation is executed in as many
95 // The operation is complete when IsRunning() is false
97 // To abort an operation Stop() method has to
99 // When the operation is done Completed() is called.
113 // Wait for completion of operation
136 // Number of threads to be used to perform the operation
193 enum operation { enum in class:ImageProcessor
202 ImageProcessor(enum operation o
[all...]
/haiku/headers/private/system/
H A Dsystem_profiler_defs.h216 void* operation; member in struct:system_profiler_io_operation_started
227 void* operation; member in struct:system_profiler_io_operation_finished
/haiku/src/add-ons/kernel/generic/scsi_periph/
H A Dio.cpp227 io_operation *operation, uint64 offset, size_t originalNumBlocks,
245 if (operation != NULL)
268 panic("I/O operation would need to be cut.");
274 request->io_operation = operation;
523 periph_io(scsi_periph_device_info *device, io_operation *operation, argument
535 status_t status = read_write(device, request, operation,
536 operation->Offset() / blockSize, operation->Length() / blockSize,
537 (physical_entry *)operation->Vecs(), operation
226 read_write(scsi_periph_device_info *device, scsi_ccb *request, io_operation *operation, uint64 offset, size_t originalNumBlocks, physical_entry* vecs, size_t vecCount, bool isWrite, size_t* _bytesTransferred) argument
[all...]
/haiku/src/system/kernel/posix/
H A Dxsi_semaphore.cpp131 // We return true in case the operation causes the
394 // Record the sem_undo operation into our private fUndoList and
1138 short operation = operations[i].sem_op; local
1141 if (operation < 0) {
1142 if (semaphore->Add(operation)) {
1149 } else if (operation == 0) {
1162 semaphore->Add(operation);
1172 short operation = operations[j].sem_op; local
1173 if (operation != 0)
1174 semaphore->Revert(operation);
1230 short operation = operations[i].sem_op; local
1240 short operation = operations[j].sem_op; local
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/
H A Dkernel_emu.h19 status_t notify_listener(int32 operation, uint32 details, dev_t device,
24 status_t notify_query(port_id port, int32 token, int32 operation,
/haiku/src/apps/debuganalyzer/gui/main_window/
H A DSchedulingPage.cpp879 Model::IOOperation& operation = request->operations[k]; local
880 if (operation.startedEvent->time > fModel->BaseTime() + time
881 || (operation.IsFinished()
882 && operation.FinishedTime()
887 text << "\n " << (operation.IsWrite() ? "write" : "read")
888 << ": " << operation.BytesTransferred() << "/"
889 << operation.Length() << " ";
890 if (operation.IsFinished()) {
893 << format_nanotime(operation.FinishedTime()
894 - operation
1198 Model::IOOperation* operation = operations.ItemAt(0); local
[all...]
/haiku/src/tests/system/kernel/file_corruption/driver/
H A Dchecksum_device.cpp485 static status_t _DoIOEntry(void* data, IOOperation* operation)
487 return ((RawDevice*)data)->_DoIO(operation);
490 status_t _DoIO(IOOperation* operation)
492 off_t offset = operation->Offset();
493 generic_size_t length = operation->Length();
498 const generic_io_vec* vecs = operation->Vecs();
500 bool isWrite = operation->IsWrite();
505 fIOScheduler->OperationCompleted(operation, error, 0);
513 fIOScheduler->OperationCompleted(operation, B_OK, operation
[all...]

Completed in 113 milliseconds

123