Searched refs:sc_cmd (Results 1 – 10 of 10) sorted by relevance
/kernel/linux/linux-5.10/drivers/scsi/qedf/ |
D | qedf_io.c | 376 io_req->sc_cmd = NULL; in qedf_alloc_cmd() 449 WARN_ON(io_req->sc_cmd); in qedf_release_cmd() 478 struct scsi_cmnd *sc = io_req->sc_cmd; in qedf_map_sg() 535 struct scsi_cmnd *sc = io_req->sc_cmd; in qedf_build_bd_list_from_sg() 556 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in qedf_build_fcp_cmnd() local 562 int_to_scsilun(sc_cmd->device->lun, in qedf_build_fcp_cmnd() 575 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in qedf_build_fcp_cmnd() 577 else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) in qedf_build_fcp_cmnd() 585 memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); in qedf_build_fcp_cmnd() 596 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 | 716 static int qedf_eh_abort(struct scsi_cmnd *sc_cmd) in qedf_eh_abort() argument 718 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in qedf_eh_abort() 731 lport = shost_priv(sc_cmd->device->host); in qedf_eh_abort() 738 QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd); in qedf_eh_abort() 744 io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; in qedf_eh_abort() 748 sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort() 759 if (!rval || io_req->sc_cmd != sc_cmd) { in qedf_eh_abort() 762 io_req->sc_cmd, sc_cmd, rdata->ids.port_id); in qedf_eh_abort() 771 io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort() 777 rc = fc_block_scsi_eh(sc_cmd); in qedf_eh_abort() [all …]
|
D | qedf.h | 103 struct scsi_cmnd *sc_cmd; member 483 struct scsi_cmnd *sc_cmd); 519 extern int qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags);
|
/kernel/linux/linux-5.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 sc_cmd->SCp.ptr = NULL; in bnx2fc_scsi_done() [all …]
|
D | bnx2fc.h | 431 struct scsi_cmnd *sc_cmd; member 502 int bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd); 548 int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd); 549 int bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd); 550 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 | 1494 struct scsi_cmnd *sc_cmd = orig_io_req->sc_cmd; in bnx2fc_init_seq_cleanup_task() local 1509 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in bnx2fc_init_seq_cleanup_task() 1707 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()
|
/kernel/linux/linux-5.10/drivers/scsi/libfc/ |
D | fc_fcp.c | 1069 struct scsi_cmnd *sc_cmd; in fc_fcp_cleanup_each_cmd() local 1075 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd() 1076 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd() 1079 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd() 1861 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument 1864 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand() 1872 sc_cmd->result = rval; in fc_queuecommand() 1873 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand() 1882 sc_cmd->result = DID_IMM_RETRY << 16; in fc_queuecommand() 1883 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/qedi/ |
D | qedi_fw.c | 569 struct scsi_cmnd *sc_cmd; in qedi_scsi_completion() local 588 sc_cmd = cmd->scsi_cmd; in qedi_scsi_completion() 590 if (!sc_cmd) { in qedi_scsi_completion() 595 if (!sc_cmd->SCp.ptr) { in qedi_scsi_completion() 601 if (!sc_cmd->request) { in qedi_scsi_completion() 604 sc_cmd); in qedi_scsi_completion() 608 if (!sc_cmd->request->q) { in qedi_scsi_completion() 611 sc_cmd); in qedi_scsi_completion() 642 scsi_bufflen(sc_cmd)); in qedi_scsi_completion() 643 hdr->residual_count = cpu_to_be32(scsi_bufflen(sc_cmd)); in qedi_scsi_completion() [all …]
|