Searched refs:operation (Results 1 - 25 of 66) 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
323 IOOperation* operation = fCompletedOperations.RemoveHead(); local
413 IOOperation* operation = fUnusedOperations.RemoveHead(); local
444 IOOperation* operation = fUnusedOperations.RemoveHead(); local
557 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
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; local
460 operation.finishedCondition.Init(this, "I/O cache operation finished");
464 status_t error = fDMAResource->TranslateNext(request, &operation,
469 error = _DoOperation(operation);
491 _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.cpp405 DMAResource::TranslateNext(IORequest* request, IOOperation* operation, argument
618 // this request to the next I/O operation.
726 operation->SetBuffer(dmaBuffer);
727 operation->SetBlockSize(fBlockSize);
728 operation->SetOriginalRange(originalOffset,
730 operation->SetRange(offset, dmaLength);
731 operation->SetPartial(partialBegin != 0,
735 operation->SetUsesBounceBuffer(bounceLeft < fBounceBufferSize);
736 if (operation->UsesBounceBuffer())
742 status_t error = operation
[all...]
/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/headers/private/drivers/
H A Dmmc.h85 IOOperation* operation, bool offsetAsSectors);
105 uint8_t command, IOOperation* operation, bool offsetAsSectors);
/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/virtual/virtio_block/
H A Dvirtio_block.cpp191 do_io(void* cookie, IOOperation* operation) argument
198 BStackOrHeapArray<physical_entry, 16> entries(operation->VecCount() + 2);
201 header->type = operation->IsWrite() ? VIRTIO_BLK_T_OUT : VIRTIO_BLK_T_IN;
202 header->sector = operation->Offset() / 512;
210 entries[operation->VecCount() + 1].address = entries[0].address
212 entries[operation->VecCount() + 1].size = sizeof(uint8);
214 memcpy(entries + 1, operation->Vecs(), operation->VecCount()
221 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
1187 IOOperation* operation = new(std::nothrow) IOOperation(event); local
1205 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/src/preferences/input/
H A DInputWindow.cpp110 int32 operation = message->FindInt32("be:opcode"); local
113 if (operation == B_INPUT_DEVICE_ADDED) {
117 } else if (operation == B_INPUT_DEVICE_REMOVED) {
/haiku/src/add-ons/kernel/drivers/disk/usb/usb_disk/
H A Dusb_disk.cpp353 usb_disk_operation_interrupt(device_lun *lun, uint8* operation, argument
357 TRACE("operation: lun: %u; op: 0x%x; data: %p; dlen: %p (%lu); in: %c\n",
358 lun->logical_unit_number, operation[0], data.vecs, dataLength,
364 // Step 1 : send the SCSI operation as a class specific request
368 0/*value*/, device->interface/*index*/, 12, operation, &actualLength);
375 if (operation[0] != SCSI_REQUEST_SENSE_6) {
406 if (operation[0] != SCSI_REQUEST_SENSE_6) {
423 // wait for the device to finish the operation.
431 usb_disk_operation_bulk(device_lun *lun, uint8 *operation, size_t operationLength, argument
435 TRACE("operation
571 usb_disk_operation(device_lun *lun, uint8* operation, size_t opLength, const transfer_data& data, size_t *dataLength, bool directionIn, err_act *_action = NULL) argument
586 usb_disk_operation(device_lun *lun, uint8* operation, size_t opLength, void *buffer, size_t *dataLength, bool directionIn, err_act *_action = NULL) argument
1822 IOOperation operation; local
[all...]
H A Dusb_disk_scsi.h36 uint8 operation; member in struct:scsi_command_6_s
44 uint8 operation; member in struct:scsi_command_10_s
/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/bus_managers/mmc/
H A Dmmc_module.cpp98 IOOperation* operation, bool offsetAsSectors)
104 result = bus->DoIO(rca, command, operation, offsetAsSectors);
97 mmc_bus_do_io(device_node* node, void* cookie, uint16_t rca, uint8_t command, IOOperation* operation, bool offsetAsSectors) argument
H A Dmmc_bus.h47 IOOperation* operation,
/haiku/src/add-ons/kernel/generic/scsi_periph/
H A Dio.cpp230 io_operation *operation, uint64 offset, size_t originalNumBlocks,
248 if (operation != NULL)
271 panic("I/O operation would need to be cut.");
277 request->io_operation = operation;
526 periph_io(scsi_periph_device_info *device, io_operation *operation, argument
538 status_t status = read_write(device, request, operation,
539 operation->Offset() / blockSize, operation->Length() / blockSize,
540 (physical_entry *)operation->Vecs(), operation
229 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/add-ons/kernel/drivers/disk/nvme/
H A Dnvme_disk.cpp571 IOOperation operation; local
572 status = handle->info->dma_resource.TranslateNext(request, &operation, 0);
578 ", write: %s\n", request, operation.Offset(),
579 operation.Length(), operation.IsWrite() ? "yes" : "no");
581 nvme_request.write = operation.IsWrite();
582 nvme_request.lba_start = operation.Offset() / block_size;
583 nvme_request.lba_count = operation.Length() / block_size;
584 nvme_request.iovecs = (physical_entry*)operation.Vecs();
585 nvme_request.iovec_count = operation
[all...]

Completed in 237 milliseconds

123