1ATA_SCSI_RW_XLAT(9) libata SCSI translation/emulat ATA_SCSI_RW_XLAT(9)
2
3
4
6 ata_scsi_rw_xlat - Translate SCSI r/w command into an ATA one
7
9 unsigned int ata_scsi_rw_xlat(struct ata_queued_cmd * qc);
10
12 qc
13 Storage for translated ATA taskfile
14
16 Converts any of six SCSI read/write commands into the ATA counterpart,
17 including starting sector (LBA), sector count, and taking into account
18 the device's LBA48 support.
19
20 Commands READ_6, READ_10, READ_16, WRITE_6, WRITE_10, and WRITE_16 are
21 currently supported.
22
24 spin_lock_irqsave(host lock)
25
27 Zero on success, non-zero on error.
28
30 Jeff Garzik
31 Author.
32
34Kernel Hackers Manual 3.10 June 2019 ATA_SCSI_RW_XLAT(9)