Home
last modified time | relevance | path

Searched refs:fis (Results 1 – 22 of 22) sorted by relevance

/drivers/block/mtip32xx/
Dmtip32xx.c612 struct host_to_dev_fis *fis; in mtip_handle_tfe() local
722 fis = (struct host_to_dev_fis *)cmd->command; in mtip_handle_tfe()
726 fis->command == ATA_CMD_SET_FEATURES) in mtip_handle_tfe()
731 fis->command == ATA_CMD_FPDMA_WRITE)) { in mtip_handle_tfe()
734 fis->command == ATA_CMD_FPDMA_WRITE ? in mtip_handle_tfe()
981 struct host_to_dev_fis *fis) in mtip_pause_ncq() argument
992 if (fis->command == ATA_CMD_SEC_ERASE_PREP) { in mtip_pause_ncq()
995 } else if ((fis->command == ATA_CMD_DOWNLOAD_MICRO) && in mtip_pause_ncq()
996 (fis->features == 0x03)) { in mtip_pause_ncq()
1000 } else if ((fis->command == ATA_CMD_SEC_ERASE_UNIT) || in mtip_pause_ncq()
[all …]
/drivers/scsi/libsas/
Dsas_ata.c142 memcpy(dev->sata_dev.fis, resp->ending_fis, ATA_RESP_FIS_SIZE); in sas_ata_task_done()
145 qc->err_mask |= ac_err_mask(dev->sata_dev.fis[2]); in sas_ata_task_done()
147 link->eh_info.err_mask |= ac_err_mask(dev->sata_dev.fis[2]); in sas_ata_task_done()
164 dev->sata_dev.fis[3] = 0x04; /* status err */ in sas_ata_task_done()
165 dev->sata_dev.fis[2] = ATA_ERR; in sas_ata_task_done()
216 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *)&task->ata_task.fis); in sas_ata_qc_issue()
263 ata_tf_from_fis(dev->sata_dev.fis, &qc->result_tf); in sas_ata_qc_fill_rtf()
295 memcpy(dev->frame_rcvd, &dev->sata_dev.rps_resp.rps.fis, in sas_get_ata_info()
610 struct dev_to_host_fis *fis = in sas_get_ata_command_set() local
617 ata_tf_from_fis((const u8 *)fis, &tf); in sas_get_ata_command_set()
Dsas_discover.c91 struct dev_to_host_fis *fis = in sas_get_port_device() local
93 if (fis->interrupt_reason == 1 && fis->lbal == 1 && in sas_get_port_device()
94 fis->byte_count_low==0x69 && fis->byte_count_high == 0x96 in sas_get_port_device()
95 && (fis->device & ~0x10) == 0) in sas_get_port_device()
Dsas_host_smp.c144 struct dev_to_host_fis *fis; in sas_report_phy_sata() local
158 fis = (struct dev_to_host_fis *) in sas_report_phy_sata()
169 if (fis->fis_type != 0x34) in sas_report_phy_sata()
/drivers/ata/
Dlibata-core.c554 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) in ata_tf_to_fis() argument
556 fis[0] = 0x27; /* Register - Host to Device FIS */ in ata_tf_to_fis()
557 fis[1] = pmp & 0xf; /* Port multiplier number*/ in ata_tf_to_fis()
559 fis[1] |= (1 << 7); /* bit 7 indicates Command FIS */ in ata_tf_to_fis()
561 fis[2] = tf->command; in ata_tf_to_fis()
562 fis[3] = tf->feature; in ata_tf_to_fis()
564 fis[4] = tf->lbal; in ata_tf_to_fis()
565 fis[5] = tf->lbam; in ata_tf_to_fis()
566 fis[6] = tf->lbah; in ata_tf_to_fis()
567 fis[7] = tf->device; in ata_tf_to_fis()
[all …]
Dsata_nv.c341 static void nv_swncq_irq_clear(struct ata_port *ap, u16 fis);
1777 static void nv_swncq_irq_clear(struct ata_port *ap, u16 fis) in nv_swncq_irq_clear() argument
1781 writew(fis, pp->irq_block); in nv_swncq_irq_clear()
2083 static void nv_swncq_hotplug(struct ata_port *ap, u32 fis) in nv_swncq_hotplug() argument
2095 if (fis & NV_SWNCQ_IRQ_ADDED) in nv_swncq_hotplug()
2097 else if (fis & NV_SWNCQ_IRQ_REMOVED) in nv_swncq_hotplug()
2222 static void nv_swncq_host_interrupt(struct ata_port *ap, u16 fis) in nv_swncq_host_interrupt() argument
2231 nv_swncq_irq_clear(ap, fis); in nv_swncq_host_interrupt()
2232 if (!fis) in nv_swncq_host_interrupt()
2238 if (fis & NV_SWNCQ_IRQ_HOTPLUG) { in nv_swncq_host_interrupt()
[all …]
Dsata_sil24.c43 u8 fis[6 * 4]; member
493 u8 fis[6 * 4]; in sil24_read_tf() local
496 memcpy_fromio(fis, prb->fis, sizeof(fis)); in sil24_read_tf()
497 ata_tf_from_fis(fis, tf); in sil24_read_tf()
617 ata_tf_to_fis(tf, pmp, is_cmd, prb->fis); in sil24_exec_polled_cmd()
883 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, prb->fis); in sil24_qc_prep()
Dsata_mv.c2238 static unsigned int mv_send_fis(struct ata_port *ap, u32 *fis, int nwords) in mv_send_fis() argument
2251 writel(fis[i], port_mmio + VENDOR_UNIQUE_FIS); in mv_send_fis()
2255 writelfl(fis[final_word], port_mmio + VENDOR_UNIQUE_FIS); in mv_send_fis()
2299 u32 fis[5]; in mv_qc_issue_fis() local
2302 ata_tf_to_fis(&qc->tf, link->pmp, 1, (void *)fis); in mv_qc_issue_fis()
2303 err = mv_send_fis(ap, fis, ARRAY_SIZE(fis)); in mv_qc_issue_fis()
Dlibahci.c1338 u8 *fis = pp->cmd_tbl; in ahci_exec_polled_cmd() local
1342 ata_tf_to_fis(tf, pmp, is_cmd, fis); in ahci_exec_polled_cmd()
/drivers/scsi/isci/
Drequest.h306 task->ata_task.fis.command == ATA_CMD_READ_LOG_EXT && in isci_task_is_ncq_recovery()
307 task->ata_task.fis.lbal == ATA_LOG_SATA_NCQ); in isci_task_is_ncq_recovery()
Drequest.c698 task->ata_task.fis.command == ATA_CMD_PACKET) { in sci_io_request_construct_sata()
2717 static void isci_process_stp_response(struct sas_task *task, struct dev_to_host_fis *fis) in isci_process_stp_response() argument
2722 resp->frame_len = sizeof(*fis); in isci_process_stp_response()
2723 memcpy(resp->ending_fis, fis, sizeof(*fis)); in isci_process_stp_response()
2727 if (ac_err_mask(fis->status)) in isci_process_stp_response()
2984 task->ata_task.fis.command == ATA_CMD_PACKET) { in sci_request_started_state_enter()
3155 struct host_to_dev_fis *fis = &ireq->stp.cmd; in isci_request_stp_request_construct() local
3164 memcpy(fis, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in isci_request_stp_request_construct()
3166 fis->flags |= 0x80; in isci_request_stp_request_construct()
3167 fis->flags &= 0xF0; in isci_request_stp_request_construct()
[all …]
Dphy.h102 struct dev_to_host_fis fis; member
Dphy.c1037 sci_controller_copy_sata_response(&iphy->frame_rcvd.fis, in sci_phy_frame_handler()
/drivers/scsi/aic94xx/
Daic94xx_task.c386 scb->ata_task.fis = task->ata_task.fis; in asd_build_ata_ascb()
388 scb->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in asd_build_ata_ascb()
389 scb->ata_task.fis.flags &= 0xF0; /* PM_PORT field shall be 0 */ in asd_build_ata_ascb()
Daic94xx_dev.c145 struct dev_to_host_fis *fis = (struct dev_to_host_fis *) in asd_init_sata() local
147 asd_ddbsite_write_byte(asd_ha, ddb, SATA_STATUS, fis->status); in asd_init_sata()
Daic94xx_sas.h364 struct host_to_dev_fis fis; member
429 struct host_to_dev_fis fis; member
/drivers/scsi/hisi_sas/
Dhisi_sas_v2_hw.c1765 if (0 == task->ata_task.fis.command) in prep_ata_v2_hw()
1768 dw1 |= (get_ata_protocol(task->ata_task.fis.command, task->data_dir)) in prep_ata_v2_hw()
1775 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in prep_ata_v2_hw()
1801 task->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in prep_ata_v2_hw()
1803 memcpy(buf_cmd, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in prep_ata_v2_hw()
2114 struct dev_to_host_fis *fis; in sata_int_v2_hw() local
2122 fis = &initial_fis->fis; in sata_int_v2_hw()
2170 memcpy(sas_phy->frame_rcvd, fis, sizeof(struct dev_to_host_fis)); in sata_int_v2_hw()
Dhisi_sas.h294 struct dev_to_host_fis fis; member
/drivers/scsi/pm8001/
Dpm80xx_hwi.c1440 struct host_to_dev_fis fis; in pm80xx_send_read_log() local
1488 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in pm80xx_send_read_log()
1489 fis.fis_type = 0x27; in pm80xx_send_read_log()
1490 fis.flags = 0x80; in pm80xx_send_read_log()
1491 fis.command = ATA_CMD_READ_LOG_EXT; in pm80xx_send_read_log()
1492 fis.lbal = 0x10; in pm80xx_send_read_log()
1493 fis.sector_count = 0x1; in pm80xx_send_read_log()
1498 memcpy(&sata_cmd.sata_fis, &fis, sizeof(struct host_to_dev_fis)); in pm80xx_send_read_log()
3917 switch (task->ata_task.fis.command) { in check_enc_sat_cmd()
4142 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in pm80xx_chip_sata_req()
[all …]
Dpm8001_hwi.c1767 struct host_to_dev_fis fis; in pm8001_send_read_log() local
1814 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in pm8001_send_read_log()
1815 fis.fis_type = 0x27; in pm8001_send_read_log()
1816 fis.flags = 0x80; in pm8001_send_read_log()
1817 fis.command = ATA_CMD_READ_LOG_EXT; in pm8001_send_read_log()
1818 fis.lbal = 0x10; in pm8001_send_read_log()
1819 fis.sector_count = 0x1; in pm8001_send_read_log()
1824 memcpy(&sata_cmd.sata_fis, &fis, sizeof(struct host_to_dev_fis)); in pm8001_send_read_log()
4381 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in pm8001_chip_sata_req()
4390 sata_cmd.sata_fis = task->ata_task.fis; in pm8001_chip_sata_req()
/drivers/scsi/mvsas/
Dmv_sas.c483 if (task->ata_task.fis.command != ATA_CMD_ID_ATAPI) in mvs_task_prep_ata()
490 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in mvs_task_prep_ata()
546 task->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in mvs_task_prep_ata()
548 memcpy(buf_cmd, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in mvs_task_prep_ata()
/drivers/scsi/megaraid/
Dmegaraid_sas.h1772 __le16 fis[10]; /*18h */ member