Lines Matching refs:iocmd

193 static int	mptscsih_do_cmd(MPT_SCSI_HOST *hd, INTERNAL_CMD *iocmd);
6187 INTERNAL_CMD iocmd; in mptscsih_synchronize_cache() local
6206 iocmd.cmd = CMD_SynchronizeCache; in mptscsih_synchronize_cache()
6207 iocmd.flags = 0; in mptscsih_synchronize_cache()
6208 iocmd.physDiskNum = -1; in mptscsih_synchronize_cache()
6209 iocmd.data = NULL; in mptscsih_synchronize_cache()
6210 iocmd.data_dma = -1; in mptscsih_synchronize_cache()
6211 iocmd.size = 0; in mptscsih_synchronize_cache()
6212 iocmd.rsvd = iocmd.rsvd2 = 0; in mptscsih_synchronize_cache()
6250 iocmd.bus = bus; in mptscsih_synchronize_cache()
6251 iocmd.id = id; in mptscsih_synchronize_cache()
6292 iocmd.lun = lun; in mptscsih_synchronize_cache()
6293 (void) mptscsih_do_cmd(hd, &iocmd); in mptscsih_synchronize_cache()
6558 INTERNAL_CMD iocmd; in mptscsih_doDv() local
6610 iocmd.id = id; in mptscsih_doDv()
6611 iocmd.bus = bus; in mptscsih_doDv()
6612 iocmd.lun = lun; in mptscsih_doDv()
6613 iocmd.flags = 0; in mptscsih_doDv()
6614 iocmd.physDiskNum = -1; in mptscsih_doDv()
6615 iocmd.rsvd = iocmd.rsvd2 = 0; in mptscsih_doDv()
6632 iocmd.flags |= MPT_ICFLAG_TAGGED_CMD; in mptscsih_doDv()
6734 iocmd.flags |= MPT_ICFLAG_PHYS_DISK; in mptscsih_doDv()
6735 iocmd.physDiskNum = pPDisk->PhysDiskNum; in mptscsih_doDv()
6739 if (mptscsih_do_raid(hd, MPI_RAID_ACTION_QUIESCE_PHYS_IO, &iocmd) < 0) { in mptscsih_doDv()
6753 if ((hd->ioc->spi_data.isRaid & (1 << id)) && !(iocmd.flags & MPT_ICFLAG_PHYS_DISK)) in mptscsih_doDv()
6793 iocmd.cmd = CMD_RequestSense; in mptscsih_doDv()
6794 iocmd.data_dma = buf1_dma; in mptscsih_doDv()
6795 iocmd.data = pbuf1; in mptscsih_doDv()
6796 iocmd.size = 0x12; in mptscsih_doDv()
6797 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
6813 iocmd.cmd = CMD_Inquiry; in mptscsih_doDv()
6814 iocmd.data_dma = buf1_dma; in mptscsih_doDv()
6815 iocmd.data = pbuf1; in mptscsih_doDv()
6816 iocmd.size = sz; in mptscsih_doDv()
6817 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
6825 if ((iocmd.flags & MPT_ICFLAG_TAGGED_CMD) == 0) in mptscsih_doDv()
6848 iocmd.size = sz; in mptscsih_doDv()
6857 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
6892 iocmd.cmd = CMD_Inquiry; in mptscsih_doDv()
6893 iocmd.data_dma = buf2_dma; in mptscsih_doDv()
6894 iocmd.data = pbuf2; in mptscsih_doDv()
6895 iocmd.size = sz; in mptscsih_doDv()
6896 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
6987 iocmd.cmd = CMD_TestUnitReady; in mptscsih_doDv()
6988 iocmd.data_dma = -1; in mptscsih_doDv()
6989 iocmd.data = NULL; in mptscsih_doDv()
6990 iocmd.size = 0; in mptscsih_doDv()
6993 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
7031 iocmd.cmd = CMD_ReadBuffer; in mptscsih_doDv()
7032 iocmd.data_dma = buf1_dma; in mptscsih_doDv()
7033 iocmd.data = pbuf1; in mptscsih_doDv()
7034 iocmd.size = 4; in mptscsih_doDv()
7035 iocmd.flags |= MPT_ICFLAG_BUF_CAP; in mptscsih_doDv()
7041 iocmd.flags |= MPT_ICFLAG_ECHO; in mptscsih_doDv()
7043 iocmd.flags &= ~MPT_ICFLAG_ECHO; in mptscsih_doDv()
7055 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
7067 if (iocmd.flags & MPT_ICFLAG_ECHO) { in mptscsih_doDv()
7103 if (iocmd.flags & MPT_ICFLAG_ECHO) in mptscsih_doDv()
7109 iocmd.flags &= ~MPT_ICFLAG_BUF_CAP; in mptscsih_doDv()
7115 iocmd.flags |= MPT_ICFLAG_ECHO; in mptscsih_doDv()
7124 (iocmd.flags & MPT_ICFLAG_ECHO) ? "Echo" : " ", bufsize)); in mptscsih_doDv()
7137 if ((iocmd.flags & MPT_ICFLAG_RESERVED) && (iocmd.flags & MPT_ICFLAG_DID_RESET)) { in mptscsih_doDv()
7138 iocmd.cmd = CMD_TestUnitReady; in mptscsih_doDv()
7139 iocmd.data_dma = -1; in mptscsih_doDv()
7140 iocmd.data = NULL; in mptscsih_doDv()
7141 iocmd.size = 0; in mptscsih_doDv()
7142 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
7145 iocmd.cmd = CMD_Release6; in mptscsih_doDv()
7146 iocmd.data_dma = -1; in mptscsih_doDv()
7147 iocmd.data = NULL; in mptscsih_doDv()
7148 iocmd.size = 0; in mptscsih_doDv()
7149 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
7157 iocmd.flags &= ~MPT_ICFLAG_RESERVED; in mptscsih_doDv()
7161 iocmd.flags &= ~MPT_ICFLAG_RESERVED; in mptscsih_doDv()
7163 iocmd.flags &= ~MPT_ICFLAG_DID_RESET; in mptscsih_doDv()
7166 while (repeat && (!(iocmd.flags & MPT_ICFLAG_RESERVED))) { in mptscsih_doDv()
7167 iocmd.cmd = CMD_Reserve6; in mptscsih_doDv()
7168 iocmd.data_dma = -1; in mptscsih_doDv()
7169 iocmd.data = NULL; in mptscsih_doDv()
7170 iocmd.size = 0; in mptscsih_doDv()
7171 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
7178 iocmd.flags |= MPT_ICFLAG_RESERVED; in mptscsih_doDv()
7209 iocmd.cmd = CMD_WriteBuffer; in mptscsih_doDv()
7210 iocmd.data_dma = buf1_dma; in mptscsih_doDv()
7211 iocmd.data = pbuf1; in mptscsih_doDv()
7212 iocmd.size = sz; in mptscsih_doDv()
7213 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
7227 if ((iocmd.flags & MPT_ICFLAG_ECHO) && (dataBufSize >= bufsize)) { in mptscsih_doDv()
7228 iocmd.flags &= ~MPT_ICFLAG_ECHO; in mptscsih_doDv()
7240 iocmd.flags |= MPT_ICFLAG_DID_RESET; in mptscsih_doDv()
7254 if (iocmd.flags & MPT_ICFLAG_ECHO) { in mptscsih_doDv()
7256 iocmd.flags &= ~MPT_ICFLAG_ECHO; in mptscsih_doDv()
7271 iocmd.cmd = CMD_ReadBuffer; in mptscsih_doDv()
7272 iocmd.data_dma = buf2_dma; in mptscsih_doDv()
7273 iocmd.data = pbuf2; in mptscsih_doDv()
7274 iocmd.size = sz; in mptscsih_doDv()
7275 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
7295 if (iocmd.flags & MPT_ICFLAG_ECHO) { in mptscsih_doDv()
7297 iocmd.flags &= ~MPT_ICFLAG_ECHO; in mptscsih_doDv()
7336 iocmd.flags |= MPT_ICFLAG_DID_RESET; in mptscsih_doDv()
7361 if (iocmd.flags & MPT_ICFLAG_RESERVED) { in mptscsih_doDv()
7362 iocmd.cmd = CMD_Release6; in mptscsih_doDv()
7363 iocmd.data_dma = -1; in mptscsih_doDv()
7364 iocmd.data = NULL; in mptscsih_doDv()
7365 iocmd.size = 0; in mptscsih_doDv()
7366 if (mptscsih_do_cmd(hd, &iocmd) < 0) in mptscsih_doDv()
7371 iocmd.flags &= ~MPT_ICFLAG_RESERVED; in mptscsih_doDv()
7404 if (iocmd.flags & MPT_ICFLAG_PHYS_DISK) { in mptscsih_doDv()
7405 if (mptscsih_do_raid(hd, MPI_RAID_ACTION_ENABLE_PHYS_IO, &iocmd) < 0) in mptscsih_doDv()