Home
last modified time | relevance | path

Searched refs:scsi_status (Results 1 – 25 of 71) sorted by relevance

123

/drivers/target/
Dtarget_core_xcopy.c624 se_cmd->scsi_status); in target_xcopy_issue_pt_cmd()
626 return (se_cmd->scsi_status) ? -EINVAL : 0; in target_xcopy_issue_pt_cmd()
665 ec_cmd->scsi_status = xpt_cmd->se_cmd.scsi_status; in target_xcopy_read_source()
677 ec_cmd->scsi_status = xpt_cmd->se_cmd.scsi_status; in target_xcopy_read_source()
728 ec_cmd->scsi_status = xpt_cmd->se_cmd.scsi_status; in target_xcopy_write_destination()
744 ec_cmd->scsi_status = xpt_cmd->se_cmd.scsi_status; in target_xcopy_write_destination()
834 if (ec_cmd->scsi_status == SAM_STAT_GOOD) { in target_xcopy_do_work()
837 ec_cmd->scsi_status = SAM_STAT_CHECK_CONDITION; in target_xcopy_do_work()
839 target_complete_cmd(ec_cmd, ec_cmd->scsi_status); in target_xcopy_do_work()
Dtarget_core_transport.c725 dev->se_hba->hba_id, dev->transport->name, cmd->scsi_status); in transport_get_sense_buffer()
729 void target_complete_cmd(struct se_cmd *cmd, u8 scsi_status) in target_complete_cmd() argument
732 int success = scsi_status == GOOD; in target_complete_cmd()
735 cmd->scsi_status = scsi_status; in target_complete_cmd()
784 void target_complete_cmd_with_length(struct se_cmd *cmd, u8 scsi_status, int length) in target_complete_cmd_with_length() argument
786 if (scsi_status == SAM_STAT_GOOD && length < cmd->data_length) { in target_complete_cmd_with_length()
797 target_complete_cmd(cmd, scsi_status); in target_complete_cmd_with_length()
1749 cmd->scsi_status = SAM_STAT_RESERVATION_CONFLICT; in transport_generic_request_failure()
1815 cmd->scsi_status = SAM_STAT_RESERVATION_CONFLICT; in __target_execute_cmd()
2039 if (cmd->scsi_status) in transport_complete_qf()
[all …]
Dtarget_core_tmr.c137 if (se_cmd->scsi_status) { in __target_check_io_state()
140 se_cmd->scsi_status); in __target_check_io_state()
Dtarget_core_sbc.c465 if (cmd->scsi_status == SAM_STAT_CHECK_CONDITION) in compare_and_write_post()
508 if (cmd->scsi_status) { in compare_and_write_callback()
510 " 0x%02x\n", cmd->scsi_status); in compare_and_write_callback()
512 if (cmd->scsi_status == SAM_STAT_CHECK_CONDITION) in compare_and_write_callback()
Dtarget_core_pscsi.c1061 cmd->scsi_status = status_byte(pt->pscsi_result) << 1; in pscsi_req_done()
1062 if (cmd->scsi_status) { in pscsi_req_done()
1070 target_complete_cmd(cmd, cmd->scsi_status); in pscsi_req_done()
/drivers/scsi/qla2xxx/
Dqla_isr.c1622 } else if ((le16_to_cpu(sts->scsi_status) & in qla24xx_tm_iocb_entry()
1904 uint16_t scsi_status; in qla25xx_process_bidir_status_iocb() local
1937 scsi_status = le16_to_cpu(sts24->scsi_status) & SS_MASK; in qla25xx_process_bidir_status_iocb()
1940 scsi_status = le16_to_cpu(sts->scsi_status) & SS_MASK; in qla25xx_process_bidir_status_iocb()
1946 if (scsi_status == 0) { in qla25xx_process_bidir_status_iocb()
2057 uint16_t scsi_status; in qla2x00_status_entry() local
2077 scsi_status = le16_to_cpu(sts24->scsi_status) & SS_MASK; in qla2x00_status_entry()
2081 scsi_status = le16_to_cpu(sts->scsi_status) & SS_MASK; in qla2x00_status_entry()
2132 if (comp_status == CS_COMPLETE && scsi_status == 0) { in qla2x00_status_entry()
2148 lscsi_status = scsi_status & STATUS_MASK; in qla2x00_status_entry()
[all …]
Dqla_target.h291 uint16_t scsi_status; member
485 uint16_t scsi_status; member
500 uint16_t scsi_status; member
582 uint16_t scsi_status; member
1083 uint16_t scsi_status; member
Dqla_mr.c2280 __le16 scsi_status; in qlafx00_status_entry() local
2296 scsi_status = sts->scsi_status & cpu_to_le16((uint16_t)SS_MASK); in qlafx00_status_entry()
2321 scsi_status, comp_status); in qlafx00_status_entry()
2326 if (comp_status == CS_COMPLETE && scsi_status == 0) { in qlafx00_status_entry()
2341 lscsi_status = scsi_status & cpu_to_le16((uint16_t)STATUS_MASK); in qlafx00_status_entry()
2347 if (scsi_status & cpu_to_le16((uint16_t)SS_SENSE_LEN_VALID)) in qlafx00_status_entry()
2349 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER in qlafx00_status_entry()
2359 scsi_status & cpu_to_le16((uint16_t)SS_RESIDUAL_OVER)) in qlafx00_status_entry()
2368 if (scsi_status == 0) { in qlafx00_status_entry()
2372 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER in qlafx00_status_entry()
[all …]
/drivers/usb/image/
Dmicrotek.c415 context->srb->result |= (unsigned)(*context->scsi_status)<<1; in mts_transfer_done()
429 context->scsi_status, in mts_get_status()
742 new_desc->context.scsi_status = kmalloc(1, GFP_KERNEL); in mts_usb_probe()
743 if (!new_desc->context.scsi_status) in mts_usb_probe()
784 kfree(new_desc->context.scsi_status); in mts_usb_probe()
804 kfree(desc->context.scsi_status); in mts_usb_disconnect()
Dmicrotek.h25 u8 *scsi_status; /* status returned from ep_response after command completion */ member
/drivers/scsi/qla4xxx/
Dql4_isr.c118 uint8_t scsi_status; in qla4xxx_status_entry() local
156 scsi_status = sts_entry->scsiStatus; in qla4xxx_status_entry()
167 if (!scsi_status && ((scsi_bufflen(cmd) - residual) < in qla4xxx_status_entry()
184 cmd->result = DID_OK << 16 | scsi_status; in qla4xxx_status_entry()
186 if (scsi_status != SCSI_CHECK_CONDITION) in qla4xxx_status_entry()
259 if (!scsi_status && (scsi_bufflen(cmd) - residual) < in qla4xxx_status_entry()
274 } else if (scsi_status != SAM_STAT_TASK_SET_FULL && in qla4xxx_status_entry()
275 scsi_status != SAM_STAT_BUSY) { in qla4xxx_status_entry()
302 cmd->result = DID_ERROR << 16 | scsi_status; in qla4xxx_status_entry()
306 cmd->result = DID_OK << 16 | scsi_status; in qla4xxx_status_entry()
[all …]
/drivers/scsi/
Dqla1280.h579 __le16 scsi_status; /* SCSI status. */ member
800 uint8_t scsi_status; member
823 uint8_t scsi_status; member
856 uint8_t scsi_status; member
886 uint8_t scsi_status; member
916 uint8_t scsi_status; member
Dstorvsc_drv.c205 u8 scsi_status; member
975 scmnd->result = vm_srb->scsi_status; in storvsc_command_completion()
1031 vstor_packet->vm_srb.scsi_status = 0; in storvsc_on_io_completion()
1037 stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status; in storvsc_on_io_completion()
1042 if (vstor_packet->vm_srb.scsi_status != 0 || in storvsc_on_io_completion()
1047 vstor_packet->vm_srb.scsi_status, in storvsc_on_io_completion()
1050 if ((vstor_packet->vm_srb.scsi_status & 0xFF) == 0x02) { in storvsc_on_io_completion()
Dstex.c243 u8 scsi_status; member
301 u8 scsi_status; member
720 result = ccb->scsi_status; in DEF_SCSI_QCMD()
721 switch (ccb->scsi_status) { in DEF_SCSI_QCMD()
759 if (resp->scsi_status != SAM_STAT_GOOD) { in stex_copy_data()
775 resp->scsi_status != SAM_STAT_CHECK_CONDITION) in stex_check_cmd()
846 ccb->scsi_status = resp->scsi_status; in stex_mu_intr()
941 ccb->scsi_status = SAM_STAT_GOOD; in stex_ss_mu_intr()
944 ccb->scsi_status = resp->scsi_status; in stex_ss_mu_intr()
Ddc395x.c1700 u16 scsi_status) in dc395x_handle_interrupt() argument
1714 if ((scsi_status & 0x2007) == 0x2002) in dc395x_handle_interrupt()
1716 "COP after COP completed? %04x\n", scsi_status); in dc395x_handle_interrupt()
1747 scsi_status, scsi_intstatus); in dc395x_handle_interrupt()
1773 dc395x_statev(acb, srb, &scsi_status); in dc395x_handle_interrupt()
1780 srb->scsi_phase = scsi_status & PHASEMASK; in dc395x_handle_interrupt()
1781 phase = (u16)scsi_status & PHASEMASK; in dc395x_handle_interrupt()
1796 dc395x_statev(acb, srb, &scsi_status); in dc395x_handle_interrupt()
1806 u16 scsi_status; in dc395x_interrupt() local
1813 scsi_status = DC395x_read16(acb, TRM_S1040_SCSI_STATUS); in dc395x_interrupt()
[all …]
Dncr53c8xx.c1442 #define scsi_status phys.header.status[1] macro
1447 #define scsi_status phys.header.status[2] macro
4383 cp->scsi_status = S_ILLEGAL; in ncr_queue_command()
4835 cp->host_status,cp->scsi_status); in ncr_complete()
4859 cp->scsi_status = cp->auto_sense; in ncr_complete()
4907 if (cp->host_status!=HS_COMPLETE || cp->scsi_status!=S_GOOD) { in ncr_complete()
4910 cp->host_status, cp->scsi_status); in ncr_complete()
4918 && (cp->scsi_status == S_GOOD || in ncr_complete()
4919 cp->scsi_status == S_COND_MET)) { in ncr_complete()
4925 cmd->result = ScsiResult(DID_OK, cp->scsi_status); in ncr_complete()
[all …]
Dqla1280.c1327 uint16_t scsi_status = le16_to_cpu(sts->scsi_status); in qla1280_return_status() local
1411 reason[host_status], scsi_status); in qla1280_return_status()
1416 return (scsi_status & 0xff) | (host_status << 16); in qla1280_return_status()
3585 if ((le16_to_cpu(pkt->scsi_status) & 0xff) in qla1280_isr()
3592 le16_to_cpu(pkt->scsi_status)); in qla1280_isr()
3679 uint16_t scsi_status = le16_to_cpu(pkt->scsi_status); in qla1280_status_entry() local
3705 if (comp_status || scsi_status) { in qla1280_status_entry()
3708 scsi_status, handle); in qla1280_status_entry()
3712 if ((scsi_status & 0xFF) == SAM_STAT_TASK_SET_FULL || in qla1280_status_entry()
3713 (scsi_status & 0xFF) == SAM_STAT_BUSY) { in qla1280_status_entry()
[all …]
/drivers/message/fusion/
Dmptscsih.c663 u8 scsi_state, scsi_status; in mptscsih_io_done() local
669 scsi_status = pScsiReply->SCSIStatus; in mptscsih_io_done()
681 (scsi_status == MPI_SCSI_STATUS_BUSY || in mptscsih_io_done()
682 scsi_status == MPI_SCSI_STATUS_RESERVATION_CONFLICT || in mptscsih_io_done()
683 scsi_status == MPI_SCSI_STATUS_TASK_SET_FULL)) { in mptscsih_io_done()
809 sc->result = (DID_OK << 16) | scsi_status; in mptscsih_io_done()
820 sc->result = (DID_OK << 16) | scsi_status; in mptscsih_io_done()
853 if (scsi_status == SAM_STAT_BUSY) in mptscsih_io_done()
878 if (scsi_status == MPI_SCSI_STATUS_TASK_SET_FULL) in mptscsih_io_done()
887 sc->result = (DID_OK << 16) | scsi_status; in mptscsih_io_done()
[all …]
/drivers/scsi/fnic/
Dfnic_scsi.c844 (u64)icmnd_cmpl->scsi_status << 8 | in fnic_fcpio_icmnd_cmpl_handler()
883 icmnd_cmpl->scsi_status, in fnic_fcpio_icmnd_cmpl_handler()
907 sc->result = (DID_OK << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
914 if (icmnd_cmpl->scsi_status == SAM_STAT_TASK_SET_FULL) in fnic_fcpio_icmnd_cmpl_handler()
920 sc->result = (DID_TIME_OUT << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
925 sc->result = (DID_ERROR << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
931 sc->result = (DID_ERROR << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
936 sc->result = (DID_REQUEUE << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
941 sc->result = (DID_ERROR << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
946 sc->result = (DID_ERROR << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
[all …]
Dfcpio.h354 u8 scsi_status; /* SCSI status */ member
505 u8 scsi_status; /* SCSI status */ member
/drivers/target/tcm_fc/
Dtfc_cmd.c134 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
140 fcp->resp.fr_status = se_cmd->scsi_status; in ft_queue_status()
177 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_status()
Dtfc_io.c80 if (se_cmd->scsi_status == SAM_STAT_TASK_SET_FULL) in ft_queue_data_in()
191 se_cmd->scsi_status = SAM_STAT_TASK_SET_FULL; in ft_queue_data_in()
/drivers/scsi/smartpqi/
Dsmartpqi_init.c2322 u8 scsi_status; in pqi_process_raid_io_error() local
2336 scsi_status = error_info->status; in pqi_process_raid_io_error()
2356 if (scsi_status == SAM_STAT_CHECK_CONDITION && in pqi_process_raid_io_error()
2372 scmd->result = scsi_status; in pqi_process_raid_io_error()
2378 u8 scsi_status; in pqi_process_aio_io_error() local
2395 scsi_status = error_info->status; in pqi_process_aio_io_error()
2400 scsi_status = SAM_STAT_TASK_ABORTED; in pqi_process_aio_io_error()
2403 scsi_status = SAM_STAT_GOOD; in pqi_process_aio_io_error()
2412 scsi_status = SAM_STAT_GOOD; in pqi_process_aio_io_error()
2416 scsi_status = SAM_STAT_GOOD; in pqi_process_aio_io_error()
[all …]
/drivers/scsi/aic7xxx/
Daic79xx.h398 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
/drivers/scsi/bfa/
Dbfad_im.c42 enum bfi_ioim_status io_status, u8 scsi_status, in bfa_cb_ioim_done() argument
53 bfa_trc(bfad, scsi_status); in bfa_cb_ioim_done()
66 if (!sns_len && (scsi_status == SAM_STAT_GOOD) && in bfa_cb_ioim_done()
73 cmnd->result = ScsiResult(host_status, scsi_status); in bfa_cb_ioim_done()

123