scmd 427 arch/powerpc/include/asm/smu.h extern int smu_queue_simple(struct smu_simple_cmd *scmd, u8 command, scmd 445 arch/powerpc/include/asm/smu.h static inline void smu_spinwait_simple(struct smu_simple_cmd *scmd) scmd 447 arch/powerpc/include/asm/smu.h smu_spinwait_cmd(&scmd->cmd); scmd 503 arch/powerpc/include/asm/smu.h struct smu_cmd scmd; scmd 582 drivers/ata/libata-eh.c struct scsi_cmnd *scmd, *tmp; scmd 597 drivers/ata/libata-eh.c list_for_each_entry_safe(scmd, tmp, eh_work_q, eh_entry) { scmd 602 drivers/ata/libata-eh.c qc->scsicmd == scmd) scmd 619 drivers/ata/libata-eh.c scmd->retries = scmd->allowed; scmd 620 drivers/ata/libata-eh.c scsi_eh_finish_cmd(scmd, &ap->eh_done_q); scmd 1214 drivers/ata/libata-eh.c static void ata_eh_scsidone(struct scsi_cmnd *scmd) scmd 1222 drivers/ata/libata-eh.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 1231 drivers/ata/libata-eh.c scsi_eh_finish_cmd(scmd, &ap->eh_done_q); scmd 1243 drivers/ata/libata-eh.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 1244 drivers/ata/libata-eh.c scmd->retries = scmd->allowed; scmd 1261 drivers/ata/libata-eh.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 1263 drivers/ata/libata-eh.c scmd->allowed++; scmd 868 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 870 drivers/ata/libata-scsi.c qc->extrabytes = scmd->request->extra_len; scmd 871 drivers/ata/libata-scsi.c qc->nbytes = scsi_bufflen(scmd) + qc->extrabytes; scmd 1460 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 1462 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 1466 drivers/ata/libata-scsi.c if (scmd->cmd_len < 5) { scmd 1531 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, bp); scmd 1534 drivers/ata/libata-scsi.c scmd->result = SAM_STAT_GOOD; scmd 1675 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 1679 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 1688 drivers/ata/libata-scsi.c if (scmd->cmd_len < 10) { scmd 1694 drivers/ata/libata-scsi.c if (scmd->cmd_len < 16) { scmd 1776 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, 0xff); scmd 1780 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x21, 0x0); scmd 1785 drivers/ata/libata-scsi.c scmd->result = SAM_STAT_GOOD; scmd 1789 drivers/ata/libata-scsi.c static bool ata_check_nblocks(struct scsi_cmnd *scmd, u32 n_blocks) scmd 1791 drivers/ata/libata-scsi.c struct request *rq = scmd->request; scmd 1797 drivers/ata/libata-scsi.c req_blocks = blk_rq_bytes(rq) / scmd->device->sector_size; scmd 1824 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 1825 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 1826 drivers/ata/libata-scsi.c struct request *rq = scmd->request; scmd 1841 drivers/ata/libata-scsi.c if (unlikely(scmd->cmd_len < 10)) { scmd 1848 drivers/ata/libata-scsi.c if (!ata_check_nblocks(scmd, n_block)) scmd 1853 drivers/ata/libata-scsi.c if (unlikely(scmd->cmd_len < 6)) { scmd 1864 drivers/ata/libata-scsi.c if (!ata_check_nblocks(scmd, n_block)) scmd 1869 drivers/ata/libata-scsi.c if (unlikely(scmd->cmd_len < 16)) { scmd 1876 drivers/ata/libata-scsi.c if (!ata_check_nblocks(scmd, n_block)) scmd 1897 drivers/ata/libata-scsi.c qc->nbytes = n_block * scmd->device->sector_size; scmd 1909 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, 0xff); scmd 1913 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x21, 0x0); scmd 1918 drivers/ata/libata-scsi.c scmd->result = SAM_STAT_GOOD; scmd 2951 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 2953 drivers/ata/libata-scsi.c int nodata = (scmd->sc_data_direction == DMA_NONE); scmd 2958 drivers/ata/libata-scsi.c memcpy(qc->cdb, scmd->cmnd, scmd->cmd_len); scmd 2963 drivers/ata/libata-scsi.c if (scmd->sc_data_direction == DMA_TO_DEVICE) { scmd 3022 drivers/ata/libata-scsi.c (scmd->sc_data_direction != DMA_TO_DEVICE)) scmd 3145 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 3147 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 3254 drivers/ata/libata-scsi.c qc->sect_size = scsi_bufflen(scmd); scmd 3288 drivers/ata/libata-scsi.c qc->sect_size = scmd->device->sector_size; scmd 3302 drivers/ata/libata-scsi.c if (scmd->sc_data_direction == DMA_TO_DEVICE) scmd 3380 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(dev, scmd, fp, 0xff); scmd 3452 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 3453 drivers/ata/libata-scsi.c struct scsi_device *sdp = scmd->device; scmd 3456 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 3474 drivers/ata/libata-scsi.c if (unlikely(blk_rq_is_passthrough(scmd->request))) scmd 3477 drivers/ata/libata-scsi.c if (unlikely(scmd->cmd_len < 16)) { scmd 3500 drivers/ata/libata-scsi.c if (!scsi_sg_count(scmd)) scmd 3509 drivers/ata/libata-scsi.c size = ata_format_dsm_trim_descr(scmd, trmax, block, n_block); scmd 3540 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(dev, scmd, fp, bp); scmd 3544 drivers/ata/libata-scsi.c ata_scsi_set_sense(dev, scmd, ILLEGAL_REQUEST, 0x1a, 0x0); scmd 3548 drivers/ata/libata-scsi.c ata_scsi_set_sense(dev, scmd, ILLEGAL_REQUEST, 0x20, 0x0); scmd 3633 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 3638 drivers/ata/libata-scsi.c sg_miter_start(&miter, scsi_sglist(scmd), scsi_sg_count(scmd), scmd 3697 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 3698 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 3704 drivers/ata/libata-scsi.c if (unlikely(scmd->cmd_len < 16)) { scmd 3706 drivers/ata/libata-scsi.c scmd->cmd_len); scmd 3711 drivers/ata/libata-scsi.c if (n_block != scsi_bufflen(scmd)) { scmd 3713 drivers/ata/libata-scsi.c n_block, scsi_bufflen(scmd)); scmd 3768 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, bp); scmd 3773 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x1a, 0x0); scmd 3780 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 3782 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 3788 drivers/ata/libata-scsi.c if (unlikely(scmd->cmd_len < 16)) { scmd 3847 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, 0xff); scmd 3851 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x1a, 0x0); scmd 3979 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 3980 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 3992 drivers/ata/libata-scsi.c if (scmd->cmd_len < 5) { scmd 4000 drivers/ata/libata-scsi.c if (scmd->cmd_len < 9) { scmd 4017 drivers/ata/libata-scsi.c if (!scsi_sg_count(scmd) || scsi_sglist(scmd)->length < len) scmd 4020 drivers/ata/libata-scsi.c p = page_address(sg_page(scsi_sglist(scmd))); scmd 4108 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, fp, bp); scmd 4112 drivers/ata/libata-scsi.c ata_scsi_set_invalid_parameter(qc->dev, scmd, fp); scmd 4117 drivers/ata/libata-scsi.c ata_scsi_set_sense(qc->dev, scmd, ILLEGAL_REQUEST, 0x1a, 0x0); scmd 4121 drivers/ata/libata-scsi.c scmd->result = SAM_STAT_GOOD; scmd 4137 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 4138 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 4150 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, 1, 0); scmd 4156 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, 6, 0); scmd 4161 drivers/ata/libata-scsi.c ata_scsi_set_invalid_field(qc->dev, scmd, 6, 0); scmd 4203 drivers/ata/libata-scsi.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 4204 drivers/ata/libata-scsi.c const u8 *cdb = scmd->cmnd; scmd 4306 drivers/ata/libata-scsi.c static inline int __ata_scsi_queuecmd(struct scsi_cmnd *scmd, scmd 4309 drivers/ata/libata-scsi.c u8 scsi_op = scmd->cmnd[0]; scmd 4314 drivers/ata/libata-scsi.c if (unlikely(!scmd->cmd_len || scmd->cmd_len > dev->cdb_len)) scmd 4319 drivers/ata/libata-scsi.c if (unlikely(!scmd->cmd_len)) scmd 4326 drivers/ata/libata-scsi.c if (unlikely(len > scmd->cmd_len || scmd 4328 drivers/ata/libata-scsi.c scmd->cmd_len > ATAPI_CDB_LEN)) scmd 4334 drivers/ata/libata-scsi.c if (unlikely(scmd->cmd_len > 16)) scmd 4342 drivers/ata/libata-scsi.c rc = ata_scsi_translate(dev, scmd, xlat_func); scmd 4344 drivers/ata/libata-scsi.c ata_scsi_simulate(dev, scmd); scmd 4350 drivers/ata/libata-scsi.c scmd->cmd_len, scsi_op, dev->cdb_len); scmd 4351 drivers/ata/libata-scsi.c scmd->result = DID_ERROR << 16; scmd 4352 drivers/ata/libata-scsi.c scmd->scsi_done(scmd); scmd 1855 drivers/ata/sata_mv.c struct scsi_cmnd *scmd = qc->scsicmd; scmd 1857 drivers/ata/sata_mv.c if (scmd) { scmd 1858 drivers/ata/sata_mv.c switch (scmd->cmnd[0]) { scmd 180 drivers/crypto/chelsio/chtls/chtls.h struct tls_scmd scmd; scmd 274 drivers/crypto/chelsio/chtls/chtls_hw.c hws->scmd.seqno_numivs = scmd 285 drivers/crypto/chelsio/chtls/chtls_hw.c hws->scmd.ivgen_hdrlen = scmd 352 drivers/crypto/chelsio/chtls/chtls_io.c struct tls_scmd *scmd; scmd 364 drivers/crypto/chelsio/chtls/chtls_io.c scmd = &hws->scmd; scmd 370 drivers/crypto/chelsio/chtls/chtls_io.c updated_scmd = scmd; scmd 373 drivers/crypto/chelsio/chtls/chtls_io.c hws->scmd = *updated_scmd; scmd 434 drivers/crypto/chelsio/chtls/chtls_io.c req_cpl->seqno_numivs = cpu_to_be32(hws->scmd.seqno_numivs); scmd 435 drivers/crypto/chelsio/chtls/chtls_io.c req_cpl->ivgen_hdrlen = cpu_to_be32(hws->scmd.ivgen_hdrlen); scmd 448 drivers/crypto/chelsio/chtls/chtls_io.c struct tls_scmd *scmd = &hws->scmd; scmd 455 drivers/crypto/chelsio/chtls/chtls_io.c if (SCMD_CIPH_MODE_G(scmd->seqno_numivs) == scmd 289 drivers/macintosh/smu.c int smu_queue_simple(struct smu_simple_cmd *scmd, u8 command, scmd 294 drivers/macintosh/smu.c struct smu_cmd *cmd = &scmd->cmd; scmd 298 drivers/macintosh/smu.c if (data_len > sizeof(scmd->buffer)) scmd 301 drivers/macintosh/smu.c memset(scmd, 0, sizeof(*scmd)); scmd 304 drivers/macintosh/smu.c cmd->data_buf = scmd->buffer; scmd 305 drivers/macintosh/smu.c cmd->reply_len = sizeof(scmd->buffer); scmd 306 drivers/macintosh/smu.c cmd->reply_buf = scmd->buffer; scmd 312 drivers/macintosh/smu.c scmd->buffer[i] = (u8)va_arg(list, int); scmd 744 drivers/macintosh/smu.c list_add_tail(&cmd->scmd.link, &smu->cmd_list); scmd 765 drivers/macintosh/smu.c cmd->scmd.reply_len = sizeof(cmd->pdata); scmd 766 drivers/macintosh/smu.c smu_queue_cmd(&cmd->scmd); scmd 770 drivers/macintosh/smu.c static void smu_i2c_low_completion(struct smu_cmd *scmd, void *misc) scmd 776 drivers/macintosh/smu.c cmd->stage, scmd->status, cmd->pdata[0], scmd->reply_len); scmd 779 drivers/macintosh/smu.c if (scmd->status < 0) scmd 813 drivers/macintosh/smu.c scmd->reply_buf = cmd->pdata; scmd 814 drivers/macintosh/smu.c scmd->reply_len = sizeof(cmd->pdata); scmd 815 drivers/macintosh/smu.c scmd->data_buf = cmd->pdata; scmd 816 drivers/macintosh/smu.c scmd->data_len = 1; scmd 820 drivers/macintosh/smu.c smu_queue_cmd(scmd); scmd 832 drivers/macintosh/smu.c cmd->scmd.cmd = SMU_CMD_I2C_COMMAND; scmd 833 drivers/macintosh/smu.c cmd->scmd.done = smu_i2c_low_completion; scmd 834 drivers/macintosh/smu.c cmd->scmd.misc = cmd; scmd 835 drivers/macintosh/smu.c cmd->scmd.reply_buf = cmd->pdata; scmd 836 drivers/macintosh/smu.c cmd->scmd.reply_len = sizeof(cmd->pdata); scmd 837 drivers/macintosh/smu.c cmd->scmd.data_buf = (u8 *)(char *)&cmd->info; scmd 838 drivers/macintosh/smu.c cmd->scmd.status = 1; scmd 870 drivers/macintosh/smu.c cmd->scmd.data_len = 9; scmd 874 drivers/macintosh/smu.c cmd->scmd.data_len = 9 + cmd->info.datalen; scmd 890 drivers/macintosh/smu.c list_add_tail(&cmd->scmd.link, &smu->cmd_list); scmd 86 drivers/message/fusion/mptscsih.c static void mptscsih_set_scsi_lookup(MPT_ADAPTER *ioc, int i, struct scsi_cmnd *scmd); scmd 87 drivers/message/fusion/mptscsih.c static int SCPNT_TO_LOOKUP_IDX(MPT_ADAPTER *ioc, struct scsi_cmnd *scmd); scmd 2470 drivers/message/fusion/mptscsih.c struct scsi_cmnd *scmd; scmd 2473 drivers/message/fusion/mptscsih.c scmd = ioc->ScsiLookup[i]; scmd 2476 drivers/message/fusion/mptscsih.c return scmd; scmd 2492 drivers/message/fusion/mptscsih.c struct scsi_cmnd *scmd; scmd 2495 drivers/message/fusion/mptscsih.c scmd = ioc->ScsiLookup[i]; scmd 2499 drivers/message/fusion/mptscsih.c return scmd; scmd 2511 drivers/message/fusion/mptscsih.c mptscsih_set_scsi_lookup(MPT_ADAPTER *ioc, int i, struct scsi_cmnd *scmd) scmd 2516 drivers/message/fusion/mptscsih.c ioc->ScsiLookup[i] = scmd; scmd 374 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.scmd.sc = FW_PTP_SC_INIT_TIMER; scmd 3300 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h } scmd; scmd 709 drivers/net/wireless/intel/iwlwifi/mvm/utils.c struct iwl_statistics_cmd scmd = { scmd 714 drivers/net/wireless/intel/iwlwifi/mvm/utils.c .len[0] = sizeof(scmd), scmd 715 drivers/net/wireless/intel/iwlwifi/mvm/utils.c .data[0] = &scmd, scmd 363 drivers/s390/scsi/zfcp_dbf.h void _zfcp_dbf_scsi(char *tag, int level, struct scsi_cmnd *scmd, scmd 367 drivers/s390/scsi/zfcp_dbf.h scmd->device->host->hostdata[0]; scmd 370 drivers/s390/scsi/zfcp_dbf.h zfcp_dbf_scsi_common(tag, level, scmd->device, scmd, req); scmd 379 drivers/s390/scsi/zfcp_dbf.h void zfcp_dbf_scsi_result(struct scsi_cmnd *scmd, struct zfcp_fsf_req *req) scmd 381 drivers/s390/scsi/zfcp_dbf.h if (scmd->result != 0) scmd 382 drivers/s390/scsi/zfcp_dbf.h _zfcp_dbf_scsi("rsl_err", 3, scmd, req); scmd 383 drivers/s390/scsi/zfcp_dbf.h else if (scmd->retries > 0) scmd 384 drivers/s390/scsi/zfcp_dbf.h _zfcp_dbf_scsi("rsl_ret", 4, scmd, req); scmd 386 drivers/s390/scsi/zfcp_dbf.h _zfcp_dbf_scsi("rsl_nor", 6, scmd, req); scmd 394 drivers/s390/scsi/zfcp_dbf.h void zfcp_dbf_scsi_fail_send(struct scsi_cmnd *scmd) scmd 396 drivers/s390/scsi/zfcp_dbf.h _zfcp_dbf_scsi("rsl_fai", 4, scmd, NULL); scmd 406 drivers/s390/scsi/zfcp_dbf.h void zfcp_dbf_scsi_abort(char *tag, struct scsi_cmnd *scmd, scmd 409 drivers/s390/scsi/zfcp_dbf.h _zfcp_dbf_scsi(tag, 1, scmd, fsf_req); scmd 835 drivers/s390/scsi/zfcp_scsi.c void zfcp_scsi_dif_sense_error(struct scsi_cmnd *scmd, int ascq) scmd 837 drivers/s390/scsi/zfcp_scsi.c scsi_build_sense_buffer(1, scmd->sense_buffer, scmd 839 drivers/s390/scsi/zfcp_scsi.c set_driver_byte(scmd, DRIVER_SENSE); scmd 840 drivers/s390/scsi/zfcp_scsi.c scmd->result |= SAM_STAT_CHECK_CONDITION; scmd 841 drivers/s390/scsi/zfcp_scsi.c set_host_byte(scmd, DID_SOFT_ERROR); scmd 28 drivers/scsi/53c700.h #define CDEBUG(prefix, scmd, fmt, a...) \ scmd 29 drivers/scsi/53c700.h scmd_printk(prefix, scmd, fmt, ##a) scmd 32 drivers/scsi/53c700.h #define DDEBUG(prefix, scmd, fmt, a...) do {} while (0) scmd 33 drivers/scsi/53c700.h #define CDEBUG(prefix, scmd, fmt, a...) do {} while (0) scmd 2379 drivers/scsi/NCR5380.c struct scsi_cmnd *scmd = NCR5380_to_scmd(ncmd); scmd 2381 drivers/scsi/NCR5380.c scmd->result = DID_RESET << 16; scmd 2382 drivers/scsi/NCR5380.c scmd->scsi_done(scmd); scmd 2680 drivers/scsi/aacraid/aacraid.h struct fib *aac_fib_alloc_tag(struct aac_dev *dev, struct scsi_cmnd *scmd); scmd 222 drivers/scsi/aacraid/commsup.c struct fib *aac_fib_alloc_tag(struct aac_dev *dev, struct scsi_cmnd *scmd) scmd 226 drivers/scsi/aacraid/commsup.c fibptr = &dev->fibs[scmd->request->tag]; scmd 3315 drivers/scsi/cxlflash/main.c u16 scmd = lunprov->hdr.subcmd; scmd 3332 drivers/scsi/cxlflash/main.c switch (scmd) { scmd 3381 drivers/scsi/cxlflash/main.c if (scmd == HT_CXLFLASH_LUN_PROVISION_SUBCMD_CREATE_LUN) { scmd 267 drivers/scsi/hpsa.c struct scsi_cmnd *scmd); scmd 5836 drivers/scsi/hpsa.c static int hpsa_get_cmd_index(struct scsi_cmnd *scmd) scmd 5838 drivers/scsi/hpsa.c int idx = scmd->request->tag; scmd 6073 drivers/scsi/hpsa.c struct scsi_cmnd *scmd) scmd 6075 drivers/scsi/hpsa.c int idx = hpsa_get_cmd_index(scmd); scmd 6097 drivers/scsi/hpsa.c if (scmd) scmd 6098 drivers/scsi/hpsa.c scsi_print_command(scmd); scmd 1297 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_map_sg_list(struct scsi_cmnd *scmd, int nseg, scmd 1303 drivers/scsi/ibmvscsi/ibmvfc.c scsi_for_each_sg(scmd, sg, nseg, i) { scmd 1320 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_map_sg_data(struct scsi_cmnd *scmd, scmd 1332 drivers/scsi/ibmvscsi/ibmvfc.c sg_mapped = scsi_dma_map(scmd); scmd 1338 drivers/scsi/ibmvscsi/ibmvfc.c scmd_printk(KERN_ERR, scmd, "Failed to map DMA buffer for command\n"); scmd 1342 drivers/scsi/ibmvscsi/ibmvfc.c if (scmd->sc_data_direction == DMA_TO_DEVICE) { scmd 1351 drivers/scsi/ibmvscsi/ibmvfc.c ibmvfc_map_sg_list(scmd, sg_mapped, data); scmd 1362 drivers/scsi/ibmvscsi/ibmvfc.c scsi_dma_unmap(scmd); scmd 1364 drivers/scsi/ibmvscsi/ibmvfc.c scmd_printk(KERN_ERR, scmd, "Can't allocate memory for scatterlist\n"); scmd 1369 drivers/scsi/ibmvscsi/ibmvfc.c ibmvfc_map_sg_list(scmd, sg_mapped, evt->ext_list); scmd 318 drivers/scsi/ips.c static void ips_scmd_buf_write(struct scsi_cmnd * scmd, void *data, scmd 320 drivers/scsi/ips.c static void ips_scmd_buf_read(struct scsi_cmnd * scmd, void *data, scmd 3411 drivers/scsi/ips.c ips_scmd_buf_write(struct scsi_cmnd *scmd, void *data, unsigned int count) scmd 3416 drivers/scsi/ips.c scsi_sg_copy_from_buffer(scmd, data, count); scmd 3428 drivers/scsi/ips.c ips_scmd_buf_read(struct scsi_cmnd *scmd, void *data, unsigned int count) scmd 3433 drivers/scsi/ips.c scsi_sg_copy_to_buffer(scmd, data, count); scmd 300 drivers/scsi/isci/request.c struct scsi_cmnd *scmd = ireq->ttype_ptr.io_task_ptr->uldd_task; scmd 301 drivers/scsi/isci/request.c u8 blk_sz = scu_bg_blk_size(scmd->device); scmd 310 drivers/scsi/isci/request.c scmd->device->sector_size); scmd 321 drivers/scsi/isci/request.c tc->UD_bytes_immed_val = scmd->device->sector_size; scmd 329 drivers/scsi/isci/request.c tc->bgc_blk_sz = scmd->device->sector_size; scmd 347 drivers/scsi/isci/request.c tc->ref_tag_seed_gen = scsi_get_lba(scmd) & 0xffffffff; scmd 355 drivers/scsi/isci/request.c struct scsi_cmnd *scmd = ireq->ttype_ptr.io_task_ptr->uldd_task; scmd 356 drivers/scsi/isci/request.c u8 blk_sz = scu_bg_blk_size(scmd->device); scmd 365 drivers/scsi/isci/request.c scmd->device->sector_size); scmd 375 drivers/scsi/isci/request.c tc->ref_tag_seed_verify = scsi_get_lba(scmd) & 0xffffffff; scmd 380 drivers/scsi/isci/request.c tc->UD_bytes_immed_val = scmd->device->sector_size; scmd 388 drivers/scsi/isci/request.c tc->bgc_blk_sz = scmd->device->sector_size; scmd 424 drivers/scsi/isci/request.c struct scsi_cmnd *scmd = sas_task->uldd_task; scmd 425 drivers/scsi/isci/request.c u8 prot_type = scsi_get_prot_type(scmd); scmd 426 drivers/scsi/isci/request.c u8 prot_op = scsi_get_prot_op(scmd); scmd 369 drivers/scsi/megaraid.c megaraid_queue_lck(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *)) scmd 376 drivers/scsi/megaraid.c adapter = (adapter_t *)scmd->device->host->hostdata; scmd 378 drivers/scsi/megaraid.c scmd->scsi_done = done; scmd 391 drivers/scsi/megaraid.c scb = mega_build_cmd(adapter, scmd, &busy); scmd 2565 drivers/scsi/megaraid/megaraid_sas.h struct scsi_cmnd *scmd; scmd 2692 drivers/scsi/megaraid/megaraid_sas.h int megasas_task_abort_fusion(struct scsi_cmnd *scmd); scmd 2693 drivers/scsi/megaraid/megaraid_sas.h int megasas_reset_target_fusion(struct scsi_cmnd *scmd); scmd 2707 drivers/scsi/megaraid/megaraid_sas.h void megasas_dump_fusion_io(struct scsi_cmnd *scmd); scmd 223 drivers/scsi/megaraid/megaraid_sas_base.c struct scsi_cmnd *scmd); scmd 351 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd = NULL; scmd 1666 drivers/scsi/megaraid/megaraid_sas_base.c if (!cmd->scmd) scmd 1669 drivers/scsi/megaraid/megaraid_sas_base.c if (megasas_cmd_type(cmd->scmd) == READ_WRITE_LDIO) { scmd 1714 drivers/scsi/megaraid/megaraid_sas_base.c struct scsi_cmnd *scmd) scmd 1726 drivers/scsi/megaraid/megaraid_sas_base.c if (megasas_cmd_type(scmd) == READ_WRITE_LDIO) scmd 1727 drivers/scsi/megaraid/megaraid_sas_base.c frame_count = megasas_build_ldio(instance, scmd, cmd); scmd 1729 drivers/scsi/megaraid/megaraid_sas_base.c frame_count = megasas_build_dcdb(instance, scmd, cmd); scmd 1734 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd = scmd; scmd 1735 drivers/scsi/megaraid/megaraid_sas_base.c scmd->SCp.ptr = (char *)cmd; scmd 1758 drivers/scsi/megaraid/megaraid_sas_base.c megasas_queue_command(struct Scsi_Host *shost, struct scsi_cmnd *scmd) scmd 1764 drivers/scsi/megaraid/megaraid_sas_base.c scmd->device->host->hostdata; scmd 1767 drivers/scsi/megaraid/megaraid_sas_base.c scmd->result = DID_NO_CONNECT << 16; scmd 1768 drivers/scsi/megaraid/megaraid_sas_base.c scmd->scsi_done(scmd); scmd 1778 drivers/scsi/megaraid/megaraid_sas_base.c if (megasas_check_mpio_paths(instance, scmd) == scmd 1782 drivers/scsi/megaraid/megaraid_sas_base.c scmd->result = DID_NO_CONNECT << 16; scmd 1783 drivers/scsi/megaraid/megaraid_sas_base.c scmd->scsi_done(scmd); scmd 1789 drivers/scsi/megaraid/megaraid_sas_base.c scmd->result = DID_NO_CONNECT << 16; scmd 1790 drivers/scsi/megaraid/megaraid_sas_base.c scmd->scsi_done(scmd); scmd 1794 drivers/scsi/megaraid/megaraid_sas_base.c mr_device_priv_data = scmd->device->hostdata; scmd 1796 drivers/scsi/megaraid/megaraid_sas_base.c scmd->result = DID_NO_CONNECT << 16; scmd 1797 drivers/scsi/megaraid/megaraid_sas_base.c scmd->scsi_done(scmd); scmd 1808 drivers/scsi/megaraid/megaraid_sas_base.c scmd->result = 0; scmd 1810 drivers/scsi/megaraid/megaraid_sas_base.c if (MEGASAS_IS_LOGICAL(scmd->device) && scmd 1811 drivers/scsi/megaraid/megaraid_sas_base.c (scmd->device->id >= instance->fw_supported_vd_count || scmd 1812 drivers/scsi/megaraid/megaraid_sas_base.c scmd->device->lun)) { scmd 1813 drivers/scsi/megaraid/megaraid_sas_base.c scmd->result = DID_BAD_TARGET << 16; scmd 1817 drivers/scsi/megaraid/megaraid_sas_base.c if ((scmd->cmnd[0] == SYNCHRONIZE_CACHE) && scmd 1818 drivers/scsi/megaraid/megaraid_sas_base.c MEGASAS_IS_LOGICAL(scmd->device) && scmd 1820 drivers/scsi/megaraid/megaraid_sas_base.c scmd->result = DID_OK << 16; scmd 1824 drivers/scsi/megaraid/megaraid_sas_base.c return instance->instancet->build_and_issue_cmd(instance, scmd); scmd 1827 drivers/scsi/megaraid/megaraid_sas_base.c scmd->scsi_done(scmd); scmd 2716 drivers/scsi/megaraid/megaraid_sas_base.c if (reset_cmd->scmd) { scmd 2717 drivers/scsi/megaraid/megaraid_sas_base.c reset_cmd->scmd->result = DID_REQUEUE << 16; scmd 2720 drivers/scsi/megaraid/megaraid_sas_base.c reset_cmd->scmd->cmnd[0]); scmd 2722 drivers/scsi/megaraid/megaraid_sas_base.c reset_cmd->scmd->scsi_done(reset_cmd->scmd); scmd 2828 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_generic_reset(struct scsi_cmnd *scmd) scmd 2833 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 2835 drivers/scsi/megaraid/megaraid_sas_base.c scmd_printk(KERN_NOTICE, scmd, "megasas: RESET cmd=%x retries=%x\n", scmd 2836 drivers/scsi/megaraid/megaraid_sas_base.c scmd->cmnd[0], scmd->retries); scmd 2860 drivers/scsi/megaraid/megaraid_sas_base.c blk_eh_timer_return megasas_reset_timer(struct scsi_cmnd *scmd) scmd 2865 drivers/scsi/megaraid/megaraid_sas_base.c if (time_after(jiffies, scmd->jiffies_at_alloc + scmd 2870 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 2933 drivers/scsi/megaraid/megaraid_sas_base.c megasas_dump_fusion_io(struct scsi_cmnd *scmd) scmd 2939 drivers/scsi/megaraid/megaraid_sas_base.c cmd = (struct megasas_cmd_fusion *)scmd->SCp.ptr; scmd 2940 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 2942 drivers/scsi/megaraid/megaraid_sas_base.c scmd_printk(KERN_INFO, scmd, scmd 2944 drivers/scsi/megaraid/megaraid_sas_base.c scmd, scmd->retries, scmd->allowed); scmd 2945 drivers/scsi/megaraid/megaraid_sas_base.c scsi_print_command(scmd); scmd 2949 drivers/scsi/megaraid/megaraid_sas_base.c scmd_printk(KERN_INFO, scmd, "Request descriptor details:\n"); scmd 2950 drivers/scsi/megaraid/megaraid_sas_base.c scmd_printk(KERN_INFO, scmd, scmd 2992 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_reset_bus_host(struct scsi_cmnd *scmd) scmd 2997 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 2999 drivers/scsi/megaraid/megaraid_sas_base.c scmd_printk(KERN_INFO, scmd, scmd 3002 drivers/scsi/megaraid/megaraid_sas_base.c scmd_printk(KERN_INFO, scmd, scmd 3004 drivers/scsi/megaraid/megaraid_sas_base.c scmd->device->host->shost_state, scmd 3005 drivers/scsi/megaraid/megaraid_sas_base.c scsi_host_busy(scmd->device->host), scmd 3011 drivers/scsi/megaraid/megaraid_sas_base.c ret = megasas_generic_reset(scmd); scmd 3013 drivers/scsi/megaraid/megaraid_sas_base.c megasas_dump_fusion_io(scmd); scmd 3014 drivers/scsi/megaraid/megaraid_sas_base.c ret = megasas_reset_fusion(scmd->device->host, scmd 3026 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_task_abort(struct scsi_cmnd *scmd) scmd 3031 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 3034 drivers/scsi/megaraid/megaraid_sas_base.c ret = megasas_task_abort_fusion(scmd); scmd 3036 drivers/scsi/megaraid/megaraid_sas_base.c sdev_printk(KERN_NOTICE, scmd->device, "TASK ABORT not supported\n"); scmd 3048 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_reset_target(struct scsi_cmnd *scmd) scmd 3053 drivers/scsi/megaraid/megaraid_sas_base.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 3056 drivers/scsi/megaraid/megaraid_sas_base.c ret = megasas_reset_target_fusion(scmd); scmd 3058 drivers/scsi/megaraid/megaraid_sas_base.c sdev_printk(KERN_NOTICE, scmd->device, "TARGET RESET not supported\n"); scmd 3482 drivers/scsi/megaraid/megaraid_sas_base.c if (cmd->scmd) scmd 3483 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->SCp.ptr = NULL; scmd 3515 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->result = alt_status << 16; scmd 3523 drivers/scsi/megaraid/megaraid_sas_base.c scsi_dma_unmap(cmd->scmd); scmd 3524 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->scsi_done(cmd->scmd); scmd 3533 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->result = DID_OK << 16; scmd 3538 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->result = scmd 3544 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->result = (DID_OK << 16) | hdr->scsi_status; scmd 3547 drivers/scsi/megaraid/megaraid_sas_base.c memset(cmd->scmd->sense_buffer, 0, scmd 3549 drivers/scsi/megaraid/megaraid_sas_base.c memcpy(cmd->scmd->sense_buffer, cmd->sense, scmd 3552 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->result |= DRIVER_SENSE << 24; scmd 3559 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->result = DID_BAD_TARGET << 16; scmd 3565 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->result = DID_ERROR << 16; scmd 3571 drivers/scsi/megaraid/megaraid_sas_base.c scsi_dma_unmap(cmd->scmd); scmd 3572 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd->scsi_done(cmd->scmd); scmd 3703 drivers/scsi/megaraid/megaraid_sas_base.c if (cmd->sync_cmd || cmd->scmd) { scmd 3706 drivers/scsi/megaraid/megaraid_sas_base.c cmd, cmd->scmd, cmd->sync_cmd); scmd 3714 drivers/scsi/megaraid/megaraid_sas_base.c cmd, cmd->scmd, cmd->sync_cmd); scmd 3723 drivers/scsi/megaraid/megaraid_sas_base.c if (cmd->scmd) { scmd 3734 drivers/scsi/megaraid/megaraid_sas_base.c } else if (cmd->scmd) { scmd 3737 drivers/scsi/megaraid/megaraid_sas_base.c cmd, cmd->scmd->cmnd[0]); scmd 3790 drivers/scsi/megaraid/megaraid_sas_base.c if (cmd->sync_cmd == 1 || cmd->scmd) { scmd 3793 drivers/scsi/megaraid/megaraid_sas_base.c defer_index, cmd, cmd->sync_cmd, cmd->scmd); scmd 3799 drivers/scsi/megaraid/megaraid_sas_base.c cmd, cmd->sync_cmd, cmd->scmd); scmd 4364 drivers/scsi/megaraid/megaraid_sas_base.c cmd->scmd = NULL; scmd 261 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd->scmd = NULL; scmd 961 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd->scmd = NULL; scmd 1966 drivers/scsi/megaraid/megaraid_sas_fusion.c struct scsi_cmnd *scmd, u8 status, u8 ext_status, scmd 1972 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd_type = megasas_cmd_type(scmd); scmd 1976 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result = DID_OK << 16; scmd 1981 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result = (DID_ERROR << 16) | ext_status; scmd 1986 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result = (DID_OK << 16) | ext_status; scmd 1988 drivers/scsi/megaraid/megaraid_sas_fusion.c memset(scmd->sense_buffer, 0, scmd 1990 drivers/scsi/megaraid/megaraid_sas_fusion.c memcpy(scmd->sense_buffer, sense, scmd 1992 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result |= DRIVER_SENSE << 24; scmd 2001 drivers/scsi/megaraid/megaraid_sas_fusion.c resid = (scsi_bufflen(scmd) - data_length); scmd 2002 drivers/scsi/megaraid/megaraid_sas_fusion.c scsi_set_resid(scmd, resid); scmd 2007 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_printk(KERN_INFO, scmd, "BRCM Debug mfi stat 0x%x, data len" scmd 2009 drivers/scsi/megaraid/megaraid_sas_fusion.c status, scsi_bufflen(scmd), data_length); scmd 2014 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result = DID_BAD_TARGET << 16; scmd 2017 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result = DID_IMM_RETRY << 16; scmd 2020 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result = DID_ERROR << 16; scmd 2038 drivers/scsi/megaraid/megaraid_sas_fusion.c struct scsi_cmnd *scmd, int sge_count) scmd 2048 drivers/scsi/megaraid/megaraid_sas_fusion.c data_length = scsi_bufflen(scmd); scmd 2049 drivers/scsi/megaraid/megaraid_sas_fusion.c sg_scmd = scsi_sglist(scmd); scmd 2098 drivers/scsi/megaraid/megaraid_sas_fusion.c scsi_for_each_sg(scmd, sg_scmd, sge_count, i) { scmd 2143 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_make_prp_nvme(struct megasas_instance *instance, struct scsi_cmnd *scmd, scmd 2156 drivers/scsi/megaraid/megaraid_sas_fusion.c int data_len = scsi_bufflen(scmd); scmd 2160 drivers/scsi/megaraid/megaraid_sas_fusion.c build_prp = megasas_is_prp_possible(instance, scmd, sge_count); scmd 2194 drivers/scsi/megaraid/megaraid_sas_fusion.c sg_scmd = scsi_sglist(scmd); scmd 2222 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd, "page boundary ptr_sgl: 0x%p\n", scmd 2986 drivers/scsi/megaraid/megaraid_sas_fusion.c struct scsi_cmnd *scmd, struct megasas_cmd_fusion *cmd) scmd 3001 drivers/scsi/megaraid/megaraid_sas_fusion.c device_id = MEGASAS_DEV_INDEX(scmd); scmd 3003 drivers/scsi/megaraid/megaraid_sas_fusion.c io_request->DataLength = cpu_to_le32(scsi_bufflen(scmd)); scmd 3028 drivers/scsi/megaraid/megaraid_sas_fusion.c io_request->LUN[1] = scmd->device->lun; scmd 3030 drivers/scsi/megaraid/megaraid_sas_fusion.c cpu_to_le16 (scmd->request->timeout / HZ); scmd 3076 drivers/scsi/megaraid/megaraid_sas_fusion.c struct scsi_cmnd *scmd, struct megasas_cmd_fusion *cmd, scmd 3091 drivers/scsi/megaraid/megaraid_sas_fusion.c device_id = MEGASAS_DEV_INDEX(scmd); scmd 3092 drivers/scsi/megaraid/megaraid_sas_fusion.c pd_index = MEGASAS_PD_INDEX(scmd); scmd 3093 drivers/scsi/megaraid/megaraid_sas_fusion.c os_timeout_value = scmd->request->timeout / HZ; scmd 3094 drivers/scsi/megaraid/megaraid_sas_fusion.c mr_device_priv_data = scmd->device->hostdata; scmd 3103 drivers/scsi/megaraid/megaraid_sas_fusion.c io_request->DataLength = cpu_to_le32(scsi_bufflen(scmd)); scmd 3104 drivers/scsi/megaraid/megaraid_sas_fusion.c io_request->LUN[1] = scmd->device->lun; scmd 3163 drivers/scsi/megaraid/megaraid_sas_fusion.c atomic_read(&scmd->device->device_busy) > MR_DEVICE_HIGH_IOPS_DEPTH) scmd 3189 drivers/scsi/megaraid/megaraid_sas_fusion.c timeout_limit = (scmd->device->type == TYPE_DISK) ? scmd 3304 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd->scmd = scp; scmd 3343 drivers/scsi/megaraid/megaraid_sas_fusion.c r1_cmd->scmd = cmd->scmd; scmd 3373 drivers/scsi/megaraid/megaraid_sas_fusion.c struct scsi_cmnd *scmd) scmd 3379 drivers/scsi/megaraid/megaraid_sas_fusion.c if ((megasas_cmd_type(scmd) == READ_WRITE_LDIO) && scmd 3393 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd = megasas_get_cmd_fusion(instance, scmd->request->tag); scmd 3407 drivers/scsi/megaraid/megaraid_sas_fusion.c if (megasas_build_io_fusion(instance, scmd, cmd)) { scmd 3434 drivers/scsi/megaraid/megaraid_sas_fusion.c (scmd->request->tag + instance->max_fw_cmds)); scmd 3476 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_local = cmd->scmd; scmd 3560 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_local = cmd_fusion->scmd; scmd 3580 drivers/scsi/megaraid/megaraid_sas_fusion.c (cmd_fusion->scmd->SCp.Status & scmd 3585 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd_fusion->scmd->SCp.Status &= ~MEGASAS_LOAD_BALANCE_FLAG; scmd 4326 drivers/scsi/megaraid/megaraid_sas_fusion.c if (cmd_fusion->scmd && scmd 4327 drivers/scsi/megaraid/megaraid_sas_fusion.c (cmd_fusion->scmd->device->id == id && scmd 4328 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd_fusion->scmd->device->channel == channel)) { scmd 4333 drivers/scsi/megaraid/megaraid_sas_fusion.c scsi_print_command(cmd_fusion->scmd); scmd 4505 drivers/scsi/megaraid/megaraid_sas_fusion.c if (scsi_lookup->scmd == NULL) scmd 4512 drivers/scsi/megaraid/megaraid_sas_fusion.c if (scsi_lookup->scmd == NULL) scmd 4546 drivers/scsi/megaraid/megaraid_sas_fusion.c static u16 megasas_fusion_smid_lookup(struct scsi_cmnd *scmd) scmd 4553 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 4559 drivers/scsi/megaraid/megaraid_sas_fusion.c if (cmd_fusion->scmd && (cmd_fusion->scmd == scmd)) { scmd 4560 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_printk(KERN_NOTICE, scmd, "Abort request is for" scmd 4614 drivers/scsi/megaraid/megaraid_sas_fusion.c int megasas_task_abort_fusion(struct scsi_cmnd *scmd) scmd 4620 drivers/scsi/megaraid/megaraid_sas_fusion.c mr_device_priv_data = scmd->device->hostdata; scmd 4622 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 4632 drivers/scsi/megaraid/megaraid_sas_fusion.c sdev_printk(KERN_INFO, scmd->device, "device been deleted! " scmd 4633 drivers/scsi/megaraid/megaraid_sas_fusion.c "scmd(%p)\n", scmd); scmd 4634 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result = DID_NO_CONNECT << 16; scmd 4646 drivers/scsi/megaraid/megaraid_sas_fusion.c smid = megasas_fusion_smid_lookup(scmd); scmd 4650 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_printk(KERN_NOTICE, scmd, "Command for which abort is" scmd 4656 drivers/scsi/megaraid/megaraid_sas_fusion.c devhandle = megasas_get_tm_devhandle(scmd->device); scmd 4660 drivers/scsi/megaraid/megaraid_sas_fusion.c sdev_printk(KERN_INFO, scmd->device, scmd 4665 drivers/scsi/megaraid/megaraid_sas_fusion.c sdev_printk(KERN_INFO, scmd->device, scmd 4667 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd, devhandle); scmd 4671 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->device->channel, scmd->device->id, smid, scmd 4677 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_printk(KERN_INFO, scmd, "task abort %s!! scmd(0x%p)\n", scmd 4678 drivers/scsi/megaraid/megaraid_sas_fusion.c ((ret == SUCCESS) ? "SUCCESS" : "FAILED"), scmd); scmd 4680 drivers/scsi/megaraid/megaraid_sas_fusion.c scsi_print_command(scmd); scmd 4682 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_dump_fusion_io(scmd); scmd 4694 drivers/scsi/megaraid/megaraid_sas_fusion.c int megasas_reset_target_fusion(struct scsi_cmnd *scmd) scmd 4701 drivers/scsi/megaraid/megaraid_sas_fusion.c mr_device_priv_data = scmd->device->hostdata; scmd 4703 drivers/scsi/megaraid/megaraid_sas_fusion.c instance = (struct megasas_instance *)scmd->device->host->hostdata; scmd 4713 drivers/scsi/megaraid/megaraid_sas_fusion.c sdev_printk(KERN_INFO, scmd->device, scmd 4714 drivers/scsi/megaraid/megaraid_sas_fusion.c "device been deleted! scmd: (0x%p)\n", scmd); scmd 4715 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->result = DID_NO_CONNECT << 16; scmd 4726 drivers/scsi/megaraid/megaraid_sas_fusion.c devhandle = megasas_get_tm_devhandle(scmd->device); scmd 4730 drivers/scsi/megaraid/megaraid_sas_fusion.c sdev_printk(KERN_INFO, scmd->device, scmd 4736 drivers/scsi/megaraid/megaraid_sas_fusion.c sdev_printk(KERN_INFO, scmd->device, scmd 4738 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd, devhandle); scmd 4741 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd->device->channel, scmd->device->id, 0, scmd 4746 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_printk(KERN_NOTICE, scmd, "target reset %s!!\n", scmd 4773 drivers/scsi/megaraid/megaraid_sas_fusion.c struct scsi_cmnd *scmd) scmd 4881 drivers/scsi/megaraid/megaraid_sas_fusion.c scmd_local = cmd_fusion->scmd; scmd 4882 drivers/scsi/megaraid/megaraid_sas_fusion.c if (cmd_fusion->scmd) { scmd 4885 drivers/scsi/megaraid/megaraid_sas_fusion.c cmd_fusion->scmd->device, "SMID: 0x%x\n", scmd 4887 drivers/scsi/megaraid/megaraid_sas_fusion.c megasas_dump_fusion_io(cmd_fusion->scmd); scmd 1091 drivers/scsi/megaraid/megaraid_sas_fusion.h struct scsi_cmnd *scmd; scmd 1377 drivers/scsi/megaraid/megaraid_sas_fusion.h struct scsi_cmnd *scmd); scmd 419 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsi_cmnd *scmd; scmd 444 drivers/scsi/mpt3sas/mpt3sas_base.c scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); scmd 445 drivers/scsi/mpt3sas/mpt3sas_base.c if (scmd == NULL) { scmd 451 drivers/scsi/mpt3sas/mpt3sas_base.c sg_scmd = scsi_sglist(scmd); scmd 1832 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsi_cmnd *scmd) scmd 1835 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsiio_tracker *st = scsi_cmd_priv(scmd); scmd 2130 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsi_cmnd *scmd, scmd 2141 drivers/scsi/mpt3sas/mpt3sas_base.c int data_len = scsi_bufflen(scmd); scmd 2194 drivers/scsi/mpt3sas/mpt3sas_base.c sg_scmd = scsi_sglist(scmd); scmd 2222 drivers/scsi/mpt3sas/mpt3sas_base.c scmd, "page boundary curr_buff: 0x%p\n", scmd 2257 drivers/scsi/mpt3sas/mpt3sas_base.c struct _pcie_device *pcie_device, struct scsi_cmnd *scmd, int sge_count) scmd 2262 drivers/scsi/mpt3sas/mpt3sas_base.c data_length = scsi_bufflen(scmd); scmd 2295 drivers/scsi/mpt3sas/mpt3sas_base.c Mpi25SCSIIORequest_t *mpi_request, u16 smid, struct scsi_cmnd *scmd, scmd 2301 drivers/scsi/mpt3sas/mpt3sas_base.c sges_left = scsi_dma_map(scmd); scmd 2303 drivers/scsi/mpt3sas/mpt3sas_base.c sdev_printk(KERN_ERR, scmd->device, scmd 2305 drivers/scsi/mpt3sas/mpt3sas_base.c scsi_bufflen(scmd)); scmd 2311 drivers/scsi/mpt3sas/mpt3sas_base.c scmd, sges_left) == 0) { scmd 2319 drivers/scsi/mpt3sas/mpt3sas_base.c base_make_prp_nvme(ioc, scmd, mpi_request, scmd 2324 drivers/scsi/mpt3sas/mpt3sas_base.c scsi_dma_unmap(scmd); scmd 2383 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsi_cmnd *scmd, u16 smid, struct _pcie_device *unused) scmd 2403 drivers/scsi/mpt3sas/mpt3sas_base.c if (scmd->sc_data_direction == DMA_TO_DEVICE) scmd 2412 drivers/scsi/mpt3sas/mpt3sas_base.c sg_scmd = scsi_sglist(scmd); scmd 2413 drivers/scsi/mpt3sas/mpt3sas_base.c sges_left = scsi_dma_map(scmd); scmd 2415 drivers/scsi/mpt3sas/mpt3sas_base.c sdev_printk(KERN_ERR, scmd->device, scmd 2417 drivers/scsi/mpt3sas/mpt3sas_base.c scsi_bufflen(scmd)); scmd 2446 drivers/scsi/mpt3sas/mpt3sas_base.c chain_req = _base_get_chain_buffer_tracker(ioc, scmd); scmd 2486 drivers/scsi/mpt3sas/mpt3sas_base.c chain_req = _base_get_chain_buffer_tracker(ioc, scmd); scmd 2528 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsi_cmnd *scmd, u16 smid, struct _pcie_device *pcie_device) scmd 2555 drivers/scsi/mpt3sas/mpt3sas_base.c smid, scmd, pcie_device) == 0)) { scmd 2560 drivers/scsi/mpt3sas/mpt3sas_base.c sg_scmd = scsi_sglist(scmd); scmd 2561 drivers/scsi/mpt3sas/mpt3sas_base.c sges_left = scsi_dma_map(scmd); scmd 2563 drivers/scsi/mpt3sas/mpt3sas_base.c sdev_printk(KERN_ERR, scmd->device, scmd 2565 drivers/scsi/mpt3sas/mpt3sas_base.c scsi_bufflen(scmd)); scmd 2589 drivers/scsi/mpt3sas/mpt3sas_base.c chain_req = _base_get_chain_buffer_tracker(ioc, scmd); scmd 2620 drivers/scsi/mpt3sas/mpt3sas_base.c chain_req = _base_get_chain_buffer_tracker(ioc, scmd); scmd 3458 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsi_cmnd *scmd) scmd 3481 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsi_cmnd *scmd) scmd 3488 drivers/scsi/mpt3sas/mpt3sas_base.c if (atomic_read(&scmd->device->device_busy) > scmd 3495 drivers/scsi/mpt3sas/mpt3sas_base.c return _base_get_msix_index(ioc, scmd); scmd 3538 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsi_cmnd *scmd) scmd 3540 drivers/scsi/mpt3sas/mpt3sas_base.c struct scsiio_tracker *request = scsi_cmd_priv(scmd); scmd 3541 drivers/scsi/mpt3sas/mpt3sas_base.c unsigned int tag = scmd->request->tag; scmd 3547 drivers/scsi/mpt3sas/mpt3sas_base.c request->scmd = scmd; scmd 3601 drivers/scsi/mpt3sas/mpt3sas_base.c st->scmd = NULL; scmd 3719 drivers/scsi/mpt3sas/mpt3sas_base.c st->msix_io = ioc->get_msix_index_for_smlio(ioc, st->scmd); scmd 835 drivers/scsi/mpt3sas/mpt3sas_base.h struct scsi_cmnd *scmd; scmd 918 drivers/scsi/mpt3sas/mpt3sas_base.h struct scsi_cmnd *scmd, u16 smid, struct _pcie_device *pcie_device); scmd 941 drivers/scsi/mpt3sas/mpt3sas_base.h struct scsi_cmnd *scmd); scmd 1509 drivers/scsi/mpt3sas/mpt3sas_base.h struct scsi_cmnd *scmd); scmd 1740 drivers/scsi/mpt3sas/mpt3sas_base.h mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, scmd 568 drivers/scsi/mpt3sas/mpt3sas_ctl.c struct scsi_cmnd *scmd; scmd 588 drivers/scsi/mpt3sas/mpt3sas_ctl.c scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); scmd 589 drivers/scsi/mpt3sas/mpt3sas_ctl.c if (!scmd) scmd 591 drivers/scsi/mpt3sas/mpt3sas_ctl.c if (lun != scmd->device->lun) scmd 593 drivers/scsi/mpt3sas/mpt3sas_ctl.c priv_data = scmd->device->hostdata; scmd 598 drivers/scsi/mpt3sas/mpt3sas_ctl.c st = scsi_cmd_priv(scmd); scmd 1476 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_cmnd *scmd = NULL; scmd 1493 drivers/scsi/mpt3sas/mpt3sas_scsih.c return scmd; scmd 1495 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd = scsi_host_find_tag(ioc->shost, unique_tag); scmd 1496 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scmd) { scmd 1497 drivers/scsi/mpt3sas/mpt3sas_scsih.c st = scsi_cmd_priv(scmd); scmd 1499 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd = NULL; scmd 1502 drivers/scsi/mpt3sas/mpt3sas_scsih.c return scmd; scmd 2787 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_tm_display_info(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd) scmd 2789 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_target *starget = scmd->device->sdev_target; scmd 2803 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_print_command(scmd); scmd 2868 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_abort(struct scsi_cmnd *scmd) scmd 2870 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(scmd->device->host); scmd 2872 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsiio_tracker *st = scsi_cmd_priv(scmd); scmd 2878 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev_printk(KERN_INFO, scmd->device, scmd 2879 drivers/scsi/mpt3sas/mpt3sas_scsih.c "attempting task abort! scmd(%p)\n", scmd); scmd 2880 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_tm_display_info(ioc, scmd); scmd 2882 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; scmd 2885 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev_printk(KERN_INFO, scmd->device, scmd 2886 drivers/scsi/mpt3sas/mpt3sas_scsih.c "device been deleted! scmd(%p)\n", scmd); scmd 2887 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 2888 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 2895 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 2904 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 2916 drivers/scsi/mpt3sas/mpt3sas_scsih.c r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->lun, scmd 2923 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev_printk(KERN_INFO, scmd->device, "task abort: %s scmd(%p)\n", scmd 2924 drivers/scsi/mpt3sas/mpt3sas_scsih.c ((r == SUCCESS) ? "SUCCESS" : "FAILED"), scmd); scmd 2937 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_dev_reset(struct scsi_cmnd *scmd) scmd 2939 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(scmd->device->host); scmd 2948 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_target *starget = scmd->device->sdev_target; scmd 2951 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev_printk(KERN_INFO, scmd->device, scmd 2952 drivers/scsi/mpt3sas/mpt3sas_scsih.c "attempting device reset! scmd(%p)\n", scmd); scmd 2953 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_tm_display_info(ioc, scmd); scmd 2955 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; scmd 2958 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev_printk(KERN_INFO, scmd->device, scmd 2959 drivers/scsi/mpt3sas/mpt3sas_scsih.c "device been deleted! scmd(%p)\n", scmd); scmd 2960 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 2961 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 2978 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 2992 drivers/scsi/mpt3sas/mpt3sas_scsih.c r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->lun, scmd 2996 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (r == SUCCESS && atomic_read(&scmd->device->device_busy)) scmd 2999 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev_printk(KERN_INFO, scmd->device, "device reset: %s scmd(%p)\n", scmd 3000 drivers/scsi/mpt3sas/mpt3sas_scsih.c ((r == SUCCESS) ? "SUCCESS" : "FAILED"), scmd); scmd 3017 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_target_reset(struct scsi_cmnd *scmd) scmd 3019 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(scmd->device->host); scmd 3027 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_target *starget = scmd->device->sdev_target; scmd 3031 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd); scmd 3032 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_tm_display_info(ioc, scmd); scmd 3034 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; scmd 3038 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd); scmd 3039 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 3040 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 3057 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 3078 drivers/scsi/mpt3sas/mpt3sas_scsih.c ((r == SUCCESS) ? "SUCCESS" : "FAILED"), scmd); scmd 3095 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_host_reset(struct scsi_cmnd *scmd) scmd 3097 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_ADAPTER *ioc = shost_priv(scmd->device->host); scmd 3100 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc_info(ioc, "attempting host reset! scmd(%p)\n", scmd); scmd 3101 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_print_command(scmd); scmd 3113 drivers/scsi/mpt3sas/mpt3sas_scsih.c r == SUCCESS ? "SUCCESS" : "FAILED", scmd); scmd 3815 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_cmnd *scmd) scmd 3830 drivers/scsi/mpt3sas/mpt3sas_scsih.c switch (scmd->cmnd[0]) { scmd 4490 drivers/scsi/mpt3sas/mpt3sas_scsih.c static int _scsih_set_satl_pending(struct scsi_cmnd *scmd, bool pending) scmd 4492 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct MPT3SAS_DEVICE *priv = scmd->device->hostdata; scmd 4494 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scmd->cmnd[0] != ATA_12 && scmd->cmnd[0] != ATA_16) scmd 4514 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_cmnd *scmd; scmd 4520 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); scmd 4521 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (!scmd) scmd 4524 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_set_satl_pending(scmd, false); scmd 4525 drivers/scsi/mpt3sas/mpt3sas_scsih.c st = scsi_cmd_priv(scmd); scmd 4527 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_dma_unmap(scmd); scmd 4529 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 4531 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 4532 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 4546 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_setup_eedp(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, scmd 4550 drivers/scsi/mpt3sas/mpt3sas_scsih.c unsigned char prot_op = scsi_get_prot_op(scmd); scmd 4551 drivers/scsi/mpt3sas/mpt3sas_scsih.c unsigned char prot_type = scsi_get_prot_type(scmd); scmd 4577 drivers/scsi/mpt3sas/mpt3sas_scsih.c cpu_to_be32(t10_pi_ref_tag(scmd->request)); scmd 4591 drivers/scsi/mpt3sas/mpt3sas_scsih.c cpu_to_le16(scmd->device->sector_size); scmd 4604 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_eedp_error_handling(struct scsi_cmnd *scmd, u16 ioc_status) scmd 4622 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_build_sense_buffer(0, scmd->sense_buffer, ILLEGAL_REQUEST, 0x10, scmd 4624 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DRIVER_SENSE << 24 | (DID_ABORT << 16) | scmd 4640 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *scmd) scmd 4646 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct request *rq = scmd->request; scmd 4655 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_print_command(scmd); scmd 4657 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; scmd 4659 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 4660 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 4664 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (!(_scsih_allow_scmd_to_device(ioc, scmd))) { scmd 4665 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 4666 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 4675 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 4676 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 4686 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 4687 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 4703 drivers/scsi/mpt3sas/mpt3sas_scsih.c } while (_scsih_set_satl_pending(scmd, true)); scmd 4705 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scmd->sc_data_direction == DMA_FROM_DEVICE) scmd 4707 drivers/scsi/mpt3sas/mpt3sas_scsih.c else if (scmd->sc_data_direction == DMA_TO_DEVICE) scmd 4723 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (((!ioc->is_warpdrive && !scsih_is_raid(&scmd->device->sdev_gendev)) scmd 4724 drivers/scsi/mpt3sas/mpt3sas_scsih.c && !scsih_is_nvme(&scmd->device->sdev_gendev)) scmd 4725 drivers/scsi/mpt3sas/mpt3sas_scsih.c && sas_is_tlr_enabled(scmd->device) && scmd->cmd_len != 32) scmd 4728 drivers/scsi/mpt3sas/mpt3sas_scsih.c smid = mpt3sas_base_get_smid_scsiio(ioc, ioc->scsi_io_cb_idx, scmd); scmd 4731 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_set_satl_pending(scmd, false); scmd 4736 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_setup_eedp(ioc, scmd, mpi_request); scmd 4738 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scmd->cmd_len == 32) scmd 4747 drivers/scsi/mpt3sas/mpt3sas_scsih.c mpi_request->DataLength = cpu_to_le32(scsi_bufflen(scmd)); scmd 4749 drivers/scsi/mpt3sas/mpt3sas_scsih.c mpi_request->IoFlags = cpu_to_le16(scmd->cmd_len); scmd 4757 drivers/scsi/mpt3sas/mpt3sas_scsih.c memcpy(mpi_request->CDB.CDB32, scmd->cmnd, scmd->cmd_len); scmd 4761 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (ioc->build_sg_scmd(ioc, scmd, smid, pcie_device)) { scmd 4763 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_set_satl_pending(scmd, false); scmd 4771 drivers/scsi/mpt3sas/mpt3sas_scsih.c mpt3sas_setup_direct_io(ioc, scmd, scmd 4776 drivers/scsi/mpt3sas/mpt3sas_scsih.c mpi_request->IoFlags = cpu_to_le16(scmd->cmd_len | scmd 4823 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_scsi_ioc_info(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, scmd 4838 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_target *starget = scmd->device->sdev_target; scmd 4965 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_print_command(scmd); scmd 5002 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_bufflen(scmd), scmd->underflow, scsi_get_resid(scmd)); scmd 5005 drivers/scsi/mpt3sas/mpt3sas_scsih.c le32_to_cpu(mpi_reply->TransferCount), scmd->result); scmd 5011 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_normalize_sense(scmd->sense_buffer, &data); scmd 5212 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_cmnd *scmd; scmd 5224 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); scmd 5225 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scmd == NULL) scmd 5228 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_set_satl_pending(scmd, false); scmd 5233 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_OK << 16; scmd 5237 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data = scmd->device->hostdata; scmd 5240 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 5249 drivers/scsi/mpt3sas/mpt3sas_scsih.c st = scsi_cmd_priv(scmd); scmd 5254 drivers/scsi/mpt3sas/mpt3sas_scsih.c st->scmd = scmd; scmd 5255 drivers/scsi/mpt3sas/mpt3sas_scsih.c memcpy(mpi_request->CDB.CDB32, scmd->cmnd, scmd->cmd_len); scmd 5270 drivers/scsi/mpt3sas/mpt3sas_scsih.c !scsih_is_raid(&scmd->device->sdev_gendev) && scmd 5271 drivers/scsi/mpt3sas/mpt3sas_scsih.c !scsih_is_nvme(&scmd->device->sdev_gendev)) scmd 5272 drivers/scsi/mpt3sas/mpt3sas_scsih.c && sas_is_tlr_enabled(scmd->device) && scmd 5274 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_disable_tlr(scmd->device); scmd 5275 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev_printk(KERN_INFO, scmd->device, "TLR disabled\n"); scmd 5280 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_set_resid(scmd, scsi_bufflen(scmd) - xfer_cnt); scmd 5301 drivers/scsi/mpt3sas/mpt3sas_scsih.c memcpy(scmd->sense_buffer, sense_data, sz); scmd 5302 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_normalize_sense(scmd->sense_buffer, &data); scmd 5310 drivers/scsi/mpt3sas/mpt3sas_scsih.c ((scmd->sense_buffer[2] == UNIT_ATTENTION) || scmd 5311 drivers/scsi/mpt3sas/mpt3sas_scsih.c (scmd->sense_buffer[2] == MEDIUM_ERROR) || scmd 5312 drivers/scsi/mpt3sas/mpt3sas_scsih.c (scmd->sense_buffer[2] == HARDWARE_ERROR))) scmd 5313 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_scsi_ioc_info(ioc, scmd, mpi_reply, smid); scmd 5318 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = SAM_STAT_BUSY; scmd 5322 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 5327 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_TRANSPORT_DISRUPTED << 16; scmd 5331 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scmd->retries > 2) { scmd 5332 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_NO_CONNECT << 16; scmd 5333 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_device_set_state(scmd->device, scmd 5336 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_SOFT_ERROR << 16; scmd 5337 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->device->expecting_cc_ua = 1; scmd 5341 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 5343 drivers/scsi/mpt3sas/mpt3sas_scsih.c } else if ((scmd->device->channel == RAID_CHANNEL) && scmd 5346 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 5349 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_SOFT_ERROR << 16; scmd 5353 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 5357 drivers/scsi/mpt3sas/mpt3sas_scsih.c if ((xfer_cnt == 0) || (scmd->underflow > xfer_cnt)) scmd 5358 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_SOFT_ERROR << 16; scmd 5360 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = (DID_OK << 16) | scsi_status; scmd 5364 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = (DID_OK << 16) | scsi_status; scmd 5369 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (xfer_cnt < scmd->underflow) { scmd 5371 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = SAM_STAT_BUSY; scmd 5373 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_SOFT_ERROR << 16; scmd 5376 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_SOFT_ERROR << 16; scmd 5378 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 5379 drivers/scsi/mpt3sas/mpt3sas_scsih.c else if (!xfer_cnt && scmd->cmnd[0] == REPORT_LUNS) { scmd 5382 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = (DRIVER_SENSE << 24) | scmd 5384 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->sense_buffer[0] = 0x70; scmd 5385 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->sense_buffer[2] = ILLEGAL_REQUEST; scmd 5386 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->sense_buffer[12] = 0x20; scmd 5387 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->sense_buffer[13] = 0; scmd 5392 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_set_resid(scmd, 0); scmd 5396 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = (DID_OK << 16) | scsi_status; scmd 5401 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_SOFT_ERROR << 16; scmd 5403 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_RESET << 16; scmd 5409 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_eedp_error_handling(scmd, ioc_status); scmd 5422 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->result = DID_SOFT_ERROR << 16; scmd 5427 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (scmd->result && (ioc->logging_level & MPT_DEBUG_REPLY)) scmd 5428 drivers/scsi/mpt3sas/mpt3sas_scsih.c _scsih_scsi_ioc_info(ioc , scmd, mpi_reply, smid); scmd 5432 drivers/scsi/mpt3sas/mpt3sas_scsih.c scsi_dma_unmap(scmd); scmd 5434 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd->scsi_done(scmd); scmd 7369 drivers/scsi/mpt3sas/mpt3sas_scsih.c struct scsi_cmnd *scmd; scmd 7411 drivers/scsi/mpt3sas/mpt3sas_scsih.c scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); scmd 7412 drivers/scsi/mpt3sas/mpt3sas_scsih.c if (!scmd) scmd 7414 drivers/scsi/mpt3sas/mpt3sas_scsih.c st = scsi_cmd_priv(scmd); scmd 7415 drivers/scsi/mpt3sas/mpt3sas_scsih.c sdev = scmd->device; scmd 7446 drivers/scsi/mpt3sas/mpt3sas_scsih.c "QUERY_TASK: scmd(%p)\n", scmd); scmd 7455 drivers/scsi/mpt3sas/mpt3sas_scsih.c ioc_status, scmd); scmd 7487 drivers/scsi/mpt3sas/mpt3sas_scsih.c "scmd(%p)\n", scmd); scmd 7495 drivers/scsi/mpt3sas/mpt3sas_scsih.c task_abort_retries - 1, scmd); scmd 256 drivers/scsi/mpt3sas/mpt3sas_warpdrive.c mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, scmd 261 drivers/scsi/mpt3sas/mpt3sas_warpdrive.c u8 num_pds, cmd = scmd->cmnd[0]; scmd 262 drivers/scsi/mpt3sas/mpt3sas_warpdrive.c struct scsiio_tracker *st = scsi_cmd_priv(scmd); scmd 273 drivers/scsi/mpt3sas/mpt3sas_warpdrive.c io_size = scsi_bufflen(scmd) >> raid_device->block_exponent; scmd 189 drivers/scsi/mvumi.c static int mvumi_make_sgl(struct mvumi_hba *mhba, struct scsi_cmnd *scmd, scmd 195 drivers/scsi/mvumi.c unsigned int sgnum = scsi_sg_count(scmd); scmd 198 drivers/scsi/mvumi.c *sg_count = dma_map_sg(&mhba->pdev->dev, scsi_sglist(scmd), sgnum, scmd 199 drivers/scsi/mvumi.c scmd->sc_data_direction); scmd 204 drivers/scsi/mvumi.c dma_unmap_sg(&mhba->pdev->dev, scsi_sglist(scmd), sgnum, scmd 205 drivers/scsi/mvumi.c scmd->sc_data_direction); scmd 208 drivers/scsi/mvumi.c scsi_for_each_sg(scmd, sg, *sg_count, i) { scmd 338 drivers/scsi/mvumi.c cmd->scmd = NULL; scmd 698 drivers/scsi/mvumi.c static int mvumi_host_reset(struct scsi_cmnd *scmd) scmd 702 drivers/scsi/mvumi.c mhba = (struct mvumi_hba *) scmd->device->host->hostdata; scmd 704 drivers/scsi/mvumi.c scmd_printk(KERN_NOTICE, scmd, "RESET -%u cmd=%x retries=%x\n", scmd 705 drivers/scsi/mvumi.c scmd->request->tag, scmd->cmnd[0], scmd->retries); scmd 788 drivers/scsi/mvumi.c cmd->scmd = NULL; scmd 1302 drivers/scsi/mvumi.c struct scsi_cmnd *scmd = cmd->scmd; scmd 1304 drivers/scsi/mvumi.c cmd->scmd->SCp.ptr = NULL; scmd 1305 drivers/scsi/mvumi.c scmd->result = ob_frame->req_status; scmd 1309 drivers/scsi/mvumi.c scmd->result |= DID_OK << 16; scmd 1312 drivers/scsi/mvumi.c scmd->result |= DID_BUS_BUSY << 16; scmd 1315 drivers/scsi/mvumi.c scmd->result |= (DID_OK << 16); scmd 1317 drivers/scsi/mvumi.c memcpy(cmd->scmd->sense_buffer, ob_frame->payload, scmd 1319 drivers/scsi/mvumi.c scmd->result |= (DRIVER_SENSE << 24); scmd 1323 drivers/scsi/mvumi.c scmd->result |= (DRIVER_INVALID << 24) | (DID_ABORT << 16); scmd 1327 drivers/scsi/mvumi.c if (scsi_bufflen(scmd)) scmd 1328 drivers/scsi/mvumi.c dma_unmap_sg(&mhba->pdev->dev, scsi_sglist(scmd), scmd 1329 drivers/scsi/mvumi.c scsi_sg_count(scmd), scmd 1330 drivers/scsi/mvumi.c scmd->sc_data_direction); scmd 1331 drivers/scsi/mvumi.c cmd->scmd->scsi_done(scmd); scmd 1428 drivers/scsi/mvumi.c cmd->scmd = NULL; scmd 1707 drivers/scsi/mvumi.c cmd->scmd = NULL; scmd 1782 drivers/scsi/mvumi.c if (cmd->scmd) scmd 2026 drivers/scsi/mvumi.c struct scsi_cmnd *scmd, struct mvumi_cmd *cmd) scmd 2030 drivers/scsi/mvumi.c cmd->scmd = scmd; scmd 2033 drivers/scsi/mvumi.c pframe->device_id = ((unsigned short) scmd->device->id) | scmd 2034 drivers/scsi/mvumi.c (((unsigned short) scmd->device->lun) << 8); scmd 2037 drivers/scsi/mvumi.c switch (scmd->sc_data_direction) { scmd 2050 drivers/scsi/mvumi.c "cmd[0x%x]\n", scmd->sc_data_direction, scmd->cmnd[0]); scmd 2054 drivers/scsi/mvumi.c pframe->cdb_length = scmd->cmd_len; scmd 2055 drivers/scsi/mvumi.c memcpy(pframe->cdb, scmd->cmnd, pframe->cdb_length); scmd 2057 drivers/scsi/mvumi.c if (scsi_bufflen(scmd)) { scmd 2058 drivers/scsi/mvumi.c if (mvumi_make_sgl(mhba, scmd, &pframe->payload[0], scmd 2062 drivers/scsi/mvumi.c pframe->data_transfer_length = scsi_bufflen(scmd); scmd 2070 drivers/scsi/mvumi.c scmd->result = (DID_OK << 16) | (DRIVER_SENSE << 24) | scmd 2072 drivers/scsi/mvumi.c scsi_build_sense_buffer(0, scmd->sense_buffer, ILLEGAL_REQUEST, 0x24, scmd 2083 drivers/scsi/mvumi.c struct scsi_cmnd *scmd) scmd 2092 drivers/scsi/mvumi.c scmd->result = 0; scmd 2099 drivers/scsi/mvumi.c if (unlikely(mvumi_build_frame(mhba, scmd, cmd))) scmd 2102 drivers/scsi/mvumi.c cmd->scmd = scmd; scmd 2103 drivers/scsi/mvumi.c scmd->SCp.ptr = (char *) cmd; scmd 2110 drivers/scsi/mvumi.c scmd->scsi_done(scmd); scmd 2115 drivers/scsi/mvumi.c static enum blk_eh_timer_return mvumi_timed_out(struct scsi_cmnd *scmd) scmd 2117 drivers/scsi/mvumi.c struct mvumi_cmd *cmd = (struct mvumi_cmd *) scmd->SCp.ptr; scmd 2118 drivers/scsi/mvumi.c struct Scsi_Host *host = scmd->device->host; scmd 2133 drivers/scsi/mvumi.c scmd->result = (DRIVER_INVALID << 24) | (DID_ABORT << 16); scmd 2134 drivers/scsi/mvumi.c scmd->SCp.ptr = NULL; scmd 2135 drivers/scsi/mvumi.c if (scsi_bufflen(scmd)) { scmd 2136 drivers/scsi/mvumi.c dma_unmap_sg(&mhba->pdev->dev, scsi_sglist(scmd), scmd 2137 drivers/scsi/mvumi.c scsi_sg_count(scmd), scmd 2138 drivers/scsi/mvumi.c scmd->sc_data_direction); scmd 250 drivers/scsi/mvumi.h struct scsi_cmnd *scmd; scmd 1256 drivers/scsi/myrb.c static int myrb_host_reset(struct scsi_cmnd *scmd) scmd 1258 drivers/scsi/myrb.c struct Scsi_Host *shost = scmd->device->host; scmd 1266 drivers/scsi/myrb.c struct scsi_cmnd *scmd) scmd 1269 drivers/scsi/myrb.c struct myrb_cmdblk *cmd_blk = scsi_cmd_priv(scmd); scmd 1273 drivers/scsi/myrb.c struct scsi_device *sdev = scmd->device; scmd 1282 drivers/scsi/myrb.c nsge = scsi_dma_map(scmd); scmd 1285 drivers/scsi/myrb.c scmd->result = (DID_ERROR << 16); scmd 1286 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1291 drivers/scsi/myrb.c mbox->type3.id = scmd->request->tag + 3; scmd 1295 drivers/scsi/myrb.c switch (scmd->sc_data_direction) { scmd 1310 drivers/scsi/myrb.c if (scmd->request->timeout <= 10) scmd 1312 drivers/scsi/myrb.c else if (scmd->request->timeout <= 60) scmd 1314 drivers/scsi/myrb.c else if (scmd->request->timeout <= 600) scmd 1320 drivers/scsi/myrb.c sgl = scsi_sglist(scmd); scmd 1329 drivers/scsi/myrb.c dcdb->cdb_len = scmd->cmd_len; scmd 1331 drivers/scsi/myrb.c memcpy(&dcdb->cdb, scmd->cmnd, scmd->cmd_len); scmd 1340 drivers/scsi/myrb.c struct scsi_cmnd *scmd) scmd 1359 drivers/scsi/myrb.c scsi_sg_copy_from_buffer(scmd, (void *)inq, 36); scmd 1363 drivers/scsi/myrb.c myrb_mode_sense(struct myrb_hba *cb, struct scsi_cmnd *scmd, scmd 1370 drivers/scsi/myrb.c dbd = (scmd->cmnd[1] & 0x08) == 0x08; scmd 1396 drivers/scsi/myrb.c scsi_sg_copy_from_buffer(scmd, modes, mode_len); scmd 1400 drivers/scsi/myrb.c struct scsi_cmnd *scmd) scmd 1402 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1404 drivers/scsi/myrb.c scsi_sg_copy_from_buffer(scmd, scmd->sense_buffer, scmd 1408 drivers/scsi/myrb.c static void myrb_read_capacity(struct myrb_hba *cb, struct scsi_cmnd *scmd, scmd 1413 drivers/scsi/myrb.c dev_dbg(&scmd->device->sdev_gendev, scmd 1418 drivers/scsi/myrb.c scsi_sg_copy_from_buffer(scmd, data, 8); scmd 1422 drivers/scsi/myrb.c struct scsi_cmnd *scmd) scmd 1425 drivers/scsi/myrb.c struct myrb_cmdblk *cmd_blk = scsi_cmd_priv(scmd); scmd 1428 drivers/scsi/myrb.c struct scsi_device *sdev = scmd->device; scmd 1440 drivers/scsi/myrb.c scmd->result = (DID_BAD_TARGET << 16); scmd 1441 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1444 drivers/scsi/myrb.c switch (scmd->cmnd[0]) { scmd 1446 drivers/scsi/myrb.c scmd->result = (DID_OK << 16); scmd 1447 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1450 drivers/scsi/myrb.c if (scmd->cmnd[1] & 1) { scmd 1452 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1454 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | scmd 1457 drivers/scsi/myrb.c myrb_inquiry(cb, scmd); scmd 1458 drivers/scsi/myrb.c scmd->result = (DID_OK << 16); scmd 1460 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1463 drivers/scsi/myrb.c scmd->result = (DID_OK << 16); scmd 1464 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1467 drivers/scsi/myrb.c if ((scmd->cmnd[2] & 0x3F) != 0x3F && scmd 1468 drivers/scsi/myrb.c (scmd->cmnd[2] & 0x3F) != 0x08) { scmd 1470 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1472 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | scmd 1475 drivers/scsi/myrb.c myrb_mode_sense(cb, scmd, ldev_info); scmd 1476 drivers/scsi/myrb.c scmd->result = (DID_OK << 16); scmd 1478 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1481 drivers/scsi/myrb.c if ((scmd->cmnd[1] & 1) || scmd 1482 drivers/scsi/myrb.c (scmd->cmnd[8] & 1)) { scmd 1484 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1486 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | scmd 1488 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1491 drivers/scsi/myrb.c lba = get_unaligned_be32(&scmd->cmnd[2]); scmd 1494 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1496 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | scmd 1498 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1501 drivers/scsi/myrb.c myrb_read_capacity(cb, scmd, ldev_info); scmd 1502 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1505 drivers/scsi/myrb.c myrb_request_sense(cb, scmd); scmd 1506 drivers/scsi/myrb.c scmd->result = (DID_OK << 16); scmd 1509 drivers/scsi/myrb.c if (scmd->cmnd[1] != 0x04) { scmd 1511 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1513 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | scmd 1517 drivers/scsi/myrb.c scmd->result = (DID_OK << 16); scmd 1519 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1524 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1526 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | scmd 1528 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1533 drivers/scsi/myrb.c lba = (((scmd->cmnd[1] & 0x1F) << 16) | scmd 1534 drivers/scsi/myrb.c (scmd->cmnd[2] << 8) | scmd 1535 drivers/scsi/myrb.c scmd->cmnd[3]); scmd 1536 drivers/scsi/myrb.c block_cnt = scmd->cmnd[4]; scmd 1541 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1543 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | scmd 1545 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1552 drivers/scsi/myrb.c lba = get_unaligned_be32(&scmd->cmnd[2]); scmd 1553 drivers/scsi/myrb.c block_cnt = get_unaligned_be16(&scmd->cmnd[7]); scmd 1558 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1560 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | scmd 1562 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1569 drivers/scsi/myrb.c lba = get_unaligned_be32(&scmd->cmnd[2]); scmd 1570 drivers/scsi/myrb.c block_cnt = get_unaligned_be32(&scmd->cmnd[6]); scmd 1574 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1576 drivers/scsi/myrb.c scmd->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION; scmd 1577 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1582 drivers/scsi/myrb.c mbox->type5.id = scmd->request->tag + 3; scmd 1583 drivers/scsi/myrb.c if (scmd->sc_data_direction == DMA_NONE) scmd 1585 drivers/scsi/myrb.c nsge = scsi_dma_map(scmd); scmd 1587 drivers/scsi/myrb.c sgl = scsi_sglist(scmd); scmd 1588 drivers/scsi/myrb.c if (scmd->sc_data_direction == DMA_FROM_DEVICE) scmd 1609 drivers/scsi/myrb.c if (scmd->sc_data_direction == DMA_FROM_DEVICE) scmd 1620 drivers/scsi/myrb.c scsi_for_each_sg(scmd, sgl, nsge, i) { scmd 1635 drivers/scsi/myrb.c struct scsi_cmnd *scmd) scmd 1637 drivers/scsi/myrb.c struct scsi_device *sdev = scmd->device; scmd 1640 drivers/scsi/myrb.c scmd->result = (DID_BAD_TARGET << 16); scmd 1641 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 1645 drivers/scsi/myrb.c return myrb_ldev_queuecommand(shost, scmd); scmd 1647 drivers/scsi/myrb.c return myrb_pthru_queuecommand(shost, scmd); scmd 2326 drivers/scsi/myrb.c struct scsi_cmnd *scmd) scmd 2333 drivers/scsi/myrb.c scsi_dma_unmap(scmd); scmd 2336 drivers/scsi/myrb.c memcpy(scmd->sense_buffer, &cmd_blk->dcdb->sense, 64); scmd 2350 drivers/scsi/myrb.c scmd->result = (DID_OK << 16) | status; scmd 2353 drivers/scsi/myrb.c dev_dbg(&scmd->device->sdev_gendev, scmd 2355 drivers/scsi/myrb.c if (scmd->sc_data_direction == DMA_FROM_DEVICE) scmd 2357 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 2361 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 2363 drivers/scsi/myrb.c scmd->result = (DID_OK << 16) | SAM_STAT_CHECK_CONDITION; scmd 2366 drivers/scsi/myrb.c scmd_printk(KERN_ERR, scmd, "Irrecoverable Data Error\n"); scmd 2367 drivers/scsi/myrb.c if (scmd->sc_data_direction == DMA_FROM_DEVICE) scmd 2369 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 2373 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 2375 drivers/scsi/myrb.c scmd->result = (DID_OK << 16) | SAM_STAT_CHECK_CONDITION; scmd 2378 drivers/scsi/myrb.c dev_dbg(&scmd->device->sdev_gendev, scmd 2380 drivers/scsi/myrb.c scmd->result = (DID_BAD_TARGET << 16); scmd 2383 drivers/scsi/myrb.c dev_dbg(&scmd->device->sdev_gendev, scmd 2386 drivers/scsi/myrb.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 2390 drivers/scsi/myrb.c dev_dbg(&scmd->device->sdev_gendev, "Device nonresponsive\n"); scmd 2391 drivers/scsi/myrb.c scmd->result = (DID_BAD_TARGET << 16); scmd 2394 drivers/scsi/myrb.c scmd_printk(KERN_ERR, scmd, scmd 2396 drivers/scsi/myrb.c scmd->result = (DID_ERROR << 16); scmd 2399 drivers/scsi/myrb.c scmd->scsi_done(scmd); scmd 2781 drivers/scsi/myrb.c struct scsi_cmnd *scmd = NULL; scmd 2789 drivers/scsi/myrb.c scmd = scsi_host_find_tag(cb->host, id - 3); scmd 2790 drivers/scsi/myrb.c if (scmd) scmd 2791 drivers/scsi/myrb.c cmd_blk = scsi_cmd_priv(scmd); scmd 2807 drivers/scsi/myrb.c myrb_handle_scsi(cb, cmd_blk, scmd); scmd 3059 drivers/scsi/myrb.c struct scsi_cmnd *scmd = NULL; scmd 3067 drivers/scsi/myrb.c scmd = scsi_host_find_tag(cb->host, id - 3); scmd 3068 drivers/scsi/myrb.c if (scmd) scmd 3069 drivers/scsi/myrb.c cmd_blk = scsi_cmd_priv(scmd); scmd 3084 drivers/scsi/myrb.c myrb_handle_scsi(cb, cmd_blk, scmd); scmd 3264 drivers/scsi/myrb.c struct scsi_cmnd *scmd = NULL; scmd 3272 drivers/scsi/myrb.c scmd = scsi_host_find_tag(cb->host, id - 3); scmd 3273 drivers/scsi/myrb.c if (scmd) scmd 3274 drivers/scsi/myrb.c cmd_blk = scsi_cmd_priv(scmd); scmd 3288 drivers/scsi/myrb.c myrb_handle_scsi(cb, cmd_blk, scmd); scmd 3430 drivers/scsi/myrb.c struct scsi_cmnd *scmd = NULL; scmd 3441 drivers/scsi/myrb.c scmd = scsi_host_find_tag(cb->host, id - 3); scmd 3442 drivers/scsi/myrb.c if (scmd) scmd 3443 drivers/scsi/myrb.c cmd_blk = scsi_cmd_priv(scmd); scmd 3486 drivers/scsi/myrb.c myrb_handle_scsi(cb, cmd_blk, scmd); scmd 1532 drivers/scsi/myrs.c int myrs_host_reset(struct scsi_cmnd *scmd) scmd 1534 drivers/scsi/myrs.c struct Scsi_Host *shost = scmd->device->host; scmd 1541 drivers/scsi/myrs.c static void myrs_mode_sense(struct myrs_hba *cs, struct scsi_cmnd *scmd, scmd 1548 drivers/scsi/myrs.c dbd = (scmd->cmnd[1] & 0x08) == 0x08; scmd 1581 drivers/scsi/myrs.c scsi_sg_copy_from_buffer(scmd, modes, mode_len); scmd 1585 drivers/scsi/myrs.c struct scsi_cmnd *scmd) scmd 1588 drivers/scsi/myrs.c struct myrs_cmdblk *cmd_blk = scsi_cmd_priv(scmd); scmd 1590 drivers/scsi/myrs.c struct scsi_device *sdev = scmd->device; scmd 1597 drivers/scsi/myrs.c if (!scmd->device->hostdata) { scmd 1598 drivers/scsi/myrs.c scmd->result = (DID_NO_CONNECT << 16); scmd 1599 drivers/scsi/myrs.c scmd->scsi_done(scmd); scmd 1603 drivers/scsi/myrs.c switch (scmd->cmnd[0]) { scmd 1605 drivers/scsi/myrs.c scsi_build_sense_buffer(0, scmd->sense_buffer, ILLEGAL_REQUEST, scmd 1607 drivers/scsi/myrs.c scmd->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION; scmd 1608 drivers/scsi/myrs.c scmd->scsi_done(scmd); scmd 1611 drivers/scsi/myrs.c if (scmd->device->channel >= cs->ctlr_info->physchan_present) { scmd 1614 drivers/scsi/myrs.c if ((scmd->cmnd[2] & 0x3F) != 0x3F && scmd 1615 drivers/scsi/myrs.c (scmd->cmnd[2] & 0x3F) != 0x08) { scmd 1617 drivers/scsi/myrs.c scsi_build_sense_buffer(0, scmd->sense_buffer, scmd 1619 drivers/scsi/myrs.c scmd->result = (DRIVER_SENSE << 24) | scmd 1622 drivers/scsi/myrs.c myrs_mode_sense(cs, scmd, ldev_info); scmd 1623 drivers/scsi/myrs.c scmd->result = (DID_OK << 16); scmd 1625 drivers/scsi/myrs.c scmd->scsi_done(scmd); scmd 1638 drivers/scsi/myrs.c timeout = scmd->request->timeout; scmd 1639 drivers/scsi/myrs.c if (scmd->cmd_len <= 10) { scmd 1640 drivers/scsi/myrs.c if (scmd->device->channel >= cs->ctlr_info->physchan_present) { scmd 1654 drivers/scsi/myrs.c mbox->SCSI_10.id = scmd->request->tag + 3; scmd 1656 drivers/scsi/myrs.c (scmd->sc_data_direction == DMA_FROM_DEVICE); scmd 1657 drivers/scsi/myrs.c if (scmd->request->cmd_flags & REQ_FUA) scmd 1659 drivers/scsi/myrs.c mbox->SCSI_10.dma_size = scsi_bufflen(scmd); scmd 1662 drivers/scsi/myrs.c mbox->SCSI_10.cdb_len = scmd->cmd_len; scmd 1670 drivers/scsi/myrs.c memcpy(&mbox->SCSI_10.cdb, scmd->cmnd, scmd->cmd_len); scmd 1686 drivers/scsi/myrs.c if (scmd->device->channel >= cs->ctlr_info->physchan_present) { scmd 1700 drivers/scsi/myrs.c mbox->SCSI_255.id = scmd->request->tag + 3; scmd 1702 drivers/scsi/myrs.c (scmd->sc_data_direction == DMA_FROM_DEVICE); scmd 1703 drivers/scsi/myrs.c if (scmd->request->cmd_flags & REQ_FUA) scmd 1705 drivers/scsi/myrs.c mbox->SCSI_255.dma_size = scsi_bufflen(scmd); scmd 1708 drivers/scsi/myrs.c mbox->SCSI_255.cdb_len = scmd->cmd_len; scmd 1717 drivers/scsi/myrs.c memcpy(cmd_blk->dcdb, scmd->cmnd, scmd->cmd_len); scmd 1720 drivers/scsi/myrs.c if (scmd->sc_data_direction == DMA_NONE) scmd 1722 drivers/scsi/myrs.c nsge = scsi_dma_map(scmd); scmd 1724 drivers/scsi/myrs.c sgl = scsi_sglist(scmd); scmd 1752 drivers/scsi/myrs.c if (scmd->cmd_len <= 10) scmd 1761 drivers/scsi/myrs.c scsi_for_each_sg(scmd, sgl, nsge, i) { scmd 1763 drivers/scsi/myrs.c scsi_dma_unmap(scmd); scmd 1764 drivers/scsi/myrs.c scmd->result = (DID_ERROR << 16); scmd 1765 drivers/scsi/myrs.c scmd->scsi_done(scmd); scmd 2052 drivers/scsi/myrs.c struct scsi_cmnd *scmd) scmd 2059 drivers/scsi/myrs.c scsi_dma_unmap(scmd); scmd 2067 drivers/scsi/myrs.c memcpy(scmd->sense_buffer, cmd_blk->sense, sense_len); scmd 2087 drivers/scsi/myrs.c scsi_set_resid(scmd, cmd_blk->residual); scmd 2090 drivers/scsi/myrs.c scmd->result = (DID_BAD_TARGET << 16); scmd 2092 drivers/scsi/myrs.c scmd->result = (DID_OK << 16) | status; scmd 2093 drivers/scsi/myrs.c scmd->scsi_done(scmd); scmd 2626 drivers/scsi/myrs.c struct scsi_cmnd *scmd = NULL; scmd 2634 drivers/scsi/myrs.c scmd = scsi_host_find_tag(cs->host, id - 3); scmd 2635 drivers/scsi/myrs.c if (scmd) scmd 2636 drivers/scsi/myrs.c cmd_blk = scsi_cmd_priv(scmd); scmd 2654 drivers/scsi/myrs.c myrs_handle_scsi(cs, cmd_blk, scmd); scmd 2876 drivers/scsi/myrs.c struct scsi_cmnd *scmd = NULL; scmd 2884 drivers/scsi/myrs.c scmd = scsi_host_find_tag(cs->host, id - 3); scmd 2885 drivers/scsi/myrs.c if (scmd) scmd 2886 drivers/scsi/myrs.c cmd_blk = scsi_cmd_priv(scmd); scmd 2904 drivers/scsi/myrs.c myrs_handle_scsi(cs, cmd_blk, scmd); scmd 3126 drivers/scsi/myrs.c struct scsi_cmnd *scmd = NULL; scmd 3134 drivers/scsi/myrs.c scmd = scsi_host_find_tag(cs->host, id - 3); scmd 3135 drivers/scsi/myrs.c if (scmd) scmd 3136 drivers/scsi/myrs.c cmd_blk = scsi_cmd_priv(scmd); scmd 3154 drivers/scsi/myrs.c myrs_handle_scsi(cs, cmd_blk, scmd); scmd 3026 drivers/scsi/pmcraid.c static int pmcraid_eh_device_reset_handler(struct scsi_cmnd *scmd) scmd 3028 drivers/scsi/pmcraid.c scmd_printk(KERN_INFO, scmd, scmd 3030 drivers/scsi/pmcraid.c return pmcraid_reset_device(scmd, scmd 3035 drivers/scsi/pmcraid.c static int pmcraid_eh_bus_reset_handler(struct scsi_cmnd *scmd) scmd 3037 drivers/scsi/pmcraid.c scmd_printk(KERN_INFO, scmd, scmd 3039 drivers/scsi/pmcraid.c return pmcraid_reset_device(scmd, scmd 3044 drivers/scsi/pmcraid.c static int pmcraid_eh_target_reset_handler(struct scsi_cmnd *scmd) scmd 3046 drivers/scsi/pmcraid.c scmd_printk(KERN_INFO, scmd, scmd 3048 drivers/scsi/pmcraid.c return pmcraid_reset_device(scmd, scmd 3063 drivers/scsi/pmcraid.c static int pmcraid_eh_host_reset_handler(struct scsi_cmnd *scmd) scmd 3068 drivers/scsi/pmcraid.c (struct pmcraid_instance *)(scmd->device->host->hostdata); scmd 620 drivers/scsi/qla2xxx/qla_def.h struct srb_cmd scmd; scmd 637 drivers/scsi/qla2xxx/qla_def.h #define GET_CMD_SP(sp) (sp->u.scmd.cmd) scmd 640 drivers/scsi/qla2xxx/qla_def.h (sp->u.scmd.request_sense_length) scmd 642 drivers/scsi/qla2xxx/qla_def.h (sp->u.scmd.request_sense_length = len) scmd 644 drivers/scsi/qla2xxx/qla_def.h (sp->u.scmd.request_sense_ptr) scmd 646 drivers/scsi/qla2xxx/qla_def.h (sp->u.scmd.request_sense_ptr = ptr) scmd 648 drivers/scsi/qla2xxx/qla_def.h (sp->u.scmd.fw_sense_length) scmd 650 drivers/scsi/qla2xxx/qla_def.h (sp->u.scmd.fw_sense_length = len) scmd 624 drivers/scsi/qla2xxx/qla_iocb.c ctx = sp->u.scmd.ct6_ctx; scmd 957 drivers/scsi/qla2xxx/qla_iocb.c &sp->u.scmd.crc_ctx->dsd_list); scmd 1054 drivers/scsi/qla2xxx/qla_iocb.c &sp->u.scmd.crc_ctx->dsd_list); scmd 1100 drivers/scsi/qla2xxx/qla_iocb.c difctx = sp->u.scmd.crc_ctx; scmd 1440 drivers/scsi/qla2xxx/qla_iocb.c crc_ctx_pkt = sp->u.scmd.crc_ctx = scmd 3194 drivers/scsi/qla2xxx/qla_iocb.c ctx = sp->u.scmd.ct6_ctx = scmd 3390 drivers/scsi/qla2xxx/qla_iocb.c if (sp->u.scmd.crc_ctx) { scmd 3391 drivers/scsi/qla2xxx/qla_iocb.c mempool_free(sp->u.scmd.crc_ctx, ha->ctx_mempool); scmd 3392 drivers/scsi/qla2xxx/qla_iocb.c sp->u.scmd.crc_ctx = NULL; scmd 3690 drivers/scsi/qla2xxx/qla_nx.c if ((!sp->u.scmd.crc_ctx || scmd 673 drivers/scsi/qla2xxx/qla_os.c qla2x00_clean_dsd_pool(ha, sp->u.scmd.crc_ctx); scmd 678 drivers/scsi/qla2xxx/qla_os.c struct crc_context *ctx0 = sp->u.scmd.crc_ctx; scmd 685 drivers/scsi/qla2xxx/qla_os.c struct ct6_dsd *ctx1 = sp->u.scmd.ct6_ctx; scmd 727 drivers/scsi/qla2xxx/qla_os.c qla2x00_clean_dsd_pool(ha, sp->u.scmd.crc_ctx); scmd 732 drivers/scsi/qla2xxx/qla_os.c struct crc_context *difctx = sp->u.scmd.crc_ctx; scmd 768 drivers/scsi/qla2xxx/qla_os.c struct ct6_dsd *ctx1 = sp->u.scmd.ct6_ctx; scmd 780 drivers/scsi/qla2xxx/qla_os.c struct crc_context *ctx0 = sp->u.scmd.crc_ctx; scmd 894 drivers/scsi/qla2xxx/qla_os.c sp->u.scmd.cmd = cmd; scmd 976 drivers/scsi/qla2xxx/qla_os.c sp->u.scmd.cmd = cmd; scmd 2479 drivers/scsi/scsi_debug.c static int do_device_access(struct scsi_cmnd *scmd, u32 sg_skip, u64 lba, scmd 2484 drivers/scsi/scsi_debug.c struct scsi_data_buffer *sdb = &scmd->sdb; scmd 2496 drivers/scsi/scsi_debug.c if (scmd->sc_data_direction != dir) scmd 53 drivers/scsi/scsi_error.c static void scsi_eh_done(struct scsi_cmnd *scmd); scmd 62 drivers/scsi/scsi_error.c static int scsi_eh_try_stu(struct scsi_cmnd *scmd); scmd 132 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd = scmd 134 drivers/scsi/scsi_error.c struct scsi_device *sdev = scmd->device; scmd 139 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, scmd 143 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, scmd 145 drivers/scsi/scsi_error.c rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd); scmd 147 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_TIME_OUT); scmd 150 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, scmd 153 drivers/scsi/scsi_error.c } else if (!scsi_noretry_cmd(scmd) && scmd 154 drivers/scsi/scsi_error.c (++scmd->retries <= scmd->allowed)) { scmd 156 drivers/scsi/scsi_error.c scmd_printk(KERN_WARNING, scmd, scmd 158 drivers/scsi/scsi_error.c scsi_queue_insert(scmd, SCSI_MLQUEUE_EH_RETRY); scmd 162 drivers/scsi/scsi_error.c scmd_printk(KERN_WARNING, scmd, scmd 164 drivers/scsi/scsi_error.c scsi_finish_command(scmd); scmd 169 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, scmd 176 drivers/scsi/scsi_error.c scsi_eh_scmd_add(scmd); scmd 186 drivers/scsi/scsi_error.c scsi_abort_command(struct scsi_cmnd *scmd) scmd 188 drivers/scsi/scsi_error.c struct scsi_device *sdev = scmd->device; scmd 192 drivers/scsi/scsi_error.c if (scmd->eh_eflags & SCSI_EH_ABORT_SCHEDULED) { scmd 197 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, scmd 199 drivers/scsi/scsi_error.c BUG_ON(delayed_work_pending(&scmd->abort_work)); scmd 208 drivers/scsi/scsi_error.c scmd->eh_eflags |= SCSI_EH_ABORT_SCHEDULED; scmd 210 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, "abort scheduled\n")); scmd 211 drivers/scsi/scsi_error.c queue_delayed_work(shost->tmf_work_q, &scmd->abort_work, HZ / 100); scmd 223 drivers/scsi/scsi_error.c static void scsi_eh_reset(struct scsi_cmnd *scmd) scmd 225 drivers/scsi/scsi_error.c if (!blk_rq_is_passthrough(scmd->request)) { scmd 226 drivers/scsi/scsi_error.c struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); scmd 228 drivers/scsi/scsi_error.c sdrv->eh_reset(scmd); scmd 234 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd = container_of(head, typeof(*scmd), rcu); scmd 235 drivers/scsi/scsi_error.c struct Scsi_Host *shost = scmd->device->host; scmd 248 drivers/scsi/scsi_error.c void scsi_eh_scmd_add(struct scsi_cmnd *scmd) scmd 250 drivers/scsi/scsi_error.c struct Scsi_Host *shost = scmd->device->host; scmd 264 drivers/scsi/scsi_error.c scsi_eh_reset(scmd); scmd 265 drivers/scsi/scsi_error.c list_add_tail(&scmd->eh_entry, &shost->eh_cmd_q); scmd 271 drivers/scsi/scsi_error.c call_rcu(&scmd->rcu, scsi_eh_inc_host_failed); scmd 286 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd = blk_mq_rq_to_pdu(req); scmd 288 drivers/scsi/scsi_error.c struct Scsi_Host *host = scmd->device->host; scmd 290 drivers/scsi/scsi_error.c trace_scsi_dispatch_cmd_timeout(scmd); scmd 291 drivers/scsi/scsi_error.c scsi_log_completion(scmd, TIMEOUT_ERROR); scmd 297 drivers/scsi/scsi_error.c rtn = host->hostt->eh_timed_out(scmd); scmd 312 drivers/scsi/scsi_error.c if (test_and_set_bit(SCMD_STATE_COMPLETE, &scmd->state)) scmd 314 drivers/scsi/scsi_error.c if (scsi_abort_command(scmd) != SUCCESS) { scmd 315 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_TIME_OUT); scmd 316 drivers/scsi/scsi_error.c scsi_eh_scmd_add(scmd); scmd 355 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd; scmd 363 drivers/scsi/scsi_error.c list_for_each_entry(scmd, work_q, eh_entry) { scmd 364 drivers/scsi/scsi_error.c if (scmd->device == sdev) { scmd 366 drivers/scsi/scsi_error.c if (scmd->eh_eflags & SCSI_EH_ABORT_SCHEDULED) scmd 481 drivers/scsi/scsi_error.c int scsi_check_sense(struct scsi_cmnd *scmd) scmd 483 drivers/scsi/scsi_error.c struct scsi_device *sdev = scmd->device; scmd 486 drivers/scsi/scsi_error.c if (! scsi_command_normalize_sense(scmd, &sshdr)) scmd 503 drivers/scsi/scsi_error.c if (scmd->cmnd[0] == TEST_UNIT_READY && scmd->scsi_done != scsi_eh_done) scmd 517 drivers/scsi/scsi_error.c if (scmd->sense_buffer[2] & 0xe0) scmd 526 drivers/scsi/scsi_error.c (scmd->sense_buffer[8] == 0x4) && scmd 527 drivers/scsi/scsi_error.c (scmd->sense_buffer[11] & 0xe0)) scmd 556 drivers/scsi/scsi_error.c if (scmd->device->expecting_cc_ua) { scmd 564 drivers/scsi/scsi_error.c scmd->device->expecting_cc_ua = 0; scmd 573 drivers/scsi/scsi_error.c if (scmd->device->sdev_target->expecting_lun_change && scmd 586 drivers/scsi/scsi_error.c if (scmd->device->allow_restart && scmd 599 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_ALLOC_FAILURE); scmd 607 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_TARGET_FAILURE); scmd 614 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_MEDIUM_ERROR); scmd 620 drivers/scsi/scsi_error.c if (scmd->device->retry_hwerror) scmd 623 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_TARGET_FAILURE); scmd 633 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_TARGET_FAILURE); scmd 706 drivers/scsi/scsi_error.c static int scsi_eh_completed_normally(struct scsi_cmnd *scmd) scmd 712 drivers/scsi/scsi_error.c if (host_byte(scmd->result) == DID_RESET) { scmd 719 drivers/scsi/scsi_error.c return scsi_check_sense(scmd); scmd 721 drivers/scsi/scsi_error.c if (host_byte(scmd->result) != DID_OK) scmd 727 drivers/scsi/scsi_error.c if (msg_byte(scmd->result) != COMMAND_COMPLETE) scmd 734 drivers/scsi/scsi_error.c switch (status_byte(scmd->result)) { scmd 736 drivers/scsi/scsi_error.c scsi_handle_queue_ramp_up(scmd->device); scmd 741 drivers/scsi/scsi_error.c return scsi_check_sense(scmd); scmd 750 drivers/scsi/scsi_error.c if (scmd->cmnd[0] == TEST_UNIT_READY) scmd 757 drivers/scsi/scsi_error.c scsi_handle_queue_full(scmd->device); scmd 771 drivers/scsi/scsi_error.c static void scsi_eh_done(struct scsi_cmnd *scmd) scmd 775 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(3, scmd_printk(KERN_INFO, scmd, scmd 776 drivers/scsi/scsi_error.c "%s result: %x\n", __func__, scmd->result)); scmd 778 drivers/scsi/scsi_error.c eh_action = scmd->device->host->eh_action; scmd 787 drivers/scsi/scsi_error.c static int scsi_try_host_reset(struct scsi_cmnd *scmd) scmd 791 drivers/scsi/scsi_error.c struct Scsi_Host *host = scmd->device->host; scmd 800 drivers/scsi/scsi_error.c rtn = hostt->eh_host_reset_handler(scmd); scmd 806 drivers/scsi/scsi_error.c scsi_report_bus_reset(host, scmd_channel(scmd)); scmd 817 drivers/scsi/scsi_error.c static int scsi_try_bus_reset(struct scsi_cmnd *scmd) scmd 821 drivers/scsi/scsi_error.c struct Scsi_Host *host = scmd->device->host; scmd 824 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(3, scmd_printk(KERN_INFO, scmd, scmd 830 drivers/scsi/scsi_error.c rtn = hostt->eh_bus_reset_handler(scmd); scmd 836 drivers/scsi/scsi_error.c scsi_report_bus_reset(host, scmd_channel(scmd)); scmd 859 drivers/scsi/scsi_error.c static int scsi_try_target_reset(struct scsi_cmnd *scmd) scmd 863 drivers/scsi/scsi_error.c struct Scsi_Host *host = scmd->device->host; scmd 869 drivers/scsi/scsi_error.c rtn = hostt->eh_target_reset_handler(scmd); scmd 872 drivers/scsi/scsi_error.c __starget_for_each_device(scsi_target(scmd->device), NULL, scmd 890 drivers/scsi/scsi_error.c static int scsi_try_bus_device_reset(struct scsi_cmnd *scmd) scmd 893 drivers/scsi/scsi_error.c struct scsi_host_template *hostt = scmd->device->host->hostt; scmd 898 drivers/scsi/scsi_error.c rtn = hostt->eh_device_reset_handler(scmd); scmd 900 drivers/scsi/scsi_error.c __scsi_report_device_reset(scmd->device, NULL); scmd 922 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd) scmd 927 drivers/scsi/scsi_error.c return hostt->eh_abort_handler(scmd); scmd 930 drivers/scsi/scsi_error.c static void scsi_abort_eh_cmnd(struct scsi_cmnd *scmd) scmd 932 drivers/scsi/scsi_error.c if (scsi_try_to_abort_cmd(scmd->device->host->hostt, scmd) != SUCCESS) scmd 933 drivers/scsi/scsi_error.c if (scsi_try_bus_device_reset(scmd) != SUCCESS) scmd 934 drivers/scsi/scsi_error.c if (scsi_try_target_reset(scmd) != SUCCESS) scmd 935 drivers/scsi/scsi_error.c if (scsi_try_bus_reset(scmd) != SUCCESS) scmd 936 drivers/scsi/scsi_error.c scsi_try_host_reset(scmd); scmd 953 drivers/scsi/scsi_error.c void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses, scmd 956 drivers/scsi/scsi_error.c struct scsi_device *sdev = scmd->device; scmd 965 drivers/scsi/scsi_error.c ses->cmd_len = scmd->cmd_len; scmd 966 drivers/scsi/scsi_error.c ses->cmnd = scmd->cmnd; scmd 967 drivers/scsi/scsi_error.c ses->data_direction = scmd->sc_data_direction; scmd 968 drivers/scsi/scsi_error.c ses->sdb = scmd->sdb; scmd 969 drivers/scsi/scsi_error.c ses->result = scmd->result; scmd 970 drivers/scsi/scsi_error.c ses->resid_len = scmd->req.resid_len; scmd 971 drivers/scsi/scsi_error.c ses->underflow = scmd->underflow; scmd 972 drivers/scsi/scsi_error.c ses->prot_op = scmd->prot_op; scmd 973 drivers/scsi/scsi_error.c ses->eh_eflags = scmd->eh_eflags; scmd 975 drivers/scsi/scsi_error.c scmd->prot_op = SCSI_PROT_NORMAL; scmd 976 drivers/scsi/scsi_error.c scmd->eh_eflags = 0; scmd 977 drivers/scsi/scsi_error.c scmd->cmnd = ses->eh_cmnd; scmd 978 drivers/scsi/scsi_error.c memset(scmd->cmnd, 0, BLK_MAX_CDB); scmd 979 drivers/scsi/scsi_error.c memset(&scmd->sdb, 0, sizeof(scmd->sdb)); scmd 980 drivers/scsi/scsi_error.c scmd->result = 0; scmd 981 drivers/scsi/scsi_error.c scmd->req.resid_len = 0; scmd 984 drivers/scsi/scsi_error.c scmd->sdb.length = min_t(unsigned, SCSI_SENSE_BUFFERSIZE, scmd 986 drivers/scsi/scsi_error.c sg_init_one(&ses->sense_sgl, scmd->sense_buffer, scmd 987 drivers/scsi/scsi_error.c scmd->sdb.length); scmd 988 drivers/scsi/scsi_error.c scmd->sdb.table.sgl = &ses->sense_sgl; scmd 989 drivers/scsi/scsi_error.c scmd->sc_data_direction = DMA_FROM_DEVICE; scmd 990 drivers/scsi/scsi_error.c scmd->sdb.table.nents = scmd->sdb.table.orig_nents = 1; scmd 991 drivers/scsi/scsi_error.c scmd->cmnd[0] = REQUEST_SENSE; scmd 992 drivers/scsi/scsi_error.c scmd->cmnd[4] = scmd->sdb.length; scmd 993 drivers/scsi/scsi_error.c scmd->cmd_len = COMMAND_SIZE(scmd->cmnd[0]); scmd 995 drivers/scsi/scsi_error.c scmd->sc_data_direction = DMA_NONE; scmd 998 drivers/scsi/scsi_error.c memcpy(scmd->cmnd, cmnd, cmnd_size); scmd 999 drivers/scsi/scsi_error.c scmd->cmd_len = COMMAND_SIZE(scmd->cmnd[0]); scmd 1003 drivers/scsi/scsi_error.c scmd->underflow = 0; scmd 1006 drivers/scsi/scsi_error.c scmd->cmnd[1] = (scmd->cmnd[1] & 0x1f) | scmd 1013 drivers/scsi/scsi_error.c memset(scmd->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); scmd 1024 drivers/scsi/scsi_error.c void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd, struct scsi_eh_save *ses) scmd 1029 drivers/scsi/scsi_error.c scmd->cmd_len = ses->cmd_len; scmd 1030 drivers/scsi/scsi_error.c scmd->cmnd = ses->cmnd; scmd 1031 drivers/scsi/scsi_error.c scmd->sc_data_direction = ses->data_direction; scmd 1032 drivers/scsi/scsi_error.c scmd->sdb = ses->sdb; scmd 1033 drivers/scsi/scsi_error.c scmd->result = ses->result; scmd 1034 drivers/scsi/scsi_error.c scmd->req.resid_len = ses->resid_len; scmd 1035 drivers/scsi/scsi_error.c scmd->underflow = ses->underflow; scmd 1036 drivers/scsi/scsi_error.c scmd->prot_op = ses->prot_op; scmd 1037 drivers/scsi/scsi_error.c scmd->eh_eflags = ses->eh_eflags; scmd 1055 drivers/scsi/scsi_error.c static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, unsigned char *cmnd, scmd 1058 drivers/scsi/scsi_error.c struct scsi_device *sdev = scmd->device; scmd 1067 drivers/scsi/scsi_error.c scsi_eh_prep_cmnd(scmd, &ses, cmnd, cmnd_size, sense_bytes); scmd 1070 drivers/scsi/scsi_error.c scsi_log_send(scmd); scmd 1071 drivers/scsi/scsi_error.c scmd->scsi_done = scsi_eh_done; scmd 1090 drivers/scsi/scsi_error.c rtn = shost->hostt->queuecommand(shost, scmd); scmd 1097 drivers/scsi/scsi_error.c scsi_eh_restore_cmnd(scmd, &ses); scmd 1112 drivers/scsi/scsi_error.c scsi_log_completion(scmd, rtn); scmd 1114 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(3, scmd_printk(KERN_INFO, scmd, scmd 1128 drivers/scsi/scsi_error.c rtn = scsi_eh_completed_normally(scmd); scmd 1129 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(3, scmd_printk(KERN_INFO, scmd, scmd 1145 drivers/scsi/scsi_error.c scsi_abort_eh_cmnd(scmd); scmd 1149 drivers/scsi/scsi_error.c scsi_eh_restore_cmnd(scmd, &ses); scmd 1163 drivers/scsi/scsi_error.c static int scsi_request_sense(struct scsi_cmnd *scmd) scmd 1165 drivers/scsi/scsi_error.c return scsi_send_eh_cmnd(scmd, NULL, 0, scmd->device->eh_timeout, ~0); scmd 1168 drivers/scsi/scsi_error.c static int scsi_eh_action(struct scsi_cmnd *scmd, int rtn) scmd 1170 drivers/scsi/scsi_error.c if (!blk_rq_is_passthrough(scmd->request)) { scmd 1171 drivers/scsi/scsi_error.c struct scsi_driver *sdrv = scsi_cmd_to_driver(scmd); scmd 1173 drivers/scsi/scsi_error.c rtn = sdrv->eh_action(scmd, rtn); scmd 1190 drivers/scsi/scsi_error.c void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, struct list_head *done_q) scmd 1192 drivers/scsi/scsi_error.c list_move_tail(&scmd->eh_entry, done_q); scmd 1219 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd, *next; scmd 1227 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, work_q, eh_entry) { scmd 1228 drivers/scsi/scsi_error.c if ((scmd->eh_eflags & SCSI_EH_ABORT_SCHEDULED) || scmd 1229 drivers/scsi/scsi_error.c SCSI_SENSE_VALID(scmd)) scmd 1232 drivers/scsi/scsi_error.c shost = scmd->device->host; scmd 1235 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, scmd 1240 drivers/scsi/scsi_error.c if (status_byte(scmd->result) != CHECK_CONDITION) scmd 1249 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(2, scmd_printk(KERN_INFO, scmd, scmd 1252 drivers/scsi/scsi_error.c rtn = scsi_request_sense(scmd); scmd 1256 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(3, scmd_printk(KERN_INFO, scmd, scmd 1257 drivers/scsi/scsi_error.c "sense requested, result %x\n", scmd->result)); scmd 1258 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(3, scsi_print_sense(scmd)); scmd 1260 drivers/scsi/scsi_error.c rtn = scsi_decide_disposition(scmd); scmd 1271 drivers/scsi/scsi_error.c scmd->retries = scmd->allowed; scmd 1275 drivers/scsi/scsi_error.c scsi_eh_finish_cmd(scmd, done_q); scmd 1289 drivers/scsi/scsi_error.c static int scsi_eh_tur(struct scsi_cmnd *scmd) scmd 1295 drivers/scsi/scsi_error.c rtn = scsi_send_eh_cmnd(scmd, tur_command, 6, scmd 1296 drivers/scsi/scsi_error.c scmd->device->eh_timeout, 0); scmd 1298 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(3, scmd_printk(KERN_INFO, scmd, scmd 1330 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd, *next; scmd 1335 drivers/scsi/scsi_error.c scmd = list_entry(cmd_list->next, struct scsi_cmnd, eh_entry); scmd 1336 drivers/scsi/scsi_error.c sdev = scmd->device; scmd 1350 drivers/scsi/scsi_error.c finish_cmds = !scsi_device_online(scmd->device) || scmd 1351 drivers/scsi/scsi_error.c (try_stu && !scsi_eh_try_stu(scmd) && scmd 1352 drivers/scsi/scsi_error.c !scsi_eh_tur(scmd)) || scmd 1353 drivers/scsi/scsi_error.c !scsi_eh_tur(scmd); scmd 1355 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, cmd_list, eh_entry) scmd 1356 drivers/scsi/scsi_error.c if (scmd->device == sdev) { scmd 1359 drivers/scsi/scsi_error.c scsi_eh_action(scmd, SUCCESS) == SUCCESS)) scmd 1360 drivers/scsi/scsi_error.c scsi_eh_finish_cmd(scmd, done_q); scmd 1362 drivers/scsi/scsi_error.c list_move_tail(&scmd->eh_entry, work_q); scmd 1375 drivers/scsi/scsi_error.c static int scsi_eh_try_stu(struct scsi_cmnd *scmd) scmd 1379 drivers/scsi/scsi_error.c if (scmd->device->allow_restart) { scmd 1383 drivers/scsi/scsi_error.c rtn = scsi_send_eh_cmnd(scmd, stu_command, 6, scmd->device->request_queue->rq_timeout, 0); scmd 1406 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd, *stu_scmd, *next; scmd 1418 drivers/scsi/scsi_error.c list_for_each_entry(scmd, work_q, eh_entry) scmd 1419 drivers/scsi/scsi_error.c if (scmd->device == sdev && SCSI_SENSE_VALID(scmd) && scmd 1420 drivers/scsi/scsi_error.c scsi_check_sense(scmd) == FAILED ) { scmd 1421 drivers/scsi/scsi_error.c stu_scmd = scmd; scmd 1436 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, scmd 1438 drivers/scsi/scsi_error.c if (scmd->device == sdev && scmd 1439 drivers/scsi/scsi_error.c scsi_eh_action(scmd, SUCCESS) == SUCCESS) scmd 1440 drivers/scsi/scsi_error.c scsi_eh_finish_cmd(scmd, done_q); scmd 1471 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd, *bdr_scmd, *next; scmd 1484 drivers/scsi/scsi_error.c list_for_each_entry(scmd, work_q, eh_entry) scmd 1485 drivers/scsi/scsi_error.c if (scmd->device == sdev) { scmd 1486 drivers/scsi/scsi_error.c bdr_scmd = scmd; scmd 1501 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, scmd 1503 drivers/scsi/scsi_error.c if (scmd->device == sdev && scmd 1504 drivers/scsi/scsi_error.c scsi_eh_action(scmd, rtn) != FAILED) scmd 1505 drivers/scsi/scsi_error.c scsi_eh_finish_cmd(scmd, scmd 1538 drivers/scsi/scsi_error.c struct scsi_cmnd *next, *scmd; scmd 1553 drivers/scsi/scsi_error.c scmd = list_entry(tmp_list.next, struct scsi_cmnd, eh_entry); scmd 1554 drivers/scsi/scsi_error.c id = scmd_id(scmd); scmd 1560 drivers/scsi/scsi_error.c rtn = scsi_try_target_reset(scmd); scmd 1567 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, &tmp_list, eh_entry) { scmd 1568 drivers/scsi/scsi_error.c if (scmd_id(scmd) != id) scmd 1572 drivers/scsi/scsi_error.c list_move_tail(&scmd->eh_entry, &check_list); scmd 1574 drivers/scsi/scsi_error.c scsi_eh_finish_cmd(scmd, done_q); scmd 1577 drivers/scsi/scsi_error.c list_move(&scmd->eh_entry, work_q); scmd 1594 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd, *chan_scmd, *next; scmd 1617 drivers/scsi/scsi_error.c list_for_each_entry(scmd, work_q, eh_entry) { scmd 1618 drivers/scsi/scsi_error.c if (channel == scmd_channel(scmd)) { scmd 1619 drivers/scsi/scsi_error.c chan_scmd = scmd; scmd 1636 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, work_q, eh_entry) { scmd 1637 drivers/scsi/scsi_error.c if (channel == scmd_channel(scmd)) { scmd 1639 drivers/scsi/scsi_error.c scsi_eh_finish_cmd(scmd, scmd 1642 drivers/scsi/scsi_error.c list_move_tail(&scmd->eh_entry, scmd 1666 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd, *next; scmd 1671 drivers/scsi/scsi_error.c scmd = list_entry(work_q->next, scmd 1679 drivers/scsi/scsi_error.c rtn = scsi_try_host_reset(scmd); scmd 1683 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, work_q, eh_entry) { scmd 1684 drivers/scsi/scsi_error.c scsi_eh_finish_cmd(scmd, done_q); scmd 1704 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd, *next; scmd 1707 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, work_q, eh_entry) { scmd 1708 drivers/scsi/scsi_error.c sdev_printk(KERN_INFO, scmd->device, "Device offlined - " scmd 1710 drivers/scsi/scsi_error.c sdev = scmd->device; scmd 1716 drivers/scsi/scsi_error.c scsi_eh_finish_cmd(scmd, done_q); scmd 1725 drivers/scsi/scsi_error.c int scsi_noretry_cmd(struct scsi_cmnd *scmd) scmd 1727 drivers/scsi/scsi_error.c switch (host_byte(scmd->result)) { scmd 1733 drivers/scsi/scsi_error.c return (scmd->request->cmd_flags & REQ_FAILFAST_TRANSPORT); scmd 1735 drivers/scsi/scsi_error.c return (scmd->request->cmd_flags & REQ_FAILFAST_DEV); scmd 1737 drivers/scsi/scsi_error.c if (msg_byte(scmd->result) == COMMAND_COMPLETE && scmd 1738 drivers/scsi/scsi_error.c status_byte(scmd->result) == RESERVATION_CONFLICT) scmd 1742 drivers/scsi/scsi_error.c return (scmd->request->cmd_flags & REQ_FAILFAST_DRIVER); scmd 1745 drivers/scsi/scsi_error.c if (status_byte(scmd->result) != CHECK_CONDITION) scmd 1753 drivers/scsi/scsi_error.c if (scmd->request->cmd_flags & REQ_FAILFAST_DEV || scmd 1754 drivers/scsi/scsi_error.c blk_rq_is_passthrough(scmd->request)) scmd 1774 drivers/scsi/scsi_error.c int scsi_decide_disposition(struct scsi_cmnd *scmd) scmd 1782 drivers/scsi/scsi_error.c if (!scsi_device_online(scmd->device)) { scmd 1783 drivers/scsi/scsi_error.c SCSI_LOG_ERROR_RECOVERY(5, scmd_printk(KERN_INFO, scmd, scmd 1792 drivers/scsi/scsi_error.c switch (host_byte(scmd->result)) { scmd 1799 drivers/scsi/scsi_error.c scmd->result &= 0xff00ffff; scmd 1807 drivers/scsi/scsi_error.c if (scmd->eh_eflags & SCSI_EH_ABORT_SCHEDULED) { scmd 1808 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_TIME_OUT); scmd 1848 drivers/scsi/scsi_error.c if (msg_byte(scmd->result) == COMMAND_COMPLETE && scmd 1849 drivers/scsi/scsi_error.c status_byte(scmd->result) == RESERVATION_CONFLICT) scmd 1865 drivers/scsi/scsi_error.c if ((scmd->cmnd[0] == TEST_UNIT_READY || scmd 1866 drivers/scsi/scsi_error.c scmd->cmnd[0] == INQUIRY)) { scmd 1880 drivers/scsi/scsi_error.c if (msg_byte(scmd->result) != COMMAND_COMPLETE) scmd 1886 drivers/scsi/scsi_error.c switch (status_byte(scmd->result)) { scmd 1888 drivers/scsi/scsi_error.c scsi_handle_queue_full(scmd->device); scmd 1903 drivers/scsi/scsi_error.c if (scmd->cmnd[0] == REPORT_LUNS) scmd 1904 drivers/scsi/scsi_error.c scmd->device->sdev_target->expecting_lun_change = 0; scmd 1905 drivers/scsi/scsi_error.c scsi_handle_queue_ramp_up(scmd->device); scmd 1912 drivers/scsi/scsi_error.c rtn = scsi_check_sense(scmd); scmd 1930 drivers/scsi/scsi_error.c sdev_printk(KERN_INFO, scmd->device, scmd 1932 drivers/scsi/scsi_error.c set_host_byte(scmd, DID_NEXUS_FAILURE); scmd 1945 drivers/scsi/scsi_error.c if ((++scmd->retries) <= scmd->allowed scmd 1946 drivers/scsi/scsi_error.c && !scsi_noretry_cmd(scmd)) { scmd 2087 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd, *next; scmd 2089 drivers/scsi/scsi_error.c list_for_each_entry_safe(scmd, next, done_q, eh_entry) { scmd 2090 drivers/scsi/scsi_error.c list_del_init(&scmd->eh_entry); scmd 2091 drivers/scsi/scsi_error.c if (scsi_device_online(scmd->device) && scmd 2092 drivers/scsi/scsi_error.c !scsi_noretry_cmd(scmd) && scmd 2093 drivers/scsi/scsi_error.c (++scmd->retries <= scmd->allowed)) { scmd 2095 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, scmd 2098 drivers/scsi/scsi_error.c scsi_queue_insert(scmd, SCSI_MLQUEUE_EH_RETRY); scmd 2105 drivers/scsi/scsi_error.c if (!scmd->result) scmd 2106 drivers/scsi/scsi_error.c scmd->result |= (DRIVER_TIMEOUT << 24); scmd 2108 drivers/scsi/scsi_error.c scmd_printk(KERN_INFO, scmd, scmd 2111 drivers/scsi/scsi_error.c scsi_finish_command(scmd); scmd 2318 drivers/scsi/scsi_error.c scsi_reset_provider_done_command(struct scsi_cmnd *scmd) scmd 2330 drivers/scsi/scsi_error.c struct scsi_cmnd *scmd; scmd 2353 drivers/scsi/scsi_error.c scmd = (struct scsi_cmnd *)(rq + 1); scmd 2354 drivers/scsi/scsi_error.c scsi_init_command(dev, scmd); scmd 2355 drivers/scsi/scsi_error.c scmd->request = rq; scmd 2356 drivers/scsi/scsi_error.c scmd->cmnd = scsi_req(rq)->cmd; scmd 2358 drivers/scsi/scsi_error.c scmd->scsi_done = scsi_reset_provider_done_command; scmd 2359 drivers/scsi/scsi_error.c memset(&scmd->sdb, 0, sizeof(scmd->sdb)); scmd 2361 drivers/scsi/scsi_error.c scmd->cmd_len = 0; scmd 2363 drivers/scsi/scsi_error.c scmd->sc_data_direction = DMA_BIDIRECTIONAL; scmd 2374 drivers/scsi/scsi_error.c rtn = scsi_try_bus_device_reset(scmd); scmd 2379 drivers/scsi/scsi_error.c rtn = scsi_try_target_reset(scmd); scmd 2384 drivers/scsi/scsi_error.c rtn = scsi_try_bus_reset(scmd); scmd 2389 drivers/scsi/scsi_error.c rtn = scsi_try_host_reset(scmd); scmd 2415 drivers/scsi/scsi_error.c scsi_put_command(scmd); scmd 29 drivers/scsi/scsi_logging.c static inline const char *scmd_name(const struct scsi_cmnd *scmd) scmd 31 drivers/scsi/scsi_logging.c return scmd->request->rq_disk ? scmd 32 drivers/scsi/scsi_logging.c scmd->request->rq_disk->disk_name : NULL; scmd 80 drivers/scsi/scsi_logging.c void scmd_printk(const char *level, const struct scsi_cmnd *scmd, scmd 87 drivers/scsi/scsi_logging.c if (!scmd || !scmd->cmnd) scmd 93 drivers/scsi/scsi_logging.c off = sdev_format_header(logbuf, logbuf_len, scmd_name(scmd), scmd 94 drivers/scsi/scsi_logging.c scmd->request->tag); scmd 100 drivers/scsi/scsi_logging.c dev_printk(level, &scmd->device->sdev_gendev, "%s", logbuf); scmd 24 drivers/scsi/scsi_priv.h #define SCSI_SENSE_VALID(scmd) \ scmd 25 drivers/scsi/scsi_priv.h (((scmd)->sense_buffer[0] & 0x70) == 0x70) scmd 84 drivers/scsi/scsi_priv.h int scsi_noretry_cmd(struct scsi_cmnd *scmd); scmd 2069 drivers/scsi/scsi_transport_fc.c fc_eh_timed_out(struct scsi_cmnd *scmd) scmd 2071 drivers/scsi/scsi_transport_fc.c struct fc_rport *rport = starget_to_rport(scsi_target(scmd->device)); scmd 598 drivers/scsi/scsi_transport_srp.c enum blk_eh_timer_return srp_timed_out(struct scsi_cmnd *scmd) scmd 600 drivers/scsi/scsi_transport_srp.c struct scsi_device *sdev = scmd->device; scmd 732 drivers/scsi/sd.c static unsigned char sd_setup_protect_cmnd(struct scsi_cmnd *scmd, scmd 735 drivers/scsi/sd.c struct bio *bio = scmd->request->bio; scmd 736 drivers/scsi/sd.c unsigned int prot_op = sd_prot_op(rq_data_dir(scmd->request), dix, dif); scmd 741 drivers/scsi/sd.c scmd->prot_flags |= SCSI_PROT_IP_CHECKSUM; scmd 744 drivers/scsi/sd.c scmd->prot_flags |= SCSI_PROT_GUARD_CHECK; scmd 748 drivers/scsi/sd.c scmd->prot_flags |= SCSI_PROT_REF_INCREMENT; scmd 751 drivers/scsi/sd.c scmd->prot_flags |= SCSI_PROT_REF_CHECK; scmd 755 drivers/scsi/sd.c scmd->prot_flags |= SCSI_PROT_TRANSFER_PI; scmd 763 drivers/scsi/sd.c scsi_set_prot_op(scmd, prot_op); scmd 764 drivers/scsi/sd.c scsi_set_prot_type(scmd, dif); scmd 765 drivers/scsi/sd.c scmd->prot_flags &= sd_prot_flag_mask(prot_op); scmd 1845 drivers/scsi/sd.c static void sd_eh_reset(struct scsi_cmnd *scmd) scmd 1847 drivers/scsi/sd.c struct scsi_disk *sdkp = scsi_disk(scmd->request->rq_disk); scmd 1865 drivers/scsi/sd.c static int sd_eh_action(struct scsi_cmnd *scmd, int eh_disp) scmd 1867 drivers/scsi/sd.c struct scsi_disk *sdkp = scsi_disk(scmd->request->rq_disk); scmd 1868 drivers/scsi/sd.c struct scsi_device *sdev = scmd->device; scmd 1871 drivers/scsi/sd.c !scsi_medium_access_command(scmd) || scmd 1872 drivers/scsi/sd.c host_byte(scmd->result) != DID_TIME_OUT || scmd 1894 drivers/scsi/sd.c scmd_printk(KERN_ERR, scmd, scmd 1906 drivers/scsi/sd.c static unsigned int sd_completed_bytes(struct scsi_cmnd *scmd) scmd 1908 drivers/scsi/sd.c struct request *req = scmd->request; scmd 1909 drivers/scsi/sd.c struct scsi_device *sdev = scmd->device; scmd 1917 drivers/scsi/sd.c if (scsi_bufflen(scmd) <= sdev->sector_size) scmd 1921 drivers/scsi/sd.c if (!scsi_get_sense_info_fld(scmd->sense_buffer, scmd 1931 drivers/scsi/sd.c end_lba = start_lba + bytes_to_logical(sdev, scsi_bufflen(scmd)); scmd 1939 drivers/scsi/sd.c transferred = scsi_bufflen(scmd) - scsi_get_resid(scmd); scmd 139 drivers/scsi/sd.h static inline int scsi_medium_access_command(struct scsi_cmnd *scmd) scmd 141 drivers/scsi/sd.h switch (scmd->cmnd[0]) { scmd 159 drivers/scsi/sd.h switch (scmd->cmnd[9]) { scmd 1049 drivers/scsi/smartpqi/smartpqi.h struct scsi_cmnd *scmd; scmd 1442 drivers/scsi/smartpqi/smartpqi.h void pqi_prep_for_scsi_done(struct scsi_cmnd *scmd); scmd 67 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd, u32 aio_handle, u8 *cdb, scmd 188 drivers/scsi/smartpqi/smartpqi_init.c static inline void pqi_scsi_done(struct scsi_cmnd *scmd) scmd 190 drivers/scsi/smartpqi/smartpqi_init.c pqi_prep_for_scsi_done(scmd); scmd 191 drivers/scsi/smartpqi/smartpqi_init.c scmd->scsi_done(scmd); scmd 556 drivers/scsi/smartpqi/smartpqi_init.c io_request->scmd = NULL; scmd 2265 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_scsi_dev *device, struct scsi_cmnd *scmd, scmd 2312 drivers/scsi/smartpqi/smartpqi_init.c switch (scmd->cmnd[0]) { scmd 2317 drivers/scsi/smartpqi/smartpqi_init.c first_block = (u64)(((scmd->cmnd[1] & 0x1f) << 16) | scmd 2318 drivers/scsi/smartpqi/smartpqi_init.c (scmd->cmnd[2] << 8) | scmd->cmnd[3]); scmd 2319 drivers/scsi/smartpqi/smartpqi_init.c block_cnt = (u32)scmd->cmnd[4]; scmd 2327 drivers/scsi/smartpqi/smartpqi_init.c first_block = (u64)get_unaligned_be32(&scmd->cmnd[2]); scmd 2328 drivers/scsi/smartpqi/smartpqi_init.c block_cnt = (u32)get_unaligned_be16(&scmd->cmnd[7]); scmd 2334 drivers/scsi/smartpqi/smartpqi_init.c first_block = (u64)get_unaligned_be32(&scmd->cmnd[2]); scmd 2335 drivers/scsi/smartpqi/smartpqi_init.c block_cnt = get_unaligned_be32(&scmd->cmnd[6]); scmd 2341 drivers/scsi/smartpqi/smartpqi_init.c first_block = get_unaligned_be64(&scmd->cmnd[2]); scmd 2342 drivers/scsi/smartpqi/smartpqi_init.c block_cnt = get_unaligned_be32(&scmd->cmnd[10]); scmd 2587 drivers/scsi/smartpqi/smartpqi_init.c return pqi_aio_submit_io(ctrl_info, scmd, aio_handle, scmd 2659 drivers/scsi/smartpqi/smartpqi_init.c device = io_request->scmd->device->hostdata; scmd 2685 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 2692 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 2693 drivers/scsi/smartpqi/smartpqi_init.c if (!scmd) scmd 2706 drivers/scsi/smartpqi/smartpqi_init.c residual_count = scsi_bufflen(scmd) - xfer_count; scmd 2707 drivers/scsi/smartpqi/smartpqi_init.c scsi_set_resid(scmd, residual_count); scmd 2708 drivers/scsi/smartpqi/smartpqi_init.c if (xfer_count < scmd->underflow) scmd 2752 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_ctrl_info *ctrl_info = shost_to_hba(scmd->device->host); scmd 2753 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_scsi_dev *device = scmd->device->hostdata; scmd 2758 drivers/scsi/smartpqi/smartpqi_init.c scmd_printk(KERN_ERR, scmd, "received 'logical unit failure' from controller for scsi %d:%d:%d:%d\n", scmd 2760 drivers/scsi/smartpqi/smartpqi_init.c pqi_take_device_offline(scmd->device, "RAID"); scmd 2766 drivers/scsi/smartpqi/smartpqi_init.c scmd_printk(KERN_ERR, scmd, "received unhandled error %d from controller for scsi %d:%d:%d:%d\n", scmd 2774 drivers/scsi/smartpqi/smartpqi_init.c memcpy(scmd->sense_buffer, error_info->data, scmd 2778 drivers/scsi/smartpqi/smartpqi_init.c scmd->result = scsi_status; scmd 2779 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, host_byte); scmd 2786 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 2793 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 2812 drivers/scsi/smartpqi/smartpqi_init.c scsi_set_resid(scmd, residual_count); scmd 2813 drivers/scsi/smartpqi/smartpqi_init.c xfer_count = scsi_bufflen(scmd) - residual_count; scmd 2814 drivers/scsi/smartpqi/smartpqi_init.c if (xfer_count < scmd->underflow) scmd 2829 drivers/scsi/smartpqi/smartpqi_init.c pqi_take_device_offline(scmd->device, "AIO"); scmd 2859 drivers/scsi/smartpqi/smartpqi_init.c memcpy(scmd->sense_buffer, error_info->data, scmd 2865 drivers/scsi/smartpqi/smartpqi_init.c scsi_build_sense_buffer(0, scmd->sense_buffer, HARDWARE_ERROR, scmd 2868 drivers/scsi/smartpqi/smartpqi_init.c scmd->result = scsi_status; scmd 2869 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, host_byte); scmd 2937 drivers/scsi/smartpqi/smartpqi_init.c if (io_request->scmd) scmd 2938 drivers/scsi/smartpqi/smartpqi_init.c io_request->scmd->result = 0; scmd 4788 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_raid_path_request *request, struct scsi_cmnd *scmd, scmd 4800 drivers/scsi/smartpqi/smartpqi_init.c sg_count = scsi_dma_map(scmd); scmd 4810 drivers/scsi/smartpqi/smartpqi_init.c sg = scsi_sglist(scmd); scmd 4852 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_aio_path_request *request, struct scsi_cmnd *scmd, scmd 4864 drivers/scsi/smartpqi/smartpqi_init.c sg_count = scsi_dma_map(scmd); scmd 4875 drivers/scsi/smartpqi/smartpqi_init.c sg = scsi_sglist(scmd); scmd 4919 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 4921 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 4923 drivers/scsi/smartpqi/smartpqi_init.c scsi_dma_unmap(scmd); scmd 4924 drivers/scsi/smartpqi/smartpqi_init.c pqi_scsi_done(scmd); scmd 4929 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_scsi_dev *device, struct scsi_cmnd *scmd, scmd 4937 drivers/scsi/smartpqi/smartpqi_init.c io_request->scmd = scmd; scmd 4944 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_le32(scsi_bufflen(scmd), &request->buffer_length); scmd 4951 drivers/scsi/smartpqi/smartpqi_init.c cdb_length = min_t(size_t, scmd->cmd_len, sizeof(request->cdb)); scmd 4952 drivers/scsi/smartpqi/smartpqi_init.c memcpy(request->cdb, scmd->cmnd, cdb_length); scmd 4986 drivers/scsi/smartpqi/smartpqi_init.c switch (scmd->sc_data_direction) { scmd 5002 drivers/scsi/smartpqi/smartpqi_init.c scmd->sc_data_direction); scmd 5006 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_build_raid_sg_list(ctrl_info, request, scmd, io_request); scmd 5018 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_scsi_dev *device, struct scsi_cmnd *scmd, scmd 5026 drivers/scsi/smartpqi/smartpqi_init.c device, scmd, queue_group); scmd 5037 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 5044 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 5045 drivers/scsi/smartpqi/smartpqi_init.c if ((scmd->result & 0xff) == SAM_STAT_GOOD) scmd 5047 drivers/scsi/smartpqi/smartpqi_init.c if (host_byte(scmd->result) == DID_NO_CONNECT) scmd 5050 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; scmd 5054 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(scmd->device->host); scmd 5080 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 5082 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 5084 drivers/scsi/smartpqi/smartpqi_init.c pqi_scsi_done(scmd); scmd 5089 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 5093 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 5094 drivers/scsi/smartpqi/smartpqi_init.c scmd->result = 0; scmd 5095 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(scmd->device->host); scmd 5103 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 5108 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 5109 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; scmd 5112 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_RESET); scmd 5113 drivers/scsi/smartpqi/smartpqi_init.c pqi_scsi_done(scmd); scmd 5117 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info = shost_to_hba(scmd->device->host); scmd 5123 drivers/scsi/smartpqi/smartpqi_init.c device, scmd, queue_group); scmd 5190 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 5192 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 5193 drivers/scsi/smartpqi/smartpqi_init.c scsi_dma_unmap(scmd); scmd 5195 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_IMM_RETRY); scmd 5201 drivers/scsi/smartpqi/smartpqi_init.c pqi_scsi_done(scmd); scmd 5205 drivers/scsi/smartpqi/smartpqi_init.c struct pqi_scsi_dev *device, struct scsi_cmnd *scmd, scmd 5208 drivers/scsi/smartpqi/smartpqi_init.c return pqi_aio_submit_io(ctrl_info, scmd, device->aio_handle, scmd 5209 drivers/scsi/smartpqi/smartpqi_init.c scmd->cmnd, scmd->cmd_len, queue_group, NULL, false); scmd 5213 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd, u32 aio_handle, u8 *cdb, scmd 5223 drivers/scsi/smartpqi/smartpqi_init.c io_request->scmd = scmd; scmd 5232 drivers/scsi/smartpqi/smartpqi_init.c put_unaligned_le32(scsi_bufflen(scmd), &request->buffer_length); scmd 5241 drivers/scsi/smartpqi/smartpqi_init.c switch (scmd->sc_data_direction) { scmd 5257 drivers/scsi/smartpqi/smartpqi_init.c scmd->sc_data_direction); scmd 5271 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_build_aio_sg_list(ctrl_info, request, scmd, io_request); scmd 5283 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd) scmd 5287 drivers/scsi/smartpqi/smartpqi_init.c hw_queue = blk_mq_unique_tag_to_hwq(blk_mq_unique_tag(scmd->request)); scmd 5299 drivers/scsi/smartpqi/smartpqi_init.c void pqi_prep_for_scsi_done(struct scsi_cmnd *scmd) scmd 5303 drivers/scsi/smartpqi/smartpqi_init.c if (!scmd->device) { scmd 5304 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_NO_CONNECT); scmd 5308 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; scmd 5310 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_NO_CONNECT); scmd 5318 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd) scmd 5327 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; scmd 5331 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_NO_CONNECT); scmd 5332 drivers/scsi/smartpqi/smartpqi_init.c pqi_scsi_done(scmd); scmd 5340 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_NO_CONNECT); scmd 5341 drivers/scsi/smartpqi/smartpqi_init.c pqi_scsi_done(scmd); scmd 5356 drivers/scsi/smartpqi/smartpqi_init.c scmd->result = 0; scmd 5358 drivers/scsi/smartpqi/smartpqi_init.c hw_queue = pqi_get_hw_queue(ctrl_info, scmd); scmd 5364 drivers/scsi/smartpqi/smartpqi_init.c !blk_rq_is_passthrough(scmd->request)) { scmd 5366 drivers/scsi/smartpqi/smartpqi_init.c scmd, queue_group); scmd 5371 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_raid_submit_scsi_cmd(ctrl_info, device, scmd, scmd 5375 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_aio_submit_scsi_cmd(ctrl_info, device, scmd, scmd 5378 drivers/scsi/smartpqi/smartpqi_init.c rc = pqi_raid_submit_scsi_cmd(ctrl_info, device, scmd, scmd 5460 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 5473 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 5474 drivers/scsi/smartpqi/smartpqi_init.c if (!scmd) scmd 5477 drivers/scsi/smartpqi/smartpqi_init.c scsi_device = scmd->device->hostdata; scmd 5482 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_RESET); scmd 5483 drivers/scsi/smartpqi/smartpqi_init.c pqi_scsi_done(scmd); scmd 5500 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 5513 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 5514 drivers/scsi/smartpqi/smartpqi_init.c if (!scmd) scmd 5518 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_RESET); scmd 5519 drivers/scsi/smartpqi/smartpqi_init.c pqi_scsi_done(scmd); scmd 5728 drivers/scsi/smartpqi/smartpqi_init.c static int pqi_eh_device_reset_handler(struct scsi_cmnd *scmd) scmd 5735 drivers/scsi/smartpqi/smartpqi_init.c shost = scmd->device->host; scmd 5737 drivers/scsi/smartpqi/smartpqi_init.c device = scmd->device->hostdata; scmd 7789 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 7796 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 7797 drivers/scsi/smartpqi/smartpqi_init.c if (scmd) { scmd 7798 drivers/scsi/smartpqi/smartpqi_init.c set_host_byte(scmd, DID_NO_CONNECT); scmd 7930 drivers/scsi/smartpqi/smartpqi_init.c struct scsi_cmnd *scmd; scmd 7936 drivers/scsi/smartpqi/smartpqi_init.c scmd = io_request->scmd; scmd 7937 drivers/scsi/smartpqi/smartpqi_init.c WARN_ON(scmd != NULL); /* IO command from SML */ scmd 7938 drivers/scsi/smartpqi/smartpqi_init.c WARN_ON(scmd == NULL); /* Non-IO cmd or driver initiated*/ scmd 3108 drivers/scsi/st.c unsigned char scmd[MAX_COMMAND_SIZE]; scmd 3114 drivers/scsi/st.c memset(scmd, 0, MAX_COMMAND_SIZE); scmd 3116 drivers/scsi/st.c scmd[0] = QFA_REQUEST_BLOCK; scmd 3117 drivers/scsi/st.c scmd[4] = 3; scmd 3119 drivers/scsi/st.c scmd[0] = READ_POSITION; scmd 3121 drivers/scsi/st.c scmd[1] = 1; scmd 3123 drivers/scsi/st.c SRpnt = st_do_scsi(NULL, STp, scmd, 20, DMA_FROM_DEVICE, scmd 3171 drivers/scsi/st.c unsigned char scmd[MAX_COMMAND_SIZE]; scmd 3200 drivers/scsi/st.c memset(scmd, 0, MAX_COMMAND_SIZE); scmd 3202 drivers/scsi/st.c scmd[0] = QFA_SEEK_BLOCK; scmd 3203 drivers/scsi/st.c scmd[2] = (block >> 16); scmd 3204 drivers/scsi/st.c scmd[3] = (block >> 8); scmd 3205 drivers/scsi/st.c scmd[4] = block; scmd 3206 drivers/scsi/st.c scmd[5] = 0; scmd 3208 drivers/scsi/st.c scmd[0] = SEEK_10; scmd 3209 drivers/scsi/st.c scmd[3] = (block >> 24); scmd 3210 drivers/scsi/st.c scmd[4] = (block >> 16); scmd 3211 drivers/scsi/st.c scmd[5] = (block >> 8); scmd 3212 drivers/scsi/st.c scmd[6] = block; scmd 3214 drivers/scsi/st.c scmd[1] = 4; scmd 3216 drivers/scsi/st.c scmd[1] |= 2; scmd 3217 drivers/scsi/st.c scmd[8] = partition; scmd 3224 drivers/scsi/st.c scmd[1] |= 1; /* Don't wait for completion */ scmd 3228 drivers/scsi/st.c SRpnt = st_do_scsi(NULL, STp, scmd, 0, DMA_NONE, scmd 3337 drivers/scsi/st.c unsigned char scmd[MAX_COMMAND_SIZE]; scmd 3340 drivers/scsi/st.c memset(scmd, 0, MAX_COMMAND_SIZE); scmd 3341 drivers/scsi/st.c scmd[0] = FORMAT_UNIT; scmd 3342 drivers/scsi/st.c scmd[2] = format; scmd 3344 drivers/scsi/st.c scmd[1] |= 1; /* Don't wait for completion */ scmd 3348 drivers/scsi/st.c SRpnt = st_do_scsi(NULL, STp, scmd, 0, DMA_NONE, scmd 7015 drivers/scsi/ufs/ufshcd.c static enum blk_eh_timer_return ufshcd_eh_timed_out(struct scsi_cmnd *scmd) scmd 7023 drivers/scsi/ufs/ufshcd.c if (!scmd || !scmd->device || !scmd->device->host) scmd 7026 drivers/scsi/ufs/ufshcd.c host = scmd->device->host; scmd 7034 drivers/scsi/ufs/ufshcd.c if (hba->lrb[index].cmd == scmd) { scmd 241 include/scsi/scsi_cmnd.h static inline void scsi_set_prot_op(struct scsi_cmnd *scmd, unsigned char op) scmd 243 include/scsi/scsi_cmnd.h scmd->prot_op = op; scmd 246 include/scsi/scsi_cmnd.h static inline unsigned char scsi_get_prot_op(struct scsi_cmnd *scmd) scmd 248 include/scsi/scsi_cmnd.h return scmd->prot_op; scmd 272 include/scsi/scsi_cmnd.h static inline void scsi_set_prot_type(struct scsi_cmnd *scmd, unsigned char type) scmd 274 include/scsi/scsi_cmnd.h scmd->prot_type = type; scmd 277 include/scsi/scsi_cmnd.h static inline unsigned char scsi_get_prot_type(struct scsi_cmnd *scmd) scmd 279 include/scsi/scsi_cmnd.h return scmd->prot_type; scmd 282 include/scsi/scsi_cmnd.h static inline sector_t scsi_get_lba(struct scsi_cmnd *scmd) scmd 284 include/scsi/scsi_cmnd.h return blk_rq_pos(scmd->request); scmd 287 include/scsi/scsi_cmnd.h static inline unsigned int scsi_prot_interval(struct scsi_cmnd *scmd) scmd 289 include/scsi/scsi_cmnd.h return scmd->device->sector_size; scmd 325 include/scsi/scsi_cmnd.h static inline unsigned scsi_transfer_length(struct scsi_cmnd *scmd) scmd 327 include/scsi/scsi_cmnd.h unsigned int xfer_len = scmd->sdb.length; scmd 328 include/scsi/scsi_cmnd.h unsigned int prot_interval = scsi_prot_interval(scmd); scmd 330 include/scsi/scsi_cmnd.h if (scmd->prot_flags & SCSI_PROT_TRANSFER_PI) scmd 257 include/scsi/scsi_device.h #define scmd_dbg(scmd, fmt, a...) \ scmd 259 include/scsi/scsi_device.h if ((scmd)->request->rq_disk) \ scmd 260 include/scsi/scsi_device.h sdev_dbg((scmd)->device, "[%s] " fmt, \ scmd 261 include/scsi/scsi_device.h (scmd)->request->rq_disk->disk_name, ##a);\ scmd 263 include/scsi/scsi_device.h sdev_dbg((scmd)->device, fmt, ##a); \ scmd 482 include/scsi/scsi_device.h #define scmd_id(scmd) sdev_id((scmd)->device) scmd 483 include/scsi/scsi_device.h #define scmd_channel(scmd) sdev_channel((scmd)->device) scmd 12 include/scsi/scsi_eh.h extern void scsi_eh_finish_cmd(struct scsi_cmnd *scmd, scmd 48 include/scsi/scsi_eh.h extern void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, scmd 52 include/scsi/scsi_eh.h extern void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd, scmd 804 include/scsi/scsi_transport_fc.h enum blk_eh_timer_return fc_eh_timed_out(struct scsi_cmnd *scmd); scmd 121 include/scsi/scsi_transport_srp.h enum blk_eh_timer_return srp_timed_out(struct scsi_cmnd *scmd);