sshdr 590 drivers/ata/libata-scsi.c struct scsi_sense_hdr sshdr; sshdr 636 drivers/ata/libata-scsi.c sensebuf, &sshdr, (10*HZ), 5, 0, 0, NULL); sshdr 645 drivers/ata/libata-scsi.c if (sshdr.sense_key == RECOVERED_ERROR && sshdr 646 drivers/ata/libata-scsi.c sshdr.asc == 0 && sshdr.ascq == 0x1d) sshdr 692 drivers/ata/libata-scsi.c struct scsi_sense_hdr sshdr; sshdr 717 drivers/ata/libata-scsi.c sensebuf, &sshdr, (10*HZ), 5, 0, 0, NULL); sshdr 726 drivers/ata/libata-scsi.c if (sshdr.sense_key == RECOVERED_ERROR && sshdr 727 drivers/ata/libata-scsi.c sshdr.asc == 0 && sshdr.ascq == 0x1d) sshdr 751 drivers/block/pktcdvd.c struct scsi_sense_hdr *sshdr = cgc->sshdr; sshdr 753 drivers/block/pktcdvd.c if (sshdr) sshdr 756 drivers/block/pktcdvd.c sshdr->sense_key, sshdr->asc, sshdr->ascq, sshdr 757 drivers/block/pktcdvd.c sense_key_string(sshdr->sense_key)); sshdr 790 drivers/block/pktcdvd.c struct scsi_sense_hdr sshdr; sshdr 794 drivers/block/pktcdvd.c cgc.sshdr = &sshdr; sshdr 1654 drivers/block/pktcdvd.c struct scsi_sense_hdr sshdr; sshdr 1665 drivers/block/pktcdvd.c cgc.sshdr = &sshdr; sshdr 1681 drivers/block/pktcdvd.c cgc.sshdr = &sshdr; sshdr 1919 drivers/block/pktcdvd.c struct scsi_sense_hdr sshdr; sshdr 1924 drivers/block/pktcdvd.c cgc.sshdr = &sshdr; sshdr 1965 drivers/block/pktcdvd.c struct scsi_sense_hdr sshdr; sshdr 1972 drivers/block/pktcdvd.c cgc.sshdr = &sshdr; sshdr 2026 drivers/block/pktcdvd.c struct scsi_sense_hdr sshdr; sshdr 2032 drivers/block/pktcdvd.c cgc.sshdr = &sshdr; sshdr 2047 drivers/block/pktcdvd.c cgc.sshdr = &sshdr; sshdr 2098 drivers/block/pktcdvd.c struct scsi_sense_hdr sshdr; sshdr 2104 drivers/block/pktcdvd.c cgc.sshdr = &sshdr; sshdr 350 drivers/cdrom/cdrom.c if (cgc->sshdr) { sshdr 351 drivers/cdrom/cdrom.c cgc->sshdr->sense_key = 0x05; sshdr 352 drivers/cdrom/cdrom.c cgc->sshdr->asc = 0x20; sshdr 353 drivers/cdrom/cdrom.c cgc->sshdr->ascq = 0x00; sshdr 2233 drivers/cdrom/cdrom.c struct scsi_sense_hdr sshdr; sshdr 2237 drivers/cdrom/cdrom.c &sshdr); sshdr 2238 drivers/cdrom/cdrom.c cdi->last_sense = sshdr.sense_key; sshdr 2960 drivers/cdrom/cdrom.c struct scsi_sense_hdr sshdr; sshdr 2988 drivers/cdrom/cdrom.c memset(&sshdr, 0, sizeof(sshdr)); sshdr 2989 drivers/cdrom/cdrom.c cgc->sshdr = &sshdr; sshdr 2992 drivers/cdrom/cdrom.c if (ret && sshdr.sense_key == 0x05 && sshdr 2993 drivers/cdrom/cdrom.c sshdr.asc == 0x20 && sshdr 2994 drivers/cdrom/cdrom.c sshdr.ascq == 0x00) { sshdr 3003 drivers/cdrom/cdrom.c cgc->sshdr = NULL; sshdr 433 drivers/ide/ide-cd.c struct scsi_sense_hdr *sshdr, int timeout, sshdr 445 drivers/ide/ide-cd.c if (!sshdr) sshdr 446 drivers/ide/ide-cd.c sshdr = &local_sshdr; sshdr 475 drivers/ide/ide-cd.c scsi_req(rq)->sense_len, sshdr); sshdr 487 drivers/ide/ide-cd.c if (sshdr->sense_key == UNIT_ATTENTION) sshdr 489 drivers/ide/ide-cd.c else if (sshdr->sense_key == NOT_READY && sshdr 490 drivers/ide/ide-cd.c sshdr->asc == 4 && sshdr->ascq != 4) { sshdr 958 drivers/ide/ide-cd.c int cdrom_check_status(ide_drive_t *drive, struct scsi_sense_hdr *sshdr) sshdr 980 drivers/ide/ide-cd.c return ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, sshdr, 0, RQF_QUIET); sshdr 46 drivers/ide/ide-cd_ioctl.c struct scsi_sense_hdr sshdr; sshdr 52 drivers/ide/ide-cd_ioctl.c stat = cdrom_check_status(drive, &sshdr); sshdr 53 drivers/ide/ide-cd_ioctl.c if (!stat || sshdr.sense_key == UNIT_ATTENTION) sshdr 65 drivers/ide/ide-cd_ioctl.c if (sshdr.sense_key == NOT_READY && sshdr.asc == 0x04 sshdr 66 drivers/ide/ide-cd_ioctl.c && sshdr.ascq == 0x04) sshdr 74 drivers/ide/ide-cd_ioctl.c if (sshdr.sense_key == NOT_READY) { sshdr 75 drivers/ide/ide-cd_ioctl.c if (sshdr.asc == 0x3a && sshdr.ascq == 1) sshdr 139 drivers/ide/ide-cd_ioctl.c struct scsi_sense_hdr sshdr; sshdr 154 drivers/ide/ide-cd_ioctl.c &sshdr, 0, 0); sshdr 160 drivers/ide/ide-cd_ioctl.c sshdr.sense_key == ILLEGAL_REQUEST && sshdr 161 drivers/ide/ide-cd_ioctl.c (sshdr.asc == 0x24 || sshdr.asc == 0x20)) { sshdr 169 drivers/ide/ide-cd_ioctl.c if (stat != 0 && sshdr.sense_key == NOT_READY && sshdr.asc == 0x3a) sshdr 455 drivers/ide/ide-cd_ioctl.c if (cgc->sshdr) sshdr 456 drivers/ide/ide-cd_ioctl.c memset(cgc->sshdr, 0, sizeof(*cgc->sshdr)); sshdr 464 drivers/ide/ide-cd_ioctl.c cgc->sshdr, cgc->timeout, flags); sshdr 165 drivers/scsi/ch.c static int ch_find_errno(struct scsi_sense_hdr *sshdr) sshdr 170 drivers/scsi/ch.c if (scsi_sense_valid(sshdr) && sshdr 171 drivers/scsi/ch.c sshdr->asc != 0) { sshdr 173 drivers/scsi/ch.c if (ch_err[i].sense == sshdr->sense_key && sshdr 174 drivers/scsi/ch.c ch_err[i].asc == sshdr->asc && sshdr 175 drivers/scsi/ch.c ch_err[i].ascq == sshdr->ascq) { sshdr 192 drivers/scsi/ch.c struct scsi_sense_hdr sshdr; sshdr 200 drivers/scsi/ch.c buflength, &sshdr, timeout * HZ, sshdr 205 drivers/scsi/ch.c scsi_print_sense_hdr(ch->device, ch->name, &sshdr); sshdr 206 drivers/scsi/ch.c errno = ch_find_errno(&sshdr); sshdr 208 drivers/scsi/ch.c switch(sshdr.sense_key) { sshdr 335 drivers/scsi/cxlflash/superpipe.c struct scsi_sense_hdr sshdr; sshdr 361 drivers/scsi/cxlflash/superpipe.c CMD_BUFSIZE, NULL, &sshdr, to, CMD_RETRIES, sshdr 375 drivers/scsi/cxlflash/superpipe.c switch (sshdr.sense_key) { sshdr 383 drivers/scsi/cxlflash/superpipe.c switch (sshdr.asc) { sshdr 1780 drivers/scsi/cxlflash/superpipe.c struct scsi_sense_hdr sshdr = { 0 }; sshdr 1784 drivers/scsi/cxlflash/superpipe.c DK_CXLFLASH_VERIFY_SENSE_LEN, &sshdr); sshdr 1791 drivers/scsi/cxlflash/superpipe.c switch (sshdr.sense_key) { sshdr 1798 drivers/scsi/cxlflash/superpipe.c switch (sshdr.asc) { sshdr 1826 drivers/scsi/cxlflash/superpipe.c sshdr.sense_key, sshdr.asc, sshdr.ascq, rc); sshdr 126 drivers/scsi/device_handler/scsi_dh_alua.c int bufflen, struct scsi_sense_hdr *sshdr, int flags) sshdr 142 drivers/scsi/device_handler/scsi_dh_alua.c sshdr, ALUA_FAILOVER_TIMEOUT * HZ, sshdr 154 drivers/scsi/device_handler/scsi_dh_alua.c struct scsi_sense_hdr *sshdr) sshdr 174 drivers/scsi/device_handler/scsi_dh_alua.c sshdr, ALUA_FAILOVER_TIMEOUT * HZ, sshdr 101 drivers/scsi/device_handler/scsi_dh_emc.c struct scsi_sense_hdr *sshdr) sshdr 107 drivers/scsi/device_handler/scsi_dh_emc.c "command.\n", CLARIION_NAME, sshdr->sense_key, sshdr 108 drivers/scsi/device_handler/scsi_dh_emc.c sshdr->asc, sshdr->ascq); sshdr 110 drivers/scsi/device_handler/scsi_dh_emc.c if (sshdr->sense_key == 0x05 && sshdr->asc == 0x04 && sshdr 111 drivers/scsi/device_handler/scsi_dh_emc.c sshdr->ascq == 0x00) { sshdr 120 drivers/scsi/device_handler/scsi_dh_emc.c } else if (sshdr->sense_key == 0x02 && sshdr->asc == 0x04 && sshdr 121 drivers/scsi/device_handler/scsi_dh_emc.c sshdr->ascq == 0x03) { sshdr 241 drivers/scsi/device_handler/scsi_dh_emc.c struct scsi_sense_hdr sshdr; sshdr 267 drivers/scsi/device_handler/scsi_dh_emc.c &sshdr, CLARIION_TIMEOUT * HZ, CLARIION_RETRIES, sshdr 270 drivers/scsi/device_handler/scsi_dh_emc.c if (scsi_sense_valid(&sshdr)) sshdr 271 drivers/scsi/device_handler/scsi_dh_emc.c res = trespass_endio(sdev, &sshdr); sshdr 44 drivers/scsi/device_handler/scsi_dh_hp_sw.c struct scsi_sense_hdr *sshdr) sshdr 48 drivers/scsi/device_handler/scsi_dh_hp_sw.c switch (sshdr->sense_key) { sshdr 53 drivers/scsi/device_handler/scsi_dh_hp_sw.c if (sshdr->asc == 0x04 && sshdr->ascq == 2) { sshdr 67 drivers/scsi/device_handler/scsi_dh_hp_sw.c HP_SW_NAME, sshdr->sense_key, sshdr->asc, sshdr 68 drivers/scsi/device_handler/scsi_dh_hp_sw.c sshdr->ascq); sshdr 84 drivers/scsi/device_handler/scsi_dh_hp_sw.c struct scsi_sense_hdr sshdr; sshdr 90 drivers/scsi/device_handler/scsi_dh_hp_sw.c res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr, sshdr 93 drivers/scsi/device_handler/scsi_dh_hp_sw.c if (scsi_sense_valid(&sshdr)) sshdr 94 drivers/scsi/device_handler/scsi_dh_hp_sw.c ret = tur_done(sdev, h, &sshdr); sshdr 120 drivers/scsi/device_handler/scsi_dh_hp_sw.c struct scsi_sense_hdr sshdr; sshdr 128 drivers/scsi/device_handler/scsi_dh_hp_sw.c res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr, sshdr 131 drivers/scsi/device_handler/scsi_dh_hp_sw.c if (!scsi_sense_valid(&sshdr)) { sshdr 137 drivers/scsi/device_handler/scsi_dh_hp_sw.c switch (sshdr.sense_key) { sshdr 139 drivers/scsi/device_handler/scsi_dh_hp_sw.c if (sshdr.asc == 0x04 && sshdr.ascq == 3) { sshdr 155 drivers/scsi/device_handler/scsi_dh_hp_sw.c sshdr.sense_key, sshdr.asc, sshdr.ascq); sshdr 537 drivers/scsi/device_handler/scsi_dh_rdac.c struct scsi_sense_hdr sshdr; sshdr 559 drivers/scsi/device_handler/scsi_dh_rdac.c data_size, NULL, &sshdr, RDAC_TIMEOUT * HZ, sshdr 561 drivers/scsi/device_handler/scsi_dh_rdac.c err = mode_select_handle_sense(sdev, &sshdr); sshdr 352 drivers/scsi/hpsa.c struct scsi_sense_hdr sshdr; sshdr 362 drivers/scsi/hpsa.c rc = scsi_normalize_sense(sense_data, sense_data_len, &sshdr); sshdr 364 drivers/scsi/hpsa.c *sense_key = sshdr.sense_key; sshdr 365 drivers/scsi/hpsa.c *asc = sshdr.asc; sshdr 366 drivers/scsi/hpsa.c *ascq = sshdr.ascq; sshdr 3064 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct scsi_sense_hdr sshdr; sshdr 3069 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c se_cmd->scsi_sense_length, &sshdr)) sshdr 3070 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (sshdr.sense_key == HARDWARE_ERROR && sshdr 313 drivers/scsi/myrb.c struct scsi_sense_hdr sshdr; sshdr 315 drivers/scsi/myrb.c memset(&sshdr, 0, sizeof(sshdr)); sshdr 316 drivers/scsi/myrb.c scsi_normalize_sense(ev_buf->sense, 32, &sshdr); sshdr 318 drivers/scsi/myrb.c if (sshdr.sense_key == VENDOR_SPECIFIC && sshdr 319 drivers/scsi/myrb.c sshdr.asc == 0x80 && sshdr 320 drivers/scsi/myrb.c sshdr.ascq < ARRAY_SIZE(myrb_event_msg)) sshdr 324 drivers/scsi/myrb.c myrb_event_msg[sshdr.ascq]); sshdr 329 drivers/scsi/myrb.c sshdr.sense_key, sshdr.asc, sshdr.ascq); sshdr 821 drivers/scsi/myrs.c struct scsi_sense_hdr sshdr = {0}; sshdr 826 drivers/scsi/myrs.c if (!scsi_normalize_sense(ev->sense_data, 40, &sshdr)) { sshdr 827 drivers/scsi/myrs.c memset(&sshdr, 0x0, sizeof(sshdr)); sshdr 835 drivers/scsi/myrs.c if (sshdr.sense_key == VENDOR_SPECIFIC && sshdr 836 drivers/scsi/myrs.c (sshdr.asc == 0x80 || sshdr.asc == 0x81)) sshdr 837 drivers/scsi/myrs.c ev->ev_code = ((sshdr.asc - 0x80) << 8 | sshdr.ascq); sshdr 895 drivers/scsi/myrs.c if (sshdr.sense_key == NO_SENSE || sshdr 896 drivers/scsi/myrs.c (sshdr.sense_key == NOT_READY && sshdr 897 drivers/scsi/myrs.c sshdr.asc == 0x04 && (sshdr.ascq == 0x01 || sshdr 898 drivers/scsi/myrs.c sshdr.ascq == 0x02))) sshdr 906 drivers/scsi/myrs.c sshdr.sense_key, sshdr.asc, sshdr.ascq); sshdr 491 drivers/scsi/scsi.c struct scsi_sense_hdr sshdr; sshdr 506 drivers/scsi/scsi.c &sshdr, 30 * HZ, 3, NULL); sshdr 508 drivers/scsi/scsi.c if (result && scsi_sense_valid(&sshdr) && sshdr 509 drivers/scsi/scsi.c sshdr.sense_key == ILLEGAL_REQUEST && sshdr 510 drivers/scsi/scsi.c (sshdr.asc == 0x20 || sshdr.asc == 0x24) && sshdr.ascq == 0x00) sshdr 139 drivers/scsi/scsi_common.c struct scsi_sense_hdr *sshdr) sshdr 141 drivers/scsi/scsi_common.c memset(sshdr, 0, sizeof(struct scsi_sense_hdr)); sshdr 146 drivers/scsi/scsi_common.c sshdr->response_code = (sense_buffer[0] & 0x7f); sshdr 148 drivers/scsi/scsi_common.c if (!scsi_sense_valid(sshdr)) sshdr 151 drivers/scsi/scsi_common.c if (sshdr->response_code >= 0x72) { sshdr 156 drivers/scsi/scsi_common.c sshdr->sense_key = (sense_buffer[1] & 0xf); sshdr 158 drivers/scsi/scsi_common.c sshdr->asc = sense_buffer[2]; sshdr 160 drivers/scsi/scsi_common.c sshdr->ascq = sense_buffer[3]; sshdr 162 drivers/scsi/scsi_common.c sshdr->additional_length = sense_buffer[7]; sshdr 168 drivers/scsi/scsi_common.c sshdr->sense_key = (sense_buffer[2] & 0xf); sshdr 173 drivers/scsi/scsi_common.c sshdr->asc = sense_buffer[12]; sshdr 175 drivers/scsi/scsi_common.c sshdr->ascq = sense_buffer[13]; sshdr 409 drivers/scsi/scsi_error.c struct scsi_sense_hdr *sshdr) sshdr 413 drivers/scsi/scsi_error.c if (sshdr->sense_key == UNIT_ATTENTION) { sshdr 414 drivers/scsi/scsi_error.c if (sshdr->asc == 0x3f && sshdr->ascq == 0x03) { sshdr 418 drivers/scsi/scsi_error.c } else if (sshdr->asc == 0x3f && sshdr->ascq == 0x0e) { sshdr 426 drivers/scsi/scsi_error.c } else if (sshdr->asc == 0x3f) sshdr 433 drivers/scsi/scsi_error.c if (sshdr->asc == 0x38 && sshdr->ascq == 0x07) { sshdr 441 drivers/scsi/scsi_error.c if (sshdr->asc == 0x29) { sshdr 447 drivers/scsi/scsi_error.c if (sshdr->asc == 0x2a && sshdr->ascq == 0x01) { sshdr 451 drivers/scsi/scsi_error.c } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { sshdr 455 drivers/scsi/scsi_error.c } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) { sshdr 459 drivers/scsi/scsi_error.c } else if (sshdr->asc == 0x2a) sshdr 484 drivers/scsi/scsi_error.c struct scsi_sense_hdr sshdr; sshdr 486 drivers/scsi/scsi_error.c if (! scsi_command_normalize_sense(scmd, &sshdr)) sshdr 489 drivers/scsi/scsi_error.c scsi_report_sense(sdev, &sshdr); sshdr 491 drivers/scsi/scsi_error.c if (scsi_sense_is_deferred(&sshdr)) sshdr 497 drivers/scsi/scsi_error.c rc = sdev->handler->check_sense(sdev, &sshdr); sshdr 515 drivers/scsi/scsi_error.c if (sshdr.response_code == 0x70) { sshdr 525 drivers/scsi/scsi_error.c if ((sshdr.additional_length > 3) && sshdr 531 drivers/scsi/scsi_error.c switch (sshdr.sense_key) { sshdr 538 drivers/scsi/scsi_error.c if (sshdr.asc == 0x10) /* DIF */ sshdr 541 drivers/scsi/scsi_error.c if (sshdr.asc == 0x44 && sdev->sdev_bflags & BLIST_RETRY_ITF) sshdr 543 drivers/scsi/scsi_error.c if (sshdr.asc == 0xc1 && sshdr.ascq == 0x01 && sshdr 563 drivers/scsi/scsi_error.c if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) { sshdr 574 drivers/scsi/scsi_error.c sshdr.asc == 0x3f && sshdr.ascq == 0x0e) sshdr 580 drivers/scsi/scsi_error.c if ((sshdr.asc == 0x04) && (sshdr.ascq == 0x01)) sshdr 587 drivers/scsi/scsi_error.c (sshdr.asc == 0x04) && (sshdr.ascq == 0x02)) sshdr 597 drivers/scsi/scsi_error.c if (sshdr.asc == 0x27 && sshdr.ascq == 0x07) { sshdr 611 drivers/scsi/scsi_error.c if (sshdr.asc == 0x11 || /* UNRECOVERED READ ERR */ sshdr 612 drivers/scsi/scsi_error.c sshdr.asc == 0x13 || /* AMNF DATA FIELD */ sshdr 613 drivers/scsi/scsi_error.c sshdr.asc == 0x14) { /* RECORD NOT FOUND */ sshdr 627 drivers/scsi/scsi_error.c if (sshdr.asc == 0x20 || /* Invalid command operation code */ sshdr 628 drivers/scsi/scsi_error.c sshdr.asc == 0x21 || /* Logical block address out of range */ sshdr 629 drivers/scsi/scsi_error.c sshdr.asc == 0x22 || /* Invalid function */ sshdr 630 drivers/scsi/scsi_error.c sshdr.asc == 0x24 || /* Invalid field in cdb */ sshdr 631 drivers/scsi/scsi_error.c sshdr.asc == 0x26 || /* Parameter value invalid */ sshdr 632 drivers/scsi/scsi_error.c sshdr.asc == 0x27) { /* Write protected */ sshdr 2424 drivers/scsi/scsi_error.c struct scsi_sense_hdr *sshdr) sshdr 2427 drivers/scsi/scsi_error.c SCSI_SENSE_BUFFERSIZE, sshdr); sshdr 93 drivers/scsi/scsi_ioctl.c struct scsi_sense_hdr sshdr; sshdr 99 drivers/scsi/scsi_ioctl.c &sshdr, timeout, retries, NULL); sshdr 105 drivers/scsi/scsi_ioctl.c scsi_sense_valid(&sshdr)) { sshdr 106 drivers/scsi/scsi_ioctl.c switch (sshdr.sense_key) { sshdr 115 drivers/scsi/scsi_ioctl.c sshdr.asc, sshdr.ascq); sshdr 132 drivers/scsi/scsi_ioctl.c scsi_print_sense_hdr(sdev, NULL, &sshdr); sshdr 250 drivers/scsi/scsi_lib.c unsigned char *sense, struct scsi_sense_hdr *sshdr, sshdr 294 drivers/scsi/scsi_lib.c if (sshdr) sshdr 295 drivers/scsi/scsi_lib.c scsi_normalize_sense(rq->sense, rq->sense_len, sshdr); sshdr 681 drivers/scsi/scsi_lib.c struct scsi_sense_hdr sshdr; sshdr 686 drivers/scsi/scsi_lib.c sense_valid = scsi_command_normalize_sense(cmd, &sshdr); sshdr 688 drivers/scsi/scsi_lib.c sense_current = !scsi_sense_is_deferred(&sshdr); sshdr 699 drivers/scsi/scsi_lib.c switch (sshdr.sense_key) { sshdr 726 drivers/scsi/scsi_lib.c sshdr.asc == 0x20 && sshdr.ascq == 0x00) && sshdr 732 drivers/scsi/scsi_lib.c } else if (sshdr.asc == 0x10) /* DIX */ { sshdr 736 drivers/scsi/scsi_lib.c } else if (sshdr.asc == 0x20 || sshdr.asc == 0x24) { sshdr 744 drivers/scsi/scsi_lib.c if (sshdr.asc == 0x10) /* DIF */ sshdr 751 drivers/scsi/scsi_lib.c if (sshdr.asc == 0x04) { sshdr 752 drivers/scsi/scsi_lib.c switch (sshdr.ascq) { sshdr 841 drivers/scsi/scsi_lib.c struct scsi_sense_hdr sshdr; sshdr 843 drivers/scsi/scsi_lib.c sense_valid = scsi_command_normalize_sense(cmd, &sshdr); sshdr 845 drivers/scsi/scsi_lib.c sense_current = !scsi_sense_is_deferred(&sshdr); sshdr 872 drivers/scsi/scsi_lib.c if (sense_valid && (sshdr.sense_key == RECOVERED_ERROR)) { sshdr 879 drivers/scsi/scsi_lib.c if ((sshdr.asc == 0x0) && (sshdr.ascq == 0x1d)) sshdr 2026 drivers/scsi/scsi_lib.c struct scsi_mode_data *data, struct scsi_sense_hdr *sshdr) sshdr 2076 drivers/scsi/scsi_lib.c sshdr, timeout, retries, NULL); sshdr 2102 drivers/scsi/scsi_lib.c struct scsi_mode_data *data, struct scsi_sense_hdr *sshdr) sshdr 2116 drivers/scsi/scsi_lib.c if (!sshdr) sshdr 2117 drivers/scsi/scsi_lib.c sshdr = &my_sshdr; sshdr 2141 drivers/scsi/scsi_lib.c sshdr, timeout, retries, NULL); sshdr 2150 drivers/scsi/scsi_lib.c if (scsi_sense_valid(sshdr)) { sshdr 2151 drivers/scsi/scsi_lib.c if ((sshdr->sense_key == ILLEGAL_REQUEST) && sshdr 2152 drivers/scsi/scsi_lib.c (sshdr->asc == 0x20) && (sshdr->ascq == 0)) { sshdr 2187 drivers/scsi/scsi_lib.c scsi_sense_valid(sshdr) && sshdr 2188 drivers/scsi/scsi_lib.c sshdr->sense_key == UNIT_ATTENTION && retry_count) { sshdr 2209 drivers/scsi/scsi_lib.c struct scsi_sense_hdr *sshdr) sshdr 2218 drivers/scsi/scsi_lib.c result = scsi_execute_req(sdev, cmd, DMA_NONE, NULL, 0, sshdr, sshdr 2220 drivers/scsi/scsi_lib.c if (sdev->removable && scsi_sense_valid(sshdr) && sshdr 2221 drivers/scsi/scsi_lib.c sshdr->sense_key == UNIT_ATTENTION) sshdr 2223 drivers/scsi/scsi_lib.c } while (scsi_sense_valid(sshdr) && sshdr 2224 drivers/scsi/scsi_lib.c sshdr->sense_key == UNIT_ATTENTION && --retries); sshdr 274 drivers/scsi/scsi_logging.c const struct scsi_sense_hdr *sshdr) sshdr 280 drivers/scsi/scsi_logging.c sense_txt = scsi_sense_key_string(sshdr->sense_key); sshdr 286 drivers/scsi/scsi_logging.c "0x%x ", sshdr->sense_key); sshdr 288 drivers/scsi/scsi_logging.c scsi_sense_is_deferred(sshdr) ? "[deferred] " : "[current] "); sshdr 290 drivers/scsi/scsi_logging.c if (sshdr->response_code >= 0x72) sshdr 323 drivers/scsi/scsi_logging.c int tag, const struct scsi_sense_hdr *sshdr) sshdr 332 drivers/scsi/scsi_logging.c off += scsi_format_sense_hdr(logbuf + off, logbuf_len - off, sshdr); sshdr 341 drivers/scsi/scsi_logging.c sshdr->asc, sshdr->ascq); sshdr 350 drivers/scsi/scsi_logging.c struct scsi_sense_hdr sshdr; sshdr 352 drivers/scsi/scsi_logging.c if (scsi_normalize_sense(sense_buffer, sense_len, &sshdr)) sshdr 353 drivers/scsi/scsi_logging.c scsi_log_print_sense_hdr(sdev, name, tag, &sshdr); sshdr 363 drivers/scsi/scsi_logging.c const struct scsi_sense_hdr *sshdr) sshdr 365 drivers/scsi/scsi_logging.c scsi_log_print_sense_hdr(sdev, name, -1, sshdr); sshdr 567 drivers/scsi/scsi_scan.c struct scsi_sense_hdr sshdr; sshdr 594 drivers/scsi/scsi_scan.c inq_result, try_inquiry_len, &sshdr, sshdr 610 drivers/scsi/scsi_scan.c scsi_sense_valid(&sshdr)) { sshdr 611 drivers/scsi/scsi_scan.c if ((sshdr.sense_key == UNIT_ATTENTION) && sshdr 612 drivers/scsi/scsi_scan.c ((sshdr.asc == 0x28) || sshdr 613 drivers/scsi/scsi_scan.c (sshdr.asc == 0x29)) && sshdr 614 drivers/scsi/scsi_scan.c (sshdr.ascq == 0)) sshdr 1299 drivers/scsi/scsi_scan.c struct scsi_sense_hdr sshdr; sshdr 1378 drivers/scsi/scsi_scan.c lun_data, length, &sshdr, sshdr 1388 drivers/scsi/scsi_scan.c else if (scsi_sense_valid(&sshdr)) { sshdr 1389 drivers/scsi/scsi_scan.c if (sshdr.sense_key != UNIT_ATTENTION) sshdr 110 drivers/scsi/scsi_transport_spi.c struct scsi_sense_hdr *sshdr) sshdr 116 drivers/scsi/scsi_transport_spi.c if (!sshdr) sshdr 117 drivers/scsi/scsi_transport_spi.c sshdr = &sshdr_tmp; sshdr 121 drivers/scsi/scsi_transport_spi.c sshdr, DV_TIMEOUT, /* retries */ 1, sshdr 127 drivers/scsi/scsi_transport_spi.c sshdr->sense_key != UNIT_ATTENTION) sshdr 629 drivers/scsi/scsi_transport_spi.c struct scsi_sense_hdr sshdr; sshdr 675 drivers/scsi/scsi_transport_spi.c buffer, len, &sshdr); sshdr 679 drivers/scsi/scsi_transport_spi.c if (scsi_sense_valid(&sshdr) sshdr 680 drivers/scsi/scsi_transport_spi.c && sshdr.sense_key == ILLEGAL_REQUEST sshdr 682 drivers/scsi/scsi_transport_spi.c && sshdr.asc == 0x24 && sshdr.ascq == 0x00) sshdr 167 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 217 drivers/scsi/sd.c SD_MAX_RETRIES, &data, &sshdr)) { sshdr 218 drivers/scsi/sd.c if (scsi_sense_valid(&sshdr)) sshdr 219 drivers/scsi/sd.c sd_print_sense_hdr(sdkp, &sshdr); sshdr 1525 drivers/scsi/sd.c struct scsi_sense_hdr *sshdr) sshdr 1527 drivers/scsi/sd.c if (!scsi_sense_valid(sshdr)) sshdr 1531 drivers/scsi/sd.c switch (sshdr->sense_key) { sshdr 1535 drivers/scsi/sd.c if (sshdr->asc == 0x3A) { sshdr 1585 drivers/scsi/sd.c struct scsi_sense_hdr sshdr = { 0, }; sshdr 1588 drivers/scsi/sd.c &sshdr); sshdr 1596 drivers/scsi/sd.c if (media_not_present(sdkp, &sshdr)) sshdr 1620 drivers/scsi/sd.c static int sd_sync_cache(struct scsi_disk *sdkp, struct scsi_sense_hdr *sshdr) sshdr 1632 drivers/scsi/sd.c if (!sshdr) sshdr 1633 drivers/scsi/sd.c sshdr = &my_sshdr; sshdr 1643 drivers/scsi/sd.c res = scsi_execute(sdp, cmd, DMA_NONE, NULL, 0, NULL, sshdr, sshdr 1653 drivers/scsi/sd.c sd_print_sense_hdr(sdkp, sshdr); sshdr 1656 drivers/scsi/sd.c if (scsi_sense_valid(sshdr) && sshdr 1657 drivers/scsi/sd.c (sshdr->asc == 0x3a || /* medium not present */ sshdr 1658 drivers/scsi/sd.c sshdr->asc == 0x20 || /* invalid command */ sshdr 1659 drivers/scsi/sd.c (sshdr->asc == 0x74 && sshdr->ascq == 0x71))) /* drive is password locked */ sshdr 1748 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 1763 drivers/scsi/sd.c &sshdr, SD_TIMEOUT, SD_MAX_RETRIES, NULL); sshdr 1766 drivers/scsi/sd.c scsi_sense_valid(&sshdr)) { sshdr 1768 drivers/scsi/sd.c scsi_print_sense_hdr(sdev, NULL, &sshdr); sshdr 1962 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 2001 drivers/scsi/sd.c sense_valid = scsi_command_normalize_sense(SCpnt, &sshdr); sshdr 2003 drivers/scsi/sd.c sense_deferred = scsi_sense_is_deferred(&sshdr); sshdr 2011 drivers/scsi/sd.c switch (sshdr.sense_key) { sshdr 2028 drivers/scsi/sd.c if (sshdr.asc == 0x10) /* DIF: Target detected corruption */ sshdr 2032 drivers/scsi/sd.c switch (sshdr.asc) { sshdr 2061 drivers/scsi/sd.c sd_zbc_complete(SCpnt, good_bytes, &sshdr); sshdr 2080 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 2096 drivers/scsi/sd.c &sshdr, SD_TIMEOUT, sshdr 2104 drivers/scsi/sd.c if (media_not_present(sdkp, &sshdr)) sshdr 2108 drivers/scsi/sd.c sense_valid = scsi_sense_valid(&sshdr); sshdr 2113 drivers/scsi/sd.c sense_valid && sshdr.sense_key == UNIT_ATTENTION))); sshdr 2131 drivers/scsi/sd.c if (sense_valid && sshdr.sense_key == NOT_READY) { sshdr 2132 drivers/scsi/sd.c if (sshdr.asc == 4 && sshdr.ascq == 3) sshdr 2134 drivers/scsi/sd.c if (sshdr.asc == 4 && sshdr.ascq == 0xb) sshdr 2136 drivers/scsi/sd.c if (sshdr.asc == 4 && sshdr.ascq == 0xc) sshdr 2138 drivers/scsi/sd.c if (sshdr.asc == 4 && sshdr.ascq == 0x1b) sshdr 2152 drivers/scsi/sd.c NULL, 0, &sshdr, sshdr 2168 drivers/scsi/sd.c sshdr.sense_key == UNIT_ATTENTION && sshdr 2169 drivers/scsi/sd.c sshdr.asc == 0x28) { sshdr 2181 drivers/scsi/sd.c sd_print_sense_hdr(sdkp, &sshdr); sshdr 2240 drivers/scsi/sd.c struct scsi_sense_hdr *sshdr, int sense_valid, sshdr 2244 drivers/scsi/sd.c sd_print_sense_hdr(sdkp, sshdr); sshdr 2253 drivers/scsi/sd.c sense_valid && sshdr->sense_key == NOT_READY) sshdr 2275 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 2294 drivers/scsi/sd.c buffer, RC16_LEN, &sshdr, sshdr 2297 drivers/scsi/sd.c if (media_not_present(sdkp, &sshdr)) sshdr 2301 drivers/scsi/sd.c sense_valid = scsi_sense_valid(&sshdr); sshdr 2303 drivers/scsi/sd.c sshdr.sense_key == ILLEGAL_REQUEST && sshdr 2304 drivers/scsi/sd.c (sshdr.asc == 0x20 || sshdr.asc == 0x24) && sshdr 2305 drivers/scsi/sd.c sshdr.ascq == 0x00) sshdr 2311 drivers/scsi/sd.c sshdr.sense_key == UNIT_ATTENTION && sshdr 2312 drivers/scsi/sd.c sshdr.asc == 0x29 && sshdr.ascq == 0x00) sshdr 2324 drivers/scsi/sd.c read_capacity_error(sdkp, sdp, &sshdr, sense_valid, the_result); sshdr 2366 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 2379 drivers/scsi/sd.c buffer, 8, &sshdr, sshdr 2382 drivers/scsi/sd.c if (media_not_present(sdkp, &sshdr)) sshdr 2386 drivers/scsi/sd.c sense_valid = scsi_sense_valid(&sshdr); sshdr 2388 drivers/scsi/sd.c sshdr.sense_key == UNIT_ATTENTION && sshdr 2389 drivers/scsi/sd.c sshdr.asc == 0x29 && sshdr.ascq == 0x00) sshdr 2401 drivers/scsi/sd.c read_capacity_error(sdkp, sdp, &sshdr, sense_valid, the_result); sshdr 2569 drivers/scsi/sd.c struct scsi_sense_hdr *sshdr) sshdr 2573 drivers/scsi/sd.c sshdr); sshdr 2649 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 2680 drivers/scsi/sd.c &data, &sshdr); sshdr 2712 drivers/scsi/sd.c &data, &sshdr); sshdr 2789 drivers/scsi/sd.c if (scsi_sense_valid(&sshdr) && sshdr 2790 drivers/scsi/sd.c sshdr.sense_key == ILLEGAL_REQUEST && sshdr 2791 drivers/scsi/sd.c sshdr.asc == 0x24 && sshdr.ascq == 0x0) sshdr 2821 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 2830 drivers/scsi/sd.c SD_MAX_RETRIES, &data, &sshdr); sshdr 2837 drivers/scsi/sd.c if (scsi_sense_valid(&sshdr)) sshdr 2838 drivers/scsi/sd.c sd_print_sense_hdr(sdkp, &sshdr); sshdr 3491 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 3504 drivers/scsi/sd.c res = scsi_execute(sdp, cmd, DMA_NONE, NULL, 0, NULL, &sshdr, sshdr 3509 drivers/scsi/sd.c sd_print_sense_hdr(sdkp, &sshdr); sshdr 3510 drivers/scsi/sd.c if (scsi_sense_valid(&sshdr) && sshdr 3512 drivers/scsi/sd.c sshdr.asc == 0x3a) sshdr 3552 drivers/scsi/sd.c struct scsi_sense_hdr sshdr; sshdr 3560 drivers/scsi/sd.c ret = sd_sync_cache(sdkp, &sshdr); sshdr 3567 drivers/scsi/sd.c if (!scsi_sense_valid(&sshdr) || sshdr 3568 drivers/scsi/sd.c sshdr.sense_key != ILLEGAL_REQUEST) sshdr 3719 drivers/scsi/sd.c struct scsi_sense_hdr *sshdr) sshdr 3722 drivers/scsi/sd.c sdkp->disk ? sdkp->disk->disk_name : NULL, sshdr); sshdr 214 drivers/scsi/sd.h struct scsi_sense_hdr *sshdr); sshdr 236 drivers/scsi/sd.h struct scsi_sense_hdr *sshdr) {} sshdr 72 drivers/scsi/sd_zbc.c struct scsi_sense_hdr sshdr; sshdr 86 drivers/scsi/sd_zbc.c buf, buflen, &sshdr, sshdr 261 drivers/scsi/sd_zbc.c struct scsi_sense_hdr *sshdr) sshdr 268 drivers/scsi/sd_zbc.c sshdr->sense_key == ILLEGAL_REQUEST && sshdr 269 drivers/scsi/sd_zbc.c sshdr->asc == 0x24) { sshdr 1354 drivers/scsi/sg.c struct scsi_sense_hdr sshdr; sshdr 1369 drivers/scsi/sg.c && scsi_normalize_sense(sense, SCSI_SENSE_BUFFERSIZE, &sshdr) sshdr 1370 drivers/scsi/sg.c && !scsi_sense_is_deferred(&sshdr) sshdr 1371 drivers/scsi/sg.c && sshdr.sense_key == UNIT_ATTENTION sshdr 2690 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_sense_hdr sshdr; sshdr 2749 drivers/scsi/smartpqi/smartpqi_init.c sense_data_length, &sshdr) && sshdr 2750 drivers/scsi/smartpqi/smartpqi_init.c sshdr.sense_key == HARDWARE_ERROR && sshdr 2751 drivers/scsi/smartpqi/smartpqi_init.c sshdr.asc == 0x3e) { sshdr 2755 drivers/scsi/smartpqi/smartpqi_init.c switch (sshdr.ascq) { sshdr 2767 drivers/scsi/smartpqi/smartpqi_init.c sshdr.ascq, ctrl_info->scsi_host->host_no, device->bus, device->target, device->lun); sshdr 203 drivers/scsi/sr.c struct scsi_sense_hdr sshdr; sshdr 207 drivers/scsi/sr.c &sshdr, SR_TIMEOUT, MAX_RETRIES, NULL); sshdr 208 drivers/scsi/sr.c if (scsi_sense_valid(&sshdr) && sshdr.sense_key == UNIT_ATTENTION) sshdr 236 drivers/scsi/sr.c struct scsi_sense_hdr sshdr; sshdr 274 drivers/scsi/sr.c ret = scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr); sshdr 282 drivers/scsi/sr.c (scsi_sense_valid(&sshdr) && sshdr.asc != 0x3a); sshdr 620 drivers/scsi/sr.c struct scsi_sense_hdr sshdr; sshdr 628 drivers/scsi/sr.c if (scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr)) sshdr 866 drivers/scsi/sr.c struct scsi_sense_hdr sshdr; sshdr 891 drivers/scsi/sr.c scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr); sshdr 189 drivers/scsi/sr_ioctl.c struct scsi_sense_hdr local_sshdr, *sshdr = &local_sshdr; sshdr 194 drivers/scsi/sr_ioctl.c if (cgc->sshdr) sshdr 195 drivers/scsi/sr_ioctl.c sshdr = cgc->sshdr; sshdr 204 drivers/scsi/sr_ioctl.c cgc->buffer, cgc->buflen, NULL, sshdr, sshdr 209 drivers/scsi/sr_ioctl.c switch (sshdr->sense_key) { sshdr 220 drivers/scsi/sr_ioctl.c if (sshdr->asc == 0x04 && sshdr 221 drivers/scsi/sr_ioctl.c sshdr->ascq == 0x01) { sshdr 244 drivers/scsi/sr_ioctl.c if (sshdr->asc == 0x20 && sshdr 245 drivers/scsi/sr_ioctl.c sshdr->ascq == 0x00) sshdr 287 drivers/scsi/sr_ioctl.c struct scsi_sense_hdr sshdr; sshdr 294 drivers/scsi/sr_ioctl.c if (!scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr)) sshdr 298 drivers/scsi/sr_ioctl.c if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY sshdr 299 drivers/scsi/sr_ioctl.c && sshdr.asc == 0x04 && sshdr.ascq == 0x01) sshdr 316 drivers/scsi/sr_ioctl.c if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY sshdr 317 drivers/scsi/sr_ioctl.c && sshdr.asc == 0x04 && sshdr.ascq == 0x02) sshdr 323 drivers/scsi/sr_ioctl.c if (sshdr.sense_key == NOT_READY && sshdr.asc == 0x04) sshdr 331 drivers/scsi/sr_ioctl.c if (scsi_sense_valid(&sshdr) && sshdr 333 drivers/scsi/sr_ioctl.c sshdr.asc == 0x3a) sshdr 7551 drivers/scsi/ufs/ufshcd.c struct scsi_sense_hdr sshdr; sshdr 7594 drivers/scsi/ufs/ufshcd.c ret = scsi_execute(sdp, cmd, DMA_NONE, NULL, 0, NULL, &sshdr, sshdr 7601 drivers/scsi/ufs/ufshcd.c scsi_print_sense_hdr(sdp, NULL, &sshdr); sshdr 697 drivers/usb/storage/transport.c struct scsi_sense_hdr sshdr; sshdr 788 drivers/usb/storage/transport.c &sshdr); sshdr 793 drivers/usb/storage/transport.c sshdr.response_code, sshdr.sense_key, sshdr 794 drivers/usb/storage/transport.c sshdr.asc, sshdr.ascq); sshdr 796 drivers/usb/storage/transport.c usb_stor_show_sense(us, sshdr.sense_key, sshdr.asc, sshdr.ascq); sshdr 811 drivers/usb/storage/transport.c if (sshdr.sense_key == 0 && sshdr.asc == 0 && sshdr.ascq == 0 && sshdr 841 drivers/usb/storage/transport.c if ((sshdr.response_code & 0x72) == 0x72) sshdr 328 drivers/xen/xen-scsiback.c struct scsi_sense_hdr sshdr; sshdr 342 drivers/xen/xen-scsiback.c &sshdr)) { sshdr 25 include/linux/cdrom.h struct scsi_sense_hdr *sshdr; sshdr 54 include/scsi/scsi_common.h static inline bool scsi_sense_valid(const struct scsi_sense_hdr *sshdr) sshdr 56 include/scsi/scsi_common.h if (!sshdr) sshdr 59 include/scsi/scsi_common.h return (sshdr->response_code & 0x70) == 0x70; sshdr 63 include/scsi/scsi_common.h struct scsi_sense_hdr *sshdr); sshdr 404 include/scsi/scsi_device.h int retries, struct scsi_sense_hdr *sshdr); sshdr 433 include/scsi/scsi_device.h unsigned char *sense, struct scsi_sense_hdr *sshdr, sshdr 438 include/scsi/scsi_device.h sshdr, timeout, retries, flags, rq_flags, resid) \ sshdr 443 include/scsi/scsi_device.h sense, sshdr, timeout, retries, flags, rq_flags, \ sshdr 448 include/scsi/scsi_device.h unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, sshdr 452 include/scsi/scsi_device.h bufflen, NULL, sshdr, timeout, retries, 0, 0, resid); sshdr 19 include/scsi/scsi_eh.h struct scsi_sense_hdr *sshdr); sshdr 22 include/scsi/scsi_eh.h static inline bool scsi_sense_is_deferred(const struct scsi_sense_hdr *sshdr) sshdr 24 include/scsi/scsi_eh.h return ((sshdr->response_code >= 0x70) && (sshdr->response_code & 1));