Lines Matching full:ata
3 * libata-scsi.c - helper library for ATA
234 * ata_scsi_set_passthru_sense_fields - Set ATA fields in sense buffer
235 * @qc: ATA PASS-THROUGH command.
237 * Populates "ATA Status Return sense data descriptor" / "Fixed format
238 * sense data" with ATA taskfile fields.
252 "missing result TF: can't set ATA PT sense fields\n"); in ata_scsi_set_passthru_sense_fields()
522 /* If we set cc then ATA pass-through will cause a in ata_cmd_ioctl()
530 /* Send userspace a few ATA registers (same as drivers/ide) */ in ata_cmd_ioctl()
532 desc[0] == 0x09) { /* code is "ATA Descriptor" */ in ata_cmd_ioctl()
610 /* If we set cc then ATA pass-through will cause a in ata_task_ioctl()
618 /* Send userspace ATA registers */ in ata_task_ioctl()
620 desc[0] == 0x09) {/* code is "ATA Descriptor" */ in ata_task_ioctl()
721 * @dev: ATA device to which the new command is attached
722 * @cmd: SCSI command that originated this ATA command
726 * ATA command sent to the hardware.
794 * ata_to_sense_error - convert ATA error to SCSI error
795 * @drv_stat: value contained in ATA status register
796 * @drv_err: value contained in ATA error register
801 * Converts an ATA error into a SCSI error. Fill out pointers to
920 * This function is specific to the ATA pass through commands.
922 * block. If there was no error, we get the request from an ATA
925 * asc,ascq = ATA PASS-THROUGH INFORMATION AVAILABLE
940 "missing result TF: can't generate ATA PT sense data\n"); in ata_gen_passthru_sense()
955 * ATA PASS-THROUGH INFORMATION AVAILABLE in ata_gen_passthru_sense()
974 * Generate sense block for a failed ATA command @qc. Descriptor
1140 * associated with an ATA device is scanned on a port.
1156 * consumer (child) and the ata port the supplier (parent). in ata_scsi_sdev_init()
1204 * Clear dev->sdev, schedule the device for ATA detach and invoke
1234 * @qc: Storage for translated ATA taskfile
1236 * Sets up an ATA taskfile to issue STANDBY (to stop) or READ VERIFY
1295 * @qc: Storage for translated ATA taskfile
1297 * Sets up an ATA taskfile to issue FLUSH CACHE or
1385 * ata_scsi_verify_xlat - Translate SCSI VERIFY command into an ATA one
1386 * @qc: Storage for translated ATA taskfile
1388 * Converts SCSI VERIFY command to an ATA READ VERIFY command.
1528 * ata_scsi_rw_xlat - Translate SCSI r/w command into an ATA one
1529 * @qc: Storage for translated ATA taskfile
1532 * ATA counterpart, including starting sector (LBA),
1614 /* Check and compose ATA command */ in ata_scsi_rw_xlat()
1618 * However, for ATA R/W commands, sector count 0 means in ata_scsi_rw_xlat()
1621 * WARNING: one or two older ATA drives treat 0 as 0... in ata_scsi_rw_xlat()
1667 /* For ATA pass thru (SAT) commands, generate a sense block if in ata_scsi_qc_complete()
1670 * condition is generated and the ATA register values are returned in ata_scsi_qc_complete()
1674 * asc,ascq = ATA PASS-THROUGH INFORMATION AVAILABLE in ata_scsi_qc_complete()
1690 * ata_scsi_translate - Translate then issue SCSI command to ATA device
1691 * @dev: ATA device to which the command is addressed
1693 * @xlat_func: Actor which translates @cmd to an ATA taskfile
1696 * command issued can be directly translated into an ATA
1703 * ATA command, else 1 to finish translation. If 1 is returned
1863 * Set the SCSI Removable Media Bit (RMB) if the ATA removable media in ata_scsiop_inq_std()
1864 * device bit (obsolete since ATA-8 ACS) is set. in ata_scsiop_inq_std()
1878 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std()
1920 0x89, /* page 0x89, ata info page */ in ata_scsiop_inq_00()
1946 * Returns ATA device serial number.
1975 * - vendor specific ASCII containing the ATA serial number
1977 * name ("ATA "), model and serial numbers.
2005 memcpy(rbuf + num, "ATA ", 8); in ata_scsiop_inq_83()
2031 * ata_scsiop_inq_89 - Simulate INQUIRY VPD page 89, ATA info
2036 * Yields SAT-specified ATA VPD page.
2056 /* we don't store the ATA device signature, so we fake it */ in ata_scsiop_inq_89()
2100 * The ATA spec doesn't even know about a granularity or alignment in ata_scsiop_inq_b0()
2369 * Translate an ATA duration limit in microseconds to a SCSI duration limit
2441 * (ATA feature control mode page).
2451 * The first four bytes of ATA Feature Control mode page are a header. in ata_msense_control_ata_feature()
2466 * @dev: ATA device of interest
2962 * @ap: ATA port to which the device is attached
2963 * @scsidev: SCSI device from which we derive the ATA device
2966 * map that onto an ATA bus, and using that mapping
2974 * Associated ATA device, or %NULL if not found.
3027 * ata_scsi_pass_thru - convert ATA pass-thru CDB to taskfile
3044 /* 7Fh variable length cmd means a ata pass-thru(32) */ in ata_scsi_pass_thru()
3347 * ata_scsi_write_same_xlat() - SATL Write Same to ATA SCT Write Same
3561 * ata_scsi_report_zones_complete - convert ATA output
3794 * @qc: Storage for translated ATA taskfile
3889 * Translate MODE SELECT control mode page, sub-pages f2h (ATA feature mode
3901 * The first four bytes of ATA Feature Control mode page are a header, in ata_mselect_control_ata_feature()
3942 * @qc: Storage for translated ATA taskfile
3968 * @qc: Storage for translated ATA taskfile
3970 * Converts a MODE SELECT command to an ATA SET FEATURES taskfile.
4068 * Supported subpages: all subpages and ATA feature sub-page f2h of in ata_scsi_mode_select_xlat()
4109 goto skip; /* No ATA command to send */ in ata_scsi_mode_select_xlat()
4166 * We don't support the ATA "security" protocol. in ata_scsi_security_inout_xlat()
4184 /* convert to the sector-based ATA addressing */ in ata_scsi_security_inout_xlat()
4227 * if service action represents a ata pass-thru(32) command, in ata_scsi_var_len_cdb_xlat()
4238 * ata_get_xlat_func - check if SCSI to ATA translation is possible
4239 * @dev: ATA device
4338 /* ATA_16 passthru, treat as an ATA command */ in __ata_scsi_queuecmd()
4364 * ATA taskfiles, and queues the taskfiles to be sent to
4368 * ATA and ATAPI devices appearing as SCSI devices.
4371 * ATA host lock
4404 * ata_scsi_simulate - simulate SCSI command on ATA device
4629 * @dev: ATA device to offline attached SCSI device for
4653 * @dev: ATA device to remove attached SCSI device for
4750 * @work: Pointer to ATA port to perform SCSI hotplug on
4855 * @work: Pointer to ATA port to perform scsi_rescan_device()
4857 * After ATA pass thru (SAT) commands are executed successfully,