Home
last modified time | relevance | path

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

123

/drivers/target/
Dtarget_core_ua.c77 u8 asc, in core_scsi3_ua_allocate() argument
89 ua->ua_asc = asc; in core_scsi3_ua_allocate()
97 if ((ua_p->ua_asc == asc) && (ua_p->ua_ascq == ascq)) { in core_scsi3_ua_allocate()
122 if ((asc == 0x29) && (ascq > ua_p->ua_ascq)) in core_scsi3_ua_allocate()
133 if ((asc == 0x29) || (ascq > ua_p->ua_asc)) in core_scsi3_ua_allocate()
151 asc, ascq); in core_scsi3_ua_allocate()
157 u32 unpacked_lun, u8 asc, u8 ascq) in target_ua_allocate_lun() argument
171 core_scsi3_ua_allocate(deve, asc, ascq); in target_ua_allocate_lun()
193 bool core_scsi3_ua_for_check_condition(struct se_cmd *cmd, u8 *key, u8 *asc, in core_scsi3_ua_for_check_condition() argument
217 *asc = 0x25; /* LOGICAL UNIT NOT SUPPORTED */ in core_scsi3_ua_for_check_condition()
[all …]
Dtarget_core_transport.c3247 u8 asc; member
3258 .asc = 0x25 /* LOGICAL UNIT NOT SUPPORTED */
3262 .asc = 0x20, /* INVALID COMMAND OPERATION CODE */
3266 .asc = 0x20, /* INVALID COMMAND OPERATION CODE */
3270 .asc = 0x24, /* INVALID FIELD IN CDB */
3274 .asc = 0x29, /* BUS DEVICE RESET FUNCTION OCCURRED */
3279 .asc = 0x0c, /* WRITE ERROR */
3284 .asc = 0x24, /* INVALID FIELD IN CDB */
3288 .asc = 0x26, /* INVALID FIELD IN PARAMETER LIST */
3292 .asc = 0x26,
[all …]
/drivers/hid/
Dhid-apple.c224 struct apple_sc *asc = hid_get_drvdata(hid); in hidinput_apple_event() local
232 asc->fn_on = !!value; in hidinput_apple_event()
261 do_translate = !asc->fn_on; in hidinput_apple_event()
264 do_translate = asc->fn_on; in hidinput_apple_event()
271 do_translate = asc->fn_on; in hidinput_apple_event()
282 if (asc->quirks & APPLE_NUMLOCK_EMULATION && in hidinput_apple_event()
283 (test_bit(usage->code, asc->pressed_numlock) || in hidinput_apple_event()
291 asc->pressed_numlock); in hidinput_apple_event()
294 asc->pressed_numlock); in hidinput_apple_event()
339 struct apple_sc *asc = hid_get_drvdata(hdev); in apple_event() local
[all …]
/drivers/scsi/
Dscsi_common.c167 sshdr->asc = sense_buffer[2]; in scsi_normalize_sense()
182 sshdr->asc = sense_buffer[12]; in scsi_normalize_sense()
241 void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq) in scsi_build_sense_buffer() argument
246 buf[2] = asc; in scsi_build_sense_buffer()
253 buf[12] = asc; in scsi_build_sense_buffer()
Dscsi_error.c452 if (sshdr->asc == 0x3f && sshdr->ascq == 0x03) { in scsi_report_sense()
456 } else if (sshdr->asc == 0x3f && sshdr->ascq == 0x0e) { in scsi_report_sense()
464 } else if (sshdr->asc == 0x3f) in scsi_report_sense()
471 if (sshdr->asc == 0x38 && sshdr->ascq == 0x07) { in scsi_report_sense()
479 if (sshdr->asc == 0x29) { in scsi_report_sense()
490 if (sshdr->asc == 0x2a && sshdr->ascq == 0x01) { in scsi_report_sense()
494 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { in scsi_report_sense()
498 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) { in scsi_report_sense()
502 } else if (sshdr->asc == 0x2a) in scsi_report_sense()
581 if (sshdr.asc == 0x10) /* DIF */ in scsi_check_sense()
[all …]
Dps3rom.c249 unsigned char *asc, unsigned char *ascq) in DEF_SCSI_QCMD()
255 *asc = (status >> 8) & 0xff; in DEF_SCSI_QCMD()
268 unsigned char sense_key, asc, ascq; in ps3rom_interrupt() local
315 if (decode_lv1_status(status, &sense_key, &asc, &ascq)) { in ps3rom_interrupt()
320 scsi_build_sense(cmd, 0, sense_key, asc, ascq); in ps3rom_interrupt()
Dsr_ioctl.c226 if (sshdr->asc == 0x04 && in sr_do_ioctl()
250 if (sshdr->asc == 0x20 && in sr_do_ioctl()
305 && sshdr.asc == 0x04 && sshdr.ascq == 0x01) in sr_drive_status()
323 && sshdr.asc == 0x04 && sshdr.ascq == 0x02) in sr_drive_status()
329 if (sshdr.sense_key == NOT_READY && sshdr.asc == 0x04) in sr_drive_status()
339 sshdr.asc == 0x3a) in sr_drive_status()
Dconstants.c378 scsi_extd_sense_format(unsigned char asc, unsigned char ascq, const char **fmt) in scsi_extd_sense_format() argument
381 unsigned short code = ((asc << 8) | ascq); in scsi_extd_sense_format()
391 if (additional2[i].code1 == asc && in scsi_extd_sense_format()
Dscsi_logging.c242 unsigned char asc, unsigned char ascq) in scsi_format_extd_sense() argument
246 const char *extd_sense_str = scsi_extd_sense_format(asc, ascq, in scsi_format_extd_sense()
256 if (asc >= 0x80) in scsi_format_extd_sense()
259 "ASC=0x%x ", asc); in scsi_format_extd_sense()
338 sshdr->asc, sshdr->ascq); in scsi_log_print_sense_hdr()
Dch.c126 unsigned char asc; member
134 .asc = 0x21,
139 .asc = 0x28,
144 .asc = 0x3B,
149 .asc = 0x3B,
154 .asc = 0x20,
170 sshdr->asc != 0) { in ch_find_errno()
173 ch_err[i].asc == sshdr->asc && in ch_find_errno()
Dsd.c1603 if (sshdr->asc == 0x3A) { in media_not_present()
1729 if (sshdr->asc == 0x3a || /* medium not present */ in sd_sync_cache()
1730 sshdr->asc == 0x20 || /* invalid command */ in sd_sync_cache()
1731 (sshdr->asc == 0x74 && sshdr->ascq == 0x71)) /* drive is password locked */ in sd_sync_cache()
2066 if (sshdr.asc == 0x10) /* DIF: Target detected corruption */ in sd_done()
2070 switch (sshdr.asc) { in sd_done()
2175 if (sshdr.asc == 4 && sshdr.ascq == 3) in sd_spinup_disk()
2177 if (sshdr.asc == 4 && sshdr.ascq == 0xb) in sd_spinup_disk()
2179 if (sshdr.asc == 4 && sshdr.ascq == 0xc) in sd_spinup_disk()
2181 if (sshdr.asc == 4 && sshdr.ascq == 0x1b) in sd_spinup_disk()
[all …]
Dscsi_lib.c699 sshdr.asc == 0x20 && sshdr.ascq == 0x00) && in scsi_io_completion_action()
705 } else if (sshdr.asc == 0x10) /* DIX */ { in scsi_io_completion_action()
709 } else if (sshdr.asc == 0x20 || sshdr.asc == 0x24) { in scsi_io_completion_action()
717 if (sshdr.asc == 0x10) /* DIF */ in scsi_io_completion_action()
724 if (sshdr.asc == 0x04) { in scsi_io_completion_action()
757 if ((sshdr.asc == 0x0C && sshdr.ascq == 0x12) || in scsi_io_completion_action()
758 (sshdr.asc == 0x55 && in scsi_io_completion_action()
864 if ((sshdr.asc == 0x0) && (sshdr.ascq == 0x1d)) in scsi_io_completion_nz_result()
2149 (sshdr->asc == 0x20) && (sshdr->ascq == 0)) { in scsi_mode_sense()
3232 void scsi_build_sense(struct scsi_cmnd *scmd, int desc, u8 key, u8 asc, u8 ascq) in scsi_build_sense() argument
[all …]
Dscsi.c515 (sshdr.asc == 0x20 || sshdr.asc == 0x24) && sshdr.ascq == 0x00) in scsi_report_opcode()
/drivers/scsi/device_handler/
Dscsi_dh_rdac.c501 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x01) in mode_select_handle_sense()
508 if (sense_hdr->asc == 0x91 && sense_hdr->ascq == 0x36) in mode_select_handle_sense()
521 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq); in mode_select_handle_sense()
667 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq); in rdac_check_sense()
671 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x01) in rdac_check_sense()
677 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x81) in rdac_check_sense()
684 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0xA1) in rdac_check_sense()
690 if (sense_hdr->asc == 0xA1 && sense_hdr->ascq == 0x02) in rdac_check_sense()
698 if (sense_hdr->asc == 0x94 && sense_hdr->ascq == 0x01) { in rdac_check_sense()
708 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in rdac_check_sense()
[all …]
Dscsi_dh_hp_sw.c53 if (sshdr->asc == 0x04 && sshdr->ascq == 2) { in tur_done()
67 HP_SW_NAME, sshdr->sense_key, sshdr->asc, in tur_done()
139 if (sshdr.asc == 0x04 && sshdr.ascq == 3) { in hp_sw_start_stop()
155 sshdr.sense_key, sshdr.asc, sshdr.ascq); in hp_sw_start_stop()
Dscsi_dh_emc.c108 sshdr->asc, sshdr->ascq); in trespass_endio()
110 if (sshdr->sense_key == 0x05 && sshdr->asc == 0x04 && in trespass_endio()
120 } else if (sshdr->sense_key == 0x02 && sshdr->asc == 0x04 && in trespass_endio()
288 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x03) in clariion_check_sense()
305 if (sense_hdr->asc == 0x25 && sense_hdr->ascq == 0x01) in clariion_check_sense()
319 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in clariion_check_sense()
Dscsi_dh_alua.c417 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0a) { in alua_check_sense()
431 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) { in alua_check_sense()
440 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x04) in alua_check_sense()
445 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x01) in alua_check_sense()
450 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x06) { in alua_check_sense()
457 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x07) { in alua_check_sense()
464 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x03) in alua_check_sense()
469 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x0e) in alua_check_sense()
498 sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a) in alua_tur()
600 sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a) { in alua_rtpg()
/drivers/ata/
Dlibata-zpodd.c107 unsigned int ret, asc, ascq, add_len; in zpready() local
129 asc = sense_buf[12]; in zpready()
134 return asc == 0x3a; in zpready()
137 return asc == 0x3a && ascq == 0x01; in zpready()
Dlibata-scsi.c192 u8 sk, u8 asc, u8 ascq) in ata_scsi_set_sense() argument
199 scsi_build_sense(cmd, d_sense, sk, asc, ascq); in ata_scsi_set_sense()
421 sshdr.asc == 0 && sshdr.ascq == 0x1d) in ata_cmd_ioctl()
505 sshdr.asc == 0 && sshdr.ascq == 0x1d) in ata_task_ioctl()
724 u8 *asc, u8 *ascq, int verbose) in ata_to_sense_error() argument
801 *asc = sense_table[i][2]; in ata_to_sense_error()
816 *asc = stat_table[i][2]; in ata_to_sense_error()
827 *asc = 0x00; in ata_to_sense_error()
833 id, drv_stat, drv_err, *sk, *asc, *ascq); in ata_to_sense_error()
861 u8 sense_key, asc, ascq; in ata_gen_passthru_sense() local
[all …]
/drivers/scsi/mpt3sas/
Dmpt3sas_trigger_diag.c336 mpt3sas_trigger_scsi(struct MPT3SAS_ADAPTER *ioc, u8 sense_key, u8 asc, in mpt3sas_trigger_scsi() argument
363 __func__, sense_key, asc, ascq)); in mpt3sas_trigger_scsi()
377 if (!(scsi_trigger->ASC == 0xFF || scsi_trigger->ASC == asc)) in mpt3sas_trigger_scsi()
395 event_data.u.scsi.ASC = asc; in mpt3sas_trigger_scsi()
/drivers/usb/storage/
Ddebug.c146 unsigned char asc, in usb_stor_show_sense() argument
152 what = scsi_extd_sense_format(asc, ascq, &fmt); in usb_stor_show_sense()
Ddebug.h35 unsigned char asc, unsigned char ascq);
/drivers/staging/rts5208/
Drtsx_scsi.h127 u8 sense_key, u32 info, u8 asc, u8 ascq,
/drivers/scsi/lpfc/
Dlpfc_nl.h147 uint8_t asc; member
/drivers/scsi/mvsas/
Dmv_sas.c1598 int key, int asc, int ascq) in mvs_set_sense() argument
1606 "fit sense %x:%x:%x", len, key, asc, ascq); in mvs_set_sense()
1613 buffer[2] = asc; /* ASC */ in mvs_set_sense()
1619 "fit sense %x:%x:%x", len, key, asc, ascq); in mvs_set_sense()
1628 buffer[12] = asc; /* ASC */ in mvs_set_sense()
1637 u8 key, u8 asc, u8 asc_q) in mvs_fill_ssp_resp_iu() argument
1644 key, asc, asc_q); in mvs_fill_ssp_resp_iu()

123