/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 | 297 const unsigned char *sense_buffer, int sense_len) in scsi_log_dump_sense() argument 313 hex_dump_to_buffer(&sense_buffer[i], len, 16, 1, in scsi_log_dump_sense() 348 const unsigned char *sense_buffer, int sense_len) in scsi_log_print_sense() argument 352 if (scsi_normalize_sense(sense_buffer, sense_len, &sshdr)) in scsi_log_print_sense() 355 scsi_log_dump_sense(sdev, name, tag, sense_buffer, sense_len); in scsi_log_print_sense() 371 const unsigned char *sense_buffer, int sense_len) in __scsi_print_sense() argument 373 scsi_log_print_sense(sdev, name, -1, sense_buffer, sense_len); in __scsi_print_sense() 381 cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE); in scsi_print_sense()
|
D | sr.c | 340 (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ in sr_done() 341 switch (SCpnt->sense_buffer[2]) { in sr_done() 345 if (!(SCpnt->sense_buffer[0] & 0x90)) in sr_done() 347 error_sector = (SCpnt->sense_buffer[3] << 24) | in sr_done() 348 (SCpnt->sense_buffer[4] << 16) | in sr_done() 349 (SCpnt->sense_buffer[5] << 8) | in sr_done() 350 SCpnt->sense_buffer[6]; in sr_done()
|
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() 2426 return scsi_normalize_sense(cmd->sense_buffer, in scsi_command_normalize_sense() 2441 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument 2448 switch (sense_buffer[0] & 0x7f) { in scsi_get_sense_info_fld() 2451 if (sense_buffer[0] & 0x80) { in scsi_get_sense_info_fld() 2452 *info_out = get_unaligned_be32(&sense_buffer[3]); in scsi_get_sense_info_fld() [all …]
|
D | myrb.c | 1402 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_request_sense() 1404 scsi_sg_copy_from_buffer(scmd, scmd->sense_buffer, in myrb_request_sense() 1452 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1470 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1484 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1494 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1511 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1524 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1541 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() 1558 scsi_build_sense_buffer(0, scmd->sense_buffer, in myrb_ldev_queuecommand() [all …]
|
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 | scsi_lib.c | 69 unsigned char *sense_buffer) in scsi_free_sense_buffer() argument 72 sense_buffer); in scsi_free_sense_buffer() 318 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_init_cmd_errh() 853 min(8 + cmd->sense_buffer[7], in scsi_io_completion_nz_result() 1136 void *buf = cmd->sense_buffer; in scsi_init_command() 1155 cmd->sense_buffer = buf; in scsi_init_command() 1749 cmd->sense_buffer = scsi_alloc_sense_buffer(unchecked_isa_dma, in scsi_mq_init_request() 1751 if (!cmd->sense_buffer) in scsi_mq_init_request() 1753 cmd->req.sense = cmd->sense_buffer; in scsi_mq_init_request() 1770 cmd->sense_buffer); in scsi_mq_exit_request()
|
D | stex.c | 299 void *sense_buffer; member 404 scsi_build_sense_buffer(0, cmd->sense_buffer, ILLEGAL_REQUEST, 0x24, in stex_invalid_field() 716 hba->ccb[tag].sense_buffer = cmd->sense_buffer; in stex_queuecommand_lck() 775 if (ccb->sense_buffer != NULL) in stex_copy_data() 776 memcpy(ccb->sense_buffer, resp->variable, in stex_copy_data() 1898 hba->ccb[tag].sense_buffer = NULL; in stex_hba_stop()
|
D | vmw_pvscsi.c | 428 if (cmd->sense_buffer) in pvscsi_unmap_buffers() 569 cmd->sense_buffer) in pvscsi_complete_request() 710 if (cmd->sense_buffer) { in pvscsi_queue_ring() 712 cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE, in pvscsi_queue_ring() 742 if (cmd->sense_buffer) { in pvscsi_queue_ring()
|
D | scsi_priv.h | 25 (((scmd)->sense_buffer[0] & 0x70) == 0x70)
|
D | 3w-xxxx.c | 418 tw_dev->srb[request_id]->sense_buffer[0] = (0x1 << 7 | 0x70); in tw_decode_sense() 421 tw_dev->srb[request_id]->sense_buffer[2] = tw_sense_table[i][1]; in tw_decode_sense() 424 tw_dev->srb[request_id]->sense_buffer[7] = 0xa; /* 10 bytes */ in tw_decode_sense() 427 tw_dev->srb[request_id]->sense_buffer[12] = tw_sense_table[i][2]; in tw_decode_sense() 430 tw_dev->srb[request_id]->sense_buffer[13] = tw_sense_table[i][3]; in tw_decode_sense() 1985 scsi_build_sense_buffer(1, SCpnt->sense_buffer, ILLEGAL_REQUEST, 0x20, 0); in tw_scsi_queue_lck()
|
/drivers/usb/storage/ |
D | transport.c | 579 memcpy(srb->sense_buffer, record_not_found, in last_sector_hacks() 770 if (srb->sense_buffer[7] > (US_SENSE_SIZE - 8) && in usb_stor_invoke_transport() 773 (srb->sense_buffer[0] & 0x7C) == 0x70) { in usb_stor_invoke_transport() 783 srb->sense_buffer[7] + 8); in usb_stor_invoke_transport() 784 srb->sense_buffer[7] = (US_SENSE_SIZE - 8); in usb_stor_invoke_transport() 787 scsi_normalize_sense(srb->sense_buffer, SCSI_SENSE_BUFFERSIZE, in usb_stor_invoke_transport() 802 scdd = scsi_sense_desc_find(srb->sense_buffer, in usb_stor_invoke_transport() 804 fm_ili = (scdd ? scdd[3] : srb->sense_buffer[2]) & 0xA0; in usb_stor_invoke_transport() 820 srb->sense_buffer[0] = 0x0; in usb_stor_invoke_transport() 842 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()
|
/drivers/xen/ |
D | xen-scsiback.c | 131 uint8_t sense_buffer[VSCSIIF_SENSE_BUFFERSIZE]; member 258 static void scsiback_print_status(char *sense_buffer, int errors, in scsiback_print_status() argument 323 char *sense_buffer, int32_t result, uint32_t resid, in scsiback_send_response() argument 340 if (sense_buffer != NULL && in scsiback_send_response() 341 scsi_normalize_sense(sense_buffer, VSCSIIF_SENSE_BUFFERSIZE, in scsiback_send_response() 343 len = min_t(unsigned, 8 + sense_buffer[7], in scsiback_send_response() 345 memcpy(ring_res->sense_buffer, sense_buffer, len); in scsiback_send_response() 360 static void scsiback_do_resp_with_sense(char *sense_buffer, int32_t result, in scsiback_do_resp_with_sense() argument 363 scsiback_send_response(pending_req->info, sense_buffer, result, in scsiback_do_resp_with_sense() 374 unsigned char *sense_buffer; in scsiback_cmd_done() local [all …]
|
/drivers/message/fusion/ |
D | mptscsih.c | 554 skey = sc->sense_buffer[2] & 0x0F; in mptscsih_info_scsiio() 555 asc = sc->sense_buffer[12]; in mptscsih_info_scsiio() 556 ascq = sc->sense_buffer[13]; in mptscsih_info_scsiio() 904 (sc->sense_buffer[2] & 0x20)) { in mptscsih_io_done() 907 sc->sense_buffer[3] << 24 | in mptscsih_io_done() 908 sc->sense_buffer[4] << 16 | in mptscsih_io_done() 909 sc->sense_buffer[5] << 8 | in mptscsih_io_done() 910 sc->sense_buffer[6]; in mptscsih_io_done() 911 if (((sc->sense_buffer[3] & 0x80) == in mptscsih_io_done() 914 sc->sense_buffer[2] = in mptscsih_io_done() [all …]
|
/drivers/scsi/qedf/ |
D | qedf_io.c | 158 if (io_req->sense_buffer) in qedf_cmd_mgr_free() 160 QEDF_SCSI_SENSE_BUFFERSIZE, io_req->sense_buffer, in qedf_cmd_mgr_free() 230 io_req->sense_buffer = dma_alloc_coherent(&qedf->pdev->dev, in qedf_cmd_mgr_alloc() 233 if (!io_req->sense_buffer) { in qedf_cmd_mgr_alloc() 1088 rsp_info = sense_data = io_req->sense_buffer; in qedf_parse_fcp_rsp() 1107 if (sc_cmd->sense_buffer) { in qedf_parse_fcp_rsp() 1108 memset(sc_cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in qedf_parse_fcp_rsp() 1110 memcpy(sc_cmd->sense_buffer, sense_data, in qedf_parse_fcp_rsp() 1370 if (!sc_cmd->sense_buffer) { in qedf_scsi_done() 1377 if (!virt_addr_valid(sc_cmd->sense_buffer)) { in qedf_scsi_done()
|
/drivers/scsi/aacraid/ |
D | aachba.c | 1195 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_bounds_32() 2373 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback() 2382 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback() 2396 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback() 2472 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_read() 2564 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_write() 2631 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in synchronize_callback() 2924 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_scsi_cmd() 3014 memcpy(scsicmd->sense_buffer, in aac_scsi_cmd() 3277 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_scsi_cmd() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_scsi.c | 2844 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST, in lpfc_calc_bg_err() 2855 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST, in lpfc_calc_bg_err() 2867 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST, in lpfc_calc_bg_err() 2931 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST, in lpfc_parse_bg_err() 2947 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST, in lpfc_parse_bg_err() 2964 scsi_build_sense_buffer(1, cmd->sense_buffer, ILLEGAL_REQUEST, in lpfc_parse_bg_err() 2985 cmd->sense_buffer[7] = 0xc; /* Additional sense length */ in lpfc_parse_bg_err() 2986 cmd->sense_buffer[8] = 0; /* Information descriptor type */ in lpfc_parse_bg_err() 2987 cmd->sense_buffer[9] = 0xa; /* Additional descriptor length */ in lpfc_parse_bg_err() 2988 cmd->sense_buffer[10] = 0x80; /* Validity bit */ in lpfc_parse_bg_err() [all …]
|
/drivers/scsi/qedi/ |
D | qedi_iscsi.h | 184 unsigned char *sense_buffer; member
|
/drivers/target/ |
D | target_core_xcopy.c | 385 unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER]; member 631 DMA_FROM_DEVICE, 0, &xpt_cmd->sense_buffer[0]); in target_xcopy_read_source() 693 DMA_TO_DEVICE, 0, &xpt_cmd->sense_buffer[0]); in target_xcopy_write_destination()
|
/drivers/ata/ |
D | libata-scsi.c | 347 scsi_build_sense_buffer(d_sense, cmd->sense_buffer, sk, asc, ascq); in ata_scsi_set_sense() 363 scsi_set_sense_information(cmd->sense_buffer, in ata_scsi_set_sense_information() 372 scsi_set_sense_field_pointer(cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE, in ata_scsi_set_invalid_field() 381 scsi_set_sense_field_pointer(cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE, in ata_scsi_set_invalid_parameter() 1072 unsigned char *sb = cmd->sense_buffer; in ata_gen_passthru_sense() 1095 scsi_build_sense_buffer(1, cmd->sense_buffer, in ata_gen_passthru_sense() 1099 if ((cmd->sense_buffer[0] & 0x7f) >= 0x72) { in ata_gen_passthru_sense() 1171 unsigned char *sb = cmd->sense_buffer; in ata_gen_ata_sense() 2816 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in atapi_request_sense() 2824 cmd->sense_buffer[0] = 0x70; in atapi_request_sense() [all …]
|
/drivers/s390/scsi/ |
D | zfcp_fc.h | 299 memcpy(scsi->sense_buffer, sense, sense_len); in zfcp_fc_eval_fcp_rsp()
|
/drivers/target/loopback/ |
D | tcm_loop.c | 575 if (se_cmd->sense_buffer && in tcm_loop_queue_status() 579 memcpy(sc->sense_buffer, se_cmd->sense_buffer, in tcm_loop_queue_status()
|