Home
last modified time | relevance | path

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

1234

/openbmc/qemu/hw/ufs/
H A Dlu.c199 uint8_t scsi_status; in ufs_emulate_scsi_cmd() local
207 scsi_status = CHECK_CONDITION; in ufs_emulate_scsi_cmd()
209 scsi_status = GOOD; in ufs_emulate_scsi_cmd()
216 scsi_status = CHECK_CONDITION; in ufs_emulate_scsi_cmd()
218 scsi_status = GOOD; in ufs_emulate_scsi_cmd()
225 scsi_status = GOOD; in ufs_emulate_scsi_cmd()
230 scsi_status = GOOD; in ufs_emulate_scsi_cmd()
236 scsi_status = CHECK_CONDITION; in ufs_emulate_scsi_cmd()
240 if (scsi_status == GOOD && len > 0 && in ufs_emulate_scsi_cmd()
247 scsi_status); in ufs_emulate_scsi_cmd()
/openbmc/linux/include/trace/events/
H A Dtarget.h182 __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),
/openbmc/linux/drivers/scsi/elx/efct/
H A Defct_lio.c300 enum efct_scsi_io_status scsi_status, in efct_lio_abort_tgt_cb() argument
391 enum efct_scsi_io_status scsi_status, in efct_lio_status_done() argument
397 if (scsi_status != EFCT_SCSI_STATUS_GOOD) { in efct_lio_status_done()
399 scsi_status); in efct_lio_status_done()
400 ocp->err = scsi_status; in efct_lio_status_done()
548 rsp.scsi_status = cmd->scsi_status; in efct_lio_send_resp()
576 if (scsi_status != EFCT_SCSI_STATUS_GOOD) { in efct_lio_datamove_done()
578 scsi_status); in efct_lio_datamove_done()
579 ocp->err = scsi_status; in efct_lio_datamove_done()
610 if (scsi_status != EFCT_SCSI_STATUS_GOOD) { in efct_lio_datamove_done()
[all …]
H A Defct_scsi.c739 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 …]
/openbmc/linux/drivers/target/
H A Dtarget_core_xcopy.c564 se_cmd->scsi_status); in target_xcopy_issue_pt_cmd()
566 return (se_cmd->scsi_status) ? -EINVAL : 0; in target_xcopy_issue_pt_cmd()
599 ec_cmd->scsi_status = se_cmd->scsi_status; in target_xcopy_read_source()
608 ec_cmd->scsi_status = se_cmd->scsi_status; in target_xcopy_read_source()
644 ec_cmd->scsi_status = se_cmd->scsi_status; in target_xcopy_write_destination()
650 ec_cmd->scsi_status = se_cmd->scsi_status; in target_xcopy_write_destination()
H A Dtarget_core_transport.c916 cmd->scsi_status = scsi_status; in target_complete_cmd_with_sense()
920 switch (cmd->scsi_status) { in target_complete_cmd_with_sense()
950 target_complete_cmd_with_sense(cmd, scsi_status, scsi_status ? in target_complete_cmd()
973 if (scsi_status == SAM_STAT_GOOD || in target_complete_cmd_with_length()
2083 cmd->scsi_status = SAM_STAT_BUSY; in transport_generic_request_failure()
2402 if (cmd->scsi_status) in transport_complete_qf()
2425 if (cmd->scsi_status && in transport_complete_qf()
2540 WARN_ON(!cmd->scsi_status); in target_complete_ok_work()
2591 if (cmd->scsi_status && in target_complete_ok_work()
3511 cmd->scsi_status = SAM_STAT_BUSY; in translate_sense_reason()
[all …]
H A Dtarget_core_pscsi.c587 static void pscsi_complete_cmd(struct se_cmd *cmd, u8 scsi_status, in pscsi_complete_cmd() argument
608 scsi_status == SAM_STAT_GOOD) { in pscsi_complete_cmd()
644 scsi_status == SAM_STAT_GOOD) { in pscsi_complete_cmd()
672 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()
/openbmc/linux/drivers/usb/image/
H A Dmicrotek.c416 context->srb->result |= (unsigned)(*context->scsi_status)<<1; in mts_transfer_done()
430 context->scsi_status, in mts_get_status()
740 new_desc->context.scsi_status = kmalloc(1, GFP_KERNEL); in mts_usb_probe()
741 if (!new_desc->context.scsi_status) in mts_usb_probe()
782 kfree(new_desc->context.scsi_status); in mts_usb_probe()
802 kfree(desc->context.scsi_status); in mts_usb_disconnect()
H A Dmicrotek.h26 u8 *scsi_status; /* status returned from ep_response after command completion */ member
/openbmc/qemu/tests/qtest/
H A Dufs-test.c440 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, GOOD); in ufstest_init()
450 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, CHECK_CONDITION); in ufstest_init()
456 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, GOOD); in ufstest_init()
507 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, CHECK_CONDITION); in ufstest_read_write()
513 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, in ufstest_read_write()
523 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, in ufstest_read_write()
530 g_assert_cmpuint(rsp_upiu.header.scsi_status, ==, in ufstest_read_write()
/openbmc/linux/drivers/scsi/qla4xxx/
H A Dql4_isr.c117 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 …]
/openbmc/linux/drivers/scsi/
H A Dqla1280.h571 __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 Dstex.c251 u8 scsi_status; member
309 u8 scsi_status; member
737 result = ccb->scsi_status; in DEF_SCSI_QCMD()
738 switch (ccb->scsi_status) { in DEF_SCSI_QCMD()
776 if (resp->scsi_status != SAM_STAT_GOOD) { in stex_copy_data()
792 resp->scsi_status != SAM_STAT_CHECK_CONDITION) in stex_check_cmd()
863 ccb->scsi_status = resp->scsi_status; in stex_mu_intr()
958 ccb->scsi_status = SAM_STAT_GOOD; in stex_ss_mu_intr()
961 ccb->scsi_status = resp->scsi_status; in stex_ss_mu_intr()
H A Ddc395x.c1540 u16 scsi_status) in dc395x_handle_interrupt() argument
1554 if ((scsi_status & 0x2007) == 0x2002) in dc395x_handle_interrupt()
1587 scsi_status, scsi_intstatus); in dc395x_handle_interrupt()
1646 u16 scsi_status; in dc395x_interrupt() local
1655 if (scsi_status & SCSIINTERRUPT) { in dc395x_interrupt()
1883 u16 scsi_status = *pscsi_status; in data_out_phase0() local
1911 if (scsi_status & PARITYERROR) in data_out_phase0()
1920 if (!(scsi_status & SCSIXFERDONE)) { in data_out_phase0()
1963 scsi_status); in data_out_phase0()
2025 u16 scsi_status = *pscsi_status; in data_in_phase0() local
[all …]
H A Dstorvsc_drv.c175 u8 scsi_status; member
1090 scmnd->result = vm_srb->scsi_status; in storvsc_command_completion()
1149 vstor_packet->vm_srb.scsi_status = 0; in storvsc_on_io_completion()
1154 stor_pkt->vm_srb.scsi_status = vstor_packet->vm_srb.scsi_status; in storvsc_on_io_completion()
1164 if (vstor_packet->vm_srb.scsi_status != 0 || in storvsc_on_io_completion()
1179 vstor_packet->vm_srb.scsi_status, in storvsc_on_io_completion()
1184 if (vstor_packet->vm_srb.scsi_status == SAM_STAT_CHECK_CONDITION && in storvsc_on_io_completion()
H A Dncr53c8xx.c4346 cp->scsi_status = SAM_STAT_ILLEGAL; in ncr_queue_command()
4679 cp->host_status,cp->scsi_status); in ncr_complete()
4703 cp->scsi_status = cp->auto_sense; in ncr_complete()
4755 cp->host_status, cp->scsi_status); in ncr_complete()
4771 set_status_byte(cmd, cp->scsi_status); in ncr_complete()
4836 set_status_byte(cmd, cp->scsi_status); in ncr_complete()
4844 set_status_byte(cmd, cp->scsi_status); in ncr_complete()
4852 set_status_byte(cmd, cp->scsi_status); in ncr_complete()
4887 switch (cp->scsi_status) { in ncr_complete()
6425 cp->scsi_status = SAM_STAT_ILLEGAL; in ncr_sir_to_redo()
[all …]
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dqla_isr.c3149 uint16_t scsi_status; in qla25xx_process_bidir_status_iocb() local
3184 scsi_status = le16_to_cpu(sts24->scsi_status) & SS_MASK; in qla25xx_process_bidir_status_iocb()
3187 scsi_status = le16_to_cpu(sts->scsi_status) & SS_MASK; in qla25xx_process_bidir_status_iocb()
3193 if (scsi_status == 0) { in qla25xx_process_bidir_status_iocb()
3305 uint16_t scsi_status; in qla2x00_status_entry() local
3323 scsi_status = le16_to_cpu(sts24->scsi_status) & SS_MASK; in qla2x00_status_entry()
3327 scsi_status = le16_to_cpu(sts->scsi_status) & SS_MASK; in qla2x00_status_entry()
3421 if (scsi_status & SS_SENSE_LEN_VALID) in qla2x00_status_entry()
3465 scsi_status & SS_RESIDUAL_OVER) in qla2x00_status_entry()
3482 if (scsi_status == 0) { in qla2x00_status_entry()
[all …]
H A Dqla_target.h217 __le16 scsi_status; member
427 __le16 scsi_status; member
439 __le16 scsi_status; member
521 __le16 scsi_status; member
925 uint8_t scsi_status, sense_key, asc, ascq; member
H A Dqla_mr.c2257 __le16 scsi_status; in qlafx00_status_entry() local
2273 scsi_status = sts->scsi_status & cpu_to_le16((uint16_t)SS_MASK); in qlafx00_status_entry()
2298 scsi_status, comp_status); in qlafx00_status_entry()
2303 if (comp_status == CS_COMPLETE && scsi_status == 0) { in qlafx00_status_entry()
2326 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER in qlafx00_status_entry()
2336 scsi_status & cpu_to_le16((uint16_t)SS_RESIDUAL_OVER)) in qlafx00_status_entry()
2345 if (scsi_status == 0) { in qlafx00_status_entry()
2349 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER in qlafx00_status_entry()
2436 scsi_status, lscsi_status); in qlafx00_status_entry()
2460 if (!(scsi_status & in qlafx00_status_entry()
[all …]
/openbmc/linux/drivers/scsi/fnic/
H A Dfnic_scsi.c849 (u64)icmnd_cmpl->scsi_status << 8 | in fnic_fcpio_icmnd_cmpl_handler()
896 icmnd_cmpl->scsi_status, in fnic_fcpio_icmnd_cmpl_handler()
908 sc->result = (DID_OK << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
916 if (icmnd_cmpl->scsi_status == SAM_STAT_CHECK_CONDITION) in fnic_fcpio_icmnd_cmpl_handler()
919 if (icmnd_cmpl->scsi_status == SAM_STAT_TASK_SET_FULL) in fnic_fcpio_icmnd_cmpl_handler()
930 sc->result = (DID_ERROR << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
936 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()
951 sc->result = (DID_ERROR << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
956 sc->result = (DID_ERROR << 16) | icmnd_cmpl->scsi_status; in fnic_fcpio_icmnd_cmpl_handler()
[all …]
/openbmc/linux/drivers/target/tcm_fc/
H A Dtfc_cmd.c118 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 Dtfc_io.c67 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()
/openbmc/linux/drivers/message/fusion/
H A Dmptscsih.c661 u8 scsi_state, scsi_status; in mptscsih_io_done() local
667 scsi_status = pScsiReply->SCSIStatus; in mptscsih_io_done()
679 (scsi_status == MPI_SCSI_STATUS_BUSY || in mptscsih_io_done()
808 sc->result = (DID_OK << 16) | scsi_status; in mptscsih_io_done()
819 sc->result = (DID_OK << 16) | scsi_status; in mptscsih_io_done()
852 if (scsi_status == SAM_STAT_BUSY) in mptscsih_io_done()
877 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()
2677 u8 scsi_status; in mptscsih_get_completion_code() local
2683 scsi_status = pReply->SCSIStatus; in mptscsih_get_completion_code()
[all …]
/openbmc/linux/include/uapi/linux/
H A Dtarget_core_user.h125 __u8 scsi_status; member
/openbmc/linux/drivers/scsi/mpi3mr/mpi/
H A Dmpi30_init.h72 u8 scsi_status; member

1234