/kernel/linux/linux-5.10/drivers/scsi/ |
D | scsi_common.c | 138 bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, in scsi_normalize_sense() argument 143 if (!sense_buffer || !sb_len) in scsi_normalize_sense() 146 sshdr->response_code = (sense_buffer[0] & 0x7f); in scsi_normalize_sense() 156 sshdr->sense_key = (sense_buffer[1] & 0xf); in scsi_normalize_sense() 158 sshdr->asc = sense_buffer[2]; in scsi_normalize_sense() 160 sshdr->ascq = sense_buffer[3]; in scsi_normalize_sense() 162 sshdr->additional_length = sense_buffer[7]; in scsi_normalize_sense() 168 sshdr->sense_key = (sense_buffer[2] & 0xf); in scsi_normalize_sense() 170 sb_len = (sb_len < (sense_buffer[7] + 8)) ? in scsi_normalize_sense() 171 sb_len : (sense_buffer[7] + 8); in scsi_normalize_sense() [all …]
|
D | scsi_logging.c | 293 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() 377 cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE); in scsi_print_sense()
|
D | ps3rom.c | 237 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in ps3rom_queuecommand_lck() 239 cmd->sense_buffer[0] = 0x70; in ps3rom_queuecommand_lck() 240 cmd->sense_buffer[2] = ILLEGAL_REQUEST; in ps3rom_queuecommand_lck() 322 scsi_build_sense_buffer(0, cmd->sense_buffer, sense_key, asc, ascq); in ps3rom_interrupt()
|
D | scsi_error.c | 517 if (scmd->sense_buffer[2] & 0xe0) in scsi_check_sense() 526 (scmd->sense_buffer[8] == 0x4) && in scsi_check_sense() 527 (scmd->sense_buffer[11] & 0xe0)) in scsi_check_sense() 986 sg_init_one(&ses->sense_sgl, scmd->sense_buffer, in scsi_eh_prep_cmnd() 1013 memset(scmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_eh_prep_cmnd() 2432 return scsi_normalize_sense(cmd->sense_buffer, in scsi_command_normalize_sense() 2447 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument 2454 switch (sense_buffer[0] & 0x7f) { in scsi_get_sense_info_fld() 2457 if (sense_buffer[0] & 0x80) { in scsi_get_sense_info_fld() 2458 *info_out = get_unaligned_be32(&sense_buffer[3]); in scsi_get_sense_info_fld() [all …]
|
D | myrb.c | 1403 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_request_sense() 1405 scsi_sg_copy_from_buffer(scmd, scmd->sense_buffer, in myrb_request_sense() 1453 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1471 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1485 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1495 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1512 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1525 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1542 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1559 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() [all …]
|
D | scsi_lib.c | 68 unsigned char *sense_buffer) in scsi_free_sense_buffer() argument 71 sense_buffer); in scsi_free_sense_buffer() 865 min(8 + cmd->sense_buffer[7], in scsi_io_completion_nz_result() 1136 void *buf = cmd->sense_buffer; in scsi_init_command() 1163 cmd->sense_buffer = buf; in scsi_init_command() 1683 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_queue_rq() 1748 cmd->sense_buffer = scsi_alloc_sense_buffer(unchecked_isa_dma, in scsi_mq_init_request() 1750 if (!cmd->sense_buffer) in scsi_mq_init_request() 1752 cmd->req.sense = cmd->sense_buffer; in scsi_mq_init_request() 1764 cmd->sense_buffer); in scsi_mq_init_request() [all …]
|
D | vmw_pvscsi.c | 412 if (cmd->sense_buffer) in pvscsi_patch_sense() 413 cmd->sense_buffer[0] = 0; in pvscsi_patch_sense() 439 if (cmd->sense_buffer) in pvscsi_unmap_buffers() 582 cmd->sense_buffer) in pvscsi_complete_request() 732 if (cmd->sense_buffer) { in pvscsi_queue_ring() 734 cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE, in pvscsi_queue_ring() 764 if (cmd->sense_buffer) { in pvscsi_queue_ring()
|
D | gdth.c | 345 scp->sense_buffer = kzalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL); in __gdth_execute() 346 if (!scp->sense_buffer) { in __gdth_execute() 370 kfree(scp->sense_buffer); in __gdth_execute() 1677 memset((char*)nscp->sense_buffer,0,16); in gdth_next() 1678 nscp->sense_buffer[0] = 0x70; in gdth_next() 1679 nscp->sense_buffer[2] = NOT_READY; in gdth_next() 1722 memset((char*)nscp->sense_buffer,0,16); in gdth_next() 1723 nscp->sense_buffer[0] = 0x70; in gdth_next() 1724 nscp->sense_buffer[2] = UNIT_ATTENTION; in gdth_next() 1741 nscp->sense_buffer[0] = 0; in gdth_next() [all …]
|
D | sr.c | 344 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ in sr_done() 345 switch (SCpnt->sense_buffer[2]) { in sr_done() 349 if (!(SCpnt->sense_buffer[0] & 0x90)) in sr_done() 352 get_unaligned_be32(&SCpnt->sense_buffer[3]); in sr_done()
|
/kernel/linux/linux-5.10/drivers/usb/storage/ |
D | transport.c | 579 memcpy(srb->sense_buffer, record_not_found, in last_sector_hacks() 777 if (srb->sense_buffer[7] > (US_SENSE_SIZE - 8) && in usb_stor_invoke_transport() 780 (srb->sense_buffer[0] & 0x7C) == 0x70) { in usb_stor_invoke_transport() 790 srb->sense_buffer[7] + 8); in usb_stor_invoke_transport() 791 srb->sense_buffer[7] = (US_SENSE_SIZE - 8); in usb_stor_invoke_transport() 794 scsi_normalize_sense(srb->sense_buffer, SCSI_SENSE_BUFFERSIZE, in usb_stor_invoke_transport() 809 scdd = scsi_sense_desc_find(srb->sense_buffer, in usb_stor_invoke_transport() 811 fm_ili = (scdd ? scdd[3] : srb->sense_buffer[2]) & 0xA0; in usb_stor_invoke_transport() 827 srb->sense_buffer[0] = 0x0; in usb_stor_invoke_transport() 849 srb->sense_buffer[1] = HARDWARE_ERROR; in usb_stor_invoke_transport() [all …]
|
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()
|
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()
|
/kernel/linux/linux-5.10/include/scsi/ |
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,
|
D | scsi_dbg.h | 16 const unsigned char *sense_buffer,
|
D | scsi_eh.h | 27 extern bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len,
|
D | sg.h | 265 unsigned char sense_buffer[SG_MAX_SENSE]; /* [o] Output in 3 cases: member
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | xen-scsiback.c | 132 uint8_t sense_buffer[VSCSIIF_SENSE_BUFFERSIZE]; member 220 static void scsiback_print_status(char *sense_buffer, int errors, in scsiback_print_status() argument 286 char *sense_buffer, int32_t result, uint32_t resid, in scsiback_send_response() argument 303 if (sense_buffer != NULL && in scsiback_send_response() 304 scsi_normalize_sense(sense_buffer, VSCSIIF_SENSE_BUFFERSIZE, in scsiback_send_response() 306 len = min_t(unsigned, 8 + sense_buffer[7], in scsiback_send_response() 308 memcpy(ring_res->sense_buffer, sense_buffer, len); in scsiback_send_response() 323 static void scsiback_do_resp_with_sense(char *sense_buffer, int32_t result, in scsiback_do_resp_with_sense() argument 326 scsiback_send_response(pending_req->info, sense_buffer, result, in scsiback_do_resp_with_sense() 337 unsigned char *sense_buffer; in scsiback_cmd_done() local [all …]
|
/kernel/linux/linux-5.10/include/xen/interface/io/ |
D | vscsiif.h | 220 uint8_t sense_buffer[VSCSIIF_SENSE_BUFFERSIZE]; member
|
/kernel/linux/linux-5.10/drivers/message/fusion/ |
D | mptscsih.c | 552 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 …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
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);
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | target_core_user.h | 69 char sense_buffer[TCMU_SENSE_BUFFERSIZE]; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | target_core_user.h | 73 char sense_buffer[TCMU_SENSE_BUFFERSIZE]; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | target_core_user.h | 127 char sense_buffer[TCMU_SENSE_BUFFERSIZE]; member
|
/kernel/linux/linux-5.10/drivers/scsi/aacraid/ |
D | aachba.c | 1199 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_bounds_32() 2376 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback() 2385 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() 2475 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() 2632 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in synchronize_callback() 2855 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_scsi_cmd() 2945 memcpy(scsicmd->sense_buffer, in aac_scsi_cmd() 3208 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_scsi_cmd() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/qedf/ |
D | qedf_io.c | 156 if (io_req->sense_buffer) in qedf_cmd_mgr_free() 158 QEDF_SCSI_SENSE_BUFFERSIZE, io_req->sense_buffer, in qedf_cmd_mgr_free() 228 io_req->sense_buffer = dma_alloc_coherent(&qedf->pdev->dev, in qedf_cmd_mgr_alloc() 231 if (!io_req->sense_buffer) { in qedf_cmd_mgr_alloc() 1086 rsp_info = sense_data = io_req->sense_buffer; in qedf_parse_fcp_rsp() 1105 if (sc_cmd->sense_buffer) { in qedf_parse_fcp_rsp() 1106 memset(sc_cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in qedf_parse_fcp_rsp() 1108 memcpy(sc_cmd->sense_buffer, sense_data, in qedf_parse_fcp_rsp() 1386 if (!sc_cmd->sense_buffer) { in qedf_scsi_done() 1393 if (!virt_addr_valid(sc_cmd->sense_buffer)) { in qedf_scsi_done()
|