Home
last modified time | relevance | path

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

/drivers/block/mtip32xx/
Dmtip32xx.c501 struct host_to_dev_fis *fis; in mtip_handle_tfe() local
597 fis = (struct host_to_dev_fis *)cmd->command; in mtip_handle_tfe()
601 fis->command == ATA_CMD_SET_FEATURES) in mtip_handle_tfe()
606 fis->command == ATA_CMD_FPDMA_WRITE)) { in mtip_handle_tfe()
609 fis->command == ATA_CMD_FPDMA_WRITE ? in mtip_handle_tfe()
832 struct host_to_dev_fis *fis) in mtip_pause_ncq() argument
840 if (fis->command == ATA_CMD_SEC_ERASE_PREP) { in mtip_pause_ncq()
843 } else if ((fis->command == ATA_CMD_DOWNLOAD_MICRO) && in mtip_pause_ncq()
844 (fis->features == 0x03)) { in mtip_pause_ncq()
848 } else if ((fis->command == ATA_CMD_SEC_ERASE_UNIT) || in mtip_pause_ncq()
[all …]
/drivers/ata/
Dlibata-sata.c149 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) in ata_tf_to_fis() argument
151 fis[0] = 0x27; /* Register - Host to Device FIS */ in ata_tf_to_fis()
152 fis[1] = pmp & 0xf; /* Port multiplier number*/ in ata_tf_to_fis()
154 fis[1] |= (1 << 7); /* bit 7 indicates Command FIS */ in ata_tf_to_fis()
156 fis[2] = tf->command; in ata_tf_to_fis()
157 fis[3] = tf->feature; in ata_tf_to_fis()
159 fis[4] = tf->lbal; in ata_tf_to_fis()
160 fis[5] = tf->lbam; in ata_tf_to_fis()
161 fis[6] = tf->lbah; in ata_tf_to_fis()
162 fis[7] = tf->device; in ata_tf_to_fis()
[all …]
Dsata_nv.c326 static void nv_swncq_irq_clear(struct ata_port *ap, u16 fis);
1732 static void nv_swncq_irq_clear(struct ata_port *ap, u16 fis) in nv_swncq_irq_clear() argument
1736 writew(fis, pp->irq_block); in nv_swncq_irq_clear()
2035 static void nv_swncq_hotplug(struct ata_port *ap, u32 fis) in nv_swncq_hotplug() argument
2047 if (fis & NV_SWNCQ_IRQ_ADDED) in nv_swncq_hotplug()
2049 else if (fis & NV_SWNCQ_IRQ_REMOVED) in nv_swncq_hotplug()
2175 static void nv_swncq_host_interrupt(struct ata_port *ap, u16 fis) in nv_swncq_host_interrupt() argument
2184 nv_swncq_irq_clear(ap, fis); in nv_swncq_host_interrupt()
2185 if (!fis) in nv_swncq_host_interrupt()
2191 if (fis & NV_SWNCQ_IRQ_HOTPLUG) { in nv_swncq_host_interrupt()
[all …]
Dsata_sil24.c33 u8 fis[6 * 4]; member
486 u8 fis[6 * 4]; in sil24_read_tf() local
489 memcpy_fromio(fis, prb->fis, sizeof(fis)); in sil24_read_tf()
490 ata_tf_from_fis(fis, tf); in sil24_read_tf()
610 ata_tf_to_fis(tf, pmp, is_cmd, prb->fis); in sil24_exec_polled_cmd()
873 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, prb->fis); in sil24_qc_prep()
Dsata_mv.c2224 static unsigned int mv_send_fis(struct ata_port *ap, u32 *fis, int nwords) in mv_send_fis() argument
2237 writel(fis[i], port_mmio + VENDOR_UNIQUE_FIS); in mv_send_fis()
2241 writelfl(fis[final_word], port_mmio + VENDOR_UNIQUE_FIS); in mv_send_fis()
2285 u32 fis[5]; in mv_qc_issue_fis() local
2288 ata_tf_to_fis(&qc->tf, link->pmp, 1, (void *)fis); in mv_qc_issue_fis()
2289 err = mv_send_fis(ap, fis, ARRAY_SIZE(fis)); in mv_qc_issue_fis()
Dlibahci.c1419 u8 *fis = pp->cmd_tbl; in ahci_exec_polled_cmd() local
1423 ata_tf_to_fis(tf, pmp, is_cmd, fis); in ahci_exec_polled_cmd()
/drivers/scsi/libsas/
Dsas_ata.c121 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[3] = 0x04; /* status err */ in sas_ata_task_done()
143 dev->sata_dev.fis[2] = ATA_ERR; in sas_ata_task_done()
186 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, (u8 *)&task->ata_task.fis); in sas_ata_qc_issue()
233 ata_tf_from_fis(dev->sata_dev.fis, &qc->result_tf); in sas_ata_qc_fill_rtf()
265 memcpy(dev->frame_rcvd, &dev->sata_dev.rps_resp.rps.fis, in sas_get_ata_info()
643 struct dev_to_host_fis *fis = in sas_get_ata_command_set() local
650 ata_tf_from_fis((const u8 *)fis, &tf); in sas_get_ata_command_set()
[all …]
Dsas_discover.c74 struct dev_to_host_fis *fis = in sas_get_port_device() local
76 if (fis->interrupt_reason == 1 && fis->lbal == 1 && in sas_get_port_device()
77 fis->byte_count_low == 0x69 && fis->byte_count_high == 0x96 in sas_get_port_device()
78 && (fis->device & ~0x10) == 0) in sas_get_port_device()
Dsas_host_smp.c141 struct dev_to_host_fis *fis; in sas_report_phy_sata() local
155 fis = (struct dev_to_host_fis *) in sas_report_phy_sata()
166 if (fis->fis_type != 0x34) in sas_report_phy_sata()
Dsas_scsi_host.c1036 memcpy(&task->ata_task.fis, parameter, para_len); in sas_execute_tmf()
/drivers/scsi/isci/
Drequest.h309 task->ata_task.fis.command == ATA_CMD_READ_LOG_EXT && in isci_task_is_ncq_recovery()
310 task->ata_task.fis.lbal == ATA_LOG_SATA_NCQ); in isci_task_is_ncq_recovery()
Drequest.c693 task->ata_task.fis.command == ATA_CMD_PACKET) { in sci_io_request_construct_sata()
2710 static void isci_process_stp_response(struct sas_task *task, struct dev_to_host_fis *fis) in isci_process_stp_response() argument
2715 resp->frame_len = sizeof(*fis); in isci_process_stp_response()
2716 memcpy(resp->ending_fis, fis, sizeof(*fis)); in isci_process_stp_response()
2720 if (ac_err_mask(fis->status)) in isci_process_stp_response()
2976 task->ata_task.fis.command == ATA_CMD_PACKET) { in sci_request_started_state_enter()
3147 struct host_to_dev_fis *fis = &ireq->stp.cmd; in isci_request_stp_request_construct() local
3156 memcpy(fis, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in isci_request_stp_request_construct()
3158 fis->flags |= 0x80; in isci_request_stp_request_construct()
3159 fis->flags &= 0xF0; in isci_request_stp_request_construct()
[all …]
Dphy.h102 struct dev_to_host_fis fis; member
Dphy.c1033 sci_controller_copy_sata_response(&iphy->frame_rcvd.fis, in sci_phy_frame_handler()
/drivers/scsi/hisi_sas/
Dhisi_sas_main.c24 u8 hisi_sas_get_ata_protocol(struct host_to_dev_fis *fis, int direction) in hisi_sas_get_ata_protocol() argument
26 switch (fis->command) { in hisi_sas_get_ata_protocol()
79 switch (fis->features) { in hisi_sas_get_ata_protocol()
1249 bool reset, int pmp, u8 *fis) in hisi_sas_fill_ata_reset_cmd() argument
1259 ata_tf_to_fis(&tf, pmp, 0, fis); in hisi_sas_fill_ata_reset_cmd()
1264 u8 fis[20] = {0}; in hisi_sas_softreset_ata_disk() local
1274 hisi_sas_fill_ata_reset_cmd(link->device, 1, pmp, fis); in hisi_sas_softreset_ata_disk()
1275 rc = sas_execute_ata_cmd(device, fis, -1); in hisi_sas_softreset_ata_disk()
1284 hisi_sas_fill_ata_reset_cmd(link->device, 0, pmp, fis); in hisi_sas_softreset_ata_disk()
1285 rc = sas_execute_ata_cmd(device, fis, -1); in hisi_sas_softreset_ata_disk()
[all …]
Dhisi_sas_v3_hw.c495 #define FIS_CMD_IS_UNCONSTRAINED(fis) \ argument
496 ((fis.command == ATA_CMD_READ_LOG_EXT) || \
497 (fis.command == ATA_CMD_READ_LOG_DMA_EXT) || \
498 ((fis.command == ATA_CMD_DEV_RESET) && \
499 ((fis.control & ATA_SRST) != 0)))
1411 if ((task->ata_task.fis.command == ATA_CMD_DEV_RESET) && in prep_ata_v3_hw()
1412 (task->ata_task.fis.control & ATA_SRST)) in prep_ata_v3_hw()
1416 &task->ata_task.fis, task->data_dir)) in prep_ata_v3_hw()
1420 if (FIS_CMD_IS_UNCONSTRAINED(task->ata_task.fis)) in prep_ata_v3_hw()
1430 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in prep_ata_v3_hw()
[all …]
Dhisi_sas_v2_hw.c2538 if ((task->ata_task.fis.command == ATA_CMD_DEV_RESET) && in prep_ata_v2_hw()
2539 (task->ata_task.fis.control & ATA_SRST)) in prep_ata_v2_hw()
2543 &task->ata_task.fis, task->data_dir)) in prep_ata_v2_hw()
2553 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in prep_ata_v2_hw()
2575 task->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in prep_ata_v2_hw()
2577 memcpy(buf_cmd, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in prep_ata_v2_hw()
3204 struct dev_to_host_fis *fis; in sata_int_v2_hw() local
3214 fis = &initial_fis->fis; in sata_int_v2_hw()
3232 if (fis->status & ATA_ERR) { in sata_int_v2_hw()
3234 fis->status); in sata_int_v2_hw()
[all …]
Dhisi_sas.h549 struct dev_to_host_fis fis; member
633 extern u8 hisi_sas_get_ata_protocol(struct host_to_dev_fis *fis,
/drivers/scsi/aic94xx/
Daic94xx_task.c370 scb->ata_task.fis = task->ata_task.fis; in asd_build_ata_ascb()
372 scb->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in asd_build_ata_ascb()
373 scb->ata_task.fis.flags &= 0xF0; /* PM_PORT field shall be 0 */ in asd_build_ata_ascb()
Daic94xx_dev.c128 struct dev_to_host_fis *fis = (struct dev_to_host_fis *) in asd_init_sata() local
130 asd_ddbsite_write_byte(asd_ha, ddb, SATA_STATUS, fis->status); in asd_init_sata()
Daic94xx_sas.h346 struct host_to_dev_fis fis; member
411 struct host_to_dev_fis fis; member
/drivers/scsi/pm8001/
Dpm8001_hwi.c1797 struct host_to_dev_fis fis; in pm8001_send_read_log() local
1833 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in pm8001_send_read_log()
1834 fis.fis_type = 0x27; in pm8001_send_read_log()
1835 fis.flags = 0x80; in pm8001_send_read_log()
1836 fis.command = ATA_CMD_READ_LOG_EXT; in pm8001_send_read_log()
1837 fis.lbal = 0x10; in pm8001_send_read_log()
1838 fis.sector_count = 0x1; in pm8001_send_read_log()
1844 memcpy(&sata_cmd.sata_fis, &fis, sizeof(struct host_to_dev_fis)); in pm8001_send_read_log()
4220 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in pm8001_chip_sata_req()
4229 sata_cmd.sata_fis = task->ata_task.fis; in pm8001_chip_sata_req()
Dpm80xx_hwi.c1827 struct host_to_dev_fis fis; in pm80xx_send_read_log() local
1866 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in pm80xx_send_read_log()
1867 fis.fis_type = 0x27; in pm80xx_send_read_log()
1868 fis.flags = 0x80; in pm80xx_send_read_log()
1869 fis.command = ATA_CMD_READ_LOG_EXT; in pm80xx_send_read_log()
1870 fis.lbal = 0x10; in pm80xx_send_read_log()
1871 fis.sector_count = 0x1; in pm80xx_send_read_log()
1876 memcpy(&sata_cmd.sata_fis, &fis, sizeof(struct host_to_dev_fis)); in pm80xx_send_read_log()
4340 switch (task->ata_task.fis.command) { in check_enc_sat_cmd()
4578 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in pm80xx_chip_sata_req()
[all …]
/drivers/scsi/mvsas/
Dmv_sas.c470 if (task->ata_task.fis.command != ATA_CMD_ID_ATAPI) in mvs_task_prep_ata()
477 task->ata_task.fis.sector_count |= (u8) (hdr_tag << 3); in mvs_task_prep_ata()
533 task->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */ in mvs_task_prep_ata()
535 memcpy(buf_cmd, &task->ata_task.fis, sizeof(struct host_to_dev_fis)); in mvs_task_prep_ata()
/drivers/scsi/megaraid/
Dmegaraid_sas.h1998 __le16 fis[10]; /*18h */ member