Home
last modified time | relevance | path

Searched refs:sshdr (Results 1 – 25 of 33) sorted by relevance

12

/drivers/scsi/device_handler/
Dscsi_dh_hp_sw.c44 struct scsi_sense_hdr *sshdr) in tur_done() argument
48 switch (sshdr->sense_key) { in tur_done()
53 if (sshdr->asc == 0x04 && sshdr->ascq == 2) { in tur_done()
67 HP_SW_NAME, sshdr->sense_key, sshdr->asc, in tur_done()
68 sshdr->ascq); in tur_done()
84 struct scsi_sense_hdr sshdr; in hp_sw_tur() local
90 res = scsi_execute(sdev, cmd, DMA_NONE, NULL, 0, NULL, &sshdr, in hp_sw_tur()
93 if (scsi_sense_valid(&sshdr)) in hp_sw_tur()
94 ret = tur_done(sdev, h, &sshdr); in hp_sw_tur()
120 struct scsi_sense_hdr sshdr; in hp_sw_start_stop() local
[all …]
Dscsi_dh_emc.c101 struct scsi_sense_hdr *sshdr) in trespass_endio() argument
107 "command.\n", CLARIION_NAME, sshdr->sense_key, in trespass_endio()
108 sshdr->asc, sshdr->ascq); in trespass_endio()
110 if (sshdr->sense_key == 0x05 && sshdr->asc == 0x04 && in trespass_endio()
111 sshdr->ascq == 0x00) { in trespass_endio()
120 } else if (sshdr->sense_key == 0x02 && sshdr->asc == 0x04 && in trespass_endio()
121 sshdr->ascq == 0x03) { in trespass_endio()
241 struct scsi_sense_hdr sshdr; in send_trespass_cmd() local
267 &sshdr, CLARIION_TIMEOUT * HZ, CLARIION_RETRIES, in send_trespass_cmd()
270 if (scsi_sense_valid(&sshdr)) in send_trespass_cmd()
[all …]
Dscsi_dh_rdac.c537 struct scsi_sense_hdr sshdr; in send_mode_select() local
559 data_size, NULL, &sshdr, RDAC_TIMEOUT * HZ, in send_mode_select()
561 err = mode_select_handle_sense(sdev, &sshdr); in send_mode_select()
Dscsi_dh_alua.c127 int bufflen, struct scsi_sense_hdr *sshdr, int flags) in submit_rtpg() argument
143 sshdr, ALUA_FAILOVER_TIMEOUT * HZ, in submit_rtpg()
155 struct scsi_sense_hdr *sshdr) in submit_stpg() argument
175 sshdr, ALUA_FAILOVER_TIMEOUT * HZ, in submit_stpg()
/drivers/scsi/
Dscsi_common.c148 struct scsi_sense_hdr *sshdr) in scsi_normalize_sense() argument
150 memset(sshdr, 0, sizeof(struct scsi_sense_hdr)); in scsi_normalize_sense()
155 sshdr->response_code = (sense_buffer[0] & 0x7f); in scsi_normalize_sense()
157 if (!scsi_sense_valid(sshdr)) in scsi_normalize_sense()
160 if (sshdr->response_code >= 0x72) { in scsi_normalize_sense()
165 sshdr->sense_key = (sense_buffer[1] & 0xf); in scsi_normalize_sense()
167 sshdr->asc = sense_buffer[2]; in scsi_normalize_sense()
169 sshdr->ascq = sense_buffer[3]; in scsi_normalize_sense()
171 sshdr->additional_length = sense_buffer[7]; in scsi_normalize_sense()
177 sshdr->sense_key = (sense_buffer[2] & 0xf); in scsi_normalize_sense()
[all …]
Dsr_ioctl.c191 struct scsi_sense_hdr local_sshdr, *sshdr = &local_sshdr; in sr_do_ioctl() local
196 if (cgc->sshdr) in sr_do_ioctl()
197 sshdr = cgc->sshdr; in sr_do_ioctl()
206 cgc->buffer, cgc->buflen, NULL, sshdr, in sr_do_ioctl()
215 switch (sshdr->sense_key) { in sr_do_ioctl()
226 if (sshdr->asc == 0x04 && in sr_do_ioctl()
227 sshdr->ascq == 0x01) { in sr_do_ioctl()
250 if (sshdr->asc == 0x20 && in sr_do_ioctl()
251 sshdr->ascq == 0x00) in sr_do_ioctl()
293 struct scsi_sense_hdr sshdr; in sr_drive_status() local
[all …]
Dsd.c164 struct scsi_sense_hdr sshdr; in cache_type_store() local
214 sdkp->max_retries, &data, &sshdr)) { in cache_type_store()
215 if (scsi_sense_valid(&sshdr)) in cache_type_store()
216 sd_print_sense_hdr(sdkp, &sshdr); in cache_type_store()
1596 struct scsi_sense_hdr *sshdr) in media_not_present() argument
1598 if (!scsi_sense_valid(sshdr)) in media_not_present()
1602 switch (sshdr->sense_key) { in media_not_present()
1606 if (sshdr->asc == 0x3A) { in media_not_present()
1657 struct scsi_sense_hdr sshdr = { 0, }; in sd_check_events() local
1660 &sshdr); in sd_check_events()
[all …]
Dscsi_error.c453 struct scsi_sense_hdr *sshdr) in scsi_report_sense() argument
457 if (sshdr->sense_key == UNIT_ATTENTION) { in scsi_report_sense()
458 if (sshdr->asc == 0x3f && sshdr->ascq == 0x03) { in scsi_report_sense()
462 } else if (sshdr->asc == 0x3f && sshdr->ascq == 0x0e) { in scsi_report_sense()
470 } else if (sshdr->asc == 0x3f) in scsi_report_sense()
477 if (sshdr->asc == 0x38 && sshdr->ascq == 0x07) { in scsi_report_sense()
485 if (sshdr->asc == 0x29) { in scsi_report_sense()
496 if (sshdr->asc == 0x2a && sshdr->ascq == 0x01) { in scsi_report_sense()
500 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x06) { in scsi_report_sense()
504 } else if (sshdr->asc == 0x2a && sshdr->ascq == 0x09) { in scsi_report_sense()
[all …]
Dscsi_logging.c271 const struct scsi_sense_hdr *sshdr) in scsi_format_sense_hdr() argument
277 sense_txt = scsi_sense_key_string(sshdr->sense_key); in scsi_format_sense_hdr()
283 "0x%x ", sshdr->sense_key); in scsi_format_sense_hdr()
285 scsi_sense_is_deferred(sshdr) ? "[deferred] " : "[current] "); in scsi_format_sense_hdr()
287 if (sshdr->response_code >= 0x72) in scsi_format_sense_hdr()
320 int tag, const struct scsi_sense_hdr *sshdr) in scsi_log_print_sense_hdr() argument
329 off += scsi_format_sense_hdr(logbuf + off, logbuf_len - off, sshdr); in scsi_log_print_sense_hdr()
338 sshdr->asc, sshdr->ascq); in scsi_log_print_sense_hdr()
347 struct scsi_sense_hdr sshdr; in scsi_log_print_sense() local
349 if (scsi_normalize_sense(sense_buffer, sense_len, &sshdr)) in scsi_log_print_sense()
[all …]
Dscsi_lib.c211 unsigned char *sense, struct scsi_sense_hdr *sshdr, in __scsi_execute() argument
259 if (sshdr) in __scsi_execute()
260 scsi_normalize_sense(rq->sense, rq->sense_len, sshdr); in __scsi_execute()
655 struct scsi_sense_hdr sshdr; in scsi_io_completion_action() local
660 sense_valid = scsi_command_normalize_sense(cmd, &sshdr); in scsi_io_completion_action()
662 sense_current = !scsi_sense_is_deferred(&sshdr); in scsi_io_completion_action()
673 switch (sshdr.sense_key) { in scsi_io_completion_action()
700 sshdr.asc == 0x20 && sshdr.ascq == 0x00) && in scsi_io_completion_action()
706 } else if (sshdr.asc == 0x10) /* DIX */ { in scsi_io_completion_action()
710 } else if (sshdr.asc == 0x20 || sshdr.asc == 0x24) { in scsi_io_completion_action()
[all …]
Dsr.c211 struct scsi_sense_hdr sshdr; in sr_get_events() local
215 &sshdr, SR_TIMEOUT, MAX_RETRIES, NULL); in sr_get_events()
216 if (scsi_sense_valid(&sshdr) && sshdr.sense_key == UNIT_ATTENTION) in sr_get_events()
246 struct scsi_sense_hdr sshdr; in sr_check_events() local
284 ret = scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr); in sr_check_events()
292 (scsi_sense_valid(&sshdr) && sshdr.asc != 0x3a); in sr_check_events()
514 struct scsi_sense_hdr sshdr; in sr_revalidate_disk() local
517 if (scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr)) in sr_revalidate_disk()
838 struct scsi_sense_hdr sshdr; in get_capabilities() local
863 scsi_test_unit_ready(cd->device, SR_TIMEOUT, MAX_RETRIES, &sshdr); in get_capabilities()
[all …]
Dses.c91 struct scsi_sense_hdr sshdr; in ses_recv_diag() local
95 &sshdr, SES_TIMEOUT, 1, NULL); in ses_recv_diag()
96 } while (ret > 0 && --retries && scsi_sense_valid(&sshdr) && in ses_recv_diag()
97 (sshdr.sense_key == NOT_READY || in ses_recv_diag()
98 (sshdr.sense_key == UNIT_ATTENTION && sshdr.asc == 0x29))); in ses_recv_diag()
131 struct scsi_sense_hdr sshdr; in ses_send_diag() local
136 &sshdr, SES_TIMEOUT, 1, NULL); in ses_send_diag()
137 } while (result > 0 && --retries && scsi_sense_valid(&sshdr) && in ses_send_diag()
138 (sshdr.sense_key == NOT_READY || in ses_send_diag()
139 (sshdr.sense_key == UNIT_ATTENTION && sshdr.asc == 0x29))); in ses_send_diag()
Dscsi.c494 struct scsi_sense_hdr sshdr; in scsi_report_opcode() local
509 &sshdr, 30 * HZ, 3, NULL); in scsi_report_opcode()
513 if (result && scsi_sense_valid(&sshdr) && in scsi_report_opcode()
514 sshdr.sense_key == ILLEGAL_REQUEST && in scsi_report_opcode()
515 (sshdr.asc == 0x20 || sshdr.asc == 0x24) && sshdr.ascq == 0x00) in scsi_report_opcode()
Dch.c164 static int ch_find_errno(struct scsi_sense_hdr *sshdr) in ch_find_errno() argument
169 if (scsi_sense_valid(sshdr) && in ch_find_errno()
170 sshdr->asc != 0) { in ch_find_errno()
172 if (ch_err[i].sense == sshdr->sense_key && in ch_find_errno()
173 ch_err[i].asc == sshdr->asc && in ch_find_errno()
174 ch_err[i].ascq == sshdr->ascq) { in ch_find_errno()
191 struct scsi_sense_hdr sshdr; in ch_do_scsi() local
199 buflength, &sshdr, timeout * HZ, in ch_do_scsi()
203 if (scsi_sense_valid(&sshdr)) { in ch_do_scsi()
205 scsi_print_sense_hdr(ch->device, ch->name, &sshdr); in ch_do_scsi()
[all …]
Dsd.h247 struct scsi_sense_hdr *sshdr);
276 unsigned int good_bytes, struct scsi_sense_hdr *sshdr) in sd_zbc_complete() argument
292 void sd_print_sense_hdr(struct scsi_disk *sdkp, struct scsi_sense_hdr *sshdr);
Dsd_zbc.c147 struct scsi_sense_hdr sshdr; in sd_zbc_do_report_zones() local
161 buf, buflen, &sshdr, in sd_zbc_do_report_zones()
167 if (result > 0 && scsi_sense_valid(&sshdr)) in sd_zbc_do_report_zones()
168 sd_print_sense_hdr(sdkp, &sshdr); in sd_zbc_do_report_zones()
612 struct scsi_sense_hdr *sshdr) in sd_zbc_complete() argument
619 sshdr->sense_key == ILLEGAL_REQUEST && in sd_zbc_complete()
620 sshdr->asc == 0x24) { in sd_zbc_complete()
Dscsi_scan.c634 struct scsi_sense_hdr sshdr; in scsi_probe_lun() local
661 inq_result, try_inquiry_len, &sshdr, in scsi_probe_lun()
677 scsi_sense_valid(&sshdr)) { in scsi_probe_lun()
678 if ((sshdr.sense_key == UNIT_ATTENTION) && in scsi_probe_lun()
679 ((sshdr.asc == 0x28) || in scsi_probe_lun()
680 (sshdr.asc == 0x29)) && in scsi_probe_lun()
681 (sshdr.ascq == 0)) in scsi_probe_lun()
1375 struct scsi_sense_hdr sshdr; in scsi_report_lun_scan() local
1453 lun_data, length, &sshdr, in scsi_report_lun_scan()
1463 else if (scsi_sense_valid(&sshdr)) { in scsi_report_lun_scan()
[all …]
Dscsi_transport_spi.c110 struct scsi_sense_hdr *sshdr) in spi_execute() argument
116 if (!sshdr) in spi_execute()
117 sshdr = &sshdr_tmp; in spi_execute()
125 sshdr, DV_TIMEOUT, /* retries */ 1, in spi_execute()
130 if (result < 0 || !scsi_sense_valid(sshdr) || in spi_execute()
131 sshdr->sense_key != UNIT_ATTENTION) in spi_execute()
633 struct scsi_sense_hdr sshdr; in spi_dv_device_echo_buffer() local
679 buffer, len, &sshdr); in spi_dv_device_echo_buffer()
683 if (scsi_sense_valid(&sshdr) in spi_dv_device_echo_buffer()
684 && sshdr.sense_key == ILLEGAL_REQUEST in spi_dv_device_echo_buffer()
[all …]
Dscsi_ioctl.c71 struct scsi_sense_hdr sshdr; in ioctl_internal_command() local
77 &sshdr, timeout, retries, NULL); in ioctl_internal_command()
84 if (scsi_sense_valid(&sshdr)) { in ioctl_internal_command()
85 switch (sshdr.sense_key) { in ioctl_internal_command()
94 sshdr.asc, sshdr.ascq); in ioctl_internal_command()
111 scsi_print_sense_hdr(sdev, NULL, &sshdr); in ioctl_internal_command()
Dmyrs.c820 struct scsi_sense_hdr sshdr = {0}; in myrs_log_event() local
825 if (!scsi_normalize_sense(ev->sense_data, 40, &sshdr)) { in myrs_log_event()
826 memset(&sshdr, 0x0, sizeof(sshdr)); in myrs_log_event()
834 if (sshdr.sense_key == VENDOR_SPECIFIC && in myrs_log_event()
835 (sshdr.asc == 0x80 || sshdr.asc == 0x81)) in myrs_log_event()
836 ev->ev_code = ((sshdr.asc - 0x80) << 8 | sshdr.ascq); in myrs_log_event()
894 if (sshdr.sense_key == NO_SENSE || in myrs_log_event()
895 (sshdr.sense_key == NOT_READY && in myrs_log_event()
896 sshdr.asc == 0x04 && (sshdr.ascq == 0x01 || in myrs_log_event()
897 sshdr.ascq == 0x02))) in myrs_log_event()
[all …]
/drivers/usb/storage/
Dtransport.c709 struct scsi_sense_hdr sshdr; in usb_stor_invoke_transport() local
800 &sshdr); in usb_stor_invoke_transport()
805 sshdr.response_code, sshdr.sense_key, in usb_stor_invoke_transport()
806 sshdr.asc, sshdr.ascq); in usb_stor_invoke_transport()
808 usb_stor_show_sense(us, sshdr.sense_key, sshdr.asc, sshdr.ascq); in usb_stor_invoke_transport()
823 if (sshdr.sense_key == 0 && sshdr.asc == 0 && sshdr.ascq == 0 && in usb_stor_invoke_transport()
853 if ((sshdr.response_code & 0x72) == 0x72) in usb_stor_invoke_transport()
/drivers/block/
Dpktcdvd.c751 struct scsi_sense_hdr *sshdr = cgc->sshdr; in pkt_dump_sense() local
753 if (sshdr) in pkt_dump_sense()
756 sshdr->sense_key, sshdr->asc, sshdr->ascq, in pkt_dump_sense()
757 sense_key_string(sshdr->sense_key)); in pkt_dump_sense()
790 struct scsi_sense_hdr sshdr; in pkt_set_speed() local
794 cgc.sshdr = &sshdr; in pkt_set_speed()
1625 struct scsi_sense_hdr sshdr; in pkt_set_write_settings() local
1636 cgc.sshdr = &sshdr; in pkt_set_write_settings()
1652 cgc.sshdr = &sshdr; in pkt_set_write_settings()
1890 struct scsi_sense_hdr sshdr; in pkt_write_caching() local
[all …]
/drivers/scsi/cxlflash/
Dsuperpipe.c335 struct scsi_sense_hdr sshdr; in read_cap16() local
361 CMD_BUFSIZE, NULL, &sshdr, to, CMD_RETRIES, in read_cap16()
372 if (result > 0 && scsi_sense_valid(&sshdr)) { in read_cap16()
374 switch (sshdr.sense_key) { in read_cap16()
381 switch (sshdr.asc) { in read_cap16()
1778 struct scsi_sense_hdr sshdr = { 0 }; in process_sense() local
1782 DK_CXLFLASH_VERIFY_SENSE_LEN, &sshdr); in process_sense()
1789 switch (sshdr.sense_key) { in process_sense()
1795 switch (sshdr.asc) { in process_sense()
1823 sshdr.sense_key, sshdr.asc, sshdr.ascq, rc); in process_sense()
/drivers/cdrom/
Dcdrom.c350 if (cgc->sshdr) { in cdrom_dummy_generic_packet()
351 cgc->sshdr->sense_key = 0x05; in cdrom_dummy_generic_packet()
352 cgc->sshdr->asc = 0x20; in cdrom_dummy_generic_packet()
353 cgc->sshdr->ascq = 0x00; in cdrom_dummy_generic_packet()
2905 struct scsi_sense_hdr sshdr; in mmc_ioctl_cdrom_read_data() local
2933 memset(&sshdr, 0, sizeof(sshdr)); in mmc_ioctl_cdrom_read_data()
2934 cgc->sshdr = &sshdr; in mmc_ioctl_cdrom_read_data()
2937 if (ret && sshdr.sense_key == 0x05 && in mmc_ioctl_cdrom_read_data()
2938 sshdr.asc == 0x20 && in mmc_ioctl_cdrom_read_data()
2939 sshdr.ascq == 0x00) { in mmc_ioctl_cdrom_read_data()
[all …]
/drivers/ata/
Dlibata-scsi.c362 struct scsi_sense_hdr sshdr; in ata_cmd_ioctl() local
408 sensebuf, &sshdr, (10*HZ), 5, 0, 0, NULL); in ata_cmd_ioctl()
414 if (scsi_sense_valid(&sshdr)) {/* sense data available */ in ata_cmd_ioctl()
420 if (sshdr.sense_key == RECOVERED_ERROR && in ata_cmd_ioctl()
421 sshdr.asc == 0 && sshdr.ascq == 0x1d) in ata_cmd_ioctl()
467 struct scsi_sense_hdr sshdr; in ata_task_ioctl() local
492 sensebuf, &sshdr, (10*HZ), 5, 0, 0, NULL); in ata_task_ioctl()
498 if (scsi_sense_valid(&sshdr)) {/* sense data available */ in ata_task_ioctl()
504 if (sshdr.sense_key == RECOVERED_ERROR && in ata_task_ioctl()
505 sshdr.asc == 0 && sshdr.ascq == 0x1d) in ata_task_ioctl()

12