Lines Matching refs:sshdr
459 struct scsi_sense_hdr *sshdr) in scsi_report_sense() argument
463 if (sshdr->sense_key == UNIT_ATTENTION) { in scsi_report_sense()
464 if (sshdr->asc == 0x3f && sshdr->ascq == 0x03) { in scsi_report_sense()
468 } else if (sshdr->asc == 0x3f && sshdr->ascq == 0x0e) { in scsi_report_sense()
475 } else if (sshdr->asc == 0x3f) in scsi_report_sense()
481 if (sshdr->asc == 0x38 && sshdr->ascq == 0x07) { in scsi_report_sense()
489 if (sshdr->asc == 0x29) { in scsi_report_sense()
500 if (sshdr->asc == 0x2a && sshdr->ascq == 0x01) { in scsi_report_sense()
504 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { in scsi_report_sense()
508 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) { in scsi_report_sense()
512 } else if (sshdr->asc == 0x2a) in scsi_report_sense()
543 struct scsi_sense_hdr sshdr; in scsi_check_sense() local
545 if (! scsi_command_normalize_sense(scmd, &sshdr)) in scsi_check_sense()
548 scsi_report_sense(sdev, &sshdr); in scsi_check_sense()
550 if (sshdr.sense_key == UNIT_ATTENTION) { in scsi_check_sense()
556 if (sshdr.asc == 0x28) in scsi_check_sense()
558 else if (sshdr.asc == 0x29) in scsi_check_sense()
562 if (scsi_sense_is_deferred(&sshdr)) in scsi_check_sense()
568 rc = sdev->handler->check_sense(sdev, &sshdr); in scsi_check_sense()
587 if (sshdr.response_code == 0x70) { in scsi_check_sense()
597 if ((sshdr.additional_length > 3) && in scsi_check_sense()
603 switch (sshdr.sense_key) { in scsi_check_sense()
610 if (sshdr.asc == 0x10) /* DIF */ in scsi_check_sense()
621 if (sshdr.asc == 0x2e && in scsi_check_sense()
622 sshdr.ascq >= 0x01 && sshdr.ascq <= 0x03) { in scsi_check_sense()
629 if (sshdr.asc == 0x44 && sdev->sdev_bflags & BLIST_RETRY_ITF) in scsi_check_sense()
631 if (sshdr.asc == 0xc1 && sshdr.ascq == 0x01 && in scsi_check_sense()
651 if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) { in scsi_check_sense()
662 sshdr.asc == 0x3f && sshdr.ascq == 0x0e) in scsi_check_sense()
668 if ((sshdr.asc == 0x04) && in scsi_check_sense()
669 (sshdr.ascq == 0x01 || sshdr.ascq == 0x0a)) in scsi_check_sense()
676 (sshdr.asc == 0x04) && (sshdr.ascq == 0x02)) in scsi_check_sense()
686 if (sshdr.asc == 0x27 && sshdr.ascq == 0x07) { in scsi_check_sense()
700 if (sshdr.asc == 0x11 || /* UNRECOVERED READ ERR */ in scsi_check_sense()
701 sshdr.asc == 0x13 || /* AMNF DATA FIELD */ in scsi_check_sense()
702 sshdr.asc == 0x14) { /* RECORD NOT FOUND */ in scsi_check_sense()
716 if (sshdr.asc == 0x20 || /* Invalid command operation code */ in scsi_check_sense()
717 sshdr.asc == 0x21 || /* Logical block address out of range */ in scsi_check_sense()
718 sshdr.asc == 0x22 || /* Invalid function */ in scsi_check_sense()
719 sshdr.asc == 0x24 || /* Invalid field in cdb */ in scsi_check_sense()
720 sshdr.asc == 0x26 || /* Parameter value invalid */ in scsi_check_sense()
721 sshdr.asc == 0x27) { /* Write protected */ in scsi_check_sense()
734 if (sshdr.asc == 0x55 && sshdr.ascq == 0x0a) { in scsi_check_sense()
2553 struct scsi_sense_hdr *sshdr) in scsi_command_normalize_sense() argument
2556 SCSI_SENSE_BUFFERSIZE, sshdr); in scsi_command_normalize_sense()