Home
last modified time | relevance | path

Searched refs:sense_buffer (Results 1 – 25 of 123) sorted by relevance

12345

/linux/drivers/scsi/
H A Dscsi_common.c191 bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, in scsi_normalize_sense() argument
196 if (!sense_buffer || !sb_len) in scsi_normalize_sense()
199 sshdr->response_code = (sense_buffer[0] & 0x7f); in scsi_normalize_sense()
209 sshdr->sense_key = (sense_buffer[1] & 0xf); in scsi_normalize_sense()
211 sshdr->asc = sense_buffer[2]; in scsi_normalize_sense()
213 sshdr->ascq = sense_buffer[3]; in scsi_normalize_sense()
215 sshdr->additional_length = sense_buffer[7]; in scsi_normalize_sense()
221 sshdr->sense_key = (sense_buffer[2] & 0xf); in scsi_normalize_sense()
223 sb_len = min(sb_len, sense_buffer[7] + 8); in scsi_normalize_sense()
225 sshdr->asc = sense_buffer[12]; in scsi_normalize_sense()
[all …]
H A Dscsi_lib_test.c66 .sense_buffer = sense, in scsi_lib_test_multiple_sense()
122 .sense_buffer = sense, in scsi_lib_test_any_sense()
149 .sense_buffer = sense, in scsi_lib_test_host()
175 .sense_buffer = sense, in scsi_lib_test_any_failure()
198 .sense_buffer = sense, in scsi_lib_test_any_status()
232 .sense_buffer = sense, in scsi_lib_test_total_allowed()
275 .sense_buffer = sense, in scsi_lib_test_mixed_total()
H A Dscsi_logging.c293 const unsigned char *sense_buffer, int sense_len) in scsi_log_dump_sense() argument
309 hex_dump_to_buffer(&sense_buffer[i], len, 16, 1, in scsi_log_dump_sense()
344 const unsigned char *sense_buffer, int sense_len) in scsi_log_print_sense() argument
348 if (scsi_normalize_sense(sense_buffer, sense_len, &sshdr)) in scsi_log_print_sense()
351 scsi_log_dump_sense(sdev, name, tag, sense_buffer, sense_len); in scsi_log_print_sense()
367 const unsigned char *sense_buffer, int sense_len) in __scsi_print_sense() argument
369 scsi_log_print_sense(sdev, name, -1, sense_buffer, sense_len); in __scsi_print_sense()
378 cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE); in scsi_print_sense()
H A Dscsi_error.c577 if (scmd->sense_buffer[2] & 0xe0) in scsi_check_sense()
586 (scmd->sense_buffer[8] == 0x4) && in scsi_check_sense()
587 (scmd->sense_buffer[11] & 0xe0)) in scsi_check_sense()
815 if (scmd->sense_buffer && SCSI_SENSE_VALID(scmd)) in scsi_eh_completed_normally()
1071 sg_init_one(&ses->sense_sgl, scmd->sense_buffer, in scsi_eh_prep_cmnd()
1098 memset(scmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_eh_prep_cmnd()
2009 if (scmd->sense_buffer && SCSI_SENSE_VALID(scmd)) in scsi_decide_disposition()
2535 return scsi_normalize_sense(cmd->sense_buffer, in scsi_command_normalize_sense()
2550 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument
2557 switch (sense_buffer[0] & 0x7f) { in scsi_get_sense_info_fld()
[all …]
H A Dsr.c315 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ in sr_done()
316 switch (SCpnt->sense_buffer[2]) { in sr_done()
320 if (!(SCpnt->sense_buffer[0] & 0x90)) in sr_done()
323 get_unaligned_be32(&SCpnt->sense_buffer[3]); in sr_done()
971 scsi_normalize_sense(scmd->sense_buffer, scmd->sense_len, in sr_read_cdda_bpc()
H A Dscsi_bsg.c80 if (copy_to_user(uptr64(hdr->response), scmd->sense_buffer, in scsi_bsg_sg_io_fn()
H A Dvmw_pvscsi.c410 if (cmd->sense_buffer) in pvscsi_patch_sense()
411 cmd->sense_buffer[0] = 0; in pvscsi_patch_sense()
437 if (cmd->sense_buffer) in pvscsi_unmap_buffers()
724 if (cmd->sense_buffer) { in pvscsi_queue_ring()
726 cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE, in pvscsi_queue_ring()
756 if (cmd->sense_buffer) { in pvscsi_queue_ring()
H A Dscsi_lib.c344 memcpy(args->sense, scmd->sense_buffer, SCSI_SENSE_BUFFERSIZE); in scsi_execute_cmd()
346 scsi_normalize_sense(scmd->sense_buffer, scmd->sense_len, in scsi_execute_cmd()
973 cmd->sense_len = min(8 + cmd->sense_buffer[7], in scsi_io_completion_nz_result()
1840 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_queue_rq()
1899 cmd->sense_buffer = in scsi_mq_init_request()
1901 if (!cmd->sense_buffer) in scsi_mq_init_request()
1913 kmem_cache_free(scsi_sense_cache, cmd->sense_buffer); in scsi_mq_init_request()
1927 kmem_cache_free(scsi_sense_cache, cmd->sense_buffer); in scsi_mq_exit_request()
3427 scsi_build_sense_buffer(desc, scmd->sense_buffer, key, asc, ascq); in scsi_build_sense()
H A Dscsi_priv.h44 (((scmd)->sense_buffer[0] & 0x70) == 0x70)
/linux/drivers/usb/storage/
H A Dtransport.c584 memcpy(srb->sense_buffer, record_not_found, in last_sector_hacks()
782 if (srb->sense_buffer[7] > (US_SENSE_SIZE - 8) && in usb_stor_invoke_transport()
785 (srb->sense_buffer[0] & 0x7C) == 0x70) { in usb_stor_invoke_transport()
795 srb->sense_buffer[7] + 8); in usb_stor_invoke_transport()
796 srb->sense_buffer[7] = (US_SENSE_SIZE - 8); in usb_stor_invoke_transport()
799 scsi_normalize_sense(srb->sense_buffer, SCSI_SENSE_BUFFERSIZE, in usb_stor_invoke_transport()
814 scdd = scsi_sense_desc_find(srb->sense_buffer, in usb_stor_invoke_transport()
816 fm_ili = (scdd ? scdd[3] : srb->sense_buffer[2]) & 0xA0; in usb_stor_invoke_transport()
832 srb->sense_buffer[0] = 0x0; in usb_stor_invoke_transport()
854 srb->sense_buffer[1] = HARDWARE_ERROR; in usb_stor_invoke_transport()
[all …]
H A Dcypress_atacb.c152 memcmp(srb->sense_buffer, usb_stor_sense_invalidCDB, in cypress_atacb_passthrough()
167 unsigned char *sb = srb->sense_buffer; in cypress_atacb_passthrough()
183 memcpy(regs, srb->sense_buffer, sizeof(regs)); in cypress_atacb_passthrough()
229 memcpy(srb->sense_buffer, in cypress_atacb_passthrough()
H A Disd200.c402 struct sense_data *buf = (struct sense_data *) &srb->sense_buffer[0]; in isd200_build_sense()
680 if ((srb->sense_buffer[2] & 0xf) == 0x0) in isd200_invoke_transport()
1450 kfree(info->srb.sense_buffer); in isd200_free_info_ptrs()
1472 info->srb.sense_buffer = kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL); in isd200_init_info()
1474 if (!info->id || !info->RegsBuf || !info->srb.sense_buffer) { in isd200_init_info()
/linux/include/scsi/
H A Dscsi_common.h82 extern bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len,
88 extern const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len,
H A Dscsi_dbg.h16 const unsigned char *sense_buffer,
H A Dscsi_eh.h27 extern bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len,
H A Dsg.h294 unsigned char sense_buffer[SG_MAX_SENSE]; /* [o] Output in 3 cases: member
/linux/drivers/xen/
H A Dxen-scsiback.c130 uint8_t sense_buffer[VSCSIIF_SENSE_BUFFERSIZE]; member
218 static void scsiback_print_status(char *sense_buffer, int errors, in scsiback_print_status() argument
348 char *sense_buffer, int32_t result, uint32_t resid, in scsiback_send_response() argument
365 if (sense_buffer != NULL && in scsiback_send_response()
366 scsi_normalize_sense(sense_buffer, VSCSIIF_SENSE_BUFFERSIZE, in scsiback_send_response()
368 len = min_t(unsigned, 8 + sense_buffer[7], in scsiback_send_response()
370 memcpy(ring_res->sense_buffer, sense_buffer, len); in scsiback_send_response()
385 static void scsiback_do_resp_with_sense(char *sense_buffer, int32_t result, in scsiback_do_resp_with_sense() argument
388 scsiback_send_response(pending_req->info, sense_buffer, result, in scsiback_do_resp_with_sense()
399 unsigned char *sense_buffer; in scsiback_cmd_done() local
[all …]
/linux/drivers/message/fusion/
H A Dmptscsih.c552 skey = sc->sense_buffer[2] & 0x0F; in mptscsih_info_scsiio()
553 asc = sc->sense_buffer[12]; in mptscsih_info_scsiio()
554 ascq = sc->sense_buffer[13]; in mptscsih_info_scsiio()
902 (sc->sense_buffer[2] & 0x20)) { in mptscsih_io_done()
905 sc->sense_buffer[3] << 24 | in mptscsih_io_done()
906 sc->sense_buffer[4] << 16 | in mptscsih_io_done()
907 sc->sense_buffer[5] << 8 | in mptscsih_io_done()
908 sc->sense_buffer[6]; in mptscsih_io_done()
909 if (((sc->sense_buffer[3] & 0x80) == in mptscsih_io_done()
912 sc->sense_buffer[2] = in mptscsih_io_done()
[all …]
/linux/include/trace/events/
H A Dtarget.h198 min(18, ((u8 *) cmd->sense_buffer)[SPC_ADD_SENSE_LEN_OFFSET] + 8) : 0;
200 memcpy(__entry->sense_data, cmd->sense_buffer, __entry->sense_length);
/linux/include/xen/interface/io/
H A Dvscsiif.h276 uint8_t sense_buffer[VSCSIIF_SENSE_BUFFERSIZE]; member
/linux/include/uapi/linux/
H A Dtarget_core_user.h129 char sense_buffer[TCMU_SENSE_BUFFERSIZE]; member
/linux/drivers/scsi/aacraid/
H A Daachba.c1212 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_bounds_32()
2380 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback()
2388 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback()
2401 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback()
2476 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_read()
2567 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_write()
2630 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in synchronize_callback()
2852 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_scsi_cmd()
2933 memcpy(scsicmd->sense_buffer, in aac_scsi_cmd()
3191 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_scsi_cmd()
[all …]
/linux/drivers/scsi/qedf/
H A Dqedf_io.c151 if (io_req->sense_buffer) in qedf_cmd_mgr_free()
153 QEDF_SCSI_SENSE_BUFFERSIZE, io_req->sense_buffer, in qedf_cmd_mgr_free()
223 io_req->sense_buffer = dma_alloc_coherent(&qedf->pdev->dev, in qedf_cmd_mgr_alloc()
226 if (!io_req->sense_buffer) { in qedf_cmd_mgr_alloc()
1083 rsp_info = sense_data = io_req->sense_buffer; in qedf_parse_fcp_rsp()
1102 if (sc_cmd && sc_cmd->sense_buffer) { in qedf_parse_fcp_rsp()
1103 memset(sc_cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in qedf_parse_fcp_rsp()
1105 memcpy(sc_cmd->sense_buffer, sense_data, in qedf_parse_fcp_rsp()
1377 if (!sc_cmd->sense_buffer) { in qedf_scsi_done()
1384 if (!virt_addr_valid(sc_cmd->sense_buffer)) { in qedf_scsi_done()
/linux/drivers/scsi/elx/efct/
H A Defct_lio.h108 unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER]; member
/linux/drivers/scsi/qedi/
H A Dqedi_iscsi.h186 unsigned char *sense_buffer; member

12345