Lines Matching refs:sshdr
389 struct scsi_sense_hdr *sshdr) in scsi_report_sense() argument
393 if (sshdr->sense_key == UNIT_ATTENTION) { in scsi_report_sense()
394 if (sshdr->asc == 0x3f && sshdr->ascq == 0x03) { in scsi_report_sense()
398 } else if (sshdr->asc == 0x3f && sshdr->ascq == 0x0e) { in scsi_report_sense()
406 } else if (sshdr->asc == 0x3f) in scsi_report_sense()
413 if (sshdr->asc == 0x38 && sshdr->ascq == 0x07) { in scsi_report_sense()
421 if (sshdr->asc == 0x2a && sshdr->ascq == 0x01) { in scsi_report_sense()
425 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { in scsi_report_sense()
429 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) { in scsi_report_sense()
433 } else if (sshdr->asc == 0x2a) in scsi_report_sense()
458 struct scsi_sense_hdr sshdr; in scsi_check_sense() local
460 if (! scsi_command_normalize_sense(scmd, &sshdr)) in scsi_check_sense()
463 scsi_report_sense(sdev, &sshdr); in scsi_check_sense()
465 if (scsi_sense_is_deferred(&sshdr)) in scsi_check_sense()
471 rc = sdev->handler->check_sense(sdev, &sshdr); in scsi_check_sense()
489 if (sshdr.response_code == 0x70) { in scsi_check_sense()
499 if ((sshdr.additional_length > 3) && in scsi_check_sense()
505 switch (sshdr.sense_key) { in scsi_check_sense()
512 if (sshdr.asc == 0x10) /* DIF */ in scsi_check_sense()
531 if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) { in scsi_check_sense()
542 sshdr.asc == 0x3f && sshdr.ascq == 0x0e) in scsi_check_sense()
548 if ((sshdr.asc == 0x04) && (sshdr.ascq == 0x01)) in scsi_check_sense()
555 (sshdr.asc == 0x04) && (sshdr.ascq == 0x02)) in scsi_check_sense()
565 if (sshdr.asc == 0x27 && sshdr.ascq == 0x07) { in scsi_check_sense()
578 if (sshdr.asc == 0x11 || /* UNRECOVERED READ ERR */ in scsi_check_sense()
579 sshdr.asc == 0x13 || /* AMNF DATA FIELD */ in scsi_check_sense()
580 sshdr.asc == 0x14) { /* RECORD NOT FOUND */ in scsi_check_sense()
593 if (sshdr.asc == 0x20 || /* Invalid command operation code */ in scsi_check_sense()
594 sshdr.asc == 0x21 || /* Logical block address out of range */ in scsi_check_sense()
595 sshdr.asc == 0x24 || /* Invalid field in cdb */ in scsi_check_sense()
596 sshdr.asc == 0x26) { /* Parameter value invalid */ in scsi_check_sense()
2421 struct scsi_sense_hdr *sshdr) in scsi_command_normalize_sense() argument
2424 SCSI_SENSE_BUFFERSIZE, sshdr); in scsi_command_normalize_sense()