Lines Matching refs:uscsi

1752 	iscsi_uscsi_t uscsi;  in IMA_LuInquiry()  local
1772 (void) memset(&uscsi, 0, sizeof (iscsi_uscsi_t)); in IMA_LuInquiry()
1773 uscsi.iu_vers = ISCSI_INTERFACE_VERSION; in IMA_LuInquiry()
1777 uscsi.iu_oid = deviceId.objectSequenceNumber; in IMA_LuInquiry()
1778 uscsi.iu_lun = 0; in IMA_LuInquiry()
1788 uscsi.iu_oid = (uint32_t)luProps.associatedTargetOid. in IMA_LuInquiry()
1790 uscsi.iu_lun = luProps.targetLun; in IMA_LuInquiry()
1793 uscsi.iu_ucmd.uscsi_flags = USCSI_READ; in IMA_LuInquiry()
1794 uscsi.iu_ucmd.uscsi_timeout = USCSI_TIMEOUT_IN_SEC; in IMA_LuInquiry()
1795 uscsi.iu_ucmd.uscsi_bufaddr = (char *)pOutputBuffer; in IMA_LuInquiry()
1796 uscsi.iu_ucmd.uscsi_buflen = buflen; in IMA_LuInquiry()
1797 uscsi.iu_ucmd.uscsi_rqbuf = (char *)pSenseBuffer; in IMA_LuInquiry()
1798 uscsi.iu_ucmd.uscsi_rqlen = (pSenseBufferLength != NULL) ? in IMA_LuInquiry()
1800 uscsi.iu_ucmd.uscsi_cdb = (char *)&cmdblk[0]; in IMA_LuInquiry()
1801 uscsi.iu_ucmd.uscsi_cdblen = CDB_GROUP0; in IMA_LuInquiry()
1809 if (ioctl(fd, ISCSI_USCSI, &uscsi) != 0) { in IMA_LuInquiry()
1816 if (uscsi.iu_ucmd.uscsi_status == STATUS_CHECK) { in IMA_LuInquiry()
1818 *pSenseBufferLength -= uscsi.iu_ucmd.uscsi_rqresid; in IMA_LuInquiry()
1823 *pOutputBufferLength = buflen - uscsi.iu_ucmd.uscsi_resid; in IMA_LuInquiry()
1843 iscsi_uscsi_t uscsi; in IMA_LuReadCapacity() local
1874 (void) memset(&uscsi, 0, sizeof (iscsi_uscsi_t)); in IMA_LuReadCapacity()
1875 uscsi.iu_vers = ISCSI_INTERFACE_VERSION; in IMA_LuReadCapacity()
1879 uscsi.iu_oid = deviceId.objectSequenceNumber; in IMA_LuReadCapacity()
1880 uscsi.iu_lun = 0; in IMA_LuReadCapacity()
1890 uscsi.iu_oid = (uint32_t)luProps.associatedTargetOid. in IMA_LuReadCapacity()
1892 uscsi.iu_lun = luProps.targetLun; in IMA_LuReadCapacity()
1895 uscsi.iu_ucmd.uscsi_flags = USCSI_READ; in IMA_LuReadCapacity()
1896 uscsi.iu_ucmd.uscsi_timeout = USCSI_TIMEOUT_IN_SEC; in IMA_LuReadCapacity()
1897 uscsi.iu_ucmd.uscsi_bufaddr = (char *)pOutputBuffer; in IMA_LuReadCapacity()
1898 uscsi.iu_ucmd.uscsi_buflen = buflen; in IMA_LuReadCapacity()
1899 uscsi.iu_ucmd.uscsi_rqbuf = (char *)pSenseBuffer; in IMA_LuReadCapacity()
1900 uscsi.iu_ucmd.uscsi_rqlen = (pSenseBufferLength != NULL) ? in IMA_LuReadCapacity()
1902 uscsi.iu_ucmd.uscsi_cdb = (char *)&cmdblk[0]; in IMA_LuReadCapacity()
1903 uscsi.iu_ucmd.uscsi_cdblen = cdbLength; in IMA_LuReadCapacity()
1911 if (ioctl(fd, ISCSI_USCSI, &uscsi) != 0) { in IMA_LuReadCapacity()
1918 if (uscsi.iu_ucmd.uscsi_status == STATUS_CHECK) { in IMA_LuReadCapacity()
1920 *pSenseBufferLength -= uscsi.iu_ucmd.uscsi_rqresid; in IMA_LuReadCapacity()
1925 *pOutputBufferLength = buflen - uscsi.iu_ucmd.uscsi_resid; in IMA_LuReadCapacity()
1946 iscsi_uscsi_t uscsi; in IMA_LuReportLuns() local
1962 (void) memset(&uscsi, 0, sizeof (iscsi_uscsi_t)); in IMA_LuReportLuns()
1963 uscsi.iu_vers = ISCSI_INTERFACE_VERSION; in IMA_LuReportLuns()
1971 uscsi.iu_oid = deviceId.objectSequenceNumber; in IMA_LuReportLuns()
1972 uscsi.iu_lun = 0; in IMA_LuReportLuns()
1982 uscsi.iu_oid = (uint32_t)luProps.associatedTargetOid. in IMA_LuReportLuns()
1984 uscsi.iu_lun = luProps.targetLun; in IMA_LuReportLuns()
1987 uscsi.iu_ucmd.uscsi_flags = USCSI_READ; in IMA_LuReportLuns()
1988 uscsi.iu_ucmd.uscsi_timeout = USCSI_TIMEOUT_IN_SEC; in IMA_LuReportLuns()
1989 uscsi.iu_ucmd.uscsi_bufaddr = (char *)pOutputBuffer; in IMA_LuReportLuns()
1990 uscsi.iu_ucmd.uscsi_buflen = buflen; in IMA_LuReportLuns()
1991 uscsi.iu_ucmd.uscsi_rqbuf = (char *)pSenseBuffer; in IMA_LuReportLuns()
1992 uscsi.iu_ucmd.uscsi_rqlen = (pSenseBufferLength != NULL) ? in IMA_LuReportLuns()
1994 uscsi.iu_ucmd.uscsi_cdb = (char *)&cmdblk[0]; in IMA_LuReportLuns()
1995 uscsi.iu_ucmd.uscsi_cdblen = CDB_GROUP5; in IMA_LuReportLuns()
2003 if (ioctl(fd, ISCSI_USCSI, &uscsi) != 0) { in IMA_LuReportLuns()
2010 if (uscsi.iu_ucmd.uscsi_status == STATUS_CHECK) { in IMA_LuReportLuns()
2012 *pSenseBufferLength -= uscsi.iu_ucmd.uscsi_rqresid; in IMA_LuReportLuns()
2017 *pOutputBufferLength = buflen - uscsi.iu_ucmd.uscsi_resid; in IMA_LuReportLuns()