/kernel/linux/linux-5.10/drivers/scsi/qedf/ |
H A D | qedf_io.c | 375 /* Clear any stale sc_cmd back pointer */ in qedf_alloc_cmd() 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 in qedf_build_fcp_cmnd() 596 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; qedf_init_task() local 810 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; qedf_trace_io() local 854 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; qedf_post_io_req() local 936 qedf_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd) qedf_queuecommand() argument 1059 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; qedf_parse_fcp_rsp() local 1127 struct scsi_cmnd *sc_cmd; qedf_scsi_completion() local 1335 struct scsi_cmnd *sc_cmd; qedf_scsi_done() local 2310 qedf_execute_tmf(struct qedf_rport *fcport, struct scsi_cmnd *sc_cmd, uint8_t tm_flags) qedf_execute_tmf() argument 2433 qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) qedf_initiate_tmf() argument [all...] |
H A 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() 784 QEDF_ERR(&(fcport->qedf->dbg_ctx), "sc_cmd is NULL for " in qedf_requeue_io_req() 796 new_io_req->sc_cmd = orig_io_req->sc_cmd; in qedf_requeue_io_req() 799 * This keeps the sc_cmd struct from being returned to the tape 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() [all...] |
H A 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() 747 "sc_cmd not queued with lld, sc_cmd=%p op=0x%02x, port_id=%06x\n", in qedf_eh_abort() 748 sc_cmd, sc_cmd in qedf_eh_abort() 859 qedf_eh_target_reset(struct scsi_cmnd *sc_cmd) qedf_eh_target_reset() argument 867 qedf_eh_device_reset(struct scsi_cmnd *sc_cmd) qedf_eh_device_reset() argument 955 qedf_eh_host_reset(struct scsi_cmnd *sc_cmd) qedf_eh_host_reset() argument [all...] |
H A 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-6.6/drivers/scsi/qedf/ |
H A D | qedf_io.c | 370 /* Clear any stale sc_cmd back pointer */ in qedf_alloc_cmd() 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 in qedf_build_fcp_cmnd() 591 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; qedf_init_task() local 805 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; qedf_trace_io() local 848 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; qedf_post_io_req() local 930 qedf_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd) qedf_queuecommand() argument 1053 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; qedf_parse_fcp_rsp() local 1120 struct scsi_cmnd *sc_cmd; qedf_scsi_completion() local 1322 struct scsi_cmnd *sc_cmd; qedf_scsi_done() local 2290 qedf_execute_tmf(struct qedf_rport *fcport, struct scsi_cmnd *sc_cmd, uint8_t tm_flags) qedf_execute_tmf() argument 2413 qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) qedf_initiate_tmf() argument [all...] |
H A 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() 784 QEDF_ERR(&(fcport->qedf->dbg_ctx), "sc_cmd is NULL for " in qedf_requeue_io_req() 796 new_io_req->sc_cmd = orig_io_req->sc_cmd; in qedf_requeue_io_req() 799 * This keeps the sc_cmd struct from being returned to the tape 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() [all...] |
H A 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 = qedf_priv(sc_cmd)->io_req; in qedf_eh_abort() 747 "sc_cmd not queued with lld, sc_cmd=%p op=0x%02x, port_id=%06x\n", in qedf_eh_abort() 748 sc_cmd, sc_cmd in qedf_eh_abort() 859 qedf_eh_target_reset(struct scsi_cmnd *sc_cmd) qedf_eh_target_reset() argument 867 qedf_eh_device_reset(struct scsi_cmnd *sc_cmd) qedf_eh_device_reset() argument 955 qedf_eh_host_reset(struct scsi_cmnd *sc_cmd) qedf_eh_host_reset() argument [all...] |
H A 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);
|
/kernel/linux/linux-5.10/drivers/scsi/bnx2fc/ |
H A 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() 186 printk(KERN_ERR PFX "scsi_done - sc_cmd NULL. " in bnx2fc_scsi_done() 191 if (!sc_cmd->device) { in bnx2fc_scsi_done() 192 pr_err(PFX "0x%x: sc_cmd->device is NULL.\n", io_req->xid); in bnx2fc_scsi_done() 195 if (!sc_cmd->device->host) { in bnx2fc_scsi_done() 196 pr_err(PFX "0x%x: sc_cmd->device->host is NULL.\n", in bnx2fc_scsi_done() 201 sc_cmd in bnx2fc_scsi_done() 661 bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) bnx2fc_initiate_tmf() argument 1065 bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd) bnx2fc_eh_target_reset() argument 1078 bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd) bnx2fc_eh_device_reset() argument 1125 bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) bnx2fc_eh_abort() argument 1455 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_lun_reset_cmpl() local 1528 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_process_tm_compl() local 1743 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_build_fcp_cmnd() local 1763 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_parse_fcp_rsp() local 1842 bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd) bnx2fc_queuecommand() argument 1913 struct scsi_cmnd *sc_cmd; bnx2fc_process_scsi_cmd_compl() local 2031 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_post_io_req() local [all...] |
H A 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() 489 /* Post a new IO req with the same 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 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);
|
H A 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-6.6/drivers/scsi/bnx2fc/ |
H A 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() 186 printk(KERN_ERR PFX "scsi_done - sc_cmd NULL. " in bnx2fc_scsi_done() 191 if (!sc_cmd->device) { in bnx2fc_scsi_done() 192 pr_err(PFX "0x%x: sc_cmd->device is NULL.\n", io_req->xid); in bnx2fc_scsi_done() 195 if (!sc_cmd->device->host) { in bnx2fc_scsi_done() 196 pr_err(PFX "0x%x: sc_cmd->device->host is NULL.\n", in bnx2fc_scsi_done() 201 sc_cmd in bnx2fc_scsi_done() 659 bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) bnx2fc_initiate_tmf() argument 1063 bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd) bnx2fc_eh_target_reset() argument 1076 bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd) bnx2fc_eh_device_reset() argument 1123 bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) bnx2fc_eh_abort() argument 1453 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_lun_reset_cmpl() local 1526 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_process_tm_compl() local 1741 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_build_fcp_cmnd() local 1761 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_parse_fcp_rsp() local 1839 bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd) bnx2fc_queuecommand() argument 1910 struct scsi_cmnd *sc_cmd; bnx2fc_process_scsi_cmd_compl() local 2028 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; bnx2fc_post_io_req() local [all...] |
H A 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() 489 /* Post a new IO req with the same 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 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);
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/scsi/libfc/ |
H A D | fc_fcp.c | 1074 struct scsi_cmnd *sc_cmd; in fc_fcp_cleanup_each_cmd() local 1080 sc_cmd = fsp->cmd; in fc_fcp_cleanup_each_cmd() 1081 if (id != -1 && scmd_id(sc_cmd) != id) in fc_fcp_cleanup_each_cmd() 1084 if (lun != -1 && sc_cmd->device->lun != lun) in fc_fcp_cleanup_each_cmd() 1863 * @sc_cmd: The scsi_cmnd to be executed 1867 int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) in fc_queuecommand() argument 1870 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); in fc_queuecommand() 1878 sc_cmd->result = rval; in fc_queuecommand() 1879 sc_cmd->scsi_done(sc_cmd); in fc_queuecommand() 1967 struct scsi_cmnd *sc_cmd; fc_io_compl() local 2109 fc_eh_abort(struct scsi_cmnd *sc_cmd) fc_eh_abort() argument 2162 fc_eh_device_reset(struct scsi_cmnd *sc_cmd) fc_eh_device_reset() argument 2210 fc_eh_host_reset(struct scsi_cmnd *sc_cmd) fc_eh_host_reset() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/libfc/ |
H A D | fc_fcp.c | 1064 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() 1853 * @sc_cmd: The scsi_cmnd to be executed 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 in fc_queuecommand() 1954 struct scsi_cmnd *sc_cmd; fc_io_compl() local 2096 fc_eh_abort(struct scsi_cmnd *sc_cmd) fc_eh_abort() argument 2149 fc_eh_device_reset(struct scsi_cmnd *sc_cmd) fc_eh_device_reset() argument 2197 fc_eh_host_reset(struct scsi_cmnd *sc_cmd) fc_eh_host_reset() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/qedi/ |
H A 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() 591 QEDI_WARN(&qedi->dbg_ctx, "sc_cmd is NULL!\n"); in qedi_scsi_completion() 595 if (!sc_cmd->SCp.ptr) { in qedi_scsi_completion() 601 if (!sc_cmd->request) { in qedi_scsi_completion() 603 "sc_cmd->request is NULL, sc_cmd=%p.\n", in qedi_scsi_completion() 604 sc_cmd); in qedi_scsi_completion() 608 if (!sc_cmd in qedi_scsi_completion() 1976 struct scsi_cmnd *sc_cmd = task->sc; qedi_trace_io() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/qedi/ |
H A 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() 602 QEDI_WARN(&qedi->dbg_ctx, "sc_cmd is NULL!\n"); 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() 614 "request->q is NULL so request is not valid, sc_cmd=%p.\n", 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; qedi_trace_io() local [all...] |