Home
last modified time | relevance | path

Searched refs:sc_cmd (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/drivers/scsi/qedf/
Dqedf_io.c378 io_req->sc_cmd = NULL; in qedf_alloc_cmd()
451 WARN_ON(io_req->sc_cmd); in qedf_release_cmd()
480 struct scsi_cmnd *sc = io_req->sc_cmd; in qedf_map_sg()
538 struct scsi_cmnd *sc = io_req->sc_cmd; in qedf_build_bd_list_from_sg()
559 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in qedf_build_fcp_cmnd() local
565 int_to_scsilun(sc_cmd->device->lun, in qedf_build_fcp_cmnd()
578 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in qedf_build_fcp_cmnd()
580 else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) in qedf_build_fcp_cmnd()
588 memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); in qedf_build_fcp_cmnd()
599 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in qedf_init_task() local
[all …]
Dqedf_els.c68 els_req->sc_cmd = NULL; in qedf_initiate_els()
768 if (!orig_io_req->sc_cmd) { in qedf_requeue_io_req()
781 new_io_req->sc_cmd = orig_io_req->sc_cmd; in qedf_requeue_io_req()
789 orig_io_req->sc_cmd = NULL; in qedf_requeue_io_req()
835 struct scsi_cmnd *sc_cmd; in qedf_rec_compl() local
917 sc_cmd = orig_io_req->sc_cmd; in qedf_rec_compl()
918 if (!sc_cmd) { in qedf_rec_compl()
925 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in qedf_rec_compl()
Dqedf_main.c648 static int qedf_eh_abort(struct scsi_cmnd *sc_cmd) in qedf_eh_abort() argument
650 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in qedf_eh_abort()
663 lport = shost_priv(sc_cmd->device->host); in qedf_eh_abort()
670 QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd); in qedf_eh_abort()
676 io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; in qedf_eh_abort()
680 sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort()
691 if (!rval || io_req->sc_cmd != sc_cmd) { in qedf_eh_abort()
694 io_req->sc_cmd, sc_cmd, rdata->ids.port_id); in qedf_eh_abort()
703 io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort()
709 rc = fc_block_scsi_eh(sc_cmd); in qedf_eh_abort()
[all …]
Dqedf.h103 struct scsi_cmnd *sc_cmd; member
478 struct scsi_cmnd *sc_cmd);
514 extern int qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags);
/Linux-v5.4/drivers/scsi/bnx2fc/
Dbnx2fc_io.c165 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_scsi_done() local
182 io_req->sc_cmd = NULL; in bnx2fc_scsi_done()
185 if (!sc_cmd) { in bnx2fc_scsi_done()
191 if (!sc_cmd->device) { in bnx2fc_scsi_done()
195 if (!sc_cmd->device->host) { in bnx2fc_scsi_done()
201 sc_cmd->result = err_code << 16; in bnx2fc_scsi_done()
204 sc_cmd, host_byte(sc_cmd->result), sc_cmd->retries, in bnx2fc_scsi_done()
205 sc_cmd->allowed); in bnx2fc_scsi_done()
206 scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); in bnx2fc_scsi_done()
207 sc_cmd->SCp.ptr = NULL; in bnx2fc_scsi_done()
[all …]
Dbnx2fc.h431 struct scsi_cmnd *sc_cmd; member
499 int bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd);
545 int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd);
546 int bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd);
547 int bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd);
Dbnx2fc_els.c385 struct scsi_cmnd *sc_cmd; in bnx2fc_rec_compl() local
484 new_io_req->sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl()
516 sc_cmd = orig_io_req->sc_cmd; in bnx2fc_rec_compl()
517 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in bnx2fc_rec_compl()
711 els_req->sc_cmd = NULL; in bnx2fc_initiate_els()
Dbnx2fc_hwi.c1455 struct scsi_cmnd *sc_cmd = orig_io_req->sc_cmd; in bnx2fc_init_seq_cleanup_task() local
1471 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_seq_cleanup_task()
1671 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task() local
1688 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_task()
/Linux-v5.4/drivers/scsi/libfc/
Dfc_fcp.c1068 struct scsi_cmnd *sc_cmd; in fc_fcp_cleanup_each_cmd() local
1074 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd()
1075 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd()
1078 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd()
1858 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument
1861 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand()
1869 sc_cmd->result = rval; in fc_queuecommand()
1870 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand()
1879 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand()
1880 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand()
[all …]
/Linux-v5.4/drivers/scsi/qedi/
Dqedi_fw.c575 struct scsi_cmnd *sc_cmd; in qedi_scsi_completion() local
594 sc_cmd = cmd->scsi_cmd; in qedi_scsi_completion()
596 if (!sc_cmd) { in qedi_scsi_completion()
601 if (!sc_cmd->SCp.ptr) { in qedi_scsi_completion()
607 if (!sc_cmd->request) { in qedi_scsi_completion()
610 sc_cmd); in qedi_scsi_completion()
614 if (!sc_cmd->request->q) { in qedi_scsi_completion()
617 sc_cmd); in qedi_scsi_completion()
648 scsi_bufflen(sc_cmd)); in qedi_scsi_completion()
649 hdr->residual_count = cpu_to_be32(scsi_bufflen(sc_cmd)); in qedi_scsi_completion()
[all …]