Lines Matching defs:operation

353 usb_disk_operation_interrupt(device_lun *lun, uint8* operation,
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,
435 TRACE("operation: lun: %u; op: %u; data: %p; dlen: %p (%lu); in: %c\n",
436 lun->logical_unit_number, operation[0],
452 memcpy(command.command_block, operation, operationLength);
533 // the operation is complete and has succeeded
536 if (operation[0] == SCSI_REQUEST_SENSE_6)
539 // the operation is complete but has failed at the SCSI level
540 if (operation[0] != SCSI_TEST_UNIT_READY_6) {
541 TRACE_ALWAYS("operation %#" B_PRIx8
542 " failed at the SCSI level\n", operation[0]);
553 TRACE_ALWAYS("phase error in operation %#" B_PRIx8 "\n",
554 operation[0]);
571 usb_disk_operation(device_lun *lun, uint8* operation, size_t opLength,
576 return usb_disk_operation_interrupt(lun, operation,
579 return usb_disk_operation_bulk(lun, operation, opLength,
586 usb_disk_operation(device_lun *lun, uint8* operation, size_t opLength,
604 return usb_disk_operation(lun, operation, opLength,
865 // changed, which is more or less expected if it is the first operation
912 // changed, which is more or less expected if it is the first operation
1822 IOOperation operation;
1823 status = dmaResource->TranslateNext(request, &operation, 0);
1829 ", write: %s\n", request, operation.Offset(),
1830 operation.Length(), operation.IsWrite() ? "yes" : "no");
1834 data.phys_vecs = (physical_entry*)operation.Vecs();
1835 data.vec_count = operation.VecCount();
1837 size_t length = operation.Length();
1838 const uint64 blockPosition = operation.Offset() / lun->block_size;
1840 if (operation.IsWrite()) {
1848 operation.SetStatus(status, length);
1849 } while (status == B_OK && !operation.Finish());
1851 if (status == B_OK && operation.Status() != B_OK) {
1853 status = operation.Status();
1856 request->OperationFinished(&operation);
1857 dmaResource->RecycleBuffer(operation.Buffer());