Lines Matching refs:sshdr

468 			      struct scsi_sense_hdr *sshdr)  in scsi_report_sense()  argument
472 if (sshdr->sense_key == UNIT_ATTENTION) { in scsi_report_sense()
473 if (sshdr->asc == 0x3f && sshdr->ascq == 0x03) { in scsi_report_sense()
477 } else if (sshdr->asc == 0x3f && sshdr->ascq == 0x0e) { in scsi_report_sense()
484 } else if (sshdr->asc == 0x3f) in scsi_report_sense()
490 if (sshdr->asc == 0x38 && sshdr->ascq == 0x07) { in scsi_report_sense()
498 if (sshdr->asc == 0x29) { in scsi_report_sense()
509 if (sshdr->asc == 0x2a && sshdr->ascq == 0x01) { in scsi_report_sense()
513 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { in scsi_report_sense()
517 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) { in scsi_report_sense()
521 } else if (sshdr->asc == 0x2a) in scsi_report_sense()
552 struct scsi_sense_hdr sshdr; in scsi_check_sense() local
554 if (! scsi_command_normalize_sense(scmd, &sshdr)) in scsi_check_sense()
557 scsi_report_sense(sdev, &sshdr); in scsi_check_sense()
559 if (sshdr.sense_key == UNIT_ATTENTION) { in scsi_check_sense()
565 if (sshdr.asc == 0x28) in scsi_check_sense()
567 else if (sshdr.asc == 0x29) in scsi_check_sense()
571 if (scsi_sense_is_deferred(&sshdr)) in scsi_check_sense()
577 rc = sdev->handler->check_sense(sdev, &sshdr); in scsi_check_sense()
596 if (sshdr.response_code == 0x70) { in scsi_check_sense()
606 if ((sshdr.additional_length > 3) && in scsi_check_sense()
612 switch (sshdr.sense_key) { in scsi_check_sense()
619 if (sshdr.asc == 0x10) /* DIF */ in scsi_check_sense()
630 if (sshdr.asc == 0x2e && in scsi_check_sense()
631 sshdr.ascq >= 0x01 && sshdr.ascq <= 0x03) { in scsi_check_sense()
638 if (sshdr.asc == 0x44 && sdev->sdev_bflags & BLIST_RETRY_ITF) in scsi_check_sense()
640 if (sshdr.asc == 0xc1 && sshdr.ascq == 0x01 && in scsi_check_sense()
660 if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) { in scsi_check_sense()
671 sshdr.asc == 0x3f && sshdr.ascq == 0x0e) in scsi_check_sense()
677 if ((sshdr.asc == 0x04) && in scsi_check_sense()
678 (sshdr.ascq == 0x01 || sshdr.ascq == 0x0a)) in scsi_check_sense()
685 (sshdr.asc == 0x04) && (sshdr.ascq == 0x02)) in scsi_check_sense()
695 if (sshdr.asc == 0x27 && sshdr.ascq == 0x07) { in scsi_check_sense()
709 if (sshdr.asc == 0x11 || /* UNRECOVERED READ ERR */ in scsi_check_sense()
710 sshdr.asc == 0x13 || /* AMNF DATA FIELD */ in scsi_check_sense()
711 sshdr.asc == 0x14) { /* RECORD NOT FOUND */ in scsi_check_sense()
725 if (sshdr.asc == 0x20 || /* Invalid command operation code */ in scsi_check_sense()
726 sshdr.asc == 0x21 || /* Logical block address out of range */ in scsi_check_sense()
727 sshdr.asc == 0x22 || /* Invalid function */ in scsi_check_sense()
728 sshdr.asc == 0x24 || /* Invalid field in cdb */ in scsi_check_sense()
729 sshdr.asc == 0x26 || /* Parameter value invalid */ in scsi_check_sense()
730 sshdr.asc == 0x27) { /* Write protected */ in scsi_check_sense()
743 if (sshdr.asc == 0x55 && sshdr.ascq == 0x0a) { in scsi_check_sense()
2590 struct scsi_sense_hdr *sshdr) in scsi_command_normalize_sense() argument
2593 SCSI_SENSE_BUFFERSIZE, sshdr); in scsi_command_normalize_sense()