Lines Matching refs:sshdr
411 struct scsi_sense_hdr *sshdr) in scsi_report_sense() argument
415 if (sshdr->sense_key == UNIT_ATTENTION) { in scsi_report_sense()
416 if (sshdr->asc == 0x3f && sshdr->ascq == 0x03) { in scsi_report_sense()
420 } else if (sshdr->asc == 0x3f && sshdr->ascq == 0x0e) { in scsi_report_sense()
428 } else if (sshdr->asc == 0x3f) in scsi_report_sense()
435 if (sshdr->asc == 0x38 && sshdr->ascq == 0x07) { in scsi_report_sense()
443 if (sshdr->asc == 0x29) { in scsi_report_sense()
449 if (sshdr->asc == 0x2a && sshdr->ascq == 0x01) { in scsi_report_sense()
453 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { in scsi_report_sense()
457 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) { in scsi_report_sense()
461 } else if (sshdr->asc == 0x2a) in scsi_report_sense()
486 struct scsi_sense_hdr sshdr; in scsi_check_sense() local
488 if (! scsi_command_normalize_sense(scmd, &sshdr)) in scsi_check_sense()
491 scsi_report_sense(sdev, &sshdr); in scsi_check_sense()
493 if (scsi_sense_is_deferred(&sshdr)) in scsi_check_sense()
499 rc = sdev->handler->check_sense(sdev, &sshdr); in scsi_check_sense()
517 if (sshdr.response_code == 0x70) { in scsi_check_sense()
527 if ((sshdr.additional_length > 3) && in scsi_check_sense()
533 switch (sshdr.sense_key) { in scsi_check_sense()
540 if (sshdr.asc == 0x10) /* DIF */ in scsi_check_sense()
543 if (sshdr.asc == 0x44 && sdev->sdev_bflags & BLIST_RETRY_ITF) in scsi_check_sense()
545 if (sshdr.asc == 0xc1 && sshdr.ascq == 0x01 && in scsi_check_sense()
565 if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) { in scsi_check_sense()
576 sshdr.asc == 0x3f && sshdr.ascq == 0x0e) in scsi_check_sense()
582 if ((sshdr.asc == 0x04) && (sshdr.ascq == 0x01)) in scsi_check_sense()
589 (sshdr.asc == 0x04) && (sshdr.ascq == 0x02)) in scsi_check_sense()
599 if (sshdr.asc == 0x27 && sshdr.ascq == 0x07) { in scsi_check_sense()
613 if (sshdr.asc == 0x11 || /* UNRECOVERED READ ERR */ in scsi_check_sense()
614 sshdr.asc == 0x13 || /* AMNF DATA FIELD */ in scsi_check_sense()
615 sshdr.asc == 0x14) { /* RECORD NOT FOUND */ in scsi_check_sense()
629 if (sshdr.asc == 0x20 || /* Invalid command operation code */ in scsi_check_sense()
630 sshdr.asc == 0x21 || /* Logical block address out of range */ in scsi_check_sense()
631 sshdr.asc == 0x22 || /* Invalid function */ in scsi_check_sense()
632 sshdr.asc == 0x24 || /* Invalid field in cdb */ in scsi_check_sense()
633 sshdr.asc == 0x26 || /* Parameter value invalid */ in scsi_check_sense()
634 sshdr.asc == 0x27) { /* Write protected */ in scsi_check_sense()
2405 struct scsi_sense_hdr *sshdr) in scsi_command_normalize_sense() argument
2408 SCSI_SENSE_BUFFERSIZE, sshdr); in scsi_command_normalize_sense()