Lines Matching defs:inq83
101 static int is_page83_data_valid(uchar_t *inq83, size_t inq83_len);
105 static void encode_scsi3_page83(int version, uchar_t *inq83,
107 static void encode_scsi3_page83_emc(int version, uchar_t *inq83,
131 * inq83 - vpd inquiry buffer
153 uchar_t *inq83, /* IN */
188 if (inq83 != NULL) {
195 if (is_page83_data_valid(inq83, inq83_len) ==
206 encode_scsi3_page83_emc(version, inq83,
243 encode_scsi3_page83(version, inq83,
293 * Arguments: inq83 -
301 is_page83_data_valid(uchar_t *inq83, size_t inq83_len)
308 DEVID_ASSERT(inq83 != NULL);
320 if ((inq83[0] & DTYPE_MASK) == DTYPE_UNKNOWN) {
339 if ((inq83[2] == 0) && (inq83[3] == 0)) {
343 if (inq83[3] > (SCMD_MAX_INQUIRY_PAGE83_SIZE - 3)) {
356 dblk = &inq83[4]; /* start of first decriptor blk */
357 while (covered_desc_len < inq83[3]) {
376 if ((covered_desc_len + dlen) > inq83[3]) {
626 * inq83 - driver soft state (unit) structure
627 * inq83_len - length of raw inq83 data
636 encode_scsi3_page83(int version, uchar_t *inq83, size_t inq83_len,
644 DEVID_ASSERT(inq83 != NULL);
645 /* inq83 length was already validate in is_page83_valid */
668 * The format of the inq83 data (Device Identification VPD page) is
679 descriptor_bytes_left = (size_t)((inq83[2] << 8) | inq83[3]);
712 (size_t)inq83[offset + 3] <= inq83_len)) {
723 switch ((inq83[offset + 1] & 0x3f)) {
741 descriptor_bytes_left -= (size_t)(inq83[offset + 3] +
744 (size_t)inq83[offset + 3]);
767 *id_len = (size_t)inq83[offset + 3];
772 bcopy(&inq83[offset + SCMD_INQUIRY_PAGE83_IDENT_DESC_HDR_SIZE],
815 * inq83 - scsi page 83 buffer
822 encode_scsi3_page83_emc(int version, uchar_t *inq83,
827 DEVID_ASSERT(inq83 != NULL);
859 if ((inq83[3] != 0x10) || (inq83[4] != 0x60)) {
863 guidp = &inq83[SCMD_INQUIRY_PAGE83_HDR_SIZE];