Home
last modified time | relevance | path

Searched refs:sense_len (Results 1 – 25 of 43) sorted by relevance

12

/drivers/scsi/
Dmyrs.h696 unsigned char sense_len; /* Byte 20 */ member
709 unsigned char sense_len; /* Byte 20 */ member
722 unsigned char sense_len; /* Byte 20 */ member
738 unsigned char sense_len; /* Byte 20 */ member
752 unsigned char sense_len; /* Byte 20 */ member
766 unsigned char sense_len; /* Byte 20 */ member
781 unsigned char sense_len; /* Byte 20 */ member
799 unsigned char sense_len; /* Byte 20 */ member
814 unsigned char sense_len; /* Byte 20 */ member
833 unsigned char sense_len; /* Byte 20 */ member
[all …]
Dscsi_logging.c294 const unsigned char *sense_buffer, int sense_len) in scsi_log_dump_sense() argument
304 for (i = 0; i < sense_len; i += 16) { in scsi_log_dump_sense()
305 int len = min(sense_len - i, 16); 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()
Dscsi_bsg.c78 if (sreq->sense_len && hdr->response) { in scsi_bsg_sg_io_fn()
80 sreq->sense_len); in scsi_bsg_sg_io_fn()
Dmyrs.c562 mbox->set_mbox.sense_len = 0; in myrs_enable_mmio_mbox()
1655 mbox->SCSI_10.sense_len = MYRS_SENSE_SIZE; in myrs_queuecommand()
1701 mbox->SCSI_255.sense_len = MYRS_SENSE_SIZE; in myrs_queuecommand()
2055 if (status == MYRS_STATUS_FAILED && cmd_blk->sense_len) { in myrs_handle_scsi()
2056 unsigned int sense_len = SCSI_SENSE_BUFFERSIZE; in myrs_handle_scsi() local
2058 if (sense_len > cmd_blk->sense_len) in myrs_handle_scsi()
2059 sense_len = cmd_blk->sense_len; in myrs_handle_scsi()
2060 memcpy(scmd->sense_buffer, cmd_blk->sense, sense_len); in myrs_handle_scsi()
2597 cmd_blk->sense_len = next_stat_mbox->sense_len; in DAC960_GEM_intr_handler()
2816 cmd_blk->sense_len = next_stat_mbox->sense_len; in DAC960_BA_intr_handler()
[all …]
Dscsi_ioctl.c395 if (req->sense_len && hdr->sbp) { in scsi_complete_sghdr_rq()
396 int len = min((unsigned int) hdr->mx_sb_len, req->sense_len); in scsi_complete_sghdr_rq()
627 if (req->sense_len && req->sense) { in sg_scsi_ioctl()
628 bytes = (OMAX_SB_LEN > req->sense_len) ? in sg_scsi_ioctl()
629 req->sense_len : OMAX_SB_LEN; in sg_scsi_ioctl()
Dxen-scsifront.c252 uint8_t sense_len; in scsifront_cdb_cmd_done() local
272 sense_len = min_t(uint8_t, VSCSIIF_SENSE_BUFFERSIZE, in scsifront_cdb_cmd_done()
273 ring_rsp->sense_len); in scsifront_cdb_cmd_done()
275 if (sense_len) in scsifront_cdb_cmd_done()
276 memcpy(sc->sense_buffer, ring_rsp->sense_buffer, sense_len); in scsifront_cdb_cmd_done()
390 resp.sense_len = 0; in scsifront_finish_all()
Dvirtio_scsi.c116 sc, resp->response, resp->status, resp->sense_len); in virtscsi_complete_cmd()
157 WARN_ON(virtio32_to_cpu(vscsi->vdev, resp->sense_len) > in virtscsi_complete_cmd()
159 if (resp->sense_len) { in virtscsi_complete_cmd()
162 virtio32_to_cpu(vscsi->vdev, resp->sense_len), in virtscsi_complete_cmd()
Da100u2w.h161 u8 sense_len; /*20 Sense Allocation Length */ member
Dscsi_lib.c256 if (sense && rq->sense_len) in __scsi_execute()
259 scsi_normalize_sense(rq->sense, rq->sense_len, sshdr); in __scsi_execute()
837 scsi_req(req)->sense_len = in scsi_io_completion_nz_result()
1095 req->sense_len = 0; in scsi_initialize_rq()
Dmyrb.h553 unsigned char sense_len; /* Byte 9 */ member
Dhpsa.c378 int sense_len; in check_for_unit_attention() local
381 sense_len = sizeof(c->err_info->SenseInfo); in check_for_unit_attention()
383 sense_len = c->err_info->SenseLen; in check_for_unit_attention()
385 decode_sense_data(c->err_info->SenseInfo, sense_len, in check_for_unit_attention()
2930 int sense_len; in hpsa_scsi_interpret_error() local
2935 sense_len = sizeof(ei->SenseInfo); in hpsa_scsi_interpret_error()
2937 sense_len = ei->SenseLen; in hpsa_scsi_interpret_error()
2938 decode_sense_data(ei->SenseInfo, sense_len, in hpsa_scsi_interpret_error()
3882 int sense_len; in hpsa_volume_offline() local
3899 sense_len = sizeof(c->err_info->SenseInfo); in hpsa_volume_offline()
[all …]
/drivers/scsi/qla4xxx/
Dql4_isr.c23 uint16_t sense_len; in qla4xxx_copy_sense() local
26 sense_len = le16_to_cpu(sts_entry->senseDataByteCnt); in qla4xxx_copy_sense()
27 if (sense_len == 0) { in qla4xxx_copy_sense()
37 sense_len = min_t(uint16_t, sense_len, SCSI_SENSE_BUFFERSIZE); in qla4xxx_copy_sense()
39 srb->req_sense_len = sense_len; in qla4xxx_copy_sense()
42 sense_len = min_t(uint16_t, sense_len, IOCB_MAX_SENSEDATA_LEN); 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()
58 srb->req_sense_ptr += sense_len; in qla4xxx_copy_sense()
59 srb->req_sense_len -= sense_len; in qla4xxx_copy_sense()
[all …]
/drivers/scsi/snic/
Dsnic_res.h31 dma_addr_t sns_addr_pa, u32 sense_len) in snic_icmnd_init() argument
44 req->u.icmnd.sense_len = cpu_to_le32(sense_len); in snic_icmnd_init()
Dsnic_fwint.h270 __le32 sense_len; /* Sense buffer length */ member
299 __le16 sense_len; /* Sense Length */ member
/drivers/scsi/qla2xxx/
Dqla_mr.c2104 uint32_t sense_len, struct rsp_que *rsp, int res) in qlafx00_handle_sense() argument
2110 SET_FW_SENSE_LEN(sp, sense_len); in qlafx00_handle_sense()
2112 if (sense_len >= SCSI_SENSE_BUFFERSIZE) in qlafx00_handle_sense()
2113 sense_len = SCSI_SENSE_BUFFERSIZE; in qlafx00_handle_sense()
2115 SET_CMD_SENSE_LEN(sp, sense_len); in qlafx00_handle_sense()
2117 track_sense_len = sense_len; in qlafx00_handle_sense()
2119 if (sense_len > par_sense_len) in qlafx00_handle_sense()
2120 sense_len = par_sense_len; in qlafx00_handle_sense()
2122 memcpy(cp->sense_buffer, sense_data, sense_len); in qlafx00_handle_sense()
2124 SET_FW_SENSE_LEN(sp, GET_FW_SENSE_LEN(sp) - sense_len); in qlafx00_handle_sense()
[all …]
Dqla_isr.c2807 uint32_t sense_len, struct rsp_que *rsp, int res) in qla2x00_handle_sense() argument
2813 if (sense_len >= SCSI_SENSE_BUFFERSIZE) in qla2x00_handle_sense()
2814 sense_len = SCSI_SENSE_BUFFERSIZE; in qla2x00_handle_sense()
2816 SET_CMD_SENSE_LEN(sp, sense_len); in qla2x00_handle_sense()
2818 track_sense_len = sense_len; in qla2x00_handle_sense()
2820 if (sense_len > par_sense_len) in qla2x00_handle_sense()
2821 sense_len = par_sense_len; in qla2x00_handle_sense()
2823 memcpy(cp->sense_buffer, sense_data, sense_len); in qla2x00_handle_sense()
2825 SET_CMD_SENSE_PTR(sp, cp->sense_buffer + sense_len); in qla2x00_handle_sense()
2826 track_sense_len -= sense_len; in qla2x00_handle_sense()
[all …]
Dqla_mr.h74 uint32_t sense_len; /* FCP SENSE length. */ member
/drivers/s390/scsi/
Dzfcp_fc.h277 u32 sense_len, resid; in zfcp_fc_eval_fcp_rsp() local
298 sense_len = min_t(u32, be32_to_cpu(fcp_rsp->ext.fr_sns_len), in zfcp_fc_eval_fcp_rsp()
300 memcpy(scsi->sense_buffer, sense, sense_len); in zfcp_fc_eval_fcp_rsp()
/drivers/scsi/fnic/
Dfcpio.h208 u32 sense_len; /* sense buffer length */ member
256 u32 sense_len; /* sense buffer length */ member
350 u32 sense_len; /* sense data buffer length */ member
507 u32 sense_len; /* SCSI sense length */ member
Dfnic_res.h82 u32 sgl_cnt, u32 sense_len, in fnic_queue_wq_copy_desc_icmnd_16() argument
104 desc->u.icmnd_16.sense_len = sense_len; /* sense buffer length */ in fnic_queue_wq_copy_desc_icmnd_16()
/drivers/scsi/esas2r/
Desas2r_int.c884 snslen = snslen2 = rq->func_rsp.scsi_rsp.sense_len; in esas2r_check_req_rsp_sense()
886 if (snslen > rq->sense_len) in esas2r_check_req_rsp_sense()
887 snslen = rq->sense_len; in esas2r_check_req_rsp_sense()
915 rq->sense_len = snslen; in esas2r_check_req_rsp_sense()
Datvda.h1036 u8 sense_len; member
1233 u8 sense_len; member
Desas2r_main.c856 rq->sense_len = SCSI_SENSE_BUFFERSIZE; in esas2r_queuecommand()
938 ar->sense_len = 0; in esas2r_check_active_queue()
1205 if (rq->func_rsp.scsi_rsp.sense_len >= 13) { in esas2r_log_request_failure()
Desas2r.h668 u8 sense_len; member
1250 vrq->scsi.sense_len = SENSE_DATA_SZ; in esas2r_rq_init_request()
/drivers/scsi/megaraid/
Dmegaraid_sas.h1733 u8 sense_len; /*01h */ member
1845 u8 sense_len; /*01h */ member
1874 u8 sense_len; /*01h */ member
2612 u32 sense_len; member
2635 u32 sense_len; member

12