Lines Matching refs:fis
613 struct host_to_dev_fis *fis; in mtip_handle_tfe() local
726 fis = (struct host_to_dev_fis *)cmd->command; in mtip_handle_tfe()
730 fis->command == ATA_CMD_SET_FEATURES) in mtip_handle_tfe()
735 fis->command == ATA_CMD_FPDMA_WRITE)) { in mtip_handle_tfe()
738 fis->command == ATA_CMD_FPDMA_WRITE ? in mtip_handle_tfe()
990 struct host_to_dev_fis *fis) in mtip_pause_ncq() argument
1001 if (fis->command == ATA_CMD_SEC_ERASE_PREP) { in mtip_pause_ncq()
1005 } else if ((fis->command == ATA_CMD_DOWNLOAD_MICRO) && in mtip_pause_ncq()
1006 (fis->features == 0x03)) { in mtip_pause_ncq()
1010 } else if ((fis->command == ATA_CMD_SEC_ERASE_UNIT) || in mtip_pause_ncq()
1011 ((fis->command == 0xFC) && in mtip_pause_ncq()
1012 (fis->features == 0x27 || fis->features == 0x72 || in mtip_pause_ncq()
1013 fis->features == 0x62 || fis->features == 0x26))) { in mtip_pause_ncq()
1094 struct host_to_dev_fis *fis, in mtip_exec_internal_command() argument
1124 if (fis->command != ATA_CMD_STANDBYNOW1) { in mtip_exec_internal_command()
1148 memcpy(int_cmd->command, fis, fis_len*4); in mtip_exec_internal_command()
1184 fis->command, in mtip_exec_internal_command()
1191 fis->command, timeout); in mtip_exec_internal_command()
1195 fis->command, rv, timeout); in mtip_exec_internal_command()
1202 fis->command); in mtip_exec_internal_command()
1222 if ((fis->command != ATA_CMD_STANDBYNOW1) && in mtip_exec_internal_command()
1235 fis->command); in mtip_exec_internal_command()
1261 if (rv >= 0 && mtip_pause_ncq(port, fis)) { in mtip_exec_internal_command()
1292 struct host_to_dev_fis *fis, in mtip_set_timeout() argument
1295 switch (fis->command) { in mtip_set_timeout()
1344 struct host_to_dev_fis fis; in mtip_get_identify() local
1350 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_get_identify()
1351 fis.type = 0x27; in mtip_get_identify()
1352 fis.opts = 1 << 7; in mtip_get_identify()
1353 fis.command = ATA_CMD_ID_ATA; in mtip_get_identify()
1363 &fis, in mtip_get_identify()
1435 struct host_to_dev_fis fis; in mtip_standby_immediate() local
1440 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_standby_immediate()
1441 fis.type = 0x27; in mtip_standby_immediate()
1442 fis.opts = 1 << 7; in mtip_standby_immediate()
1443 fis.command = ATA_CMD_STANDBYNOW1; in mtip_standby_immediate()
1445 mtip_set_timeout(port->dd, &fis, &timeout, 0); in mtip_standby_immediate()
1449 &fis, in mtip_standby_immediate()
1480 struct host_to_dev_fis fis; in mtip_read_log_page() local
1482 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_read_log_page()
1483 fis.type = 0x27; in mtip_read_log_page()
1484 fis.opts = 1 << 7; in mtip_read_log_page()
1485 fis.command = ATA_CMD_READ_LOG_EXT; in mtip_read_log_page()
1486 fis.sect_count = sectors & 0xFF; in mtip_read_log_page()
1487 fis.sect_cnt_ex = (sectors >> 8) & 0xFF; in mtip_read_log_page()
1488 fis.lba_low = page; in mtip_read_log_page()
1489 fis.lba_mid = 0; in mtip_read_log_page()
1490 fis.device = ATA_DEVICE_OBS; in mtip_read_log_page()
1495 &fis, in mtip_read_log_page()
1517 struct host_to_dev_fis fis; in mtip_get_smart_data() local
1519 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_get_smart_data()
1520 fis.type = 0x27; in mtip_get_smart_data()
1521 fis.opts = 1 << 7; in mtip_get_smart_data()
1522 fis.command = ATA_CMD_SMART; in mtip_get_smart_data()
1523 fis.features = 0xD0; in mtip_get_smart_data()
1524 fis.sect_count = 1; in mtip_get_smart_data()
1525 fis.lba_mid = 0x4F; in mtip_get_smart_data()
1526 fis.lba_hi = 0xC2; in mtip_get_smart_data()
1527 fis.device = ATA_DEVICE_OBS; in mtip_get_smart_data()
1530 &fis, in mtip_get_smart_data()
1614 struct host_to_dev_fis fis; in mtip_send_trim() local
1649 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_send_trim()
1650 fis.type = 0x27; in mtip_send_trim()
1651 fis.opts = 1 << 7; in mtip_send_trim()
1652 fis.command = 0xfb; in mtip_send_trim()
1653 fis.features = 0x60; in mtip_send_trim()
1654 fis.sect_count = 1; in mtip_send_trim()
1655 fis.device = ATA_DEVICE_OBS; in mtip_send_trim()
1658 &fis, in mtip_send_trim()
1792 struct host_to_dev_fis fis; in exec_drive_task() local
1797 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_task()
1798 fis.type = 0x27; in exec_drive_task()
1799 fis.opts = 1 << 7; in exec_drive_task()
1800 fis.command = command[0]; in exec_drive_task()
1801 fis.features = command[1]; in exec_drive_task()
1802 fis.sect_count = command[2]; in exec_drive_task()
1803 fis.sector = command[3]; in exec_drive_task()
1804 fis.cyl_low = command[4]; in exec_drive_task()
1805 fis.cyl_hi = command[5]; in exec_drive_task()
1806 fis.device = command[6] & ~0x10; /* Clear the dev bit*/ in exec_drive_task()
1808 mtip_set_timeout(port->dd, &fis, &to, 0); in exec_drive_task()
1822 &fis, in exec_drive_task()
1863 struct host_to_dev_fis fis; in exec_drive_command() local
1888 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_command()
1889 fis.type = 0x27; in exec_drive_command()
1890 fis.opts = 1 << 7; in exec_drive_command()
1891 fis.command = command[0]; in exec_drive_command()
1892 fis.features = command[2]; in exec_drive_command()
1893 fis.sect_count = command[3]; in exec_drive_command()
1894 if (fis.command == ATA_CMD_SMART) { in exec_drive_command()
1895 fis.sector = command[1]; in exec_drive_command()
1896 fis.cyl_low = 0x4F; in exec_drive_command()
1897 fis.cyl_hi = 0xC2; in exec_drive_command()
1900 mtip_set_timeout(port->dd, &fis, &to, 0); in exec_drive_command()
1918 &fis, in exec_drive_command()
2014 struct host_to_dev_fis fis; in exec_drive_taskfile() local
2100 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_taskfile()
2102 fis.type = 0x27; in exec_drive_taskfile()
2103 fis.opts = 1 << 7; in exec_drive_taskfile()
2104 fis.command = req_task->io_ports[7]; in exec_drive_taskfile()
2105 fis.features = req_task->io_ports[1]; in exec_drive_taskfile()
2106 fis.sect_count = req_task->io_ports[2]; in exec_drive_taskfile()
2107 fis.lba_low = req_task->io_ports[3]; in exec_drive_taskfile()
2108 fis.lba_mid = req_task->io_ports[4]; in exec_drive_taskfile()
2109 fis.lba_hi = req_task->io_ports[5]; in exec_drive_taskfile()
2111 fis.device = req_task->io_ports[6] & ~0x10; in exec_drive_taskfile()
2117 fis.lba_low_ex = req_task->hob_ports[3]; in exec_drive_taskfile()
2118 fis.lba_mid_ex = req_task->hob_ports[4]; in exec_drive_taskfile()
2119 fis.lba_hi_ex = req_task->hob_ports[5]; in exec_drive_taskfile()
2120 fis.features_ex = req_task->hob_ports[1]; in exec_drive_taskfile()
2121 fis.sect_cnt_ex = req_task->hob_ports[2]; in exec_drive_taskfile()
2127 force_single_sector = implicit_sector(fis.command, fis.features); in exec_drive_taskfile()
2129 if ((taskin || taskout) && (!fis.sect_count)) { in exec_drive_taskfile()
2131 fis.sect_count = nsect; in exec_drive_taskfile()
2148 fis.command, in exec_drive_taskfile()
2149 fis.features, in exec_drive_taskfile()
2150 fis.sect_count, in exec_drive_taskfile()
2151 fis.lba_low, in exec_drive_taskfile()
2152 fis.lba_mid, in exec_drive_taskfile()
2153 fis.lba_hi, in exec_drive_taskfile()
2154 fis.device); in exec_drive_taskfile()
2157 if ((fis.command == ATA_CMD_SEC_ERASE_UNIT) && outbuf && in exec_drive_taskfile()
2162 mtip_set_timeout(dd, &fis, &timeout, erasemode); in exec_drive_taskfile()
2168 transfer_size = ATA_SECT_SIZE * fis.sect_count; in exec_drive_taskfile()
2172 &fis, in exec_drive_taskfile()
2382 struct host_to_dev_fis *fis; in mtip_hw_submit_io() local
2402 fis = command->command; in mtip_hw_submit_io()
2403 fis->type = 0x27; in mtip_hw_submit_io()
2404 fis->opts = 1 << 7; in mtip_hw_submit_io()
2406 fis->command = ATA_CMD_FPDMA_READ; in mtip_hw_submit_io()
2408 fis->command = ATA_CMD_FPDMA_WRITE; in mtip_hw_submit_io()
2409 fis->lba_low = start & 0xFF; in mtip_hw_submit_io()
2410 fis->lba_mid = (start >> 8) & 0xFF; in mtip_hw_submit_io()
2411 fis->lba_hi = (start >> 16) & 0xFF; in mtip_hw_submit_io()
2412 fis->lba_low_ex = (start >> 24) & 0xFF; in mtip_hw_submit_io()
2413 fis->lba_mid_ex = (start >> 32) & 0xFF; in mtip_hw_submit_io()
2414 fis->lba_hi_ex = (start >> 40) & 0xFF; in mtip_hw_submit_io()
2415 fis->device = 1 << 6; in mtip_hw_submit_io()
2416 fis->features = nsect & 0xFF; in mtip_hw_submit_io()
2417 fis->features_ex = (nsect >> 8) & 0xFF; in mtip_hw_submit_io()
2418 fis->sect_count = ((rq->tag << 3) | (rq->tag >> 5)); in mtip_hw_submit_io()
2419 fis->sect_cnt_ex = 0; in mtip_hw_submit_io()
2420 fis->control = 0; in mtip_hw_submit_io()
2421 fis->res2 = 0; in mtip_hw_submit_io()
2422 fis->res3 = 0; in mtip_hw_submit_io()
2426 fis->device |= 1 << 7; in mtip_hw_submit_io()