sc_cmd 431 drivers/scsi/bnx2fc/bnx2fc.h struct scsi_cmnd *sc_cmd; sc_cmd 499 drivers/scsi/bnx2fc/bnx2fc.h int bnx2fc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd); sc_cmd 545 drivers/scsi/bnx2fc/bnx2fc.h int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd); sc_cmd 546 drivers/scsi/bnx2fc/bnx2fc.h int bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd); sc_cmd 547 drivers/scsi/bnx2fc/bnx2fc.h int bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd); sc_cmd 385 drivers/scsi/bnx2fc/bnx2fc_els.c struct scsi_cmnd *sc_cmd; sc_cmd 484 drivers/scsi/bnx2fc/bnx2fc_els.c new_io_req->sc_cmd = orig_io_req->sc_cmd; sc_cmd 516 drivers/scsi/bnx2fc/bnx2fc_els.c sc_cmd = orig_io_req->sc_cmd; sc_cmd 517 drivers/scsi/bnx2fc/bnx2fc_els.c if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { sc_cmd 711 drivers/scsi/bnx2fc/bnx2fc_els.c els_req->sc_cmd = NULL; sc_cmd 1455 drivers/scsi/bnx2fc/bnx2fc_hwi.c struct scsi_cmnd *sc_cmd = orig_io_req->sc_cmd; sc_cmd 1471 drivers/scsi/bnx2fc/bnx2fc_hwi.c if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) sc_cmd 1671 drivers/scsi/bnx2fc/bnx2fc_hwi.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 1688 drivers/scsi/bnx2fc/bnx2fc_hwi.c if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) sc_cmd 165 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 182 drivers/scsi/bnx2fc/bnx2fc_io.c io_req->sc_cmd = NULL; sc_cmd 185 drivers/scsi/bnx2fc/bnx2fc_io.c if (!sc_cmd) { sc_cmd 191 drivers/scsi/bnx2fc/bnx2fc_io.c if (!sc_cmd->device) { sc_cmd 195 drivers/scsi/bnx2fc/bnx2fc_io.c if (!sc_cmd->device->host) { sc_cmd 201 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->result = err_code << 16; sc_cmd 204 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd, host_byte(sc_cmd->result), sc_cmd->retries, sc_cmd 205 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->allowed); sc_cmd 206 drivers/scsi/bnx2fc/bnx2fc_io.c scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); sc_cmd 207 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = NULL; sc_cmd 208 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 661 drivers/scsi/bnx2fc/bnx2fc_io.c static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) sc_cmd 673 drivers/scsi/bnx2fc/bnx2fc_io.c struct Scsi_Host *host = sc_cmd->device->host; sc_cmd 683 drivers/scsi/bnx2fc/bnx2fc_io.c rport = starget_to_rport(scsi_target(sc_cmd->device)); sc_cmd 694 drivers/scsi/bnx2fc/bnx2fc_io.c rc = fc_block_scsi_eh(sc_cmd); sc_cmd 723 drivers/scsi/bnx2fc/bnx2fc_io.c io_req->sc_cmd = sc_cmd; sc_cmd 745 drivers/scsi/bnx2fc/bnx2fc_io.c memset(fcp_cmnd->fc_cdb, 0, sc_cmd->cmd_len); sc_cmd 768 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = (char *)io_req; sc_cmd 873 drivers/scsi/bnx2fc/bnx2fc_io.c abts_io_req->sc_cmd = NULL; sc_cmd 966 drivers/scsi/bnx2fc/bnx2fc_io.c seq_clnp_req->sc_cmd = NULL; sc_cmd 1024 drivers/scsi/bnx2fc/bnx2fc_io.c cleanup_io_req->sc_cmd = NULL; sc_cmd 1065 drivers/scsi/bnx2fc/bnx2fc_io.c int bnx2fc_eh_target_reset(struct scsi_cmnd *sc_cmd) sc_cmd 1067 drivers/scsi/bnx2fc/bnx2fc_io.c return bnx2fc_initiate_tmf(sc_cmd, FCP_TMF_TGT_RESET); sc_cmd 1078 drivers/scsi/bnx2fc/bnx2fc_io.c int bnx2fc_eh_device_reset(struct scsi_cmnd *sc_cmd) sc_cmd 1080 drivers/scsi/bnx2fc/bnx2fc_io.c return bnx2fc_initiate_tmf(sc_cmd, FCP_TMF_LUN_RESET); sc_cmd 1124 drivers/scsi/bnx2fc/bnx2fc_io.c int bnx2fc_eh_abort(struct scsi_cmnd *sc_cmd) sc_cmd 1126 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); sc_cmd 1134 drivers/scsi/bnx2fc/bnx2fc_io.c rc = fc_block_scsi_eh(sc_cmd); sc_cmd 1138 drivers/scsi/bnx2fc/bnx2fc_io.c lport = shost_priv(sc_cmd->device->host); sc_cmd 1149 drivers/scsi/bnx2fc/bnx2fc_io.c io_req = (struct bnx2fc_cmd *)sc_cmd->SCp.ptr; sc_cmd 1453 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 1456 drivers/scsi/bnx2fc/bnx2fc_io.c u64 tm_lun = sc_cmd->device->lun; sc_cmd 1468 drivers/scsi/bnx2fc/bnx2fc_io.c lun = cmd->sc_cmd->device->lun; sc_cmd 1525 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 1572 drivers/scsi/bnx2fc/bnx2fc_io.c if (!sc_cmd->SCp.ptr) { sc_cmd 1580 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->result = DID_OK << 16; sc_cmd 1583 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->result = (DID_OK << 16) | io_req->cdb_status; sc_cmd 1586 drivers/scsi/bnx2fc/bnx2fc_io.c scsi_set_resid(sc_cmd, io_req->fcp_resid); sc_cmd 1595 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd = io_req->sc_cmd; sc_cmd 1596 drivers/scsi/bnx2fc/bnx2fc_io.c io_req->sc_cmd = NULL; sc_cmd 1609 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = NULL; sc_cmd 1610 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 1648 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc = io_req->sc_cmd; sc_cmd 1692 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc = io_req->sc_cmd; sc_cmd 1722 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc = io_req->sc_cmd; sc_cmd 1740 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 1744 drivers/scsi/bnx2fc/bnx2fc_io.c int_to_scsilun(sc_cmd->device->lun, &fcp_cmnd->fc_lun); sc_cmd 1747 drivers/scsi/bnx2fc/bnx2fc_io.c memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); sc_cmd 1760 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 1777 drivers/scsi/bnx2fc/bnx2fc_io.c CMD_SCSI_STATUS(sc_cmd) = io_req->cdb_status = sc_cmd 1836 drivers/scsi/bnx2fc/bnx2fc_io.c memset(sc_cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); sc_cmd 1838 drivers/scsi/bnx2fc/bnx2fc_io.c memcpy(sc_cmd->sense_buffer, rq_data, fcp_sns_len); sc_cmd 1855 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc_cmd) sc_cmd 1858 drivers/scsi/bnx2fc/bnx2fc_io.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); sc_cmd 1867 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->result = rval; sc_cmd 1868 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 1905 drivers/scsi/bnx2fc/bnx2fc_io.c io_req->sc_cmd = sc_cmd; sc_cmd 1925 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc_cmd; sc_cmd 1942 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd = io_req->sc_cmd; sc_cmd 1943 drivers/scsi/bnx2fc/bnx2fc_io.c if (sc_cmd == NULL) { sc_cmd 1955 drivers/scsi/bnx2fc/bnx2fc_io.c if (!sc_cmd->SCp.ptr) { sc_cmd 1978 drivers/scsi/bnx2fc/bnx2fc_io.c io_req->sc_cmd = NULL; sc_cmd 1984 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->result = DID_OK << 16; sc_cmd 1990 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->result = (DID_OK << 16) | io_req->cdb_status; sc_cmd 2020 drivers/scsi/bnx2fc/bnx2fc_io.c scsi_set_resid(sc_cmd, io_req->fcp_resid); sc_cmd 2027 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = NULL; sc_cmd 2028 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 2037 drivers/scsi/bnx2fc/bnx2fc_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 2052 drivers/scsi/bnx2fc/bnx2fc_io.c io_req->data_xfer_len = scsi_bufflen(sc_cmd); sc_cmd 2053 drivers/scsi/bnx2fc/bnx2fc_io.c sc_cmd->SCp.ptr = (char *)io_req; sc_cmd 2056 drivers/scsi/bnx2fc/bnx2fc_io.c if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) { sc_cmd 2060 drivers/scsi/bnx2fc/bnx2fc_io.c } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { sc_cmd 1068 drivers/scsi/libfc/fc_fcp.c struct scsi_cmnd *sc_cmd; sc_cmd 1074 drivers/scsi/libfc/fc_fcp.c sc_cmd = fsp->cmd; sc_cmd 1075 drivers/scsi/libfc/fc_fcp.c if (id != -1 && scmd_id(sc_cmd) != id) sc_cmd 1078 drivers/scsi/libfc/fc_fcp.c if (lun != -1 && sc_cmd->device->lun != lun) sc_cmd 1858 drivers/scsi/libfc/fc_fcp.c int fc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *sc_cmd) sc_cmd 1861 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); sc_cmd 1869 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = rval; sc_cmd 1870 drivers/scsi/libfc/fc_fcp.c sc_cmd->scsi_done(sc_cmd); sc_cmd 1879 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = DID_IMM_RETRY << 16; sc_cmd 1880 drivers/scsi/libfc/fc_fcp.c sc_cmd->scsi_done(sc_cmd); sc_cmd 1905 drivers/scsi/libfc/fc_fcp.c fsp->cmd = sc_cmd; /* save the cmd */ sc_cmd 1911 drivers/scsi/libfc/fc_fcp.c fsp->data_len = scsi_bufflen(sc_cmd); sc_cmd 1918 drivers/scsi/libfc/fc_fcp.c if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) { sc_cmd 1922 drivers/scsi/libfc/fc_fcp.c } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { sc_cmd 1958 drivers/scsi/libfc/fc_fcp.c struct scsi_cmnd *sc_cmd; sc_cmd 1982 drivers/scsi/libfc/fc_fcp.c sc_cmd = fsp->cmd; sc_cmd 1983 drivers/scsi/libfc/fc_fcp.c CMD_SCSI_STATUS(sc_cmd) = fsp->cdb_status; sc_cmd 1990 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = DID_OK << 16; sc_cmd 1992 drivers/scsi/libfc/fc_fcp.c CMD_RESID_LEN(sc_cmd) = fsp->scsi_resid; sc_cmd 1998 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_OK << 16) | fsp->cdb_status; sc_cmd 2004 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = DID_ERROR << 16; sc_cmd 2013 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = DID_OK << 16; sc_cmd 2017 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = DID_ERROR << 16; sc_cmd 2025 drivers/scsi/libfc/fc_fcp.c CMD_RESID_LEN(sc_cmd) = fsp->scsi_resid; sc_cmd 2026 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status; sc_cmd 2035 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_ERROR << 16) | fsp->cdb_status; sc_cmd 2038 drivers/scsi/libfc/fc_fcp.c if (host_byte(sc_cmd->result) == DID_TIME_OUT) sc_cmd 2044 drivers/scsi/libfc/fc_fcp.c set_host_byte(sc_cmd, DID_ERROR); sc_cmd 2046 drivers/scsi/libfc/fc_fcp.c sc_cmd->result |= fsp->io_status; sc_cmd 2051 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_RESET << 16); sc_cmd 2056 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_SOFT_ERROR << 16); sc_cmd 2061 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_NO_CONNECT << 16); sc_cmd 2066 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_PARITY << 16); sc_cmd 2071 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_BUS_BUSY << 16) | fsp->io_status; sc_cmd 2076 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_ERROR << 16); sc_cmd 2081 drivers/scsi/libfc/fc_fcp.c sc_cmd->result = (DID_TRANSPORT_DISRUPTED << 16); sc_cmd 2085 drivers/scsi/libfc/fc_fcp.c sc_cmd->SCp.ptr = NULL; sc_cmd 2087 drivers/scsi/libfc/fc_fcp.c sc_cmd->scsi_done(sc_cmd); sc_cmd 2100 drivers/scsi/libfc/fc_fcp.c int fc_eh_abort(struct scsi_cmnd *sc_cmd) sc_cmd 2109 drivers/scsi/libfc/fc_fcp.c rval = fc_block_scsi_eh(sc_cmd); sc_cmd 2113 drivers/scsi/libfc/fc_fcp.c lport = shost_priv(sc_cmd->device->host); sc_cmd 2121 drivers/scsi/libfc/fc_fcp.c fsp = CMD_SP(sc_cmd); sc_cmd 2153 drivers/scsi/libfc/fc_fcp.c int fc_eh_device_reset(struct scsi_cmnd *sc_cmd) sc_cmd 2157 drivers/scsi/libfc/fc_fcp.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); sc_cmd 2161 drivers/scsi/libfc/fc_fcp.c rval = fc_block_scsi_eh(sc_cmd); sc_cmd 2165 drivers/scsi/libfc/fc_fcp.c lport = shost_priv(sc_cmd->device->host); sc_cmd 2188 drivers/scsi/libfc/fc_fcp.c rc = fc_lun_reset(lport, fsp, scmd_id(sc_cmd), sc_cmd->device->lun); sc_cmd 2201 drivers/scsi/libfc/fc_fcp.c int fc_eh_host_reset(struct scsi_cmnd *sc_cmd) sc_cmd 2203 drivers/scsi/libfc/fc_fcp.c struct Scsi_Host *shost = sc_cmd->device->host; sc_cmd 103 drivers/scsi/qedf/qedf.h struct scsi_cmnd *sc_cmd; sc_cmd 478 drivers/scsi/qedf/qedf.h struct scsi_cmnd *sc_cmd); sc_cmd 514 drivers/scsi/qedf/qedf.h extern int qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags); sc_cmd 68 drivers/scsi/qedf/qedf_els.c els_req->sc_cmd = NULL; sc_cmd 768 drivers/scsi/qedf/qedf_els.c if (!orig_io_req->sc_cmd) { sc_cmd 781 drivers/scsi/qedf/qedf_els.c new_io_req->sc_cmd = orig_io_req->sc_cmd; sc_cmd 789 drivers/scsi/qedf/qedf_els.c orig_io_req->sc_cmd = NULL; sc_cmd 835 drivers/scsi/qedf/qedf_els.c struct scsi_cmnd *sc_cmd; sc_cmd 917 drivers/scsi/qedf/qedf_els.c sc_cmd = orig_io_req->sc_cmd; sc_cmd 918 drivers/scsi/qedf/qedf_els.c if (!sc_cmd) { sc_cmd 925 drivers/scsi/qedf/qedf_els.c if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { sc_cmd 378 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 451 drivers/scsi/qedf/qedf_io.c WARN_ON(io_req->sc_cmd); sc_cmd 480 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc = io_req->sc_cmd; sc_cmd 538 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc = io_req->sc_cmd; sc_cmd 559 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 565 drivers/scsi/qedf/qedf_io.c int_to_scsilun(sc_cmd->device->lun, sc_cmd 578 drivers/scsi/qedf/qedf_io.c if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) sc_cmd 580 drivers/scsi/qedf/qedf_io.c else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) sc_cmd 588 drivers/scsi/qedf/qedf_io.c memcpy(fcp_cmnd->fc_cdb, sc_cmd->cmnd, sc_cmd->cmd_len); sc_cmd 599 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 621 drivers/scsi/qedf/qedf_io.c if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { sc_cmd 651 drivers/scsi/qedf/qedf_io.c scsi_bufflen(io_req->sc_cmd); sc_cmd 813 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 823 drivers/scsi/qedf/qedf_io.c io_log->lun = sc_cmd->device->lun; sc_cmd 824 drivers/scsi/qedf/qedf_io.c io_log->op = op = sc_cmd->cmnd[0]; sc_cmd 825 drivers/scsi/qedf/qedf_io.c io_log->lba[0] = sc_cmd->cmnd[2]; sc_cmd 826 drivers/scsi/qedf/qedf_io.c io_log->lba[1] = sc_cmd->cmnd[3]; sc_cmd 827 drivers/scsi/qedf/qedf_io.c io_log->lba[2] = sc_cmd->cmnd[4]; sc_cmd 828 drivers/scsi/qedf/qedf_io.c io_log->lba[3] = sc_cmd->cmnd[5]; sc_cmd 829 drivers/scsi/qedf/qedf_io.c io_log->bufflen = scsi_bufflen(sc_cmd); sc_cmd 830 drivers/scsi/qedf/qedf_io.c io_log->sg_count = scsi_sg_count(sc_cmd); sc_cmd 831 drivers/scsi/qedf/qedf_io.c io_log->result = sc_cmd->result; sc_cmd 857 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 858 drivers/scsi/qedf/qedf_io.c struct Scsi_Host *host = sc_cmd->device->host; sc_cmd 868 drivers/scsi/qedf/qedf_io.c io_req->data_xfer_len = scsi_bufflen(sc_cmd); sc_cmd 869 drivers/scsi/qedf/qedf_io.c sc_cmd->SCp.ptr = (char *)io_req; sc_cmd 875 drivers/scsi/qedf/qedf_io.c if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) { sc_cmd 879 drivers/scsi/qedf/qedf_io.c } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { sc_cmd 894 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 903 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 909 drivers/scsi/qedf/qedf_io.c io_req->lun = (int)sc_cmd->device->lun; sc_cmd 922 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 935 drivers/scsi/qedf/qedf_io.c if (qedf_io_tracing && io_req->sc_cmd) sc_cmd 942 drivers/scsi/qedf/qedf_io.c qedf_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc_cmd) sc_cmd 946 drivers/scsi/qedf/qedf_io.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); sc_cmd 955 drivers/scsi/qedf/qedf_io.c num_sgs = scsi_sg_count(sc_cmd); sc_cmd 956 drivers/scsi/qedf/qedf_io.c if (scsi_sg_count(sc_cmd) > QEDF_MAX_BDS_PER_CMD) { sc_cmd 960 drivers/scsi/qedf/qedf_io.c sc_cmd->result = DID_ERROR; sc_cmd 961 drivers/scsi/qedf/qedf_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 970 drivers/scsi/qedf/qedf_io.c sc_cmd->result = DID_NO_CONNECT << 16; sc_cmd 971 drivers/scsi/qedf/qedf_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 978 drivers/scsi/qedf/qedf_io.c sc_cmd); sc_cmd 979 drivers/scsi/qedf/qedf_io.c sc_cmd->result = DID_NO_CONNECT << 16; sc_cmd 980 drivers/scsi/qedf/qedf_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 989 drivers/scsi/qedf/qedf_io.c sc_cmd->result = rval; sc_cmd 990 drivers/scsi/qedf/qedf_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 1041 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = sc_cmd; sc_cmd 1061 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc_cmd = io_req->sc_cmd; sc_cmd 1075 drivers/scsi/qedf/qedf_io.c CMD_SCSI_STATUS(sc_cmd) = io_req->cdb_status = sc_cmd 1107 drivers/scsi/qedf/qedf_io.c if (sc_cmd->sense_buffer) { sc_cmd 1108 drivers/scsi/qedf/qedf_io.c memset(sc_cmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); sc_cmd 1110 drivers/scsi/qedf/qedf_io.c memcpy(sc_cmd->sense_buffer, sense_data, sc_cmd 1117 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc = io_req->sc_cmd; sc_cmd 1131 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc_cmd; sc_cmd 1154 drivers/scsi/qedf/qedf_io.c sc_cmd = io_req->sc_cmd; sc_cmd 1157 drivers/scsi/qedf/qedf_io.c if (!sc_cmd) { sc_cmd 1162 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->SCp.ptr) { sc_cmd 1168 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->device) { sc_cmd 1170 drivers/scsi/qedf/qedf_io.c "Device for sc_cmd %p is NULL.\n", sc_cmd); sc_cmd 1174 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->request) { sc_cmd 1176 drivers/scsi/qedf/qedf_io.c "sc_cmd=%p.\n", sc_cmd); sc_cmd 1180 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->request->q) { sc_cmd 1182 drivers/scsi/qedf/qedf_io.c "is not valid, sc_cmd=%p.\n", sc_cmd); sc_cmd 1194 drivers/scsi/qedf/qedf_io.c sc_cmd->device->lun == (u64)fcport->lun_reset_lun)) { sc_cmd 1211 drivers/scsi/qedf/qedf_io.c sc_cmd->result = DID_BUS_BUSY << 16; sc_cmd 1222 drivers/scsi/qedf/qedf_io.c cqe->cqe_info.rsp_info.fw_residual, sc_cmd->cmnd[2], sc_cmd 1223 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[3], sc_cmd->cmnd[4], sc_cmd->cmnd[5]); sc_cmd 1226 drivers/scsi/qedf/qedf_io.c sc_cmd->result = (DID_ERROR << 16) | io_req->cdb_status; sc_cmd 1228 drivers/scsi/qedf/qedf_io.c sc_cmd->result = (DID_OK << 16) | io_req->cdb_status; sc_cmd 1234 drivers/scsi/qedf/qedf_io.c scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); sc_cmd 1242 drivers/scsi/qedf/qedf_io.c sc_cmd->result = DID_OK << 16; sc_cmd 1249 drivers/scsi/qedf/qedf_io.c qedf->lport->host->host_no, sc_cmd->device->id, sc_cmd 1250 drivers/scsi/qedf/qedf_io.c sc_cmd->device->lun, io_req->xid, sc_cmd 1251 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[0], sc_cmd->cmnd[2], sc_cmd->cmnd[3], sc_cmd 1252 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[4], sc_cmd->cmnd[5], sc_cmd 1255 drivers/scsi/qedf/qedf_io.c sc_cmd->result = (DID_OK << 16) | io_req->cdb_status; sc_cmd 1289 drivers/scsi/qedf/qedf_io.c scsi_set_resid(sc_cmd, io_req->fcp_resid); sc_cmd 1307 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 1308 drivers/scsi/qedf/qedf_io.c sc_cmd->SCp.ptr = NULL; sc_cmd 1309 drivers/scsi/qedf/qedf_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 1318 drivers/scsi/qedf/qedf_io.c struct scsi_cmnd *sc_cmd; sc_cmd 1340 drivers/scsi/qedf/qedf_io.c sc_cmd = io_req->sc_cmd; sc_cmd 1342 drivers/scsi/qedf/qedf_io.c if (!sc_cmd) { sc_cmd 1347 drivers/scsi/qedf/qedf_io.c if (!virt_addr_valid(sc_cmd)) { sc_cmd 1348 drivers/scsi/qedf/qedf_io.c QEDF_ERR(&qedf->dbg_ctx, "sc_cmd=%p is not valid.", sc_cmd); sc_cmd 1352 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->SCp.ptr) { sc_cmd 1358 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->device) { sc_cmd 1360 drivers/scsi/qedf/qedf_io.c sc_cmd); sc_cmd 1364 drivers/scsi/qedf/qedf_io.c if (!virt_addr_valid(sc_cmd->device)) { sc_cmd 1366 drivers/scsi/qedf/qedf_io.c "Device pointer for sc_cmd %p is bad.\n", sc_cmd); sc_cmd 1370 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->sense_buffer) { sc_cmd 1373 drivers/scsi/qedf/qedf_io.c sc_cmd); sc_cmd 1377 drivers/scsi/qedf/qedf_io.c if (!virt_addr_valid(sc_cmd->sense_buffer)) { sc_cmd 1380 drivers/scsi/qedf/qedf_io.c sc_cmd); sc_cmd 1384 drivers/scsi/qedf/qedf_io.c if (!sc_cmd->scsi_done) { sc_cmd 1387 drivers/scsi/qedf/qedf_io.c sc_cmd); sc_cmd 1393 drivers/scsi/qedf/qedf_io.c sc_cmd->result = result << 16; sc_cmd 1398 drivers/scsi/qedf/qedf_io.c qedf->lport->host->host_no, sc_cmd->device->id, sc_cmd 1399 drivers/scsi/qedf/qedf_io.c sc_cmd->device->lun, sc_cmd, sc_cmd->result, sc_cmd->cmnd[0], sc_cmd 1400 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[2], sc_cmd->cmnd[3], sc_cmd->cmnd[4], sc_cmd 1401 drivers/scsi/qedf/qedf_io.c sc_cmd->cmnd[5], sc_cmd->allowed, sc_cmd->retries, sc_cmd 1408 drivers/scsi/qedf/qedf_io.c scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd)); sc_cmd 1413 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 1414 drivers/scsi/qedf/qedf_io.c sc_cmd->SCp.ptr = NULL; sc_cmd 1415 drivers/scsi/qedf/qedf_io.c sc_cmd->scsi_done(sc_cmd); sc_cmd 1424 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 1739 drivers/scsi/qedf/qedf_io.c if (!io_req->sc_cmd) sc_cmd 1741 drivers/scsi/qedf/qedf_io.c if (!io_req->sc_cmd->device) { sc_cmd 1744 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd); sc_cmd 1746 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 1808 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd, sc_cmd 1894 drivers/scsi/qedf/qedf_io.c io_req->xid, io_req->sc_cmd); sc_cmd 2010 drivers/scsi/qedf/qedf_io.c if (io_req->sc_cmd) { sc_cmd 2191 drivers/scsi/qedf/qedf_io.c io_req->xid, io_req->sc_cmd, io_req->cmd_type, io_req->flags, sc_cmd 2235 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 2239 drivers/scsi/qedf/qedf_io.c if (io_req->sc_cmd) { sc_cmd 2268 drivers/scsi/qedf/qedf_io.c static int qedf_execute_tmf(struct qedf_rport *fcport, struct scsi_cmnd *sc_cmd, sc_cmd 2283 drivers/scsi/qedf/qedf_io.c if (!sc_cmd) { sc_cmd 2288 drivers/scsi/qedf/qedf_io.c lun = (int)sc_cmd->device->lun; sc_cmd 2308 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = sc_cmd; sc_cmd 2354 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 2391 drivers/scsi/qedf/qedf_io.c int qedf_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) sc_cmd 2393 drivers/scsi/qedf/qedf_io.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); sc_cmd 2397 drivers/scsi/qedf/qedf_io.c struct fc_lport *lport = shost_priv(sc_cmd->device->host); sc_cmd 2406 drivers/scsi/qedf/qedf_io.c tm_flags, sc_cmd, sc_cmd->cmd_len ? sc_cmd->cmnd[0] : 0xff, sc_cmd 2407 drivers/scsi/qedf/qedf_io.c rport->scsi_target_id, (int)sc_cmd->device->lun); sc_cmd 2418 drivers/scsi/qedf/qedf_io.c if (sc_cmd->SCp.ptr) { sc_cmd 2419 drivers/scsi/qedf/qedf_io.c io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; sc_cmd 2433 drivers/scsi/qedf/qedf_io.c rc = fc_block_scsi_eh(sc_cmd); sc_cmd 2481 drivers/scsi/qedf/qedf_io.c rc = qedf_execute_tmf(fcport, sc_cmd, tm_flags); sc_cmd 2498 drivers/scsi/qedf/qedf_io.c io_req->sc_cmd = NULL; sc_cmd 648 drivers/scsi/qedf/qedf_main.c static int qedf_eh_abort(struct scsi_cmnd *sc_cmd) sc_cmd 650 drivers/scsi/qedf/qedf_main.c struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); sc_cmd 663 drivers/scsi/qedf/qedf_main.c lport = shost_priv(sc_cmd->device->host); sc_cmd 670 drivers/scsi/qedf/qedf_main.c QEDF_ERR(&qedf->dbg_ctx, "stale rport, sc_cmd=%p\n", sc_cmd); sc_cmd 676 drivers/scsi/qedf/qedf_main.c io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr; sc_cmd 680 drivers/scsi/qedf/qedf_main.c sc_cmd, sc_cmd->cmnd[0], sc_cmd 691 drivers/scsi/qedf/qedf_main.c if (!rval || io_req->sc_cmd != sc_cmd) { sc_cmd 694 drivers/scsi/qedf/qedf_main.c io_req->sc_cmd, sc_cmd, rdata->ids.port_id); sc_cmd 703 drivers/scsi/qedf/qedf_main.c io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0], sc_cmd 709 drivers/scsi/qedf/qedf_main.c rc = fc_block_scsi_eh(sc_cmd); sc_cmd 717 drivers/scsi/qedf/qedf_main.c while (io_req->sc_cmd && (wait_count != 0)) { sc_cmd 738 drivers/scsi/qedf/qedf_main.c io_req, sc_cmd, io_req->xid, io_req->fp_idx, sc_cmd 791 drivers/scsi/qedf/qedf_main.c static int qedf_eh_target_reset(struct scsi_cmnd *sc_cmd) sc_cmd 794 drivers/scsi/qedf/qedf_main.c sc_cmd->device->host->host_no, sc_cmd->device->id, sc_cmd 795 drivers/scsi/qedf/qedf_main.c sc_cmd->device->lun); sc_cmd 796 drivers/scsi/qedf/qedf_main.c return qedf_initiate_tmf(sc_cmd, FCP_TMF_TGT_RESET); sc_cmd 799 drivers/scsi/qedf/qedf_main.c static int qedf_eh_device_reset(struct scsi_cmnd *sc_cmd) sc_cmd 802 drivers/scsi/qedf/qedf_main.c sc_cmd->device->host->host_no, sc_cmd->device->id, sc_cmd 803 drivers/scsi/qedf/qedf_main.c sc_cmd->device->lun); sc_cmd 804 drivers/scsi/qedf/qedf_main.c return qedf_initiate_tmf(sc_cmd, FCP_TMF_LUN_RESET); sc_cmd 886 drivers/scsi/qedf/qedf_main.c static int qedf_eh_host_reset(struct scsi_cmnd *sc_cmd) sc_cmd 891 drivers/scsi/qedf/qedf_main.c lport = shost_priv(sc_cmd->device->host); sc_cmd 575 drivers/scsi/qedi/qedi_fw.c struct scsi_cmnd *sc_cmd; sc_cmd 594 drivers/scsi/qedi/qedi_fw.c sc_cmd = cmd->scsi_cmd; sc_cmd 596 drivers/scsi/qedi/qedi_fw.c if (!sc_cmd) { sc_cmd 601 drivers/scsi/qedi/qedi_fw.c if (!sc_cmd->SCp.ptr) { sc_cmd 607 drivers/scsi/qedi/qedi_fw.c if (!sc_cmd->request) { sc_cmd 610 drivers/scsi/qedi/qedi_fw.c sc_cmd); sc_cmd 614 drivers/scsi/qedi/qedi_fw.c if (!sc_cmd->request->q) { sc_cmd 617 drivers/scsi/qedi/qedi_fw.c sc_cmd); sc_cmd 648 drivers/scsi/qedi/qedi_fw.c scsi_bufflen(sc_cmd)); sc_cmd 649 drivers/scsi/qedi/qedi_fw.c hdr->residual_count = cpu_to_be32(scsi_bufflen(sc_cmd)); sc_cmd 1979 drivers/scsi/qedi/qedi_fw.c struct scsi_cmnd *sc_cmd = task->sc; sc_cmd 1988 drivers/scsi/qedi/qedi_fw.c io_log->lun = sc_cmd->device->lun; sc_cmd 1989 drivers/scsi/qedi/qedi_fw.c io_log->op = sc_cmd->cmnd[0]; sc_cmd 1990 drivers/scsi/qedi/qedi_fw.c io_log->lba[0] = sc_cmd->cmnd[2]; sc_cmd 1991 drivers/scsi/qedi/qedi_fw.c io_log->lba[1] = sc_cmd->cmnd[3]; sc_cmd 1992 drivers/scsi/qedi/qedi_fw.c io_log->lba[2] = sc_cmd->cmnd[4]; sc_cmd 1993 drivers/scsi/qedi/qedi_fw.c io_log->lba[3] = sc_cmd->cmnd[5]; sc_cmd 1994 drivers/scsi/qedi/qedi_fw.c io_log->bufflen = scsi_bufflen(sc_cmd); sc_cmd 1995 drivers/scsi/qedi/qedi_fw.c io_log->sg_count = scsi_sg_count(sc_cmd); sc_cmd 2002 drivers/scsi/qedi/qedi_fw.c io_log->result = sc_cmd->result;