| /linux/include/trace/events/ |
| H A D | target.h | 182 __field( unsigned char, scsi_status ) 196 __entry->scsi_status = cmd->scsi_status; 197 __entry->sense_length = cmd->scsi_status == SAM_STAT_CHECK_CONDITION ? 207 show_scsi_status_name(__entry->scsi_status),
|
| /linux/drivers/target/ |
| H A D | target_core_xcopy.c | 565 se_cmd->scsi_status); in target_xcopy_issue_pt_cmd() 567 return (se_cmd->scsi_status) ? -EINVAL : 0; in target_xcopy_issue_pt_cmd() 600 ec_cmd->scsi_status = se_cmd->scsi_status; in target_xcopy_read_source() 609 ec_cmd->scsi_status = se_cmd->scsi_status; in target_xcopy_read_source() 645 ec_cmd->scsi_status = se_cmd->scsi_status; in target_xcopy_write_destination() 651 ec_cmd->scsi_status = se_cmd->scsi_status; in target_xcopy_write_destination()
|
| H A D | target_core_transport.c | 810 dev->se_hba->hba_id, dev->transport->name, cmd->scsi_status); in transport_get_sense_buffer() 842 cmd->scsi_status = SAM_STAT_TASK_ABORTED; in target_handle_abort() 953 void target_complete_cmd_with_sense(struct se_cmd *cmd, u8 scsi_status, in target_complete_cmd_with_sense() argument 962 cmd->scsi_status = scsi_status; in target_complete_cmd_with_sense() 966 switch (cmd->scsi_status) { in target_complete_cmd_with_sense() 986 void target_complete_cmd(struct se_cmd *cmd, u8 scsi_status) in target_complete_cmd() argument 988 target_complete_cmd_with_sense(cmd, scsi_status, scsi_status ? in target_complete_cmd() 1009 void target_complete_cmd_with_length(struct se_cmd *cmd, u8 scsi_status, int length) in target_complete_cmd_with_length() argument 1011 if (scsi_status == SAM_STAT_GOOD || in target_complete_cmd_with_length() 1016 target_complete_cmd(cmd, scsi_status); in target_complete_cmd_with_length() [all …]
|
| H A D | target_core_pscsi.c | 588 static void pscsi_complete_cmd(struct se_cmd *cmd, u8 scsi_status, in pscsi_complete_cmd() argument 609 scsi_status == SAM_STAT_GOOD) { in pscsi_complete_cmd() 645 scsi_status == SAM_STAT_GOOD) { in pscsi_complete_cmd() 673 if (scsi_status == SAM_STAT_CHECK_CONDITION) { in pscsi_complete_cmd() 1010 enum sam_status scsi_status = scmd->result & 0xff; in pscsi_req_done() local 1014 if (scsi_status != SAM_STAT_GOOD) { in pscsi_req_done() 1019 pscsi_complete_cmd(cmd, scsi_status, scmd->sense_buffer, valid_data); in pscsi_req_done() 1023 target_complete_cmd_with_length(cmd, scsi_status, valid_data); in pscsi_req_done()
|
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_scsi.c | 739 u8 scsi_status = 0; in efct_scsi_send_resp() local 747 scsi_status = rsp->scsi_status; in efct_scsi_send_resp() 775 if (scsi_status != 0 || residual || sense_data_length) { in efct_scsi_send_resp() 792 fcprsp->resp.fr_status = scsi_status; in efct_scsi_send_resp() 1043 enum efct_scsi_io_status scsi_status; in efct_target_abort_cb() local 1060 scsi_status = EFCT_SCSI_STATUS_GOOD; in efct_target_abort_cb() 1065 scsi_status = EFCT_SCSI_STATUS_NO_IO; in efct_target_abort_cb() 1068 scsi_status = EFCT_SCSI_STATUS_ABORT_IN_PROGRESS; in efct_target_abort_cb() 1072 scsi_status = EFCT_SCSI_STATUS_ERROR; in efct_target_abort_cb() 1077 scsi_status = EFCT_SCSI_STATUS_CHECK_RESPONSE; in efct_target_abort_cb() [all …]
|
| H A D | efct_scsi.h | 45 u8 scsi_status; member
|
| /linux/drivers/scsi/qla4xxx/ |
| H A D | ql4_isr.c | 117 uint8_t scsi_status; in qla4xxx_status_entry() local 155 scsi_status = sts_entry->scsiStatus; in qla4xxx_status_entry() 166 if (!scsi_status && ((scsi_bufflen(cmd) - residual) < in qla4xxx_status_entry() 183 cmd->result = DID_OK << 16 | scsi_status; in qla4xxx_status_entry() 185 if (scsi_status != SAM_STAT_CHECK_CONDITION) in qla4xxx_status_entry() 258 if (!scsi_status && (scsi_bufflen(cmd) - residual) < in qla4xxx_status_entry() 273 } else if (scsi_status != SAM_STAT_TASK_SET_FULL && in qla4xxx_status_entry() 274 scsi_status != SAM_STAT_BUSY) { in qla4xxx_status_entry() 301 cmd->result = DID_ERROR << 16 | scsi_status; in qla4xxx_status_entry() 305 cmd->result = DID_OK << 16 | scsi_status; in qla4xxx_status_entry() [all …]
|
| /linux/drivers/scsi/ |
| H A D | qla1280.h | 571 __le16 scsi_status; /* SCSI status. */ member 792 uint8_t scsi_status; member 815 uint8_t scsi_status; member 848 uint8_t scsi_status; member 878 uint8_t scsi_status; member 908 uint8_t scsi_status; member
|
| H A D | stex.c | 251 u8 scsi_status; member 309 u8 scsi_status; member 736 result = ccb->scsi_status; in DEF_SCSI_QCMD() 737 switch (ccb->scsi_status) { in DEF_SCSI_QCMD() 775 if (resp->scsi_status != SAM_STAT_GOOD) { in stex_copy_data() 791 resp->scsi_status != SAM_STAT_CHECK_CONDITION) in stex_check_cmd() 862 ccb->scsi_status = resp->scsi_status; in stex_mu_intr() 957 ccb->scsi_status = SAM_STAT_GOOD; in stex_ss_mu_intr() 960 ccb->scsi_status = resp->scsi_status; in stex_ss_mu_intr()
|
| H A D | qlogicpti.h | 178 u16 scsi_status; member
|
| /linux/drivers/usb/image/ |
| H A D | microtek.h | 26 u8 *scsi_status; /* status returned from ep_response after command completion */ member
|
| /linux/drivers/scsi/leapraid/ |
| H A D | leapraid_os.c | 363 u8 scsi_status = scsiio_rep->scsi_status; in leapraid_handle_data_underrun() local 366 scmd->result = (DID_OK << LEAPRAID_SCSI_HOST_SHIFT) | scsi_status; in leapraid_handle_data_underrun() 372 if (scsi_status == SAM_STAT_BUSY) in leapraid_handle_data_underrun() 384 scsiio_rep->scsi_status = SAM_STAT_CHECK_CONDITION; in leapraid_handle_data_underrun() 396 u8 scsi_status = scsiio_rep->scsi_status; in leapraid_handle_success_status() local 399 scmd->result = (DID_OK << LEAPRAID_SCSI_HOST_SHIFT) | scsi_status; in leapraid_handle_success_status() 416 u8 scsi_status = scsiio_rep->scsi_status; in leapraid_scsiio_done_dispatch() local 430 (scsi_status == LEAPRAID_SCSI_STATUS_BUSY || in leapraid_scsiio_done_dispatch() 431 scsi_status == LEAPRAID_SCSI_STATUS_RESERVATION_CONFLICT || in leapraid_scsiio_done_dispatch() 432 scsi_status == LEAPRAID_SCSI_STATUS_TASK_SET_FULL)) in leapraid_scsiio_done_dispatch() [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_target.h | 218 __le16 scsi_status; member 428 __le16 scsi_status; member 440 __le16 scsi_status; member 522 __le16 scsi_status; member 949 uint8_t scsi_status, sense_key, asc, ascq; member
|
| H A D | qla_mr.c | 2255 __le16 scsi_status; in qlafx00_status_entry() local 2271 scsi_status = sts->scsi_status & cpu_to_le16((uint16_t)SS_MASK); in qlafx00_status_entry() 2296 scsi_status, comp_status); in qlafx00_status_entry() 2301 if (comp_status == CS_COMPLETE && scsi_status == 0) { in qlafx00_status_entry() 2316 lscsi_status = scsi_status & cpu_to_le16((uint16_t)STATUS_MASK); in qlafx00_status_entry() 2322 if (scsi_status & cpu_to_le16((uint16_t)SS_SENSE_LEN_VALID)) in qlafx00_status_entry() 2324 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER in qlafx00_status_entry() 2334 scsi_status & cpu_to_le16((uint16_t)SS_RESIDUAL_OVER)) in qlafx00_status_entry() 2343 if (scsi_status == 0) { in qlafx00_status_entry() 2347 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER in qlafx00_status_entry() [all …]
|
| /linux/drivers/target/tcm_fc/ |
| H A D | tfc_cmd.c | 118 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status() 124 fcp->resp.fr_status = se_cmd->scsi_status; in ft_queue_status() 161 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
|
| H A D | tfc_io.c | 67 if (se_cmd->scsi_status == SAM_STAT_TASK_SET_FULL) in ft_queue_data_in() 177 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_data_in()
|
| /linux/include/uapi/linux/ |
| H A D | target_core_user.h | 125 __u8 scsi_status; member
|
| /linux/drivers/scsi/aic7xxx/ |
| H A D | aic79xx.h | 398 uint8_t scsi_status; /* Standard SCSI status byte */ member 404 uint8_t scsi_status; /* SCSI status to give to initiator */ member 437 uint8_t scsi_status; /* SCSI status to give to initiator */ member
|
| /linux/Documentation/target/ |
| H A D | tcmu-design.rst | 182 When completing a command, userspace sets rsp.scsi_status, and 292 performing work as needed, setting response fields (scsi_status and 368 ent->rsp.scsi_status = SCSI_NO_SENSE; 371 ent->rsp.scsi_status = SCSI_CHECK_CONDITION;
|
| /linux/drivers/scsi/bfa/ |
| H A D | bfad_im.c | 35 enum bfi_ioim_status io_status, u8 scsi_status, in bfa_cb_ioim_done() argument 46 bfa_trc(bfad, scsi_status); in bfa_cb_ioim_done() 59 if (!sns_len && (scsi_status == SAM_STAT_GOOD) && in bfa_cb_ioim_done() 66 cmnd->result = host_status << 16 | scsi_status; in bfa_cb_ioim_done()
|
| H A D | bfi_ms.h | 779 u8 scsi_status; /* scsi status from target */ member
|
| /linux/drivers/scsi/snic/ |
| H A D | snic_fwint.h | 283 u8 scsi_status; /* value as per SAM */ member
|
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_scsi.c | 1569 uint8_t flags, scsi_status = 0; in csio_scsi_err_handler() local 1589 scsi_status = fcp_resp->resp.fr_status; in csio_scsi_err_handler() 1618 (scsi_status == SAM_STAT_GOOD) && in csio_scsi_err_handler() 1726 cmnd->result = (((host_status) << 16) | scsi_status); in csio_scsi_err_handler() 1744 uint8_t scsi_status = SAM_STAT_GOOD; in csio_scsi_cbfn() local 1754 cmnd->result = (((host_status) << 16) | scsi_status); in csio_scsi_cbfn()
|
| /linux/drivers/scsi/mpi3mr/ |
| H A D | mpi3mr_os.c | 3395 u8 scsi_state = 0, scsi_status = 0, sense_state = 0; in mpi3mr_process_op_reply_desc() local 3431 scsi_status = scsi_reply->scsi_status; in mpi3mr_process_op_reply_desc() 3468 ioc_loginfo, scsi_state, scsi_status, xfer_count, in mpi3mr_process_op_reply_desc() 3527 xfer_count == 0 && (scsi_status == MPI3_SCSI_STATUS_BUSY || in mpi3mr_process_op_reply_desc() 3528 scsi_status == MPI3_SCSI_STATUS_RESERVATION_CONFLICT || in mpi3mr_process_op_reply_desc() 3529 scsi_status == MPI3_SCSI_STATUS_TASK_SET_FULL)) in mpi3mr_process_op_reply_desc() 3569 scmd->result = (DID_OK << 16) | scsi_status; in mpi3mr_process_op_reply_desc() 3572 scmd->result = (DID_OK << 16) | scsi_status; in mpi3mr_process_op_reply_desc() 3576 if (scsi_status == SAM_STAT_BUSY) in mpi3mr_process_op_reply_desc() 3591 scmd->result = (DID_OK << 16) | scsi_status; in mpi3mr_process_op_reply_desc() [all …]
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_scsi.c | 3574 uint32_t scsi_status = fcprsp->rspStatus3; in lpfc_send_scsi_error_event() local 3620 ((scsi_status == SAM_STAT_GOOD) && in lpfc_send_scsi_error_event() 3833 uint32_t scsi_status = fcprsp->rspStatus3; in lpfc_handle_fcp_err() local 3847 scsi_status = 0; in lpfc_handle_fcp_err() 3888 if (!scsi_status && (resp_info & RESID_UNDER)) { in lpfc_handle_fcp_err() 3900 cmnd->cmnd[0], scsi_status, in lpfc_handle_fcp_err() 3945 (scsi_status == SAM_STAT_GOOD) && in lpfc_handle_fcp_err() 3974 fcpi_parm, cmnd->cmnd[0], scsi_status); in lpfc_handle_fcp_err() 3983 switch (scsi_status) { in lpfc_handle_fcp_err() 3998 cmnd->result = host_status << 16 | scsi_status; in lpfc_handle_fcp_err()
|