Lines Matching refs:fis

513 	struct host_to_dev_fis *fis;  in mtip_handle_tfe()  local
609 fis = (struct host_to_dev_fis *)cmd->command; in mtip_handle_tfe()
613 fis->command == ATA_CMD_SET_FEATURES) in mtip_handle_tfe()
618 fis->command == ATA_CMD_FPDMA_WRITE)) { in mtip_handle_tfe()
621 fis->command == ATA_CMD_FPDMA_WRITE ? in mtip_handle_tfe()
844 struct host_to_dev_fis *fis) in mtip_pause_ncq() argument
852 if (fis->command == ATA_CMD_SEC_ERASE_PREP) { in mtip_pause_ncq()
855 } else if ((fis->command == ATA_CMD_DOWNLOAD_MICRO) && in mtip_pause_ncq()
856 (fis->features == 0x03)) { in mtip_pause_ncq()
860 } else if ((fis->command == ATA_CMD_SEC_ERASE_UNIT) || in mtip_pause_ncq()
861 ((fis->command == 0xFC) && in mtip_pause_ncq()
862 (fis->features == 0x27 || fis->features == 0x72 || in mtip_pause_ncq()
863 fis->features == 0x62 || fis->features == 0x26))) { in mtip_pause_ncq()
959 struct host_to_dev_fis *fis, in mtip_exec_internal_command() argument
994 if (fis->command == ATA_CMD_SEC_ERASE_PREP) in mtip_exec_internal_command()
999 if (fis->command != ATA_CMD_STANDBYNOW1) { in mtip_exec_internal_command()
1013 memcpy(int_cmd->command, fis, fis_len*4); in mtip_exec_internal_command()
1022 fis->command, int_cmd->status); in mtip_exec_internal_command()
1030 fis->command); in mtip_exec_internal_command()
1051 if (rv >= 0 && mtip_pause_ncq(port, fis)) { in mtip_exec_internal_command()
1081 struct host_to_dev_fis *fis, in mtip_set_timeout() argument
1084 switch (fis->command) { in mtip_set_timeout()
1133 struct host_to_dev_fis fis; in mtip_get_identify() local
1139 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_get_identify()
1140 fis.type = 0x27; in mtip_get_identify()
1141 fis.opts = 1 << 7; in mtip_get_identify()
1142 fis.command = ATA_CMD_ID_ATA; in mtip_get_identify()
1152 &fis, in mtip_get_identify()
1215 struct host_to_dev_fis fis; in mtip_standby_immediate() local
1220 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_standby_immediate()
1221 fis.type = 0x27; in mtip_standby_immediate()
1222 fis.opts = 1 << 7; in mtip_standby_immediate()
1223 fis.command = ATA_CMD_STANDBYNOW1; in mtip_standby_immediate()
1225 mtip_set_timeout(port->dd, &fis, &timeout, 0); in mtip_standby_immediate()
1229 &fis, in mtip_standby_immediate()
1259 struct host_to_dev_fis fis; in mtip_read_log_page() local
1261 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_read_log_page()
1262 fis.type = 0x27; in mtip_read_log_page()
1263 fis.opts = 1 << 7; in mtip_read_log_page()
1264 fis.command = ATA_CMD_READ_LOG_EXT; in mtip_read_log_page()
1265 fis.sect_count = sectors & 0xFF; in mtip_read_log_page()
1266 fis.sect_cnt_ex = (sectors >> 8) & 0xFF; in mtip_read_log_page()
1267 fis.lba_low = page; in mtip_read_log_page()
1268 fis.lba_mid = 0; in mtip_read_log_page()
1269 fis.device = ATA_DEVICE_OBS; in mtip_read_log_page()
1274 &fis, in mtip_read_log_page()
1295 struct host_to_dev_fis fis; in mtip_get_smart_data() local
1297 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_get_smart_data()
1298 fis.type = 0x27; in mtip_get_smart_data()
1299 fis.opts = 1 << 7; in mtip_get_smart_data()
1300 fis.command = ATA_CMD_SMART; in mtip_get_smart_data()
1301 fis.features = 0xD0; in mtip_get_smart_data()
1302 fis.sect_count = 1; in mtip_get_smart_data()
1303 fis.lba_mid = 0x4F; in mtip_get_smart_data()
1304 fis.lba_hi = 0xC2; in mtip_get_smart_data()
1305 fis.device = ATA_DEVICE_OBS; in mtip_get_smart_data()
1308 &fis, in mtip_get_smart_data()
1490 struct host_to_dev_fis fis; in exec_drive_task() local
1495 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_task()
1496 fis.type = 0x27; in exec_drive_task()
1497 fis.opts = 1 << 7; in exec_drive_task()
1498 fis.command = command[0]; in exec_drive_task()
1499 fis.features = command[1]; in exec_drive_task()
1500 fis.sect_count = command[2]; in exec_drive_task()
1501 fis.sector = command[3]; in exec_drive_task()
1502 fis.cyl_low = command[4]; in exec_drive_task()
1503 fis.cyl_hi = command[5]; in exec_drive_task()
1504 fis.device = command[6] & ~0x10; /* Clear the dev bit*/ in exec_drive_task()
1506 mtip_set_timeout(port->dd, &fis, &to, 0); in exec_drive_task()
1520 &fis, in exec_drive_task()
1560 struct host_to_dev_fis fis; in exec_drive_command() local
1584 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_command()
1585 fis.type = 0x27; in exec_drive_command()
1586 fis.opts = 1 << 7; in exec_drive_command()
1587 fis.command = command[0]; in exec_drive_command()
1588 fis.features = command[2]; in exec_drive_command()
1589 fis.sect_count = command[3]; in exec_drive_command()
1590 if (fis.command == ATA_CMD_SMART) { in exec_drive_command()
1591 fis.sector = command[1]; in exec_drive_command()
1592 fis.cyl_low = 0x4F; in exec_drive_command()
1593 fis.cyl_hi = 0xC2; in exec_drive_command()
1596 mtip_set_timeout(port->dd, &fis, &to, 0); in exec_drive_command()
1614 &fis, in exec_drive_command()
1709 struct host_to_dev_fis fis; in exec_drive_taskfile() local
1781 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_taskfile()
1783 fis.type = 0x27; in exec_drive_taskfile()
1784 fis.opts = 1 << 7; in exec_drive_taskfile()
1785 fis.command = req_task->io_ports[7]; in exec_drive_taskfile()
1786 fis.features = req_task->io_ports[1]; in exec_drive_taskfile()
1787 fis.sect_count = req_task->io_ports[2]; in exec_drive_taskfile()
1788 fis.lba_low = req_task->io_ports[3]; in exec_drive_taskfile()
1789 fis.lba_mid = req_task->io_ports[4]; in exec_drive_taskfile()
1790 fis.lba_hi = req_task->io_ports[5]; in exec_drive_taskfile()
1792 fis.device = req_task->io_ports[6] & ~0x10; in exec_drive_taskfile()
1798 fis.lba_low_ex = req_task->hob_ports[3]; in exec_drive_taskfile()
1799 fis.lba_mid_ex = req_task->hob_ports[4]; in exec_drive_taskfile()
1800 fis.lba_hi_ex = req_task->hob_ports[5]; in exec_drive_taskfile()
1801 fis.features_ex = req_task->hob_ports[1]; in exec_drive_taskfile()
1802 fis.sect_cnt_ex = req_task->hob_ports[2]; in exec_drive_taskfile()
1808 force_single_sector = implicit_sector(fis.command, fis.features); in exec_drive_taskfile()
1810 if ((taskin || taskout) && (!fis.sect_count)) { in exec_drive_taskfile()
1812 fis.sect_count = nsect; in exec_drive_taskfile()
1829 fis.command, in exec_drive_taskfile()
1830 fis.features, in exec_drive_taskfile()
1831 fis.sect_count, in exec_drive_taskfile()
1832 fis.lba_low, in exec_drive_taskfile()
1833 fis.lba_mid, in exec_drive_taskfile()
1834 fis.lba_hi, in exec_drive_taskfile()
1835 fis.device); in exec_drive_taskfile()
1838 if ((fis.command == ATA_CMD_SEC_ERASE_UNIT) && outbuf && in exec_drive_taskfile()
1843 mtip_set_timeout(dd, &fis, &timeout, erasemode); in exec_drive_taskfile()
1849 transfer_size = ATA_SECT_SIZE * fis.sect_count; in exec_drive_taskfile()
1853 &fis, in exec_drive_taskfile()
2063 struct host_to_dev_fis *fis; in mtip_hw_submit_io() local
2085 fis = command->command; in mtip_hw_submit_io()
2086 fis->type = 0x27; in mtip_hw_submit_io()
2087 fis->opts = 1 << 7; in mtip_hw_submit_io()
2089 fis->command = ATA_CMD_FPDMA_READ; in mtip_hw_submit_io()
2091 fis->command = ATA_CMD_FPDMA_WRITE; in mtip_hw_submit_io()
2092 fis->lba_low = start & 0xFF; in mtip_hw_submit_io()
2093 fis->lba_mid = (start >> 8) & 0xFF; in mtip_hw_submit_io()
2094 fis->lba_hi = (start >> 16) & 0xFF; in mtip_hw_submit_io()
2095 fis->lba_low_ex = (start >> 24) & 0xFF; in mtip_hw_submit_io()
2096 fis->lba_mid_ex = (start >> 32) & 0xFF; in mtip_hw_submit_io()
2097 fis->lba_hi_ex = (start >> 40) & 0xFF; in mtip_hw_submit_io()
2098 fis->device = 1 << 6; in mtip_hw_submit_io()
2099 fis->features = nsect & 0xFF; in mtip_hw_submit_io()
2100 fis->features_ex = (nsect >> 8) & 0xFF; in mtip_hw_submit_io()
2101 fis->sect_count = ((rq->tag << 3) | (rq->tag >> 5)); in mtip_hw_submit_io()
2102 fis->sect_cnt_ex = 0; in mtip_hw_submit_io()
2103 fis->control = 0; in mtip_hw_submit_io()
2104 fis->res2 = 0; in mtip_hw_submit_io()
2105 fis->res3 = 0; in mtip_hw_submit_io()
2109 fis->device |= 1 << 7; in mtip_hw_submit_io()