/linux/drivers/scsi/ |
A D | scsi_common.c | 152 if (!sense_buffer || !sb_len) 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() 180 sb_len : (sense_buffer[7] + 8); in scsi_normalize_sense() 182 sshdr->asc = sense_buffer[12]; in scsi_normalize_sense() 184 sshdr->ascq = sense_buffer[13]; in scsi_normalize_sense() 213 if ((sense_buffer[0] < 0x72) || (sense_buffer[0] > 0x73)) in scsi_sense_desc_find() [all …]
|
A D | scsi_logging.c | 294 const unsigned char *sense_buffer, int sense_len) in scsi_log_dump_sense() argument 310 hex_dump_to_buffer(&sense_buffer[i], len, 16, 1, in scsi_log_dump_sense() 345 const unsigned char *sense_buffer, int sense_len) in scsi_log_print_sense() argument 349 if (scsi_normalize_sense(sense_buffer, sense_len, &sshdr)) in scsi_log_print_sense() 352 scsi_log_dump_sense(sdev, name, tag, sense_buffer, sense_len); in scsi_log_print_sense() 368 const unsigned char *sense_buffer, int sense_len) in __scsi_print_sense() argument 370 scsi_log_print_sense(sdev, name, -1, sense_buffer, sense_len); in __scsi_print_sense() 379 cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE); in scsi_print_sense()
|
A D | scsi_error.c | 561 if (scmd->sense_buffer[2] & 0xe0) in scsi_check_sense() 570 (scmd->sense_buffer[8] == 0x4) && in scsi_check_sense() 571 (scmd->sense_buffer[11] & 0xe0)) in scsi_check_sense() 1024 sg_init_one(&ses->sense_sgl, scmd->sense_buffer, in scsi_eh_prep_cmnd() 1051 memset(scmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_eh_prep_cmnd() 2469 return scsi_normalize_sense(cmd->sense_buffer, in scsi_command_normalize_sense() 2484 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument 2491 switch (sense_buffer[0] & 0x7f) { in scsi_get_sense_info_fld() 2494 if (sense_buffer[0] & 0x80) { in scsi_get_sense_info_fld() 2495 *info_out = get_unaligned_be32(&sense_buffer[3]); in scsi_get_sense_info_fld() [all …]
|
A D | scsi_lib.c | 837 min(8 + cmd->sense_buffer[7], in scsi_io_completion_nz_result() 1125 void *buf = cmd->sense_buffer; in scsi_init_command() 1153 cmd->sense_buffer = buf; in scsi_init_command() 1704 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_queue_rq() 1772 cmd->sense_buffer = in scsi_mq_init_request() 1774 if (!cmd->sense_buffer) in scsi_mq_init_request() 1776 cmd->req.sense = cmd->sense_buffer; in scsi_mq_init_request() 1787 kmem_cache_free(scsi_sense_cache, cmd->sense_buffer); in scsi_mq_init_request() 1801 kmem_cache_free(scsi_sense_cache, cmd->sense_buffer); in scsi_mq_exit_request() 3279 scsi_build_sense_buffer(desc, scmd->sense_buffer, key, asc, ascq); in scsi_build_sense()
|
A D | sr.c | 351 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ in sr_done() 352 switch (SCpnt->sense_buffer[2]) { in sr_done() 356 if (!(SCpnt->sense_buffer[0] & 0x90)) in sr_done() 359 get_unaligned_be32(&SCpnt->sense_buffer[3]); in sr_done()
|
A D | vmw_pvscsi.c | 410 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()
|
A D | scsi_priv.h | 28 (((scmd)->sense_buffer[0] & 0x70) == 0x70)
|
/linux/drivers/usb/storage/ |
A D | transport.c | 584 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() 814 scdd = scsi_sense_desc_find(srb->sense_buffer, 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() 856 srb->sense_buffer[2] = HARDWARE_ERROR; in usb_stor_invoke_transport() 886 srb->sense_buffer[0] = 0; in usb_stor_invoke_transport() [all …]
|
A D | cypress_atacb.c | 152 memcmp(srb->sense_buffer, usb_stor_sense_invalidCDB, in cypress_atacb_passthrough() 167 unsigned char *sb = srb->sense_buffer; in cypress_atacb_passthrough() 184 memcpy(regs, srb->sense_buffer, sizeof(regs)); in cypress_atacb_passthrough() 230 memcpy(srb->sense_buffer, in cypress_atacb_passthrough()
|
A D | isd200.c | 402 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() 1442 kfree(info->srb.sense_buffer); in isd200_free_info_ptrs() 1464 info->srb.sense_buffer = kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL); in isd200_init_info() 1466 if (!info->id || !info->RegsBuf || !info->srb.sense_buffer) { in isd200_init_info()
|
/linux/drivers/xen/ |
A D | xen-scsiback.c | 130 uint8_t sense_buffer[VSCSIIF_SENSE_BUFFERSIZE]; member 284 char *sense_buffer, int32_t result, uint32_t resid, in scsiback_send_response() argument 301 if (sense_buffer != NULL && in scsiback_send_response() 304 len = min_t(unsigned, 8 + sense_buffer[7], in scsiback_send_response() 306 memcpy(ring_res->sense_buffer, sense_buffer, len); in scsiback_send_response() 335 unsigned char *sense_buffer; in scsiback_cmd_done() local 339 sense_buffer = pending_req->sense_buffer; in scsiback_cmd_done() 344 scsiback_print_status(sense_buffer, errors, pending_req); in scsiback_cmd_done() 364 target_init_cmd(se_cmd, sess, pending_req->sense_buffer, in scsiback_cmd_exec() 563 &pending_req->sense_buffer[0], in scsiback_device_action() [all …]
|
/linux/include/scsi/ |
A D | scsi_common.h | 69 extern bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, 75 extern const u8 * scsi_sense_desc_find(const u8 * sense_buffer, int sb_len,
|
A D | scsi_dbg.h | 16 const unsigned char *sense_buffer,
|
A D | scsi_eh.h | 27 extern bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len,
|
A D | sg.h | 298 unsigned char sense_buffer[SG_MAX_SENSE]; /* [o] Output in 3 cases: member
|
/linux/drivers/message/fusion/ |
A D | mptscsih.c | 553 asc = sc->sense_buffer[12]; in mptscsih_info_scsiio() 554 ascq = sc->sense_buffer[13]; in mptscsih_info_scsiio() 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() 912 sc->sense_buffer[2] = in mptscsih_io_done() 914 sc->sense_buffer[12] = 0xff; in mptscsih_io_done() 915 sc->sense_buffer[13] = 0xff; in mptscsih_io_done() 927 sc->sense_buffer[2] = in mptscsih_io_done() [all …]
|
/linux/include/trace/events/ |
A D | target.h | 198 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/ |
A D | vscsiif.h | 203 uint8_t sense_buffer[VSCSIIF_SENSE_BUFFERSIZE]; member
|
/linux/drivers/scsi/aacraid/ |
A D | aachba.c | 1208 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_bounds_32() 2378 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback() 2386 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback() 2399 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback() 2474 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_read() 2628 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in synchronize_callback() 2931 memcpy(scsicmd->sense_buffer, in aac_scsi_cmd() 3214 memcpy(scsicmd->sense_buffer, in aac_scsi_cmd() 3421 memcpy(scsicmd->sense_buffer, in aac_srb_callback() 3550 memcpy(scsicmd->sense_buffer, in aac_srb_callback() [all …]
|
/linux/drivers/scsi/qedf/ |
A D | qedf_io.c | 151 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() 1081 rsp_info = sense_data = io_req->sense_buffer; in qedf_parse_fcp_rsp() 1100 if (sc_cmd->sense_buffer) { in qedf_parse_fcp_rsp() 1101 memset(sc_cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in qedf_parse_fcp_rsp() 1103 memcpy(sc_cmd->sense_buffer, sense_data, in qedf_parse_fcp_rsp() 1375 if (!sc_cmd->sense_buffer) { in qedf_scsi_done() 1382 if (!virt_addr_valid(sc_cmd->sense_buffer)) { in qedf_scsi_done()
|
/linux/include/uapi/linux/ |
A D | target_core_user.h | 129 char sense_buffer[TCMU_SENSE_BUFFERSIZE]; member
|
/linux/Documentation/core-api/ |
A D | bus-virt-phys-mapping.rst | 119 /* ask the controller to read the sense status into "sense_buffer" */ 120 mbox.bufstart = virt_to_bus(&sense_buffer); 121 mbox.buflen = sizeof(sense_buffer);
|
/linux/drivers/scsi/elx/efct/ |
A D | efct_lio.h | 108 unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER]; member
|
/linux/drivers/target/ |
A D | target_core_xcopy.c | 393 unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER]; member 605 DMA_FROM_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0); in target_xcopy_read_source() 650 DMA_TO_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0); in target_xcopy_write_destination()
|
/linux/drivers/scsi/qedi/ |
A D | qedi_iscsi.h | 186 unsigned char *sense_buffer; member
|