/drivers/ide/ |
D | ide-cd_verbose.c | 20 if (sense->sense_key == UNIT_ATTENTION || in ide_cd_log_error() 21 (sense->sense_key == NOT_READY && (sense->asc == 4 || in ide_cd_log_error() 27 name, sense->error_code, sense->sense_key, in ide_cd_log_error() 268 if (sense->sense_key < ARRAY_SIZE(sense_key_texts)) in ide_cd_log_error() 269 s = sense_key_texts[sense->sense_key]; in ide_cd_log_error() 271 printk(KERN_CONT "%s -- (Sense key=0x%02x)\n", s, sense->sense_key); in ide_cd_log_error() 279 unsigned long key = (sense->sense_key << 16); in ide_cd_log_error() 339 if (sense->sense_key == NOT_READY && (sense->sks[0] & 0x80)) { in ide_cd_log_error() 346 if (sense->sense_key == ILLEGAL_REQUEST && in ide_cd_log_error()
|
D | ide-cd_ioctl.c | 52 if (!stat || sense.sense_key == UNIT_ATTENTION) in ide_cdrom_drive_status() 64 if (sense.sense_key == NOT_READY && sense.asc == 0x04 in ide_cdrom_drive_status() 73 if (sense.sense_key == NOT_READY) { in ide_cdrom_drive_status() 163 sense->sense_key == ILLEGAL_REQUEST && in ide_cd_lockdoor() 172 if (stat != 0 && sense->sense_key == NOT_READY && sense->asc == 0x3a) in ide_cd_lockdoor()
|
D | ide-floppy.c | 82 floppy->sense_key = buf[2] & 0x0F; in ide_floppy_callback() 93 "ascq = %x", floppy->sense_key, in ide_floppy_callback() 110 if (floppy->sense_key == 0x02 && in ide_floppy_report_error() 117 floppy->drive->name, pc->c[0], floppy->sense_key, in ide_floppy_report_error()
|
D | ide-cd.c | 104 ide_debug_log(IDE_DBG_SENSE, "sense_key: 0x%x", sense->sense_key); in cdrom_log_sense() 106 switch (sense->sense_key) { in cdrom_log_sense() 152 sense->error_code, sense->sense_key); in cdrom_analyze_sense_data() 167 if (sense->sense_key == 0x05 && sense->asc == 0x24) in cdrom_analyze_sense_data() 172 switch (sense->sense_key) { in cdrom_analyze_sense_data() 278 int err, sense_key, do_end_request = 0; in cdrom_decode_status() local 282 sense_key = err >> 4; in cdrom_decode_status() 305 switch (sense_key) { in cdrom_decode_status() 479 if (reqbuf->sense_key == UNIT_ATTENTION) in ide_cd_queue_pc() 481 else if (reqbuf->sense_key == NOT_READY && in ide_cd_queue_pc()
|
D | ide-tape.c | 174 u8 sense_key, asc, ascq; member 275 tape->sense_key = sense[2] & 0xF; in idetape_analyze_error() 281 rq->cmd[0], tape->sense_key, tape->asc, tape->ascq); in idetape_analyze_error() 295 if (tape->sense_key == 5) { in idetape_analyze_error() 307 if ((sense[2] & 0x40) || (tape->sense_key == 0xd in idetape_analyze_error() 314 if (tape->sense_key == 8) { in idetape_analyze_error() 462 tape->sense_key == 2 && tape->asc == 4 && in ide_tape_issue_pc() 468 tape->sense_key, tape->asc, in ide_tape_issue_pc() 693 if ((tape->sense_key == 2 && tape->asc == 4 && tape->ascq == 2) in idetape_wait_ready() 701 } else if (!(tape->sense_key == 2 && tape->asc == 4 && in idetape_wait_ready()
|
D | ide-gd.h | 27 u8 sense_key, asc, ascq; member
|
/drivers/usb/storage/ |
D | jumpshot.c | 109 unsigned char sense_key; member 428 info->sense_key = 0x05; in jumpshot_handle_mode_sense() 598 ptr[2] = info->sense_key; in jumpshot_transport() 632 info->sense_key = NO_SENSE; in jumpshot_transport() 635 info->sense_key = UNIT_ATTENTION; in jumpshot_transport() 643 info->sense_key = 0x05; in jumpshot_transport()
|
D | datafab.c | 73 unsigned char sense_key; member 502 info->sense_key = 0x05; in datafab_handle_mode_sense() 672 ptr[2] = info->sense_key; in datafab_transport() 706 info->sense_key = NO_SENSE; in datafab_transport() 709 info->sense_key = UNIT_ATTENTION; in datafab_transport() 717 info->sense_key = 0x05; in datafab_transport()
|
D | alauda.c | 114 unsigned char sense_key; member 477 info->sense_key = 0x02; in alauda_check_media() 489 info->sense_key = UNIT_ATTENTION; in alauda_check_media() 1225 ptr[2] = info->sense_key; in alauda_transport() 1242 info->sense_key = 0x05; in alauda_transport()
|
D | shuttle_usbat.c | 146 unsigned char sense_key; member 942 info->sense_key = 0x02; in usbat_flash_check_media() 966 info->sense_key = UNIT_ATTENTION; in usbat_flash_check_media() 1797 ptr[2] = info->sense_key; in usbat_flash_transport() 1816 info->sense_key = 0x05; in usbat_flash_transport()
|
/drivers/cdrom/ |
D | gdrom.c | 86 int sense_key; member 435 int sense_key; in gdrom_getsense() local 461 sense_key = sense[1] & 0x0F; in gdrom_getsense() 462 if (sense_key < ARRAY_SIZE(sense_texts)) in gdrom_getsense() 463 pr_info("%s\n", sense_texts[sense_key].text); in gdrom_getsense() 465 pr_err("Unknown sense key: %d\n", sense_key); in gdrom_getsense() 468 if (sense_key < 2) in gdrom_getsense()
|
/drivers/scsi/ |
D | ps3rom.c | 266 static int decode_lv1_status(u64 status, unsigned char *sense_key, in DEF_SCSI_QCMD() 272 *sense_key = (status >> 16) & 0xff; in DEF_SCSI_QCMD() 286 unsigned char sense_key, asc, ascq; in ps3rom_interrupt() local 333 if (decode_lv1_status(status, &sense_key, &asc, &ascq)) { in ps3rom_interrupt() 338 scsi_build_sense_buffer(0, cmd->sense_buffer, sense_key, asc, ascq); in ps3rom_interrupt()
|
D | sr_ioctl.c | 218 switch (sshdr.sense_key) { in sr_do_ioctl() 315 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY in sr_drive_status() 333 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY in sr_drive_status() 340 if (sshdr.sense_key == NOT_READY && sshdr.asc == 0x04) in sr_drive_status()
|
D | sd.c | 1184 switch (sshdr->sense_key) { in media_not_present() 1503 sshdr.sense_key, sshdr.asc, in sd_done() 1513 switch (sshdr.sense_key) { in sd_done() 1595 sense_valid && sshdr.sense_key == UNIT_ATTENTION))); in sd_spinup_disk() 1613 if (sense_valid && sshdr.sense_key == NOT_READY) { in sd_spinup_disk() 1648 sshdr.sense_key == UNIT_ATTENTION && in sd_spinup_disk() 1725 sense_valid && sshdr->sense_key == NOT_READY) in read_capacity_error() 1775 sshdr.sense_key == ILLEGAL_REQUEST && in read_capacity_16() 1783 sshdr.sense_key == UNIT_ATTENTION && in read_capacity_16() 1862 sshdr.sense_key == UNIT_ATTENTION && in read_capacity_10() [all …]
|
D | st.c | 361 scode = STp->buffer->cmdstat.sense_hdr.sense_key; in st_chk_result() 633 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in write_behind_check() 634 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR)) { in write_behind_check() 729 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in st_flush_write_buffer() 730 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) && in st_flush_write_buffer() 924 scode = cmdstatp->sense_hdr.sense_key; in test_ready() 1337 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in st_flush() 1338 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) && in st_flush() 1735 scode = cmdstatp->sense_hdr.sense_key; in st_write() 1909 if (cmdstatp->sense_hdr.sense_key == BLANK_CHECK) in read_tape() [all …]
|
D | constants.c | 1261 sense_txt = scsi_sense_key_string(sshdr->sense_key); in scsi_show_sense_hdr() 1265 printk("Sense Key : 0x%x ", sshdr->sense_key); in scsi_show_sense_hdr()
|
D | scsi_lib.c | 817 if (sense_valid && (sshdr.sense_key == RECOVERED_ERROR)) { in scsi_io_completion() 848 switch (sshdr.sense_key) { in scsi_io_completion() 1960 if ((sshdr->sense_key == ILLEGAL_REQUEST) && in scsi_mode_sense() 2033 sshdr->sense_key == UNIT_ATTENTION) in scsi_test_unit_ready() 2036 sshdr->sense_key == UNIT_ATTENTION && --retries); in scsi_test_unit_ready()
|
/drivers/scsi/device_handler/ |
D | scsi_dh_emc.c | 135 "command.\n", CLARIION_NAME, sshdr.sense_key, in trespass_endio() 138 if ((sshdr.sense_key == 0x05) && (sshdr.asc == 0x04) && in trespass_endio() 148 } else if ((sshdr.sense_key == 0x02) && (sshdr.asc == 0x04) && in trespass_endio() 406 switch (sense_hdr->sense_key) { in clariion_check_sense() 478 sshdr.sense_key, sshdr.asc, sshdr.ascq); in clariion_std_inquiry() 525 sshdr.sense_key, sshdr.asc, sshdr.ascq); in clariion_send_inquiry()
|
D | scsi_dh_hp_sw.c | 79 switch (sshdr.sense_key) { in tur_done() 97 HP_SW_NAME, sshdr.sense_key, sshdr.asc, in tur_done() 179 switch (sshdr.sense_key) { in start_done() 194 HP_SW_NAME, sshdr.sense_key, sshdr.asc, in start_done()
|
D | scsi_dh_rdac.c | 554 switch (sense_hdr.sense_key) { in mode_select_handle_sense() 581 sense_hdr.sense_key, sense_hdr.asc, sense_hdr.ascq); in mode_select_handle_sense() 725 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq); in rdac_check_sense() 727 switch (sense_hdr->sense_key) { in rdac_check_sense()
|
D | scsi_dh_alua.c | 242 ALUA_DH_NAME, sense_hdr.sense_key, in stpg_endio() 440 switch (sense_hdr->sense_key) { in alua_check_sense() 533 ALUA_DH_NAME, sense_hdr.sense_key, in alua_rtpg()
|
/drivers/staging/rts_pstor/ |
D | rtsx_scsi.h | 137 void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, u8 sense_key,
|
/drivers/scsi/lpfc/ |
D | lpfc_nl.h | 144 uint8_t sense_key; member
|
/drivers/staging/rts5139/ |
D | rts51x_scsi.h | 139 u8 sense_key, u32 info, u8 asc, u8 ascq, u8 sns_key_info0,
|
/drivers/scsi/aacraid/ |
D | aachba.c | 537 fsa_dev_ptr->sense_data.sense_key = NOT_READY; in _aac_probe_container2() 538 else if (fsa_dev_ptr->sense_data.sense_key == NOT_READY) in _aac_probe_container2() 539 fsa_dev_ptr->sense_data.sense_key = NO_SENSE; in _aac_probe_container2() 911 static inline void set_sense(struct sense_data *sense_data, u8 sense_key, in set_sense() argument 919 sense_buf[2] = sense_key; /* Sense key */ in set_sense() 924 if (sense_key == ILLEGAL_REQUEST) { in set_sense() 1580 dev->fsa_dev[cid].sense_data.sense_key = NO_SENSE; in io_callback() 2100 (fsa_dev_ptr[cid].sense_data.sense_key == in aac_scsi_cmd() 2394 if (fsa_dev_ptr[cid].sense_data.sense_key == NOT_READY) { in aac_scsi_cmd()
|