/drivers/ide/ |
D | ide-cd_verbose.c | 22 if (sense->sense_key == UNIT_ATTENTION || in ide_cd_log_error() 23 (sense->sense_key == NOT_READY && (sense->asc == 4 || in ide_cd_log_error() 29 name, sense->error_code, sense->sense_key, in ide_cd_log_error() 270 if (sense->sense_key < ARRAY_SIZE(sense_key_texts)) in ide_cd_log_error() 271 s = sense_key_texts[sense->sense_key]; in ide_cd_log_error() 273 printk(KERN_CONT "%s -- (Sense key=0x%02x)\n", s, sense->sense_key); in ide_cd_log_error() 281 unsigned long key = (sense->sense_key << 16); in ide_cd_log_error() 341 if (sense->sense_key == NOT_READY && (sense->sks[0] & 0x80)) { in ide_cd_log_error() 348 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/nvme/host/ |
D | scsi.c | 302 static int nvme_trans_completion(struct sg_io_hdr *hdr, u8 status, u8 sense_key, in nvme_trans_completion() argument 322 resp[1] = sense_key; in nvme_trans_completion() 343 u8 status, sense_key, asc, ascq; in nvme_trans_status_code() local 355 sense_key = NO_SENSE; in nvme_trans_status_code() 361 sense_key = ILLEGAL_REQUEST; in nvme_trans_status_code() 367 sense_key = ILLEGAL_REQUEST; in nvme_trans_status_code() 373 sense_key = MEDIUM_ERROR; in nvme_trans_status_code() 379 sense_key = ABORTED_COMMAND; in nvme_trans_status_code() 385 sense_key = HARDWARE_ERROR; in nvme_trans_status_code() 391 sense_key = ABORTED_COMMAND; in nvme_trans_status_code() [all …]
|
/drivers/ata/ |
D | libata-zpodd.c | 105 u8 sense_key, *sense_buf; in zpready() local 109 ret = atapi_eh_tur(dev, &sense_key); in zpready() 111 if (!ret || sense_key != NOT_READY) in zpready() 115 ret = atapi_eh_request_sense(dev, sense_buf, sense_key); in zpready()
|
/drivers/scsi/device_handler/ |
D | scsi_dh_emc.c | 127 "command.\n", CLARIION_NAME, sshdr.sense_key, in trespass_endio() 130 if ((sshdr.sense_key == 0x05) && (sshdr.asc == 0x04) && in trespass_endio() 140 } else if ((sshdr.sense_key == 0x02) && (sshdr.asc == 0x04) && in trespass_endio() 398 switch (sense_hdr->sense_key) { in clariion_check_sense() 470 sshdr.sense_key, sshdr.asc, sshdr.ascq); in clariion_std_inquiry() 517 sshdr.sense_key, sshdr.asc, sshdr.ascq); in clariion_send_inquiry()
|
D | scsi_dh_hp_sw.c | 72 switch (sshdr.sense_key) { in tur_done() 90 HP_SW_NAME, sshdr.sense_key, sshdr.asc, in tur_done() 172 switch (sshdr.sense_key) { in start_done() 187 HP_SW_NAME, sshdr.sense_key, sshdr.asc, in start_done()
|
D | scsi_dh_alua.c | 248 ALUA_DH_NAME, sense_hdr.sense_key, in stpg_endio() 448 switch (sense_hdr->sense_key) { in alua_check_sense() 565 sense_hdr.sense_key == ILLEGAL_REQUEST && in alua_rtpg() 576 ALUA_DH_NAME, sense_hdr.sense_key, in alua_rtpg()
|
D | scsi_dh_rdac.c | 547 switch (sense_hdr.sense_key) { in mode_select_handle_sense() 574 sense_hdr.sense_key, sense_hdr.asc, sense_hdr.ascq); in mode_select_handle_sense() 720 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq); in rdac_check_sense() 722 switch (sense_hdr->sense_key) { in rdac_check_sense()
|
/drivers/scsi/ |
D | ps3rom.c | 262 static int decode_lv1_status(u64 status, unsigned char *sense_key, in DEF_SCSI_QCMD() 268 *sense_key = (status >> 16) & 0xff; in DEF_SCSI_QCMD() 282 unsigned char sense_key, asc, ascq; in ps3rom_interrupt() local 329 if (decode_lv1_status(status, &sense_key, &asc, &ascq)) { in ps3rom_interrupt() 334 scsi_build_sense_buffer(0, cmd->sense_buffer, sense_key, asc, ascq); in ps3rom_interrupt()
|
D | scsi_common.c | 155 sshdr->sense_key = (sense_buffer[1] & 0xf); in scsi_normalize_sense() 167 sshdr->sense_key = (sense_buffer[2] & 0xf); in scsi_normalize_sense()
|
D | sr_ioctl.c | 212 switch (sshdr.sense_key) { in sr_do_ioctl() 301 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY in sr_drive_status() 319 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == NOT_READY in sr_drive_status() 326 if (sshdr.sense_key == NOT_READY && sshdr.asc == 0x04) in sr_drive_status()
|
D | sd.c | 1387 switch (sshdr->sense_key) { in media_not_present() 1807 switch (sshdr.sense_key) { in sd_done() 1908 sense_valid && sshdr.sense_key == UNIT_ATTENTION))); in sd_spinup_disk() 1926 if (sense_valid && sshdr.sense_key == NOT_READY) { in sd_spinup_disk() 1963 sshdr.sense_key == UNIT_ATTENTION && in sd_spinup_disk() 2049 sense_valid && sshdr->sense_key == NOT_READY) in read_capacity_error() 2115 sshdr.sense_key == ILLEGAL_REQUEST && in read_capacity_16() 2123 sshdr.sense_key == UNIT_ATTENTION && in read_capacity_16() 2205 sshdr.sense_key == UNIT_ATTENTION && in read_capacity_10() 2607 sshdr.sense_key == ILLEGAL_REQUEST && in sd_read_cache_type()
|
D | st.c | 372 scode = STp->buffer->cmdstat.sense_hdr.sense_key; in st_chk_result() 701 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in write_behind_check() 702 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR)) { in write_behind_check() 798 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in st_flush_write_buffer() 799 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) && in st_flush_write_buffer() 988 scode = cmdstatp->sense_hdr.sense_key; in test_ready() 1396 (cmdstatp->sense_hdr.sense_key == NO_SENSE || in st_flush() 1397 cmdstatp->sense_hdr.sense_key == RECOVERED_ERROR) && in st_flush() 1795 scode = cmdstatp->sense_hdr.sense_key; in st_write() 1968 if (cmdstatp->sense_hdr.sense_key == BLANK_CHECK) in read_tape() [all …]
|
/drivers/usb/storage/ |
D | jumpshot.c | 111 unsigned char sense_key; member 428 info->sense_key = 0x05; in jumpshot_handle_mode_sense() 601 ptr[2] = info->sense_key; in jumpshot_transport() 635 info->sense_key = NO_SENSE; in jumpshot_transport() 638 info->sense_key = UNIT_ATTENTION; in jumpshot_transport() 646 info->sense_key = 0x05; in jumpshot_transport()
|
D | datafab.c | 76 unsigned char sense_key; member 504 info->sense_key = 0x05; in datafab_handle_mode_sense() 676 ptr[2] = info->sense_key; in datafab_transport() 710 info->sense_key = NO_SENSE; in datafab_transport() 713 info->sense_key = UNIT_ATTENTION; in datafab_transport() 721 info->sense_key = 0x05; in datafab_transport()
|
D | alauda.c | 117 unsigned char sense_key; member 477 info->sense_key = 0x02; in alauda_check_media() 489 info->sense_key = UNIT_ATTENTION; in alauda_check_media() 1215 ptr[2] = info->sense_key; in alauda_transport() 1232 info->sense_key = 0x05; in alauda_transport()
|
D | shuttle_usbat.c | 149 unsigned char sense_key; member 948 info->sense_key = 0x02; in usbat_flash_check_media() 972 info->sense_key = UNIT_ATTENTION; in usbat_flash_check_media() 1805 ptr[2] = info->sense_key; in usbat_flash_transport() 1824 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/mpt3sas/ |
D | mpt3sas_trigger_diag.c | 297 mpt3sas_trigger_scsi(struct MPT3SAS_ADAPTER *ioc, u8 sense_key, u8 asc, in mpt3sas_trigger_scsi() argument 324 ioc->name, __func__, sense_key, asc, ascq)); in mpt3sas_trigger_scsi() 336 if (scsi_trigger->SenseKey != sense_key) in mpt3sas_trigger_scsi() 355 event_data.u.scsi.SenseKey = sense_key; in mpt3sas_trigger_scsi()
|
/drivers/staging/rts5208/ |
D | rtsx_scsi.h | 139 u8 sense_key, u32 info, u8 asc, u8 ascq,
|
/drivers/scsi/lpfc/ |
D | lpfc_nl.h | 144 uint8_t sense_key; member
|