Lines Matching refs:sense_hdr
418 struct scsi_sense_hdr *sense_hdr) in alua_check_sense() argument
423 switch (sense_hdr->sense_key) { in alua_check_sense()
425 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0a) { in alua_check_sense()
439 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) { in alua_check_sense()
448 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x04) in alua_check_sense()
453 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x01) in alua_check_sense()
458 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x06) { in alua_check_sense()
465 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x07) { in alua_check_sense()
472 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x03) in alua_check_sense()
477 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x0e) in alua_check_sense()
500 struct scsi_sense_hdr sense_hdr; in alua_tur() local
504 ALUA_FAILOVER_RETRIES, &sense_hdr); in alua_tur()
505 if (sense_hdr.sense_key == NOT_READY && in alua_tur()
506 sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a) in alua_tur()
524 struct scsi_sense_hdr sense_hdr; in alua_rtpg() local
556 retval = submit_rtpg(sdev, buff, bufflen, &sense_hdr, pg->flags); in alua_rtpg()
575 if (retval < 0 || !scsi_sense_valid(&sense_hdr)) { in alua_rtpg()
598 sense_hdr.sense_key == ILLEGAL_REQUEST) { in alua_rtpg()
607 if (sense_hdr.sense_key == NOT_READY && in alua_rtpg()
608 sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a) { in alua_rtpg()
615 if (sense_hdr.sense_key == UNIT_ATTENTION) in alua_rtpg()
621 scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr); in alua_rtpg()
627 scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr); in alua_rtpg()
775 struct scsi_sense_hdr sense_hdr; in alua_stpg() local
803 retval = submit_stpg(sdev, pg->group_id, &sense_hdr); in alua_stpg()
806 if (retval < 0 || !scsi_sense_valid(&sense_hdr)) { in alua_stpg()
815 scsi_print_sense_hdr(sdev, ALUA_DH_NAME, &sense_hdr); in alua_stpg()