Lines Matching refs:fis

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