• Home
  • Raw
  • Download

Lines Matching refs:fis

612 	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()
1001 ((fis->command == 0xFC) && in mtip_pause_ncq()
1002 (fis->features == 0x27 || fis->features == 0x72 || in mtip_pause_ncq()
1003 fis->features == 0x62 || fis->features == 0x26))) { in mtip_pause_ncq()
1092 struct host_to_dev_fis *fis, in mtip_exec_internal_command() argument
1121 if (fis->command == ATA_CMD_SEC_ERASE_PREP) in mtip_exec_internal_command()
1127 if (fis->command != ATA_CMD_STANDBYNOW1) { in mtip_exec_internal_command()
1151 memcpy(int_cmd->command, fis, fis_len*4); in mtip_exec_internal_command()
1187 fis->command, in mtip_exec_internal_command()
1194 fis->command, timeout); in mtip_exec_internal_command()
1198 fis->command, rv, timeout); in mtip_exec_internal_command()
1205 fis->command); in mtip_exec_internal_command()
1225 if ((fis->command != ATA_CMD_STANDBYNOW1) && in mtip_exec_internal_command()
1238 fis->command); in mtip_exec_internal_command()
1265 if (rv >= 0 && mtip_pause_ncq(port, fis)) { in mtip_exec_internal_command()
1295 struct host_to_dev_fis *fis, in mtip_set_timeout() argument
1298 switch (fis->command) { in mtip_set_timeout()
1347 struct host_to_dev_fis fis; in mtip_get_identify() local
1353 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_get_identify()
1354 fis.type = 0x27; in mtip_get_identify()
1355 fis.opts = 1 << 7; in mtip_get_identify()
1356 fis.command = ATA_CMD_ID_ATA; in mtip_get_identify()
1366 &fis, in mtip_get_identify()
1438 struct host_to_dev_fis fis; in mtip_standby_immediate() local
1443 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_standby_immediate()
1444 fis.type = 0x27; in mtip_standby_immediate()
1445 fis.opts = 1 << 7; in mtip_standby_immediate()
1446 fis.command = ATA_CMD_STANDBYNOW1; in mtip_standby_immediate()
1448 mtip_set_timeout(port->dd, &fis, &timeout, 0); in mtip_standby_immediate()
1452 &fis, in mtip_standby_immediate()
1483 struct host_to_dev_fis fis; in mtip_read_log_page() local
1485 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_read_log_page()
1486 fis.type = 0x27; in mtip_read_log_page()
1487 fis.opts = 1 << 7; in mtip_read_log_page()
1488 fis.command = ATA_CMD_READ_LOG_EXT; in mtip_read_log_page()
1489 fis.sect_count = sectors & 0xFF; in mtip_read_log_page()
1490 fis.sect_cnt_ex = (sectors >> 8) & 0xFF; in mtip_read_log_page()
1491 fis.lba_low = page; in mtip_read_log_page()
1492 fis.lba_mid = 0; in mtip_read_log_page()
1493 fis.device = ATA_DEVICE_OBS; in mtip_read_log_page()
1498 &fis, in mtip_read_log_page()
1520 struct host_to_dev_fis fis; in mtip_get_smart_data() local
1522 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_get_smart_data()
1523 fis.type = 0x27; in mtip_get_smart_data()
1524 fis.opts = 1 << 7; in mtip_get_smart_data()
1525 fis.command = ATA_CMD_SMART; in mtip_get_smart_data()
1526 fis.features = 0xD0; in mtip_get_smart_data()
1527 fis.sect_count = 1; in mtip_get_smart_data()
1528 fis.lba_mid = 0x4F; in mtip_get_smart_data()
1529 fis.lba_hi = 0xC2; in mtip_get_smart_data()
1530 fis.device = ATA_DEVICE_OBS; in mtip_get_smart_data()
1533 &fis, in mtip_get_smart_data()
1617 struct host_to_dev_fis fis; in mtip_send_trim() local
1652 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in mtip_send_trim()
1653 fis.type = 0x27; in mtip_send_trim()
1654 fis.opts = 1 << 7; in mtip_send_trim()
1655 fis.command = 0xfb; in mtip_send_trim()
1656 fis.features = 0x60; in mtip_send_trim()
1657 fis.sect_count = 1; in mtip_send_trim()
1658 fis.device = ATA_DEVICE_OBS; in mtip_send_trim()
1661 &fis, in mtip_send_trim()
1795 struct host_to_dev_fis fis; in exec_drive_task() local
1800 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_task()
1801 fis.type = 0x27; in exec_drive_task()
1802 fis.opts = 1 << 7; in exec_drive_task()
1803 fis.command = command[0]; in exec_drive_task()
1804 fis.features = command[1]; in exec_drive_task()
1805 fis.sect_count = command[2]; in exec_drive_task()
1806 fis.sector = command[3]; in exec_drive_task()
1807 fis.cyl_low = command[4]; in exec_drive_task()
1808 fis.cyl_hi = command[5]; in exec_drive_task()
1809 fis.device = command[6] & ~0x10; /* Clear the dev bit*/ in exec_drive_task()
1811 mtip_set_timeout(port->dd, &fis, &to, 0); in exec_drive_task()
1825 &fis, in exec_drive_task()
1866 struct host_to_dev_fis fis; in exec_drive_command() local
1891 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_command()
1892 fis.type = 0x27; in exec_drive_command()
1893 fis.opts = 1 << 7; in exec_drive_command()
1894 fis.command = command[0]; in exec_drive_command()
1895 fis.features = command[2]; in exec_drive_command()
1896 fis.sect_count = command[3]; in exec_drive_command()
1897 if (fis.command == ATA_CMD_SMART) { in exec_drive_command()
1898 fis.sector = command[1]; in exec_drive_command()
1899 fis.cyl_low = 0x4F; in exec_drive_command()
1900 fis.cyl_hi = 0xC2; in exec_drive_command()
1903 mtip_set_timeout(port->dd, &fis, &to, 0); in exec_drive_command()
1921 &fis, in exec_drive_command()
2017 struct host_to_dev_fis fis; in exec_drive_taskfile() local
2096 memset(&fis, 0, sizeof(struct host_to_dev_fis)); in exec_drive_taskfile()
2098 fis.type = 0x27; in exec_drive_taskfile()
2099 fis.opts = 1 << 7; in exec_drive_taskfile()
2100 fis.command = req_task->io_ports[7]; in exec_drive_taskfile()
2101 fis.features = req_task->io_ports[1]; in exec_drive_taskfile()
2102 fis.sect_count = req_task->io_ports[2]; in exec_drive_taskfile()
2103 fis.lba_low = req_task->io_ports[3]; in exec_drive_taskfile()
2104 fis.lba_mid = req_task->io_ports[4]; in exec_drive_taskfile()
2105 fis.lba_hi = req_task->io_ports[5]; in exec_drive_taskfile()
2107 fis.device = req_task->io_ports[6] & ~0x10; in exec_drive_taskfile()
2113 fis.lba_low_ex = req_task->hob_ports[3]; in exec_drive_taskfile()
2114 fis.lba_mid_ex = req_task->hob_ports[4]; in exec_drive_taskfile()
2115 fis.lba_hi_ex = req_task->hob_ports[5]; in exec_drive_taskfile()
2116 fis.features_ex = req_task->hob_ports[1]; in exec_drive_taskfile()
2117 fis.sect_cnt_ex = req_task->hob_ports[2]; in exec_drive_taskfile()
2123 force_single_sector = implicit_sector(fis.command, fis.features); in exec_drive_taskfile()
2125 if ((taskin || taskout) && (!fis.sect_count)) { in exec_drive_taskfile()
2127 fis.sect_count = nsect; in exec_drive_taskfile()
2144 fis.command, in exec_drive_taskfile()
2145 fis.features, in exec_drive_taskfile()
2146 fis.sect_count, in exec_drive_taskfile()
2147 fis.lba_low, in exec_drive_taskfile()
2148 fis.lba_mid, in exec_drive_taskfile()
2149 fis.lba_hi, in exec_drive_taskfile()
2150 fis.device); in exec_drive_taskfile()
2153 if ((fis.command == ATA_CMD_SEC_ERASE_UNIT) && outbuf && in exec_drive_taskfile()
2158 mtip_set_timeout(dd, &fis, &timeout, erasemode); in exec_drive_taskfile()
2164 transfer_size = ATA_SECT_SIZE * fis.sect_count; in exec_drive_taskfile()
2168 &fis, in exec_drive_taskfile()
2378 struct host_to_dev_fis *fis; in mtip_hw_submit_io() local
2398 fis = command->command; in mtip_hw_submit_io()
2399 fis->type = 0x27; in mtip_hw_submit_io()
2400 fis->opts = 1 << 7; in mtip_hw_submit_io()
2402 fis->command = ATA_CMD_FPDMA_READ; in mtip_hw_submit_io()
2404 fis->command = ATA_CMD_FPDMA_WRITE; in mtip_hw_submit_io()
2405 fis->lba_low = start & 0xFF; in mtip_hw_submit_io()
2406 fis->lba_mid = (start >> 8) & 0xFF; in mtip_hw_submit_io()
2407 fis->lba_hi = (start >> 16) & 0xFF; in mtip_hw_submit_io()
2408 fis->lba_low_ex = (start >> 24) & 0xFF; in mtip_hw_submit_io()
2409 fis->lba_mid_ex = (start >> 32) & 0xFF; in mtip_hw_submit_io()
2410 fis->lba_hi_ex = (start >> 40) & 0xFF; in mtip_hw_submit_io()
2411 fis->device = 1 << 6; in mtip_hw_submit_io()
2412 fis->features = nsect & 0xFF; in mtip_hw_submit_io()
2413 fis->features_ex = (nsect >> 8) & 0xFF; in mtip_hw_submit_io()
2414 fis->sect_count = ((rq->tag << 3) | (rq->tag >> 5)); in mtip_hw_submit_io()
2415 fis->sect_cnt_ex = 0; in mtip_hw_submit_io()
2416 fis->control = 0; in mtip_hw_submit_io()
2417 fis->res2 = 0; in mtip_hw_submit_io()
2418 fis->res3 = 0; in mtip_hw_submit_io()
2422 fis->device |= 1 << 7; in mtip_hw_submit_io()