Home
last modified time | relevance | path

Searched refs:sense_key (Results 1 – 25 of 57) sorted by relevance

123

/drivers/ide/
Dide-cd_verbose.c22 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()
Dide-cd_ioctl.c52 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()
Dide-floppy.c82 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()
Dide-cd.c104 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()
Dide-tape.c174 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()
Dide-gd.h27 u8 sense_key, asc, ascq; member
/drivers/nvme/host/
Dscsi.c302 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/
Dlibata-zpodd.c105 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/
Dscsi_dh_emc.c127 "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()
Dscsi_dh_hp_sw.c72 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()
Dscsi_dh_alua.c248 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()
Dscsi_dh_rdac.c547 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/
Dps3rom.c262 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()
Dscsi_common.c155 sshdr->sense_key = (sense_buffer[1] & 0xf); in scsi_normalize_sense()
167 sshdr->sense_key = (sense_buffer[2] & 0xf); in scsi_normalize_sense()
Dsr_ioctl.c212 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()
Dsd.c1387 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()
Dst.c372 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/
Djumpshot.c111 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()
Ddatafab.c76 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()
Dalauda.c117 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()
Dshuttle_usbat.c149 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/
Dgdrom.c86 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/
Dmpt3sas_trigger_diag.c297 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/
Drtsx_scsi.h139 u8 sense_key, u32 info, u8 asc, u8 ascq,
/drivers/scsi/lpfc/
Dlpfc_nl.h144 uint8_t sense_key; member

123