Home
last modified time | relevance | path

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

12345

/drivers/scsi/
Dscsi_common.c190 bool scsi_normalize_sense(const u8 *sense_buffer, int sb_len, in scsi_normalize_sense() argument
195 if (!sense_buffer || !sb_len) in scsi_normalize_sense()
198 sshdr->response_code = (sense_buffer[0] & 0x7f); in scsi_normalize_sense()
208 sshdr->sense_key = (sense_buffer[1] & 0xf); in scsi_normalize_sense()
210 sshdr->asc = sense_buffer[2]; in scsi_normalize_sense()
212 sshdr->ascq = sense_buffer[3]; in scsi_normalize_sense()
214 sshdr->additional_length = sense_buffer[7]; in scsi_normalize_sense()
220 sshdr->sense_key = (sense_buffer[2] & 0xf); in scsi_normalize_sense()
222 sb_len = min(sb_len, sense_buffer[7] + 8); in scsi_normalize_sense()
224 sshdr->asc = sense_buffer[12]; in scsi_normalize_sense()
[all …]
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()
Dscsi_error.c576 if (scmd->sense_buffer[2] & 0xe0) in scsi_check_sense()
585 (scmd->sense_buffer[8] == 0x4) && in scsi_check_sense()
586 (scmd->sense_buffer[11] & 0xe0)) in scsi_check_sense()
814 if (scmd->sense_buffer && SCSI_SENSE_VALID(scmd)) in scsi_eh_completed_normally()
1070 sg_init_one(&ses->sense_sgl, scmd->sense_buffer, in scsi_eh_prep_cmnd()
1097 memset(scmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_eh_prep_cmnd()
2008 if (scmd->sense_buffer && SCSI_SENSE_VALID(scmd)) in scsi_decide_disposition()
2534 return scsi_normalize_sense(cmd->sense_buffer, in scsi_command_normalize_sense()
2549 bool scsi_get_sense_info_fld(const u8 *sense_buffer, int sb_len, in scsi_get_sense_info_fld() argument
2556 switch (sense_buffer[0] & 0x7f) { in scsi_get_sense_info_fld()
[all …]
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()
961 scsi_normalize_sense(scmd->sense_buffer, scmd->sense_len, in sr_read_cdda_bpc()
Dscsi_lib.c252 memcpy(args->sense, scmd->sense_buffer, SCSI_SENSE_BUFFERSIZE); in scsi_execute_cmd()
254 scsi_normalize_sense(scmd->sense_buffer, scmd->sense_len, in scsi_execute_cmd()
881 cmd->sense_len = min(8 + cmd->sense_buffer[7], in scsi_io_completion_nz_result()
1756 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in scsi_queue_rq()
1816 cmd->sense_buffer = in scsi_mq_init_request()
1818 if (!cmd->sense_buffer) in scsi_mq_init_request()
1830 kmem_cache_free(scsi_sense_cache, cmd->sense_buffer); in scsi_mq_init_request()
1844 kmem_cache_free(scsi_sense_cache, cmd->sense_buffer); in scsi_mq_exit_request()
3335 scsi_build_sense_buffer(desc, scmd->sense_buffer, key, asc, ascq); in scsi_build_sense()
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()
Dscsi_bsg.c80 if (copy_to_user(uptr64(hdr->response), scmd->sense_buffer, in scsi_bsg_sg_io_fn()
Dscsi_ioctl.c397 if (!copy_to_user(hdr->sbp, scmd->sense_buffer, len)) in scsi_complete_sghdr_rq()
597 if (scmd->sense_len && scmd->sense_buffer) { in sg_scsi_ioctl()
599 if (copy_to_user(sic->data, scmd->sense_buffer, in sg_scsi_ioctl()
Dscsi_priv.h44 (((scmd)->sense_buffer[0] & 0x70) == 0x70)
Ddc395x.c3176 switch (cmd->sense_buffer[2] & 0x0f) { in srb_done()
3208 if (cmd->sense_buffer[7] >= 6) in srb_done()
3211 cmd->sense_buffer[2], cmd->sense_buffer[12], in srb_done()
3212 cmd->sense_buffer[13], in srb_done()
3213 *((unsigned int *)(cmd->sense_buffer + 3)), in srb_done()
3214 *((unsigned int *)(cmd->sense_buffer + 8))); in srb_done()
3217 cmd->sense_buffer[2], in srb_done()
3218 *((unsigned int *)(cmd->sense_buffer + 3))); in srb_done()
3499 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in request_sense()
3512 cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE, in request_sense()
[all …]
Dstex.c303 void *sense_buffer; member
718 hba->ccb[tag].sense_buffer = cmd->sense_buffer; in stex_queuecommand_lck()
777 if (ccb->sense_buffer != NULL) in stex_copy_data()
778 memcpy(ccb->sense_buffer, resp->variable, in stex_copy_data()
1900 hba->ccb[tag].sense_buffer = NULL; in stex_hba_stop()
D3w-xxxx.c418 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()
/drivers/usb/storage/
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 …]
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()
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()
/drivers/xen/
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 …]
/drivers/message/fusion/
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 …]
/drivers/scsi/aacraid/
Daachba.c1212 memcpy(cmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_bounds_32()
2382 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback()
2390 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback()
2403 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in io_callback()
2478 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_read()
2569 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()
2854 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_scsi_cmd()
2935 memcpy(scsicmd->sense_buffer, in aac_scsi_cmd()
3193 memcpy(scsicmd->sense_buffer, &dev->fsa_dev[cid].sense_data, in aac_scsi_cmd()
[all …]
/drivers/scsi/qedf/
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()
1079 rsp_info = sense_data = io_req->sense_buffer; in qedf_parse_fcp_rsp()
1098 if (sc_cmd->sense_buffer) { in qedf_parse_fcp_rsp()
1099 memset(sc_cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in qedf_parse_fcp_rsp()
1101 memcpy(sc_cmd->sense_buffer, sense_data, in qedf_parse_fcp_rsp()
1373 if (!sc_cmd->sense_buffer) { in qedf_scsi_done()
1380 if (!virt_addr_valid(sc_cmd->sense_buffer)) { in qedf_scsi_done()
/drivers/scsi/elx/efct/
Defct_lio.h108 unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER]; member
/drivers/target/
Dtarget_core_xcopy.c393 unsigned char sense_buffer[TRANSPORT_SENSE_BUFFER]; member
594 DMA_FROM_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0, in target_xcopy_read_source()
639 DMA_TO_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0, in target_xcopy_write_destination()
/drivers/scsi/qedi/
Dqedi_iscsi.h186 unsigned char *sense_buffer; member
/drivers/target/loopback/
Dtcm_loop.c521 if (se_cmd->sense_buffer && in tcm_loop_queue_data_or_status()
525 memcpy(sc->sense_buffer, se_cmd->sense_buffer, in tcm_loop_queue_data_or_status()
/drivers/s390/scsi/
Dzfcp_fc.h300 memcpy(scsi->sense_buffer, sense, sense_len); in zfcp_fc_eval_fcp_rsp()
/drivers/scsi/qla4xxx/
Dql4_isr.c25 memset(cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); in qla4xxx_copy_sense()
38 srb->req_sense_ptr = cmd->sense_buffer; in qla4xxx_copy_sense()
43 memcpy(cmd->sense_buffer, sts_entry->senseData, sense_len); in qla4xxx_copy_sense()
54 DEBUG5(qla4xxx_dump_buffer(cmd->sense_buffer, sense_len)); in qla4xxx_copy_sense()

12345