/openbmc/qemu/scsi/ |
H A D | utils.c | 108 sense.ascq = in_buf[13]; in scsi_parse_sense_buf() 115 sense.ascq = in_buf[3]; in scsi_parse_sense_buf() 132 buf[13] = sense.ascq; in scsi_build_sense_buf() 138 buf[3] = sense.ascq; in scsi_build_sense_buf() 157 .key = NO_SENSE , .asc = 0x00 , .ascq = 0x00 162 .key = NOT_READY, .asc = 0x04, .ascq = 0x03 167 .key = NOT_READY, .asc = 0x3a, .ascq = 0x00 172 .key = NOT_READY, .asc = 0x53, .ascq = 0x02 177 .key = HARDWARE_ERROR, .asc = 0x44, .ascq = 0x00 182 .key = ILLEGAL_REQUEST, .asc = 0x20, .ascq = 0x00 [all …]
|
/openbmc/linux/drivers/target/ |
H A D | target_core_ua.c | 78 u8 ascq) in core_scsi3_ua_allocate() argument 90 ua->ua_ascq = ascq; 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() 194 u8 *ascq) in core_scsi3_ua_for_check_condition() argument 218 *ascq = 0; in core_scsi3_ua_for_check_condition() [all …]
|
H A D | target_core_transport.c | 3308 u8 ascq; member 3335 .ascq = 0x03, 3340 .ascq = 0x0d, /* NOT ENOUGH UNSOLICITED DATA */ 3353 .ascq = 0x06, /* TOO MANY TARGET DESCRIPTORS */ 3358 .ascq = 0x07, /* UNSUPPORTED TARGET DESCRIPTOR TYPE CODE */ 3363 .ascq = 0x08, /* TOO MANY SEGMENT DESCRIPTORS */ 3368 .ascq = 0x09, /* UNSUPPORTED SEGMENT DESCRIPTOR TYPE CODE */ 3377 .ascq = 0x0c, /* UNEXPECTED_UNSOLICITED_DATA */ 3382 .ascq = 0x05, /* N/A */ 3387 .ascq = 0x13, /* FAILED RETRANSMISSION REQUEST */ [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | scsi_common.c | 212 sshdr->ascq = sense_buffer[3]; in scsi_normalize_sense() 226 sshdr->ascq = sense_buffer[13]; in scsi_normalize_sense() 283 void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq) in scsi_build_sense_buffer() argument 289 buf[3] = ascq; in scsi_build_sense_buffer() 296 buf[13] = ascq; in scsi_build_sense_buffer()
|
H A D | constants.c | 378 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() 392 ascq >= additional2[i].code2_min && in scsi_extd_sense_format() 393 ascq <= additional2[i].code2_max) { in scsi_extd_sense_format()
|
H A D | ps3rom.c | 247 unsigned char *asc, unsigned char *ascq) in DEF_SCSI_QCMD() 254 *ascq = status & 0xff; in DEF_SCSI_QCMD() 266 unsigned char sense_key, asc, ascq; in ps3rom_interrupt() local 313 if (decode_lv1_status(status, &sense_key, &asc, &ascq)) { in ps3rom_interrupt() 318 scsi_build_sense(cmd, 0, sense_key, asc, ascq); in ps3rom_interrupt()
|
H A D | scsi_logging.c | 241 unsigned char asc, unsigned char ascq) in scsi_format_extd_sense() argument 245 const char *extd_sense_str = scsi_extd_sense_format(asc, ascq, in scsi_format_extd_sense() 253 "(%s%x)", extd_sense_fmt, ascq); in scsi_format_extd_sense() 259 if (ascq >= 0x80) in scsi_format_extd_sense() 263 "ASCQ=0x%x ", ascq); in scsi_format_extd_sense() 337 sshdr->asc, sshdr->ascq); in scsi_log_print_sense_hdr()
|
H A D | scsi_error.c | 463 if (sshdr->asc == 0x3f && sshdr->ascq == 0x03) { in scsi_report_sense() 467 } else if (sshdr->asc == 0x3f && sshdr->ascq == 0x0e) { in scsi_report_sense() 480 if (sshdr->asc == 0x38 && sshdr->ascq == 0x07) { in scsi_report_sense() 499 if (sshdr->asc == 0x2a && sshdr->ascq == 0x01) { in scsi_report_sense() 503 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { in scsi_report_sense() 507 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) { in scsi_report_sense() 609 sshdr.ascq >= 0x01 && sshdr.ascq <= 0x03) { in scsi_check_sense() 618 if (sshdr.asc == 0xc1 && sshdr.ascq == 0x01 && in scsi_check_sense() 638 if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) { in scsi_check_sense() 649 sshdr.asc == 0x3f && sshdr.ascq == 0x0e) in scsi_check_sense() [all …]
|
H A D | ch.c | 127 unsigned char ascq; member 135 .ascq = 0x01, 140 .ascq = 0x01, 145 .ascq = 0x0D, 150 .ascq = 0x0E, 155 .ascq = 0x00, 174 ch_err[i].ascq == sshdr->ascq) { in ch_find_errno()
|
H A D | sr_ioctl.c | 230 sshdr->ascq == 0x01) { in sr_do_ioctl() 254 sshdr->ascq == 0x00) in sr_do_ioctl() 308 && sshdr.asc == 0x04 && sshdr.ascq == 0x01) in sr_drive_status() 326 && sshdr.asc == 0x04 && sshdr.ascq == 0x02) in sr_drive_status()
|
/openbmc/linux/drivers/scsi/device_handler/ |
H A D | scsi_dh_rdac.c | 501 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() 669 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq); in rdac_check_sense() 673 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x01) in rdac_check_sense() 679 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x81) in rdac_check_sense() 686 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0xA1) in rdac_check_sense() 692 if (sense_hdr->asc == 0xA1 && sense_hdr->ascq == 0x02) in rdac_check_sense() 700 if (sense_hdr->asc == 0x94 && sense_hdr->ascq == 0x01) { in rdac_check_sense() 710 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in rdac_check_sense() [all …]
|
H A D | scsi_dh_hp_sw.c | 53 if (sshdr->asc == 0x04 && sshdr->ascq == 2) { in tur_done() 68 sshdr->ascq); in tur_done() 145 if (sshdr.asc == 0x04 && sshdr.ascq == 3) { in hp_sw_start_stop() 161 sshdr.sense_key, sshdr.asc, sshdr.ascq); in hp_sw_start_stop()
|
H A D | scsi_dh_emc.c | 108 sshdr->asc, sshdr->ascq); in trespass_endio() 111 sshdr->ascq == 0x00) { in trespass_endio() 121 sshdr->ascq == 0x03) { in trespass_endio() 291 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x03) in clariion_check_sense() 308 if (sense_hdr->asc == 0x25 && sense_hdr->ascq == 0x01) in clariion_check_sense() 322 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in clariion_check_sense()
|
H A D | scsi_dh_alua.c | 435 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0a) { in alua_check_sense() 444 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0a) { in alua_check_sense() 451 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) { in alua_check_sense() 460 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x04) in alua_check_sense() 465 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x01) in alua_check_sense() 470 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x06) { in alua_check_sense() 477 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x07) { in alua_check_sense() 484 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x03) in alua_check_sense() 489 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x0e) in alua_check_sense() 519 sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x0a) in alua_tur() [all …]
|
/openbmc/linux/drivers/usb/storage/ |
H A D | debug.c | 146 unsigned char ascq) in usb_stor_show_sense() argument 151 what = scsi_extd_sense_format(asc, ascq, &fmt); in usb_stor_show_sense() 159 usb_stor_dbg(us, "%s: %s (%s%x)\n", keystr, what, fmt, ascq); in usb_stor_show_sense()
|
H A D | debug.h | 35 unsigned char asc, unsigned char ascq);
|
/openbmc/linux/include/scsi/ |
H A D | scsi_common.h | 67 u8 ascq; member 85 extern void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq);
|
H A D | scsi_dbg.h | 61 scsi_extd_sense_format(unsigned char asc, unsigned char ascq, const char **fmt) in scsi_extd_sense_format() argument
|
/openbmc/linux/include/trace/events/ |
H A D | scsi.h | 274 __field( u8, ascq ) 297 __entry->ascq = sshdr.ascq; 301 __entry->ascq = 0; 319 __entry->sense_key, __entry->asc, __entry->ascq)
|
/openbmc/linux/drivers/ata/ |
H A D | libata-zpodd.c | 107 unsigned int ret, asc, ascq, add_len; in zpready() local 130 ascq = sense_buf[13]; in zpready() 137 return asc == 0x3a && ascq == 0x01; in zpready()
|
H A D | libata-sata.c | 1366 u8 *sense, sk = 0, asc = 0, ascq = 0; in ata_eh_read_sense_success_ncq_log() local 1407 ascq = sense[2]; in ata_eh_read_sense_success_ncq_log() 1409 if (!ata_scsi_sense_is_valid(sk, asc, ascq)) { in ata_eh_read_sense_success_ncq_log() 1417 asc, ascq); in ata_eh_read_sense_success_ncq_log() 1497 char sense_key, asc, ascq; in ata_eh_analyze_ncq_error() local 1501 ascq = qc->result_tf.auxiliary & 0xff; in ata_eh_analyze_ncq_error() 1502 if (ata_scsi_sense_is_valid(sense_key, asc, ascq)) { in ata_eh_analyze_ncq_error() 1504 ascq); in ata_eh_analyze_ncq_error()
|
/openbmc/qemu/include/scsi/ |
H A D | utils.h | 46 uint8_t ascq; member 125 int scsi_sense_to_errno(int key, int asc, int ascq);
|
/openbmc/linux/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_trigger_diag.c | 337 u8 ascq) in mpt3sas_trigger_scsi() argument 363 __func__, sense_key, asc, ascq)); in mpt3sas_trigger_scsi() 379 if (!(scsi_trigger->ASCQ == 0xFF || scsi_trigger->ASCQ == ascq)) in mpt3sas_trigger_scsi() 396 event_data.u.scsi.ASCQ = ascq; in mpt3sas_trigger_scsi()
|
/openbmc/qemu/hw/scsi/ |
H A D | scsi-bus.c | 912 ua->ascq == SENSE_CODE(REPORTED_LUNS_CHANGED).ascq) { in scsi_clear_reported_luns_changed() 953 sense.key, sense.asc, sense.ascq); in scsi_req_build_sense() 1669 if (sense.asc == 0x29 && sense.ascq == 0x04) { in scsi_ua_precedence() 1672 } else if (sense.asc == 0x3F && sense.ascq == 0x01) { in scsi_ua_precedence() 1675 } else if (sense.asc == 0x29 && (sense.ascq == 0x05 || sense.ascq == 0x06)) { in scsi_ua_precedence() 1678 } else if (sense.asc == 0x29 && sense.ascq <= 0x07) { in scsi_ua_precedence() 1685 return sense.ascq; in scsi_ua_precedence() 1686 } else if (sense.asc == 0x2F && sense.ascq == 0x01) { in scsi_ua_precedence() 1690 return (sense.asc << 8) | sense.ascq; in scsi_ua_precedence() 1718 sense.asc, sense.ascq); in scsi_device_set_ua() [all …]
|
/openbmc/u-boot/drivers/block/ |
H A D | ide.c | 337 unsigned char res, key, asc, ascq; in atapi_issue_autoreq() local 361 ascq = (sense_data[13]); in atapi_issue_autoreq() 365 sense_data[0], key, asc, ascq); in atapi_issue_autoreq() 378 if ((asc == 0x4) && (ascq == 0x1)) { in atapi_issue_autoreq() 394 ascq); in atapi_issue_autoreq() 396 debug("ERROR Sense key %02X ASC %02X ASCQ %02X\n", key, asc, ascq); in atapi_issue_autoreq()
|