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