Home
last modified time | relevance | path

Searched refs:asc (Results 1 – 25 of 61) sorted by relevance

123

/drivers/target/
Dtarget_core_ua.c90 u8 asc, in core_scsi3_ua_allocate() argument
102 ua->ua_asc = asc; in core_scsi3_ua_allocate()
110 if ((ua_p->ua_asc == asc) && (ua_p->ua_ascq == ascq)) { in core_scsi3_ua_allocate()
135 if ((asc == 0x29) && (ascq > ua_p->ua_ascq)) in core_scsi3_ua_allocate()
146 if ((asc == 0x29) || (ascq > ua_p->ua_asc)) in core_scsi3_ua_allocate()
165 asc, ascq); in core_scsi3_ua_allocate()
172 u32 unpacked_lun, u8 asc, u8 ascq) in target_ua_allocate_lun() argument
186 core_scsi3_ua_allocate(deve, asc, ascq); in target_ua_allocate_lun()
207 u8 *asc, in core_scsi3_ua_for_check_condition() argument
247 *asc = ua->ua_asc; in core_scsi3_ua_for_check_condition()
[all …]
Dtarget_core_transport.c2845 u8 asc; member
2856 .asc = 0x25 /* LOGICAL UNIT NOT SUPPORTED */
2860 .asc = 0x20, /* INVALID COMMAND OPERATION CODE */
2864 .asc = 0x20, /* INVALID COMMAND OPERATION CODE */
2868 .asc = 0x24, /* INVALID FIELD IN CDB */
2872 .asc = 0x29, /* BUS DEVICE RESET FUNCTION OCCURRED */
2877 .asc = 0x0c, /* WRITE ERROR */
2882 .asc = 0x24, /* INVALID FIELD IN CDB */
2886 .asc = 0x26, /* INVALID FIELD IN PARAMETER LIST */
2890 .asc = 0x1a, /* PARAMETER LIST LENGTH ERROR */
[all …]
/drivers/hid/
Dhid-apple.c183 struct apple_sc *asc = hid_get_drvdata(hid); in hidinput_apple_event() local
187 asc->fn_on = !!value; in hidinput_apple_event()
206 if (test_bit(usage->code, asc->pressed_fn)) in hidinput_apple_event()
209 do_translate = (fnmode == 2 && asc->fn_on) || in hidinput_apple_event()
210 (fnmode == 1 && !asc->fn_on); in hidinput_apple_event()
212 do_translate = asc->fn_on; in hidinput_apple_event()
216 set_bit(usage->code, asc->pressed_fn); in hidinput_apple_event()
218 clear_bit(usage->code, asc->pressed_fn); in hidinput_apple_event()
227 if (asc->quirks & APPLE_NUMLOCK_EMULATION && in hidinput_apple_event()
228 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
[all …]
/drivers/ide/
Dide-cd_verbose.c23 (sense->sense_key == NOT_READY && (sense->asc == 4 || in ide_cd_log_error()
24 sense->asc == 0x3a))) in ide_cd_log_error()
30 sense->asc, sense->ascq); in ide_cd_log_error()
275 if (sense->asc == 0x40) { in ide_cd_log_error()
283 key |= (sense->asc << 8); in ide_cd_log_error()
302 if (sense->asc > 0x80) in ide_cd_log_error()
309 s, sense->asc, sense->ascq); in ide_cd_log_error()
Dide-cd_ioctl.c64 if (sense.sense_key == NOT_READY && sense.asc == 0x04 in ide_cdrom_drive_status()
74 if (sense.asc == 0x3a && sense.ascq == 1) in ide_cdrom_drive_status()
164 (sense->asc == 0x24 || sense->asc == 0x20)) { in ide_cd_lockdoor()
172 if (stat != 0 && sense->sense_key == NOT_READY && sense->asc == 0x3a) in ide_cd_lockdoor()
Dide-floppy.c83 floppy->asc = buf[12]; in ide_floppy_callback()
94 floppy->asc, floppy->ascq); in ide_floppy_callback()
111 floppy->asc == 0x3a && in ide_floppy_report_error()
118 floppy->asc, floppy->ascq); in ide_floppy_report_error()
Dide-gd.h27 u8 sense_key, asc, ascq; member
Dide-tape.c174 u8 sense_key, asc, ascq; member
276 tape->asc = sense[12]; in idetape_analyze_error()
281 rq->cmd[0], tape->sense_key, tape->asc, tape->ascq); in idetape_analyze_error()
308 && tape->asc == 0x0 && tape->ascq == 0x2)) { 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()
694 || (tape->asc == 0x3A)) { in idetape_wait_ready()
701 } else if (!(tape->sense_key == 2 && tape->asc == 4 && in idetape_wait_ready()
/drivers/scsi/
Dscsi_common.c157 sshdr->asc = sense_buffer[2]; in scsi_normalize_sense()
172 sshdr->asc = sense_buffer[12]; in scsi_normalize_sense()
231 void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq) in scsi_build_sense_buffer() argument
236 buf[2] = asc; in scsi_build_sense_buffer()
243 buf[12] = asc; in scsi_build_sense_buffer()
Dscsi_error.c394 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()
512 if (sshdr.asc == 0x10) /* DIF */ in scsi_check_sense()
531 if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) { in scsi_check_sense()
[all …]
Dps3rom.c263 unsigned char *asc, unsigned char *ascq) in DEF_SCSI_QCMD()
269 *asc = (status >> 8) & 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()
Dsr_ioctl.c228 if (sshdr.asc == 0x04 && in sr_do_ioctl()
252 if (sshdr.asc == 0x20 && in sr_do_ioctl()
309 && sshdr.asc == 0x04 && sshdr.ascq == 0x01) in sr_drive_status()
327 && sshdr.asc == 0x04 && sshdr.ascq == 0x02) in sr_drive_status()
333 if (sshdr.sense_key == NOT_READY && sshdr.asc == 0x04) in sr_drive_status()
343 sshdr.asc == 0x3a) in sr_drive_status()
Dch.c125 unsigned char asc; member
133 .asc = 0x21,
138 .asc = 0x28,
143 .asc = 0x3B,
148 .asc = 0x3B,
153 .asc = 0x20,
169 sshdr->asc != 0) { in ch_find_errno()
172 ch_err[i].asc == sshdr->asc && in ch_find_errno()
Dconstants.c377 scsi_extd_sense_format(unsigned char asc, unsigned char ascq, const char **fmt) in scsi_extd_sense_format() argument
380 unsigned short code = ((asc << 8) | ascq); in scsi_extd_sense_format()
390 if (additional2[i].code1 == asc && in scsi_extd_sense_format()
Dscsi_logging.c288 unsigned char asc, unsigned char ascq) in scsi_format_extd_sense() argument
292 const char *extd_sense_str = scsi_extd_sense_format(asc, ascq, in scsi_format_extd_sense()
302 if (asc >= 0x80) in scsi_format_extd_sense()
305 "ASC=0x%x ", asc); in scsi_format_extd_sense()
384 sshdr->asc, sshdr->ascq); in scsi_log_print_sense_hdr()
Dsd.c1397 if (sshdr->asc == 0x3A) { in media_not_present()
1518 (sshdr.asc == 0x3a || /* medium not present */ in sd_sync_cache()
1519 sshdr.asc == 0x20)) /* invalid command */ in sd_sync_cache()
1829 if (sshdr.asc == 0x10) /* DIF: Target detected corruption */ in sd_done()
1833 if (sshdr.asc == 0x10) /* DIX: Host detected corruption */ in sd_done()
1836 if (sshdr.asc == 0x20 || sshdr.asc == 0x24) { in sd_done()
1932 if (sshdr.asc == 4 && sshdr.ascq == 3) in sd_spinup_disk()
1934 if (sshdr.asc == 4 && sshdr.ascq == 0xb) in sd_spinup_disk()
1936 if (sshdr.asc == 4 && sshdr.ascq == 0xc) in sd_spinup_disk()
1967 sshdr.asc == 0x28) { in sd_spinup_disk()
[all …]
/drivers/scsi/device_handler/
Dscsi_dh_emc.c128 sshdr.asc, sshdr.ascq); 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()
405 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x03) in clariion_check_sense()
422 if (sense_hdr->asc == 0x25 && sense_hdr->ascq == 0x01) in clariion_check_sense()
436 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in clariion_check_sense()
475 sshdr.sense_key, sshdr.asc, sshdr.ascq); in clariion_std_inquiry()
522 sshdr.sense_key, sshdr.asc, sshdr.ascq); in clariion_send_inquiry()
Dscsi_dh_rdac.c575 if (sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x01) in mode_select_handle_sense()
582 if (sense_hdr.asc == 0x91 && sense_hdr.ascq == 0x36) in mode_select_handle_sense()
595 sense_hdr.sense_key, sense_hdr.asc, sense_hdr.ascq); in mode_select_handle_sense()
741 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq); in rdac_check_sense()
745 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x01) in rdac_check_sense()
751 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x81) in rdac_check_sense()
758 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0xA1) in rdac_check_sense()
764 if (sense_hdr->asc == 0xA1 && sense_hdr->ascq == 0x02) in rdac_check_sense()
772 if (sense_hdr->asc == 0x94 && sense_hdr->ascq == 0x01) { in rdac_check_sense()
782 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in rdac_check_sense()
[all …]
Dscsi_dh_alua.c427 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0a) { in alua_check_sense()
436 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) { in alua_check_sense()
445 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x04) in alua_check_sense()
450 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x01) in alua_check_sense()
455 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x06) { in alua_check_sense()
462 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x07) { in alua_check_sense()
469 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x03) in alua_check_sense()
474 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x0e) in alua_check_sense()
503 sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a) in alua_tur()
568 sense_hdr.asc == 0x24 && sense_hdr.ascq == 0) { in alua_rtpg()
[all …]
Dscsi_dh_hp_sw.c77 if ((sshdr.asc == 0x04) && (sshdr.ascq == 2)) { in tur_done()
90 HP_SW_NAME, sshdr.sense_key, sshdr.asc, in tur_done()
174 if ((sshdr.asc == 0x04) && (sshdr.ascq == 3)) { in start_done()
187 HP_SW_NAME, sshdr.sense_key, sshdr.asc, in start_done()
/drivers/nvme/host/
Dscsi.c294 u8 asc, u8 ascq) in nvme_trans_completion() argument
314 resp[2] = asc; in nvme_trans_completion()
334 u8 status, sense_key, asc, ascq; in nvme_trans_status_code() local
347 asc = SCSI_ASC_NO_SENSE; in nvme_trans_status_code()
353 asc = SCSI_ASC_ILLEGAL_COMMAND; in nvme_trans_status_code()
359 asc = SCSI_ASC_INVALID_CDB; in nvme_trans_status_code()
365 asc = SCSI_ASC_NO_SENSE; in nvme_trans_status_code()
371 asc = SCSI_ASC_WARNING; in nvme_trans_status_code()
377 asc = SCSI_ASC_INTERNAL_TARGET_FAILURE; in nvme_trans_status_code()
383 asc = SCSI_ASC_NO_SENSE; in nvme_trans_status_code()
[all …]
/drivers/ata/
Dlibata-zpodd.c92 unsigned int ret, asc, ascq, add_len; in zpready() local
114 asc = sense_buf[12]; in zpready()
119 return asc == 0x3a; in zpready()
122 return asc == 0x3a && ascq == 0x01; in zpready()
/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()
338 if (!(scsi_trigger->ASC == 0xFF || scsi_trigger->ASC == asc)) in mpt3sas_trigger_scsi()
356 event_data.u.scsi.ASC = asc; in mpt3sas_trigger_scsi()
/drivers/usb/storage/
Ddebug.c162 unsigned char asc, in usb_stor_show_sense() argument
168 what = scsi_extd_sense_format(asc, ascq, &fmt); in usb_stor_show_sense()
Ddebug.h53 unsigned char asc, unsigned char ascq);

123