Lines Matching full:ata

3  *  libata-scsi.c - helper library for ATA
416 /* If we set cc then ATA pass-through will cause a in ata_cmd_ioctl()
424 /* Send userspace a few ATA registers (same as drivers/ide) */ in ata_cmd_ioctl()
426 desc[0] == 0x09) { /* code is "ATA Descriptor" */ in ata_cmd_ioctl()
497 /* If we set cc then ATA pass-through will cause a in ata_task_ioctl()
505 /* Send userspace ATA registers */ in ata_task_ioctl()
507 desc[0] == 0x09) {/* code is "ATA Descriptor" */ in ata_task_ioctl()
608 * @dev: ATA device to which the new command is attached
609 * @cmd: SCSI command that originated this ATA command
613 * ATA command sent to the hardware.
661 * Decode and dump the ATA error/status registers for the user so
672 pr_warn("ata%u: status=0x%02x { ", id, stat); in ata_dump_status()
686 pr_warn("ata%u: error=0x%02x { ", id, err); in ata_dump_status()
703 * ata_to_sense_error - convert ATA error to SCSI error
704 * @id: ATA device number
705 * @drv_stat: value contained in ATA status register
706 * @drv_err: value contained in ATA error register
712 * Converts an ATA error into a SCSI error. Fill out pointers to
828 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()
837 * This function is specific to the ATA descriptor format sense
838 * block specified for the ATA pass through commands. Regardless
841 * block. If there was no error, we get the request from an ATA
844 * asc,ascq = ATA PASS-THROUGH INFORMATION AVAILABLE
874 * ATA PASS-THROUGH INFORMATION AVAILABLE in ata_gen_passthru_sense()
942 * Generate sense block for a failed ATA command @qc. Descriptor
1124 * Clear dev->sdev, schedule the device for ATA detach and invoke
1155 * @qc: Storage for translated ATA taskfile
1157 * Sets up an ATA taskfile to issue STANDBY (to stop) or READ VERIFY
1227 /* Issue ATA STANDBY IMMEDIATE command */ in ata_scsi_start_stop_xlat()
1251 * @qc: Storage for translated ATA taskfile
1253 * Sets up an ATA taskfile to issue FLUSH CACHE or
1372 * ata_scsi_verify_xlat - Translate SCSI VERIFY command into an ATA one
1373 * @qc: Storage for translated ATA taskfile
1375 * Converts SCSI VERIFY command to an ATA READ VERIFY command.
1515 * ata_scsi_rw_xlat - Translate SCSI r/w command into an ATA one
1516 * @qc: Storage for translated ATA taskfile
1519 * ATA counterpart, including starting sector (LBA),
1595 /* Check and compose ATA command */ in ata_scsi_rw_xlat()
1599 * However, for ATA R/W commands, sector count 0 means in ata_scsi_rw_xlat()
1602 * WARNING: one or two older ATA drives treat 0 as 0... in ata_scsi_rw_xlat()
1648 /* For ATA pass thru (SAT) commands, generate a sense block if in ata_scsi_qc_complete()
1651 * condition is generated and the ATA register values are returned in ata_scsi_qc_complete()
1655 * asc,ascq = ATA PASS-THROUGH INFORMATION AVAILABLE in ata_scsi_qc_complete()
1674 * ata_scsi_translate - Translate then issue SCSI command to ATA device
1675 * @dev: ATA device to which the command is addressed
1677 * @xlat_func: Actor which translates @cmd to an ATA taskfile
1680 * command issued can be directly translated into an ATA
1687 * ATA command, else 1 to finish translation. If 1 is returned
1898 /* set scsi removable (RMB) bit per ata bit, or if the in ata_scsiop_inq_std()
1911 memcpy(&rbuf[8], "ATA ", 8); in ata_scsiop_inq_std()
1947 0x89, /* page 0x89, ata info page */ in ata_scsiop_inq_00()
1967 * Returns ATA device serial number.
1993 * - vendor specific ASCII containing the ATA serial number
1995 * name ("ATA "), model and serial numbers.
2022 memcpy(rbuf + num, "ATA ", 8); in ata_scsiop_inq_83()
2047 * ata_scsiop_inq_89 - Simulate INQUIRY VPD page 89, ATA info
2051 * Yields SAT-specified ATA VPD page.
2070 /* we don't store the ATA device signature, so we fake it */ in ata_scsiop_inq_89()
2102 * The ATA spec doesn't even know about a granularity or alignment in ata_scsiop_inq_b0()
2218 * @dev: ATA device of interest
2507 * correct for ATA, not ATAPI in atapi_sense_complete()
2605 * correct for ATA, not ATAPI in atapi_qc_complete()
2640 * correct for ATA, not ATAPI in atapi_qc_complete()
2781 * @ap: ATA port to which the device is attached
2782 * @scsidev: SCSI device from which we derive the ATA device
2785 * map that onto an ATA bus, and using that mapping
2793 * Associated ATA device, or %NULL if not found.
2846 * ata_scsi_pass_thru - convert ATA pass-thru CDB to taskfile
2863 /* 7Fh variable length cmd means a ata pass-thru(32) */ in ata_scsi_pass_thru()
3151 * ata_scsi_write_same_xlat() - SATL Write Same to ATA SCT Write Same
3336 * ata_scsi_report_zones_complete - convert ATA output
3569 * @qc: Storage for translated ATA taskfile
3626 * @qc: Storage for translated ATA taskfile
3680 * @qc: Storage for translated ATA taskfile
3682 * Converts a MODE SELECT command to an ATA SET FEATURES taskfile.
3805 goto skip; /* No ATA command to send */ in ata_scsi_mode_select_xlat()
3862 * We don't support the ATA "security" protocol. in ata_scsi_security_inout_xlat()
3880 /* convert to the sector-based ATA addressing */ in ata_scsi_security_inout_xlat()
3923 * if service action represents a ata pass-thru(32) command, in ata_scsi_var_len_cdb_xlat()
3934 * ata_get_xlat_func - check if SCSI to ATA translation is possible
3935 * @dev: ATA device
4002 * @ap: ATA port to which the command was being sent
4046 /* ATA_16 passthru, treat as an ATA command */ in __ata_scsi_queuecmd()
4075 * ATA taskfiles, and queues the taskfiles to be sent to
4079 * ATA and ATAPI devices appearing as SCSI devices.
4082 * ATA host lock
4117 * ata_scsi_simulate - simulate SCSI command on ATA device
4391 * @dev: ATA device to offline attached SCSI device for
4415 * @dev: ATA device to remove attached SCSI device for
4513 * @work: Pointer to ATA port to perform SCSI hotplug on
4625 * @work: Pointer to ATA port to perform scsi_rescan_device()
4627 * After ATA pass thru (SAT) commands are executed successfully,