Lines Matching refs:sata_dev
120 dev->sata_dev.class == ATA_DEV_ATAPI)) { in sas_ata_task_done()
121 memcpy(dev->sata_dev.fis, resp->ending_fis, ATA_RESP_FIS_SIZE); in sas_ata_task_done()
124 qc->err_mask |= ac_err_mask(dev->sata_dev.fis[2]); in sas_ata_task_done()
126 link->eh_info.err_mask |= ac_err_mask(dev->sata_dev.fis[2]); in sas_ata_task_done()
142 dev->sata_dev.fis[2] = ATA_ERR | ATA_DRDY; /* tf status */ in sas_ata_task_done()
143 dev->sata_dev.fis[3] = ATA_ABORTED; /* tf error */ in sas_ata_task_done()
235 ata_tf_from_fis(dev->sata_dev.fis, &qc->result_tf); in sas_ata_qc_fill_rtf()
269 &dev->sata_dev.rps_resp); in sas_get_ata_info()
276 memcpy(dev->frame_rcvd, &dev->sata_dev.rps_resp.rps.fis, in sas_get_ata_info()
278 dev->sata_dev.class = sas_get_ata_command_set(dev); in sas_get_ata_info()
378 struct ata_port *ap = ddev->sata_dev.ap; in sas_ata_printk()
399 struct sata_device *sata_dev = &dev->sata_dev; in sas_ata_wait_after_reset() local
401 struct ata_port *ap = sata_dev->ap; in sas_ata_wait_after_reset()
437 *class = dev->sata_dev.class; in sas_ata_hard_reset()
612 found_dev->sata_dev.ata_host = ata_host; in sas_ata_init()
613 found_dev->sata_dev.ap = ap; in sas_ata_init()
652 ata_port_probe(dev->sata_dev.ap); in sas_probe_sata()
760 sata = &dev->sata_dev; in sas_suspend_sata()
782 sata = &dev->sata_dev; in sas_resume_sata()
806 dev->sata_dev.class = sas_get_ata_command_set(dev); in sas_discover_sata()
815 struct ata_port *ap = dev->sata_dev.ap; in async_sas_ata_eh()
887 struct ata_port *ap = eh_dev->sata_dev.ap; in sas_ata_eh()
917 ap = dev->sata_dev.ap; in sas_ata_schedule_reset()
935 ap = dev->sata_dev.ap; in sas_ata_wait_eh()
941 struct ata_port *ap = device->sata_dev.ap; in sas_ata_device_link_abort()
946 device->sata_dev.fis[2] = ATA_ERR | ATA_DRDY; /* tf status */ in sas_ata_device_link_abort()
947 device->sata_dev.fis[3] = ATA_ABORTED; /* tf error */ in sas_ata_device_link_abort()
974 rc = ata_ncq_prio_supported(ddev->sata_dev.ap, sdev, &supported); in sas_ncq_prio_supported_show()
993 rc = ata_ncq_prio_enabled(ddev->sata_dev.ap, sdev, &enabled); in sas_ncq_prio_enable_show()
1013 rc = ata_ncq_prio_enable(ddev->sata_dev.ap, sdev, enable); in sas_ncq_prio_enable_store()