Lines Matching full:ata
3 * libata-scsi.c - helper library for ATA
441 /* If we set cc then ATA pass-through will cause a in ata_cmd_ioctl()
449 /* Send userspace a few ATA registers (same as drivers/ide) */ in ata_cmd_ioctl()
451 desc[0] == 0x09) { /* code is "ATA Descriptor" */ in ata_cmd_ioctl()
529 /* If we set cc then ATA pass-through will cause a in ata_task_ioctl()
537 /* Send userspace ATA registers */ in ata_task_ioctl()
539 desc[0] == 0x09) {/* code is "ATA Descriptor" */ in ata_task_ioctl()
640 * @dev: ATA device to which the new command is attached
641 * @cmd: SCSI command that originated this ATA command
645 * ATA command sent to the hardware.
713 * ata_to_sense_error - convert ATA error to SCSI error
714 * @id: ATA device number
715 * @drv_stat: value contained in ATA status register
716 * @drv_err: value contained in ATA error register
721 * Converts an ATA error into a SCSI error. Fill out pointers to
840 * This function is specific to the ATA descriptor format sense
841 * block specified for the ATA pass through commands. Regardless
844 * block. If there was no error, we get the request from an ATA
847 * asc,ascq = ATA PASS-THROUGH INFORMATION AVAILABLE
874 * ATA PASS-THROUGH INFORMATION AVAILABLE in ata_gen_passthru_sense()
941 * Generate sense block for a failed ATA command @qc. Descriptor
1102 * associated with an ATA device is scanned on a port.
1118 * consumer (child) and the ata port the supplier (parent). in ata_scsi_slave_alloc()
1165 * Clear dev->sdev, schedule the device for ATA detach and invoke
1195 * @qc: Storage for translated ATA taskfile
1197 * Sets up an ATA taskfile to issue STANDBY (to stop) or READ VERIFY
1256 * @qc: Storage for translated ATA taskfile
1258 * Sets up an ATA taskfile to issue FLUSH CACHE or
1355 * ata_scsi_verify_xlat - Translate SCSI VERIFY command into an ATA one
1356 * @qc: Storage for translated ATA taskfile
1358 * Converts SCSI VERIFY command to an ATA READ VERIFY command.
1498 * ata_scsi_rw_xlat - Translate SCSI r/w command into an ATA one
1499 * @qc: Storage for translated ATA taskfile
1502 * ATA counterpart, including starting sector (LBA),
1584 /* Check and compose ATA command */ in ata_scsi_rw_xlat()
1588 * However, for ATA R/W commands, sector count 0 means in ata_scsi_rw_xlat()
1591 * WARNING: one or two older ATA drives treat 0 as 0... in ata_scsi_rw_xlat()
1635 /* For ATA pass thru (SAT) commands, generate a sense block if in ata_scsi_qc_complete()
1638 * condition is generated and the ATA register values are returned in ata_scsi_qc_complete()
1642 * asc,ascq = ATA PASS-THROUGH INFORMATION AVAILABLE in ata_scsi_qc_complete()
1657 * ata_scsi_translate - Translate then issue SCSI command to ATA device
1658 * @dev: ATA device to which the command is addressed
1660 * @xlat_func: Actor which translates @cmd to an ATA taskfile
1663 * command issued can be directly translated into an ATA
1670 * ATA command, else 1 to finish translation. If 1 is returned
1831 /* set scsi removable (RMB) bit per ata bit, or if the in ata_scsiop_inq_std()
1847 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std()
1883 0x89, /* page 0x89, ata info page */ in ata_scsiop_inq_00()
1907 * Returns ATA device serial number.
1933 * - vendor specific ASCII containing the ATA serial number
1935 * name ("ATA "), model and serial numbers.
1962 memcpy(rbuf + num, "ATA ", 8); in ata_scsiop_inq_83()
1987 * ata_scsiop_inq_89 - Simulate INQUIRY VPD page 89, ATA info
1991 * Yields SAT-specified ATA VPD page.
2010 /* we don't store the ATA device signature, so we fake it */ in ata_scsiop_inq_89()
2042 * The ATA spec doesn't even know about a granularity or alignment in ata_scsiop_inq_b0()
2198 * Translate an ATA duration limit in microseconds to a SCSI duration limit
2265 * (ATA feature control mode page).
2275 * The first four bytes of ATA Feature Control mode page are a header. in ata_msense_control_ata_feature()
2290 * @dev: ATA device of interest
2594 * correct for ATA, not ATAPI in atapi_qc_complete()
2774 * @ap: ATA port to which the device is attached
2775 * @scsidev: SCSI device from which we derive the ATA device
2778 * map that onto an ATA bus, and using that mapping
2786 * Associated ATA device, or %NULL if not found.
2839 * ata_scsi_pass_thru - convert ATA pass-thru CDB to taskfile
2856 /* 7Fh variable length cmd means a ata pass-thru(32) */ in ata_scsi_pass_thru()
3159 * ata_scsi_write_same_xlat() - SATL Write Same to ATA SCT Write Same
3368 * ata_scsi_report_zones_complete - convert ATA output
3601 * @qc: Storage for translated ATA taskfile
3696 * Translate MODE SELECT control mode page, sub-pages f2h (ATA feature mode
3708 * The first four bytes of ATA Feature Control mode page are a header, in ata_mselect_control_ata_feature()
3749 * @qc: Storage for translated ATA taskfile
3775 * @qc: Storage for translated ATA taskfile
3777 * Converts a MODE SELECT command to an ATA SET FEATURES taskfile.
3875 * Supported subpages: all subpages and ATA feature sub-page f2h of in ata_scsi_mode_select_xlat()
3916 goto skip; /* No ATA command to send */ in ata_scsi_mode_select_xlat()
3973 * We don't support the ATA "security" protocol. in ata_scsi_security_inout_xlat()
3991 /* convert to the sector-based ATA addressing */ in ata_scsi_security_inout_xlat()
4034 * if service action represents a ata pass-thru(32) command, in ata_scsi_var_len_cdb_xlat()
4045 * ata_get_xlat_func - check if SCSI to ATA translation is possible
4046 * @dev: ATA device
4145 /* ATA_16 passthru, treat as an ATA command */ in __ata_scsi_queuecmd()
4171 * ATA taskfiles, and queues the taskfiles to be sent to
4175 * ATA and ATAPI devices appearing as SCSI devices.
4178 * ATA host lock
4211 * ata_scsi_simulate - simulate SCSI command on ATA device
4491 * @dev: ATA device to offline attached SCSI device for
4515 * @dev: ATA device to remove attached SCSI device for
4613 * @work: Pointer to ATA port to perform SCSI hotplug on
4718 * @work: Pointer to ATA port to perform scsi_rescan_device()
4720 * After ATA pass thru (SAT) commands are executed successfully,