Lines Matching refs:fis

501 	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()
849 ((fis->command == 0xFC) && in mtip_pause_ncq()
850 (fis->features == 0x27 || fis->features == 0x72 || in mtip_pause_ncq()
851 fis->features == 0x62 || fis->features == 0x26))) { in mtip_pause_ncq()
947 struct host_to_dev_fis *fis, in mtip_exec_internal_command() argument
982 if (fis->command == ATA_CMD_SEC_ERASE_PREP) in mtip_exec_internal_command()
987 if (fis->command != ATA_CMD_STANDBYNOW1) { in mtip_exec_internal_command()
1001 memcpy(int_cmd->command, fis, fis_len*4); in mtip_exec_internal_command()
1010 fis->command, int_cmd->status); in mtip_exec_internal_command()
1018 fis->command); in mtip_exec_internal_command()
1039 if (rv >= 0 && mtip_pause_ncq(port, fis)) { in mtip_exec_internal_command()
1069 struct host_to_dev_fis *fis, in mtip_set_timeout() argument
1072 switch (fis->command) { in mtip_set_timeout()
1121 struct host_to_dev_fis fis; in mtip_get_identify() local
1127 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_get_identify()
1128 fis.type = 0x27; in mtip_get_identify()
1129 fis.opts = 1 << 7; in mtip_get_identify()
1130 fis.command = ATA_CMD_ID_ATA; in mtip_get_identify()
1140 &fis, in mtip_get_identify()
1203 struct host_to_dev_fis fis; in mtip_standby_immediate() local
1208 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_standby_immediate()
1209 fis.type = 0x27; in mtip_standby_immediate()
1210 fis.opts = 1 << 7; in mtip_standby_immediate()
1211 fis.command = ATA_CMD_STANDBYNOW1; in mtip_standby_immediate()
1213 mtip_set_timeout(port->dd, &fis, &timeout, 0); in mtip_standby_immediate()
1217 &fis, in mtip_standby_immediate()
1247 struct host_to_dev_fis fis; in mtip_read_log_page() local
1249 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_read_log_page()
1250 fis.type = 0x27; in mtip_read_log_page()
1251 fis.opts = 1 << 7; in mtip_read_log_page()
1252 fis.command = ATA_CMD_READ_LOG_EXT; in mtip_read_log_page()
1253 fis.sect_count = sectors & 0xFF; in mtip_read_log_page()
1254 fis.sect_cnt_ex = (sectors >> 8) & 0xFF; in mtip_read_log_page()
1255 fis.lba_low = page; in mtip_read_log_page()
1256 fis.lba_mid = 0; in mtip_read_log_page()
1257 fis.device = ATA_DEVICE_OBS; in mtip_read_log_page()
1262 &fis, in mtip_read_log_page()
1283 struct host_to_dev_fis fis; in mtip_get_smart_data() local
1285 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_get_smart_data()
1286 fis.type = 0x27; in mtip_get_smart_data()
1287 fis.opts = 1 << 7; in mtip_get_smart_data()
1288 fis.command = ATA_CMD_SMART; in mtip_get_smart_data()
1289 fis.features = 0xD0; in mtip_get_smart_data()
1290 fis.sect_count = 1; in mtip_get_smart_data()
1291 fis.lba_mid = 0x4F; in mtip_get_smart_data()
1292 fis.lba_hi = 0xC2; in mtip_get_smart_data()
1293 fis.device = ATA_DEVICE_OBS; in mtip_get_smart_data()
1296 &fis, in mtip_get_smart_data()
1478 struct host_to_dev_fis fis; in exec_drive_task() local
1483 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_task()
1484 fis.type = 0x27; in exec_drive_task()
1485 fis.opts = 1 << 7; in exec_drive_task()
1486 fis.command = command[0]; in exec_drive_task()
1487 fis.features = command[1]; in exec_drive_task()
1488 fis.sect_count = command[2]; in exec_drive_task()
1489 fis.sector = command[3]; in exec_drive_task()
1490 fis.cyl_low = command[4]; in exec_drive_task()
1491 fis.cyl_hi = command[5]; in exec_drive_task()
1492 fis.device = command[6] & ~0x10; /* Clear the dev bit*/ in exec_drive_task()
1494 mtip_set_timeout(port->dd, &fis, &to, 0); in exec_drive_task()
1508 &fis, in exec_drive_task()
1548 struct host_to_dev_fis fis; in exec_drive_command() local
1572 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_command()
1573 fis.type = 0x27; in exec_drive_command()
1574 fis.opts = 1 << 7; in exec_drive_command()
1575 fis.command = command[0]; in exec_drive_command()
1576 fis.features = command[2]; in exec_drive_command()
1577 fis.sect_count = command[3]; in exec_drive_command()
1578 if (fis.command == ATA_CMD_SMART) { in exec_drive_command()
1579 fis.sector = command[1]; in exec_drive_command()
1580 fis.cyl_low = 0x4F; in exec_drive_command()
1581 fis.cyl_hi = 0xC2; in exec_drive_command()
1584 mtip_set_timeout(port->dd, &fis, &to, 0); in exec_drive_command()
1602 &fis, in exec_drive_command()
1697 struct host_to_dev_fis fis; in exec_drive_taskfile() local
1769 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_taskfile()
1771 fis.type = 0x27; in exec_drive_taskfile()
1772 fis.opts = 1 << 7; in exec_drive_taskfile()
1773 fis.command = req_task->io_ports[7]; in exec_drive_taskfile()
1774 fis.features = req_task->io_ports[1]; in exec_drive_taskfile()
1775 fis.sect_count = req_task->io_ports[2]; in exec_drive_taskfile()
1776 fis.lba_low = req_task->io_ports[3]; in exec_drive_taskfile()
1777 fis.lba_mid = req_task->io_ports[4]; in exec_drive_taskfile()
1778 fis.lba_hi = req_task->io_ports[5]; in exec_drive_taskfile()
1780 fis.device = req_task->io_ports[6] & ~0x10; in exec_drive_taskfile()
1786 fis.lba_low_ex = req_task->hob_ports[3]; in exec_drive_taskfile()
1787 fis.lba_mid_ex = req_task->hob_ports[4]; in exec_drive_taskfile()
1788 fis.lba_hi_ex = req_task->hob_ports[5]; in exec_drive_taskfile()
1789 fis.features_ex = req_task->hob_ports[1]; in exec_drive_taskfile()
1790 fis.sect_cnt_ex = req_task->hob_ports[2]; in exec_drive_taskfile()
1796 force_single_sector = implicit_sector(fis.command, fis.features); in exec_drive_taskfile()
1798 if ((taskin || taskout) && (!fis.sect_count)) { in exec_drive_taskfile()
1800 fis.sect_count = nsect; in exec_drive_taskfile()
1817 fis.command, in exec_drive_taskfile()
1818 fis.features, in exec_drive_taskfile()
1819 fis.sect_count, in exec_drive_taskfile()
1820 fis.lba_low, in exec_drive_taskfile()
1821 fis.lba_mid, in exec_drive_taskfile()
1822 fis.lba_hi, in exec_drive_taskfile()
1823 fis.device); in exec_drive_taskfile()
1826 if ((fis.command == ATA_CMD_SEC_ERASE_UNIT) && outbuf && in exec_drive_taskfile()
1831 mtip_set_timeout(dd, &fis, &timeout, erasemode); in exec_drive_taskfile()
1837 transfer_size = ATA_SECT_SIZE * fis.sect_count; in exec_drive_taskfile()
1841 &fis, in exec_drive_taskfile()
2051 struct host_to_dev_fis *fis; in mtip_hw_submit_io() local
2073 fis = command->command; in mtip_hw_submit_io()
2074 fis->type = 0x27; in mtip_hw_submit_io()
2075 fis->opts = 1 << 7; in mtip_hw_submit_io()
2077 fis->command = ATA_CMD_FPDMA_READ; in mtip_hw_submit_io()
2079 fis->command = ATA_CMD_FPDMA_WRITE; in mtip_hw_submit_io()
2080 fis->lba_low = start & 0xFF; in mtip_hw_submit_io()
2081 fis->lba_mid = (start >> 8) & 0xFF; in mtip_hw_submit_io()
2082 fis->lba_hi = (start >> 16) & 0xFF; in mtip_hw_submit_io()
2083 fis->lba_low_ex = (start >> 24) & 0xFF; in mtip_hw_submit_io()
2084 fis->lba_mid_ex = (start >> 32) & 0xFF; in mtip_hw_submit_io()
2085 fis->lba_hi_ex = (start >> 40) & 0xFF; in mtip_hw_submit_io()
2086 fis->device = 1 << 6; in mtip_hw_submit_io()
2087 fis->features = nsect & 0xFF; in mtip_hw_submit_io()
2088 fis->features_ex = (nsect >> 8) & 0xFF; in mtip_hw_submit_io()
2089 fis->sect_count = ((rq->tag << 3) | (rq->tag >> 5)); in mtip_hw_submit_io()
2090 fis->sect_cnt_ex = 0; in mtip_hw_submit_io()
2091 fis->control = 0; in mtip_hw_submit_io()
2092 fis->res2 = 0; in mtip_hw_submit_io()
2093 fis->res3 = 0; in mtip_hw_submit_io()
2097 fis->device |= 1 << 7; in mtip_hw_submit_io()