Lines Matching full:ata

3  *  libata-scsi.c - helper library for ATA
426 /* If we set cc then ATA pass-through will cause a in ata_cmd_ioctl()
434 /* Send userspace a few ATA registers (same as drivers/ide) */ in ata_cmd_ioctl()
436 desc[0] == 0x09) { /* code is "ATA Descriptor" */ in ata_cmd_ioctl()
510 /* If we set cc then ATA pass-through will cause a in ata_task_ioctl()
518 /* Send userspace ATA registers */ in ata_task_ioctl()
520 desc[0] == 0x09) {/* code is "ATA Descriptor" */ in ata_task_ioctl()
621 * @dev: ATA device to which the new command is attached
622 * @cmd: SCSI command that originated this ATA command
626 * ATA command sent to the hardware.
698 * Decode and dump the ATA error/status registers for the user so
735 * ata_to_sense_error - convert ATA error to SCSI error
736 * @id: ATA device number
737 * @drv_stat: value contained in ATA status register
738 * @drv_err: value contained in ATA error register
744 * Converts an ATA error into a SCSI error. Fill out pointers to
860 pr_err("ata%u: translated ATA stat/err 0x%02x/%02x to SCSI SK/ASC/ASCQ 0x%x/%02x/%02x\n", in ata_to_sense_error()
869 * This function is specific to the ATA descriptor format sense
870 * block specified for the ATA pass through commands. Regardless
873 * block. If there was no error, we get the request from an ATA
876 * asc,ascq = ATA PASS-THROUGH INFORMATION AVAILABLE
904 * ATA PASS-THROUGH INFORMATION AVAILABLE in ata_gen_passthru_sense()
971 * Generate sense block for a failed ATA command @qc. Descriptor
1151 * Clear dev->sdev, schedule the device for ATA detach and invoke
1182 * @qc: Storage for translated ATA taskfile
1184 * Sets up an ATA taskfile to issue STANDBY (to stop) or READ VERIFY
1254 /* Issue ATA STANDBY IMMEDIATE command */ in ata_scsi_start_stop_xlat()
1278 * @qc: Storage for translated ATA taskfile
1280 * Sets up an ATA taskfile to issue FLUSH CACHE or
1365 * ata_scsi_verify_xlat - Translate SCSI VERIFY command into an ATA one
1366 * @qc: Storage for translated ATA taskfile
1368 * Converts SCSI VERIFY command to an ATA READ VERIFY command.
1508 * ata_scsi_rw_xlat - Translate SCSI r/w command into an ATA one
1509 * @qc: Storage for translated ATA taskfile
1512 * ATA counterpart, including starting sector (LBA),
1592 /* Check and compose ATA command */ in ata_scsi_rw_xlat()
1596 * However, for ATA R/W commands, sector count 0 means in ata_scsi_rw_xlat()
1599 * WARNING: one or two older ATA drives treat 0 as 0... in ata_scsi_rw_xlat()
1643 /* For ATA pass thru (SAT) commands, generate a sense block if in ata_scsi_qc_complete()
1646 * condition is generated and the ATA register values are returned in ata_scsi_qc_complete()
1650 * asc,ascq = ATA PASS-THROUGH INFORMATION AVAILABLE in ata_scsi_qc_complete()
1669 * ata_scsi_translate - Translate then issue SCSI command to ATA device
1670 * @dev: ATA device to which the command is addressed
1672 * @xlat_func: Actor which translates @cmd to an ATA taskfile
1675 * command issued can be directly translated into an ATA
1682 * ATA command, else 1 to finish translation. If 1 is returned
1843 /* set scsi removable (RMB) bit per ata bit, or if the in ata_scsiop_inq_std()
1856 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std()
1892 0x89, /* page 0x89, ata info page */ in ata_scsiop_inq_00()
1916 * Returns ATA device serial number.
1942 * - vendor specific ASCII containing the ATA serial number
1944 * name ("ATA "), model and serial numbers.
1971 memcpy(rbuf + num, "ATA ", 8); in ata_scsiop_inq_83()
1996 * ata_scsiop_inq_89 - Simulate INQUIRY VPD page 89, ATA info
2000 * Yields SAT-specified ATA VPD page.
2019 /* we don't store the ATA device signature, so we fake it */ in ata_scsiop_inq_89()
2051 * The ATA spec doesn't even know about a granularity or alignment in ata_scsiop_inq_b0()
2187 * @dev: ATA device of interest
2471 * correct for ATA, not ATAPI in atapi_sense_complete()
2563 * correct for ATA, not ATAPI in atapi_qc_complete()
2598 * correct for ATA, not ATAPI in atapi_qc_complete()
2738 * @ap: ATA port to which the device is attached
2739 * @scsidev: SCSI device from which we derive the ATA device
2742 * map that onto an ATA bus, and using that mapping
2750 * Associated ATA device, or %NULL if not found.
2803 * ata_scsi_pass_thru - convert ATA pass-thru CDB to taskfile
2820 /* 7Fh variable length cmd means a ata pass-thru(32) */ in ata_scsi_pass_thru()
3123 * ata_scsi_write_same_xlat() - SATL Write Same to ATA SCT Write Same
3309 * ata_scsi_report_zones_complete - convert ATA output
3542 * @qc: Storage for translated ATA taskfile
3596 * @qc: Storage for translated ATA taskfile
3647 * @qc: Storage for translated ATA taskfile
3649 * Converts a MODE SELECT command to an ATA SET FEATURES taskfile.
3770 goto skip; /* No ATA command to send */ in ata_scsi_mode_select_xlat()
3827 * We don't support the ATA "security" protocol. in ata_scsi_security_inout_xlat()
3845 /* convert to the sector-based ATA addressing */ in ata_scsi_security_inout_xlat()
3888 * if service action represents a ata pass-thru(32) command, in ata_scsi_var_len_cdb_xlat()
3899 * ata_get_xlat_func - check if SCSI to ATA translation is possible
3900 * @dev: ATA device
3999 /* ATA_16 passthru, treat as an ATA command */ in __ata_scsi_queuecmd()
4025 * ATA taskfiles, and queues the taskfiles to be sent to
4029 * ATA and ATAPI devices appearing as SCSI devices.
4032 * ATA host lock
4065 * ata_scsi_simulate - simulate SCSI command on ATA device
4345 * @dev: ATA device to offline attached SCSI device for
4369 * @dev: ATA device to remove attached SCSI device for
4467 * @work: Pointer to ATA port to perform SCSI hotplug on
4575 * @work: Pointer to ATA port to perform scsi_rescan_device()
4577 * After ATA pass thru (SAT) commands are executed successfully,