Lines Matching refs:inqp
366 struct c8_inquiry *inqp = &h->inq.c8; in get_lun_info() local
368 if (!scsi_get_vpd_page(sdev, 0xC8, (unsigned char *)inqp, in get_lun_info()
370 if (inqp->page_code != 0xc8) in get_lun_info()
372 if (inqp->page_id[0] != 'e' || inqp->page_id[1] != 'd' || in get_lun_info()
373 inqp->page_id[2] != 'i' || inqp->page_id[3] != 'd') in get_lun_info()
375 h->lun = inqp->lun[7]; /* Uses only the last byte */ in get_lun_info()
378 *(array_name+i) = inqp->array_user_label[(2*i)+1]; in get_lun_info()
382 memcpy(array_id, inqp->array_unique_id, inqp->array_uniq_id_len); in get_lun_info()
392 struct c9_inquiry *inqp = &h->inq.c9; in check_ownership() local
395 if (!scsi_get_vpd_page(sdev, 0xC9, (unsigned char *)inqp, in check_ownership()
398 if ((inqp->avte_cvp >> 5) & 0x1) in check_ownership()
400 else if (inqp->avte_cvp >> 7) in check_ownership()
406 if (inqp->avte_cvp & 0x1) { in check_ownership()
419 if (inqp->path_prio & 0x1) { in check_ownership()
441 struct c4_inquiry *inqp = &h->inq.c4; in initialize_controller() local
443 if (!scsi_get_vpd_page(sdev, 0xC4, (unsigned char *)inqp, in initialize_controller()
446 if (inqp->slot_id[1] == 0x31) in initialize_controller()
468 struct c2_inquiry *inqp = &h->inq.c2; in set_mode_select() local
470 if (!scsi_get_vpd_page(sdev, 0xC2, (unsigned char *)inqp, in set_mode_select()
476 if (inqp->max_lun_supported >= MODE6_MAX_LUN) in set_mode_select()