Home
last modified time | relevance | path

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

/linux/drivers/scsi/qedf/
H A Dqedf_io.c371 io_req->sc_cmd = NULL; in qedf_alloc_cmd()
444 WARN_ON(io_req->sc_cmd); in qedf_release_cmd()
473 struct scsi_cmnd *sc = io_req->sc_cmd; in qedf_map_sg()
530 struct scsi_cmnd *sc = io_req->sc_cmd; in qedf_build_bd_list_from_sg()
551 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in qedf_build_fcp_cmnd() local
561 int_to_scsilun(sc_cmd->device->lun, in qedf_build_fcp_cmnd()
574 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in qedf_build_fcp_cmnd()
576 else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) in qedf_build_fcp_cmnd()
584 memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); in qedf_build_fcp_cmnd()
595 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in qedf_init_task() local
[all …]
H A Dqedf_els.c68 els_req->sc_cmd = NULL; in qedf_initiate_els()
783 if (!orig_io_req->sc_cmd) { in qedf_requeue_io_req()
796 new_io_req->sc_cmd = orig_io_req->sc_cmd; in qedf_requeue_io_req()
804 orig_io_req->sc_cmd = NULL; in qedf_requeue_io_req()
850 struct scsi_cmnd *sc_cmd; in qedf_rec_compl() local
937 sc_cmd = orig_io_req->sc_cmd; in qedf_rec_compl()
938 if (!sc_cmd) { in qedf_rec_compl()
945 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in qedf_rec_compl()
H A Dqedf_main.c723 static int qedf_eh_abort(struct scsi_cmnd *sc_cmd) in qedf_eh_abort() argument
725 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in qedf_eh_abort()
738 lport = shost_priv(sc_cmd->device->host); in qedf_eh_abort()
745 QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd); in qedf_eh_abort()
751 io_req = qedf_priv(sc_cmd)->io_req; in qedf_eh_abort()
755 sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort()
766 if (!rval || io_req->sc_cmd != sc_cmd) { in qedf_eh_abort()
769 io_req->sc_cmd, sc_cmd, rdata->ids.port_id); in qedf_eh_abort()
778 io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort()
792 while (io_req->sc_cmd && (wait_count != 0)) { in qedf_eh_abort()
[all …]
/linux/drivers/scsi/bnx2fc/
H A 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 bnx2fc_priv(sc_cmd)->io_req = NULL; in bnx2fc_scsi_done()
[all …]
H A Dbnx2fc.h423 struct scsi_cmnd *sc_cmd; member
501 int bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd);
547 int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd);
548 int bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd);
549 int bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd);
H A 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()
H A Dbnx2fc_hwi.c1493 struct scsi_cmnd *sc_cmd = orig_io_req->sc_cmd; in bnx2fc_init_seq_cleanup_task() local
1508 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_seq_cleanup_task()
1706 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task() local
1724 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_task()
1784 int_to_scsilun(sc_cmd->device->lun, &fcp_cmnd->fc_lun); in bnx2fc_init_task()
1785 memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); in bnx2fc_init_task()
/linux/drivers/scsi/libfc/
H A Dfc_fcp.c1064 struct scsi_cmnd *sc_cmd; in fc_fcp_cleanup_each_cmd() local
1070 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd()
1071 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd()
1074 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd()
1857 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument
1860 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand()
1867 sc_cmd->result = rval; in fc_queuecommand()
1868 scsi_done(sc_cmd); in fc_queuecommand()
1877 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand()
1878 scsi_done(sc_cmd); in fc_queuecommand()
[all …]
/linux/drivers/scsi/qedi/
H A Dqedi_fw.c580 struct scsi_cmnd *sc_cmd; in qedi_scsi_completion() local
599 sc_cmd = cmd->scsi_cmd; in qedi_scsi_completion()
601 if (!sc_cmd) { in qedi_scsi_completion()
606 if (!iscsi_cmd(sc_cmd)->task) { in qedi_scsi_completion()
612 if (!scsi_cmd_to_rq(sc_cmd)->q) { in qedi_scsi_completion()
615 sc_cmd); in qedi_scsi_completion()
646 scsi_bufflen(sc_cmd)); in qedi_scsi_completion()
647 hdr->residual_count = cpu_to_be32(scsi_bufflen(sc_cmd)); in qedi_scsi_completion()
1919 struct scsi_cmnd *sc_cmd = task->sc; in qedi_trace_io() local
1928 io_log->lun = sc_cmd->device->lun; in qedi_trace_io()
[all …]