Home
last modified time | relevance | path

Searched refs:ascq (Results 1 – 25 of 50) sorted by relevance

12

/drivers/target/
Dtarget_core_ua.c86 u8 ascq) in core_scsi3_ua_allocate() argument
106 ua->ua_ascq = ascq; in core_scsi3_ua_allocate()
116 if ((ua_p->ua_asc == asc) && (ua_p->ua_ascq == ascq)) { in core_scsi3_ua_allocate()
142 if ((asc == 0x29) && (ascq > ua_p->ua_ascq)) in core_scsi3_ua_allocate()
153 if ((asc == 0x29) || (ascq > ua_p->ua_asc)) in core_scsi3_ua_allocate()
176 asc, ascq); in core_scsi3_ua_allocate()
202 u8 *ascq) in core_scsi3_ua_for_check_condition() argument
238 *ascq = ua->ua_ascq; in core_scsi3_ua_for_check_condition()
248 *ascq = ua->ua_ascq; in core_scsi3_ua_for_check_condition()
266 cmd->orig_fe_lun, cmd->t_task_cdb[0], *asc, *ascq); in core_scsi3_ua_for_check_condition()
[all …]
/drivers/scsi/
Dconstants.c1211 scsi_extd_sense_format(unsigned char asc, unsigned char ascq) { in scsi_extd_sense_format() argument
1214 unsigned short code = ((asc << 8) | ascq); in scsi_extd_sense_format()
1221 ascq >= additional2[i].code2_min && in scsi_extd_sense_format()
1222 ascq <= additional2[i].code2_max) in scsi_extd_sense_format()
1231 scsi_show_extd_sense(unsigned char asc, unsigned char ascq) in scsi_show_extd_sense() argument
1233 const char *extd_sense_fmt = scsi_extd_sense_format(asc, ascq); in scsi_show_extd_sense()
1238 printk(extd_sense_fmt, ascq); in scsi_show_extd_sense()
1244 ascq); in scsi_show_extd_sense()
1245 if (ascq >= 0x80) in scsi_show_extd_sense()
1247 ascq); in scsi_show_extd_sense()
[all …]
Dps3rom.c267 unsigned char *asc, unsigned char *ascq) in DEF_SCSI_QCMD()
274 *ascq = status & 0xff; in DEF_SCSI_QCMD()
286 unsigned char sense_key, asc, ascq; in ps3rom_interrupt() local
333 if (decode_lv1_status(status, &sense_key, &asc, &ascq)) { in ps3rom_interrupt()
338 scsi_build_sense_buffer(0, cmd->sense_buffer, sense_key, asc, ascq); in ps3rom_interrupt()
Dch.c123 unsigned char ascq; member
131 .ascq = 0x01,
136 .ascq = 0x01,
141 .ascq = 0x0D,
146 .ascq = 0x0E,
151 .ascq = 0x00,
170 ch_err[i].ascq == sshdr->ascq) { in ch_find_errno()
Dscsi_error.c314 if (sshdr.asc != 0x28 || sshdr.ascq != 0x00) { in scsi_check_sense()
323 if ((sshdr.asc == 0x04) && (sshdr.ascq == 0x01)) in scsi_check_sense()
330 (sshdr.asc == 0x04) && (sshdr.ascq == 0x02)) in scsi_check_sense()
333 if (sshdr.asc == 0x3f && sshdr.ascq == 0x0e) in scsi_check_sense()
346 if (sshdr.asc == 0x38 && sshdr.ascq == 0x07) in scsi_check_sense()
2102 sshdr->ascq = sense_buffer[3]; in scsi_normalize_sense()
2117 sshdr->ascq = sense_buffer[13]; in scsi_normalize_sense()
2232 void scsi_build_sense_buffer(int desc, u8 *buf, u8 key, u8 asc, u8 ascq) in scsi_build_sense_buffer() argument
2238 buf[3] = ascq; in scsi_build_sense_buffer()
2245 buf[13] = ascq; in scsi_build_sense_buffer()
Dsr_ioctl.c229 sshdr.ascq == 0x01) { in sr_do_ioctl()
253 sshdr.ascq == 0x00) in sr_do_ioctl()
316 && sshdr.asc == 0x04 && sshdr.ascq == 0x01) in sr_drive_status()
334 && sshdr.asc == 0x04 && sshdr.ascq == 0x02) in sr_drive_status()
Dvirtio_scsi.c367 u8 ascq = event->reason >> 8; in virtscsi_handle_param_change() local
378 if (asc == 0x2a && (ascq == 0x00 || ascq == 0x01 || ascq == 0x09)) in virtscsi_handle_param_change()
Dsd.c1649 sshdr.ascq)); in sd_done()
1790 if (sshdr.asc == 4 && sshdr.ascq == 3) in sd_spinup_disk()
1792 if (sshdr.asc == 4 && sshdr.ascq == 0xb) in sd_spinup_disk()
1794 if (sshdr.asc == 4 && sshdr.ascq == 0xc) in sd_spinup_disk()
1961 sshdr.ascq == 0x00) in read_capacity_16()
1968 sshdr.asc == 0x29 && sshdr.ascq == 0x00) in read_capacity_16()
2050 sshdr.asc == 0x29 && sshdr.ascq == 0x00) in read_capacity_10()
2456 sshdr.asc == 0x24 && sshdr.ascq == 0x0) in sd_read_cache_type()
3203 scsi_show_extd_sense(sshdr->asc, sshdr->ascq); in sd_print_sense_hdr()
/drivers/ide/
Dide-cd_verbose.c28 sense->asc, sense->ascq); in ide_cd_log_error()
275 sense->ascq); in ide_cd_log_error()
282 if (!(sense->ascq >= 0x80 && sense->ascq <= 0xdd)) in ide_cd_log_error()
283 key |= sense->ascq; in ide_cd_log_error()
307 s, sense->asc, sense->ascq); in ide_cd_log_error()
Dide-floppy.c84 floppy->ascq = buf[13]; in ide_floppy_callback()
94 floppy->asc, floppy->ascq); in ide_floppy_callback()
112 floppy->ascq == 0x00) in ide_floppy_report_error()
118 floppy->asc, floppy->ascq); in ide_floppy_report_error()
Dide-tape.c174 u8 sense_key, asc, ascq; member
277 tape->ascq = sense[13]; 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()
463 (tape->ascq == 1 || tape->ascq == 8))) { in ide_tape_issue_pc()
469 tape->ascq); in ide_tape_issue_pc()
693 if ((tape->sense_key == 2 && tape->asc == 4 && tape->ascq == 2) in idetape_wait_ready()
702 (tape->ascq == 1 || tape->ascq == 8))) in idetape_wait_ready()
Dide-gd.h27 u8 sense_key, asc, ascq; member
Dide-cd_ioctl.c65 && sense.ascq == 0x04) in ide_cdrom_drive_status()
74 if (sense.asc == 0x3a && sense.ascq == 1) in ide_cdrom_drive_status()
/drivers/scsi/device_handler/
Dscsi_dh_alua.c256 sense_hdr.asc, sense_hdr.ascq); in stpg_endio()
457 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0a) in alua_check_sense()
462 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0b) in alua_check_sense()
467 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x0c) in alua_check_sense()
472 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x12) in alua_check_sense()
479 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in alua_check_sense()
484 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x01) in alua_check_sense()
489 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x06) in alua_check_sense()
494 if (sense_hdr->asc == 0x2a && sense_hdr->ascq == 0x07) in alua_check_sense()
499 if (sense_hdr->asc == 0x3f && sense_hdr->ascq == 0x03) in alua_check_sense()
[all …]
Dscsi_dh_emc.c136 sshdr.asc, sshdr.ascq); in trespass_endio()
139 (sshdr.ascq == 0x00)) { in trespass_endio()
149 (sshdr.ascq == 0x03)) { in trespass_endio()
408 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x03) in clariion_check_sense()
425 if (sense_hdr->asc == 0x25 && sense_hdr->ascq == 0x01) in clariion_check_sense()
439 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in clariion_check_sense()
478 sshdr.sense_key, sshdr.asc, sshdr.ascq); in clariion_std_inquiry()
525 sshdr.sense_key, sshdr.asc, sshdr.ascq); in clariion_send_inquiry()
Dscsi_dh_rdac.c561 if (sense_hdr.asc == 0x04 && sense_hdr.ascq == 0x01) in mode_select_handle_sense()
568 if (sense_hdr.asc == 0x91 && sense_hdr.ascq == 0x36) in mode_select_handle_sense()
581 sense_hdr.sense_key, sense_hdr.asc, sense_hdr.ascq); in mode_select_handle_sense()
725 sense_hdr->sense_key, sense_hdr->asc, sense_hdr->ascq); in rdac_check_sense()
729 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x01) in rdac_check_sense()
735 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0x81) in rdac_check_sense()
742 if (sense_hdr->asc == 0x04 && sense_hdr->ascq == 0xA1) in rdac_check_sense()
748 if (sense_hdr->asc == 0xA1 && sense_hdr->ascq == 0x02) in rdac_check_sense()
756 if (sense_hdr->asc == 0x94 && sense_hdr->ascq == 0x01) { in rdac_check_sense()
766 if (sense_hdr->asc == 0x29 && sense_hdr->ascq == 0x00) in rdac_check_sense()
[all …]
Dscsi_dh_hp_sw.c84 if ((sshdr.asc == 0x04) && (sshdr.ascq == 2)) { in tur_done()
98 sshdr.ascq); in tur_done()
181 if ((sshdr.asc == 0x04) && (sshdr.ascq == 3)) { in start_done()
195 sshdr.ascq); in start_done()
/drivers/block/
Dnvme-scsi.c456 u8 asc, u8 ascq) in nvme_trans_completion() argument
478 resp[3] = ascq; in nvme_trans_completion()
491 u8 status, sense_key, asc, ascq; in nvme_trans_status_code() local
507 ascq = SCSI_ASCQ_CAUSE_NOT_REPORTABLE; in nvme_trans_status_code()
513 ascq = SCSI_ASCQ_CAUSE_NOT_REPORTABLE; in nvme_trans_status_code()
519 ascq = SCSI_ASCQ_CAUSE_NOT_REPORTABLE; in nvme_trans_status_code()
525 ascq = SCSI_ASCQ_CAUSE_NOT_REPORTABLE; in nvme_trans_status_code()
531 ascq = SCSI_ASCQ_POWER_LOSS_EXPECTED; in nvme_trans_status_code()
537 ascq = SCSI_ASCQ_CAUSE_NOT_REPORTABLE; in nvme_trans_status_code()
543 ascq = SCSI_ASCQ_CAUSE_NOT_REPORTABLE; in nvme_trans_status_code()
[all …]
/drivers/usb/storage/
Ddebug.c165 unsigned char ascq) in usb_stor_show_sense() argument
170 what = scsi_extd_sense_format(asc, ascq); in usb_stor_show_sense()
178 US_DEBUGPX(what, ascq); in usb_stor_show_sense()
Ddebug.h52 unsigned char asc, unsigned char ascq);
/drivers/scsi/mpt3sas/
Dmpt3sas_trigger_diag.c297 u8 ascq) in mpt3sas_trigger_scsi() argument
323 ioc->name, __func__, sense_key, asc, ascq)); in mpt3sas_trigger_scsi()
339 if (!(scsi_trigger->ASCQ == 0xFF || scsi_trigger->ASCQ == ascq)) in mpt3sas_trigger_scsi()
356 event_data.u.scsi.ASCQ = ascq; in mpt3sas_trigger_scsi()
/drivers/ata/
Dlibata-zpodd.c107 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()
Dlibata-scsi.c259 static void ata_scsi_set_sense(struct scsi_cmnd *cmd, u8 sk, u8 asc, u8 ascq) in ata_scsi_set_sense() argument
263 scsi_build_sense_buffer(0, cmd->sense_buffer, sk, asc, ascq); in ata_scsi_set_sense()
537 sshdr.asc == 0 && sshdr.ascq == 0x1d) in ata_cmd_ioctl()
623 sshdr.asc == 0 && sshdr.ascq == 0x1d) in ata_task_ioctl()
831 u8 *asc, u8 *ascq, int verbose) in ata_to_sense_error() argument
891 *ascq = sense_table[i][3]; in ata_to_sense_error()
906 *ascq = stat_table[i][3]; in ata_to_sense_error()
919 *ascq = 0x00; in ata_to_sense_error()
925 id, drv_stat, drv_err, *sk, *asc, *ascq); in ata_to_sense_error()
/drivers/staging/rts5139/
Drts51x_scsi.h139 u8 sense_key, u32 info, u8 asc, u8 ascq, u8 sns_key_info0,
/drivers/scsi/lpfc/
Dlpfc_nl.h146 uint8_t ascq; member

12