Searched refs:sc_cmd (Results 1 – 10 of 10) sorted by relevance
/linux-5.19.10/drivers/scsi/qedf/ |
D | qedf_io.c | 371 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 557 int_to_scsilun(sc_cmd->device->lun, in qedf_build_fcp_cmnd() 570 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in qedf_build_fcp_cmnd() 572 else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) in qedf_build_fcp_cmnd() 580 memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); in qedf_build_fcp_cmnd() 591 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in qedf_init_task() local [all …]
|
D | qedf_els.c | 68 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()
|
D | qedf_main.c | 715 static int qedf_eh_abort(struct scsi_cmnd *sc_cmd) in qedf_eh_abort() argument 717 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in qedf_eh_abort() 730 lport = shost_priv(sc_cmd->device->host); in qedf_eh_abort() 737 QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd); in qedf_eh_abort() 743 io_req = qedf_priv(sc_cmd)->io_req; in qedf_eh_abort() 747 sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort() 758 if (!rval || io_req->sc_cmd != sc_cmd) { in qedf_eh_abort() 761 io_req->sc_cmd, sc_cmd, rdata->ids.port_id); in qedf_eh_abort() 770 io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort() 776 rc = fc_block_scsi_eh(sc_cmd); in qedf_eh_abort() [all …]
|
D | qedf.h | 99 struct scsi_cmnd *sc_cmd; member 489 struct scsi_cmnd *sc_cmd); 525 extern int qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags);
|
/linux-5.19.10/drivers/scsi/bnx2fc/ |
D | bnx2fc_io.c | 165 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 …]
|
D | bnx2fc.h | 428 struct scsi_cmnd *sc_cmd; member 506 int bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd); 552 int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd); 553 int bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd); 554 int bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd);
|
D | bnx2fc_els.c | 385 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()
|
D | bnx2fc_hwi.c | 1493 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 1723 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_task()
|
/linux-5.19.10/drivers/scsi/libfc/ |
D | fc_fcp.c | 1059 struct scsi_cmnd *sc_cmd; in fc_fcp_cleanup_each_cmd() local 1065 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd() 1066 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd() 1069 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd() 1851 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument 1854 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand() 1861 sc_cmd->result = rval; in fc_queuecommand() 1862 scsi_done(sc_cmd); in fc_queuecommand() 1871 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand() 1872 scsi_done(sc_cmd); in fc_queuecommand() [all …]
|
/linux-5.19.10/drivers/scsi/qedi/ |
D | qedi_fw.c | 580 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 …]
|