SCpnt 100 drivers/message/fusion/mptfc.c static int mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt); SCpnt 104 drivers/message/fusion/mptfc.c static int mptfc_abort(struct scsi_cmnd *SCpnt); SCpnt 105 drivers/message/fusion/mptfc.c static int mptfc_dev_reset(struct scsi_cmnd *SCpnt); SCpnt 106 drivers/message/fusion/mptfc.c static int mptfc_bus_reset(struct scsi_cmnd *SCpnt); SCpnt 186 drivers/message/fusion/mptfc.c mptfc_block_error_handler(struct scsi_cmnd *SCpnt, SCpnt 187 drivers/message/fusion/mptfc.c int (*func)(struct scsi_cmnd *SCpnt), SCpnt 191 drivers/message/fusion/mptfc.c struct scsi_device *sdev = SCpnt->device; SCpnt 199 drivers/message/fusion/mptfc.c hd = shost_priv(SCpnt->device->host); SCpnt 209 drivers/message/fusion/mptfc.c SCpnt->device->id, SCpnt->device->lun, SCpnt 217 drivers/message/fusion/mptfc.c if (ready == DID_NO_CONNECT || !SCpnt->device->hostdata SCpnt 223 drivers/message/fusion/mptfc.c SCpnt->device->id, SCpnt->device->lun, ready, SCpnt 224 drivers/message/fusion/mptfc.c ioc->active, SCpnt->device->hostdata)); SCpnt 230 drivers/message/fusion/mptfc.c SCpnt->device->id, SCpnt->device->lun)); SCpnt 231 drivers/message/fusion/mptfc.c return (*func)(SCpnt); SCpnt 235 drivers/message/fusion/mptfc.c mptfc_abort(struct scsi_cmnd *SCpnt) SCpnt 238 drivers/message/fusion/mptfc.c mptfc_block_error_handler(SCpnt, mptscsih_abort, __func__); SCpnt 242 drivers/message/fusion/mptfc.c mptfc_dev_reset(struct scsi_cmnd *SCpnt) SCpnt 245 drivers/message/fusion/mptfc.c mptfc_block_error_handler(SCpnt, mptscsih_dev_reset, __func__); SCpnt 249 drivers/message/fusion/mptfc.c mptfc_bus_reset(struct scsi_cmnd *SCpnt) SCpnt 252 drivers/message/fusion/mptfc.c mptfc_block_error_handler(SCpnt, mptscsih_bus_reset, __func__); SCpnt 643 drivers/message/fusion/mptfc.c mptfc_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) SCpnt 646 drivers/message/fusion/mptfc.c struct fc_rport *rport = starget_to_rport(scsi_target(SCpnt->device)); SCpnt 648 drivers/message/fusion/mptfc.c VirtDevice *vdevice = SCpnt->device->hostdata; SCpnt 651 drivers/message/fusion/mptfc.c SCpnt->result = DID_NO_CONNECT << 16; SCpnt 652 drivers/message/fusion/mptfc.c SCpnt->scsi_done(SCpnt); SCpnt 658 drivers/message/fusion/mptfc.c SCpnt->result = err; SCpnt 659 drivers/message/fusion/mptfc.c SCpnt->scsi_done(SCpnt); SCpnt 666 drivers/message/fusion/mptfc.c SCpnt->result = DID_IMM_RETRY << 16; SCpnt 667 drivers/message/fusion/mptfc.c SCpnt->scsi_done(SCpnt); SCpnt 671 drivers/message/fusion/mptfc.c return mptscsih_qcmd(SCpnt); SCpnt 1896 drivers/message/fusion/mptsas.c mptsas_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) SCpnt 1900 drivers/message/fusion/mptsas.c VirtDevice *vdevice = SCpnt->device->hostdata; SCpnt 1903 drivers/message/fusion/mptsas.c SCpnt->result = DID_NO_CONNECT << 16; SCpnt 1904 drivers/message/fusion/mptsas.c SCpnt->scsi_done(SCpnt); SCpnt 1915 drivers/message/fusion/mptsas.c scsi_print_command(SCpnt); SCpnt 1917 drivers/message/fusion/mptsas.c return mptscsih_qcmd(SCpnt); SCpnt 92 drivers/message/fusion/mptscsih.c static int mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, SCpnt 179 drivers/message/fusion/mptscsih.c mptscsih_AddSGE(MPT_ADAPTER *ioc, struct scsi_cmnd *SCpnt, SCpnt 210 drivers/message/fusion/mptscsih.c sges_left = scsi_dma_map(SCpnt); SCpnt 216 drivers/message/fusion/mptscsih.c sg = scsi_sglist(SCpnt); SCpnt 350 drivers/message/fusion/mptscsih.c ioc->name, pReq->CDB[0], SCpnt)); SCpnt 1313 drivers/message/fusion/mptscsih.c mptscsih_qcmd(struct scsi_cmnd *SCpnt) SCpnt 1318 drivers/message/fusion/mptscsih.c VirtDevice *vdevice = SCpnt->device->hostdata; SCpnt 1327 drivers/message/fusion/mptscsih.c hd = shost_priv(SCpnt->device->host); SCpnt 1331 drivers/message/fusion/mptscsih.c ioc->name, SCpnt)); SCpnt 1355 drivers/message/fusion/mptscsih.c if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) { SCpnt 1356 drivers/message/fusion/mptscsih.c datalen = scsi_bufflen(SCpnt); SCpnt 1358 drivers/message/fusion/mptscsih.c } else if (SCpnt->sc_data_direction == DMA_TO_DEVICE) { SCpnt 1359 drivers/message/fusion/mptscsih.c datalen = scsi_bufflen(SCpnt); SCpnt 1370 drivers/message/fusion/mptscsih.c SCpnt->device->tagged_supported) SCpnt 1385 drivers/message/fusion/mptscsih.c pScsiReq->CDBLength = SCpnt->cmd_len; SCpnt 1389 drivers/message/fusion/mptscsih.c int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN); SCpnt 1395 drivers/message/fusion/mptscsih.c cmd_len = SCpnt->cmd_len; SCpnt 1397 drivers/message/fusion/mptscsih.c pScsiReq->CDB[ii] = SCpnt->cmnd[ii]; SCpnt 1419 drivers/message/fusion/mptscsih.c if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS) SCpnt 1423 drivers/message/fusion/mptscsih.c SCpnt->host_scribble = (unsigned char *)mf; SCpnt 1424 drivers/message/fusion/mptscsih.c mptscsih_set_scsi_lookup(ioc, my_idx, SCpnt); SCpnt 1428 drivers/message/fusion/mptscsih.c ioc->name, SCpnt, mf, my_idx)); SCpnt 1682 drivers/message/fusion/mptscsih.c mptscsih_abort(struct scsi_cmnd * SCpnt) SCpnt 1694 drivers/message/fusion/mptscsih.c if ((hd = shost_priv(SCpnt->device->host)) == NULL) { SCpnt 1695 drivers/message/fusion/mptscsih.c SCpnt->result = DID_RESET << 16; SCpnt 1696 drivers/message/fusion/mptscsih.c SCpnt->scsi_done(SCpnt); SCpnt 1698 drivers/message/fusion/mptscsih.c "can't locate host! (sc=%p)\n", SCpnt); SCpnt 1704 drivers/message/fusion/mptscsih.c ioc->name, SCpnt); SCpnt 1705 drivers/message/fusion/mptscsih.c scsi_print_command(SCpnt); SCpnt 1707 drivers/message/fusion/mptscsih.c vdevice = SCpnt->device->hostdata; SCpnt 1711 drivers/message/fusion/mptscsih.c ioc->name, SCpnt)); SCpnt 1712 drivers/message/fusion/mptscsih.c SCpnt->result = DID_NO_CONNECT << 16; SCpnt 1713 drivers/message/fusion/mptscsih.c SCpnt->scsi_done(SCpnt); SCpnt 1723 drivers/message/fusion/mptscsih.c ioc->name, SCpnt)); SCpnt 1724 drivers/message/fusion/mptscsih.c SCpnt->result = DID_RESET << 16; SCpnt 1734 drivers/message/fusion/mptscsih.c ioc->name, SCpnt)); SCpnt 1735 drivers/message/fusion/mptscsih.c SCpnt->result = DID_RESET << 16; SCpnt 1742 drivers/message/fusion/mptscsih.c if ((scpnt_idx = SCPNT_TO_LOOKUP_IDX(ioc, SCpnt)) < 0) { SCpnt 1746 drivers/message/fusion/mptscsih.c SCpnt->result = DID_RESET << 16; SCpnt 1749 drivers/message/fusion/mptscsih.c SCpnt)); SCpnt 1775 drivers/message/fusion/mptscsih.c if (SCPNT_TO_LOOKUP_IDX(ioc, SCpnt) == scpnt_idx) { SCpnt 1778 drivers/message/fusion/mptscsih.c ioc->name, SCpnt)); SCpnt 1783 drivers/message/fusion/mptscsih.c ioc->name, SCpnt)); SCpnt 1790 drivers/message/fusion/mptscsih.c SCpnt); SCpnt 1805 drivers/message/fusion/mptscsih.c mptscsih_dev_reset(struct scsi_cmnd * SCpnt) SCpnt 1814 drivers/message/fusion/mptscsih.c if ((hd = shost_priv(SCpnt->device->host)) == NULL){ SCpnt 1816 drivers/message/fusion/mptscsih.c "Can't locate host! (sc=%p)\n", SCpnt); SCpnt 1822 drivers/message/fusion/mptscsih.c ioc->name, SCpnt); SCpnt 1823 drivers/message/fusion/mptscsih.c scsi_print_command(SCpnt); SCpnt 1825 drivers/message/fusion/mptscsih.c vdevice = SCpnt->device->hostdata; SCpnt 1846 drivers/message/fusion/mptscsih.c ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); SCpnt 1865 drivers/message/fusion/mptscsih.c mptscsih_bus_reset(struct scsi_cmnd * SCpnt) SCpnt 1874 drivers/message/fusion/mptscsih.c if ((hd = shost_priv(SCpnt->device->host)) == NULL){ SCpnt 1876 drivers/message/fusion/mptscsih.c "Can't locate host! (sc=%p)\n", SCpnt); SCpnt 1882 drivers/message/fusion/mptscsih.c ioc->name, SCpnt); SCpnt 1883 drivers/message/fusion/mptscsih.c scsi_print_command(SCpnt); SCpnt 1888 drivers/message/fusion/mptscsih.c vdevice = SCpnt->device->hostdata; SCpnt 1897 drivers/message/fusion/mptscsih.c ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); SCpnt 1915 drivers/message/fusion/mptscsih.c mptscsih_host_reset(struct scsi_cmnd *SCpnt) SCpnt 1923 drivers/message/fusion/mptscsih.c if ((hd = shost_priv(SCpnt->device->host)) == NULL){ SCpnt 1925 drivers/message/fusion/mptscsih.c "Can't locate host! (sc=%p)\n", SCpnt); SCpnt 1934 drivers/message/fusion/mptscsih.c ioc->name, SCpnt); SCpnt 1946 drivers/message/fusion/mptscsih.c ioc->name, ((retval == 0) ? "SUCCESS" : "FAILED" ), SCpnt); SCpnt 116 drivers/message/fusion/mptscsih.h extern int mptscsih_qcmd(struct scsi_cmnd *SCpnt); SCpnt 121 drivers/message/fusion/mptscsih.h extern int mptscsih_abort(struct scsi_cmnd * SCpnt); SCpnt 122 drivers/message/fusion/mptscsih.h extern int mptscsih_dev_reset(struct scsi_cmnd * SCpnt); SCpnt 123 drivers/message/fusion/mptscsih.h extern int mptscsih_bus_reset(struct scsi_cmnd * SCpnt); SCpnt 124 drivers/message/fusion/mptscsih.h extern int mptscsih_host_reset(struct scsi_cmnd *SCpnt); SCpnt 777 drivers/message/fusion/mptspi.c mptspi_qcmd(struct Scsi_Host *shost, struct scsi_cmnd *SCpnt) SCpnt 780 drivers/message/fusion/mptspi.c VirtDevice *vdevice = SCpnt->device->hostdata; SCpnt 784 drivers/message/fusion/mptspi.c SCpnt->result = DID_NO_CONNECT << 16; SCpnt 785 drivers/message/fusion/mptspi.c SCpnt->scsi_done(SCpnt); SCpnt 789 drivers/message/fusion/mptspi.c if (SCpnt->device->channel == 1 && SCpnt 790 drivers/message/fusion/mptspi.c mptscsih_is_phys_disk(ioc, 0, SCpnt->device->id) == 0) { SCpnt 791 drivers/message/fusion/mptspi.c SCpnt->result = DID_NO_CONNECT << 16; SCpnt 792 drivers/message/fusion/mptspi.c SCpnt->scsi_done(SCpnt); SCpnt 796 drivers/message/fusion/mptspi.c if (spi_dv_pending(scsi_target(SCpnt->device))) SCpnt 797 drivers/message/fusion/mptspi.c ddvprintk(ioc, scsi_print_command(SCpnt)); SCpnt 799 drivers/message/fusion/mptspi.c return mptscsih_qcmd(SCpnt); SCpnt 1723 drivers/scsi/3w-9xxx.c static int twa_scsi_eh_reset(struct scsi_cmnd *SCpnt) SCpnt 1728 drivers/scsi/3w-9xxx.c tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; SCpnt 1732 drivers/scsi/3w-9xxx.c sdev_printk(KERN_WARNING, SCpnt->device, SCpnt 1734 drivers/scsi/3w-9xxx.c TW_DRIVER, 0x2c, SCpnt->cmnd[0]); SCpnt 1752 drivers/scsi/3w-9xxx.c static int twa_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) SCpnt 1755 drivers/scsi/3w-9xxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; SCpnt 1764 drivers/scsi/3w-9xxx.c if ((SCpnt->device->lun != 0) && (tw_dev->tw_compat_info.working_srl < TW_FW_SRL_LUNS_SUPPORTED)) { SCpnt 1765 drivers/scsi/3w-9xxx.c SCpnt->result = (DID_BAD_TARGET << 16); SCpnt 1766 drivers/scsi/3w-9xxx.c done(SCpnt); SCpnt 1772 drivers/scsi/3w-9xxx.c SCpnt->scsi_done = done; SCpnt 1778 drivers/scsi/3w-9xxx.c tw_dev->srb[request_id] = SCpnt; SCpnt 1783 drivers/scsi/3w-9xxx.c if (twa_command_mapped(SCpnt)) SCpnt 1784 drivers/scsi/3w-9xxx.c scsi_dma_unmap(SCpnt); SCpnt 1788 drivers/scsi/3w-9xxx.c SCpnt->result = (DID_ERROR << 16); SCpnt 1789 drivers/scsi/3w-9xxx.c if (twa_command_mapped(SCpnt)) SCpnt 1790 drivers/scsi/3w-9xxx.c scsi_dma_unmap(SCpnt); SCpnt 1791 drivers/scsi/3w-9xxx.c done(SCpnt); SCpnt 1431 drivers/scsi/3w-sas.c static int twl_scsi_eh_reset(struct scsi_cmnd *SCpnt) SCpnt 1436 drivers/scsi/3w-sas.c tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; SCpnt 1440 drivers/scsi/3w-sas.c sdev_printk(KERN_WARNING, SCpnt->device, SCpnt 1442 drivers/scsi/3w-sas.c TW_DRIVER, 0x2c, SCpnt->cmnd[0]); SCpnt 1460 drivers/scsi/3w-sas.c static int twl_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) SCpnt 1463 drivers/scsi/3w-sas.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; SCpnt 1472 drivers/scsi/3w-sas.c SCpnt->scsi_done = done; SCpnt 1478 drivers/scsi/3w-sas.c tw_dev->srb[request_id] = SCpnt; SCpnt 1484 drivers/scsi/3w-sas.c SCpnt->result = (DID_ERROR << 16); SCpnt 1485 drivers/scsi/3w-sas.c done(SCpnt); SCpnt 1371 drivers/scsi/3w-xxxx.c static int tw_scsi_eh_reset(struct scsi_cmnd *SCpnt) SCpnt 1376 drivers/scsi/3w-xxxx.c tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; SCpnt 1380 drivers/scsi/3w-xxxx.c sdev_printk(KERN_WARNING, SCpnt->device, SCpnt 1382 drivers/scsi/3w-xxxx.c SCpnt->cmnd[0]); SCpnt 1925 drivers/scsi/3w-xxxx.c static int tw_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) SCpnt 1927 drivers/scsi/3w-xxxx.c unsigned char *command = SCpnt->cmnd; SCpnt 1930 drivers/scsi/3w-xxxx.c TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; SCpnt 1937 drivers/scsi/3w-xxxx.c SCpnt->scsi_done = done; SCpnt 1943 drivers/scsi/3w-xxxx.c tw_dev->srb[request_id] = SCpnt; SCpnt 1984 drivers/scsi/3w-xxxx.c SCpnt->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION; SCpnt 1985 drivers/scsi/3w-xxxx.c scsi_build_sense_buffer(1, SCpnt->sense_buffer, ILLEGAL_REQUEST, 0x20, 0); SCpnt 1986 drivers/scsi/3w-xxxx.c done(SCpnt); SCpnt 1992 drivers/scsi/3w-xxxx.c SCpnt->result = (DID_ERROR << 16); SCpnt 1993 drivers/scsi/3w-xxxx.c done(SCpnt); SCpnt 158 drivers/scsi/53c700.c STATIC int NCR_700_abort(struct scsi_cmnd * SCpnt); SCpnt 159 drivers/scsi/53c700.c STATIC int NCR_700_host_reset(struct scsi_cmnd * SCpnt); SCpnt 2997 drivers/scsi/BusLogic.c static int blogic_hostreset(struct scsi_cmnd *SCpnt) SCpnt 3000 drivers/scsi/BusLogic.c (struct blogic_adapter *) SCpnt->device->host->hostdata; SCpnt 3002 drivers/scsi/BusLogic.c unsigned int id = SCpnt->device->id; SCpnt 3006 drivers/scsi/BusLogic.c spin_lock_irq(SCpnt->device->host->host_lock); SCpnt 3011 drivers/scsi/BusLogic.c spin_unlock_irq(SCpnt->device->host->host_lock); SCpnt 108 drivers/scsi/a2091.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, SCpnt 143 drivers/scsi/a2091.c memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, SCpnt 144 drivers/scsi/a2091.c SCpnt->SCp.this_residual); SCpnt 110 drivers/scsi/a3000.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, SCpnt 151 drivers/scsi/a3000.c if (SCpnt) { SCpnt 152 drivers/scsi/a3000.c if (wh->dma_dir && SCpnt) SCpnt 153 drivers/scsi/a3000.c memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, SCpnt 154 drivers/scsi/a3000.c SCpnt->SCp.this_residual); SCpnt 553 drivers/scsi/aha152x.c #define SCDATA(SCpnt) ((struct aha152x_scdata *) (SCpnt)->host_scribble) SCpnt 554 drivers/scsi/aha152x.c #define SCNEXT(SCpnt) SCDATA(SCpnt)->next SCpnt 555 drivers/scsi/aha152x.c #define SCSEM(SCpnt) SCDATA(SCpnt)->done SCpnt 906 drivers/scsi/aha152x.c static int aha152x_internal_queue(struct scsi_cmnd *SCpnt, SCpnt 910 drivers/scsi/aha152x.c struct Scsi_Host *shpnt = SCpnt->device->host; SCpnt 913 drivers/scsi/aha152x.c SCpnt->scsi_done = done; SCpnt 914 drivers/scsi/aha152x.c SCpnt->SCp.phase = not_issued | phase; SCpnt 915 drivers/scsi/aha152x.c SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */ SCpnt 916 drivers/scsi/aha152x.c SCpnt->SCp.Message = 0; SCpnt 917 drivers/scsi/aha152x.c SCpnt->SCp.have_data_in = 0; SCpnt 918 drivers/scsi/aha152x.c SCpnt->SCp.sent_command = 0; SCpnt 920 drivers/scsi/aha152x.c if(SCpnt->SCp.phase & (resetting|check_condition)) { SCpnt 921 drivers/scsi/aha152x.c if (!SCpnt->host_scribble || SCSEM(SCpnt) || SCNEXT(SCpnt)) { SCpnt 922 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, SCpnt, "cannot reuse command\n"); SCpnt 926 drivers/scsi/aha152x.c SCpnt->host_scribble = kmalloc(sizeof(struct aha152x_scdata), GFP_ATOMIC); SCpnt 927 drivers/scsi/aha152x.c if(!SCpnt->host_scribble) { SCpnt 928 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, SCpnt, "allocation failed\n"); SCpnt 933 drivers/scsi/aha152x.c SCNEXT(SCpnt) = NULL; SCpnt 934 drivers/scsi/aha152x.c SCSEM(SCpnt) = complete; SCpnt 942 drivers/scsi/aha152x.c if ((phase & resetting) || !scsi_sglist(SCpnt)) { SCpnt 943 drivers/scsi/aha152x.c SCpnt->SCp.ptr = NULL; SCpnt 944 drivers/scsi/aha152x.c SCpnt->SCp.this_residual = 0; SCpnt 945 drivers/scsi/aha152x.c scsi_set_resid(SCpnt, 0); SCpnt 946 drivers/scsi/aha152x.c SCpnt->SCp.buffer = NULL; SCpnt 948 drivers/scsi/aha152x.c scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); SCpnt 949 drivers/scsi/aha152x.c SCpnt->SCp.buffer = scsi_sglist(SCpnt); SCpnt 950 drivers/scsi/aha152x.c SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); SCpnt 951 drivers/scsi/aha152x.c SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCpnt 965 drivers/scsi/aha152x.c append_SC(&ISSUE_SC, SCpnt); SCpnt 979 drivers/scsi/aha152x.c static int aha152x_queue_lck(struct scsi_cmnd *SCpnt, SCpnt 982 drivers/scsi/aha152x.c return aha152x_internal_queue(SCpnt, NULL, 0, done); SCpnt 991 drivers/scsi/aha152x.c static void reset_done(struct scsi_cmnd *SCpnt) SCpnt 993 drivers/scsi/aha152x.c if(SCSEM(SCpnt)) { SCpnt 994 drivers/scsi/aha152x.c complete(SCSEM(SCpnt)); SCpnt 1004 drivers/scsi/aha152x.c static int aha152x_abort(struct scsi_cmnd *SCpnt) SCpnt 1006 drivers/scsi/aha152x.c struct Scsi_Host *shpnt = SCpnt->device->host; SCpnt 1012 drivers/scsi/aha152x.c ptr=remove_SC(&ISSUE_SC, SCpnt); SCpnt 1020 drivers/scsi/aha152x.c kfree(SCpnt->host_scribble); SCpnt 1021 drivers/scsi/aha152x.c SCpnt->host_scribble=NULL; SCpnt 1035 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, SCpnt, SCpnt 1045 drivers/scsi/aha152x.c static int aha152x_device_reset(struct scsi_cmnd * SCpnt) SCpnt 1047 drivers/scsi/aha152x.c struct Scsi_Host *shpnt = SCpnt->device->host; SCpnt 1050 drivers/scsi/aha152x.c unsigned char old_cmd_len = SCpnt->cmd_len; SCpnt 1054 drivers/scsi/aha152x.c if(CURRENT_SC==SCpnt) { SCpnt 1055 drivers/scsi/aha152x.c scmd_printk(KERN_ERR, SCpnt, "cannot reset current device\n"); SCpnt 1060 drivers/scsi/aha152x.c issued = remove_SC(&ISSUE_SC, SCpnt) == NULL; SCpnt 1061 drivers/scsi/aha152x.c disconnected = issued && remove_SC(&DISCONNECTED_SC, SCpnt); SCpnt 1064 drivers/scsi/aha152x.c SCpnt->cmd_len = 0; SCpnt 1066 drivers/scsi/aha152x.c aha152x_internal_queue(SCpnt, &done, resetting, reset_done); SCpnt 1072 drivers/scsi/aha152x.c remove_SC(&ISSUE_SC, SCpnt); SCpnt 1076 drivers/scsi/aha152x.c SCpnt->cmd_len = old_cmd_len; SCpnt 1080 drivers/scsi/aha152x.c if(SCpnt->SCp.phase & resetted) { SCpnt 1084 drivers/scsi/aha152x.c kfree(SCpnt->host_scribble); SCpnt 1085 drivers/scsi/aha152x.c SCpnt->host_scribble=NULL; SCpnt 1091 drivers/scsi/aha152x.c append_SC(&ISSUE_SC, SCpnt); SCpnt 1093 drivers/scsi/aha152x.c append_SC(&DISCONNECTED_SC, SCpnt); SCpnt 1165 drivers/scsi/aha152x.c static int aha152x_bus_reset(struct scsi_cmnd *SCpnt) SCpnt 1167 drivers/scsi/aha152x.c return aha152x_bus_reset_host(SCpnt->device->host); SCpnt 247 drivers/scsi/aha1740.c SCtmp = ecbptr->SCpnt; SCpnt 314 drivers/scsi/aha1740.c static int aha1740_queuecommand_lck(struct scsi_cmnd * SCpnt, SCpnt 318 drivers/scsi/aha1740.c unchar *cmd = (unchar *) SCpnt->cmnd; SCpnt 319 drivers/scsi/aha1740.c unchar target = scmd_id(SCpnt); SCpnt 320 drivers/scsi/aha1740.c struct aha1740_hostdata *host = HOSTDATA(SCpnt->device->host); SCpnt 328 drivers/scsi/aha1740.c SCpnt->result = 0; SCpnt 329 drivers/scsi/aha1740.c done(SCpnt); SCpnt 343 drivers/scsi/aha1740.c for (i = 0; i < SCpnt->cmd_len; i++) printk("%02x ", cmd[i]); SCpnt 348 drivers/scsi/aha1740.c spin_lock_irqsave(SCpnt->device->host->host_lock, flags); SCpnt 367 drivers/scsi/aha1740.c spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); SCpnt 373 drivers/scsi/aha1740.c host->ecb[ecbno].cdblen = SCpnt->cmd_len; /* SCSI Command SCpnt 383 drivers/scsi/aha1740.c memcpy(host->ecb[ecbno].cdb, cmd, SCpnt->cmd_len); SCpnt 385 drivers/scsi/aha1740.c SCpnt->host_scribble = dma_alloc_coherent (&host->edev->dev, SCpnt 388 drivers/scsi/aha1740.c if(SCpnt->host_scribble == NULL) { SCpnt 392 drivers/scsi/aha1740.c sgptr = (struct aha1740_sg *) SCpnt->host_scribble; SCpnt 395 drivers/scsi/aha1740.c nseg = scsi_dma_map(SCpnt); SCpnt 406 drivers/scsi/aha1740.c scsi_for_each_sg(SCpnt, sg, nseg, i) { SCpnt 421 drivers/scsi/aha1740.c host->ecb[ecbno].lun = SCpnt->device->lun; SCpnt 426 drivers/scsi/aha1740.c host->ecb[ecbno].senseptr = ecb_cpu_to_dma (SCpnt->device->host, SCpnt 428 drivers/scsi/aha1740.c host->ecb[ecbno].statusptr = ecb_cpu_to_dma (SCpnt->device->host, SCpnt 431 drivers/scsi/aha1740.c host->ecb[ecbno].SCpnt = SCpnt; SCpnt 457 drivers/scsi/aha1740.c unsigned int base = SCpnt->device->host->io_port; SCpnt 460 drivers/scsi/aha1740.c spin_lock_irqsave(SCpnt->device->host->host_lock, flags); SCpnt 469 drivers/scsi/aha1740.c outl (ecb_cpu_to_dma (SCpnt->device->host, host->ecb + ecbno), SCpnt 480 drivers/scsi/aha1740.c spin_unlock_irqrestore(SCpnt->device->host->host_lock, flags); SCpnt 138 drivers/scsi/aha1740.h struct scsi_cmnd *SCpnt; /* Link to the SCSI Command Block */ SCpnt 381 drivers/scsi/arm/acornscsi.c host->SCpnt = NULL; SCpnt 559 drivers/scsi/arm/acornscsi.c if (host->SCpnt) SCpnt 560 drivers/scsi/arm/acornscsi.c return '0' + host->SCpnt->device->id; SCpnt 698 drivers/scsi/arm/acornscsi.c struct scsi_cmnd *SCpnt; SCpnt 701 drivers/scsi/arm/acornscsi.c SCpnt = host->origSCpnt; SCpnt 705 drivers/scsi/arm/acornscsi.c if (!SCpnt) { SCpnt 706 drivers/scsi/arm/acornscsi.c SCpnt = queue_remove_exclude(&host->queues.issue, host->busyluns); SCpnt 707 drivers/scsi/arm/acornscsi.c if (!SCpnt) SCpnt 713 drivers/scsi/arm/acornscsi.c if (host->scsi.disconnectable && host->SCpnt) { SCpnt 714 drivers/scsi/arm/acornscsi.c queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt); SCpnt 717 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, printk("scsi%d.%c: moved command to disconnected queue\n", SCpnt 720 drivers/scsi/arm/acornscsi.c host->SCpnt = NULL; SCpnt 728 drivers/scsi/arm/acornscsi.c sbic_arm_write(host, SBIC_DESTID, SCpnt->device->id); SCpnt 737 drivers/scsi/arm/acornscsi.c host->SCpnt = SCpnt; SCpnt 738 drivers/scsi/arm/acornscsi.c host->scsi.SCp = SCpnt->SCp; SCpnt 744 drivers/scsi/arm/acornscsi.c DBG(SCpnt,printk("scsi%d.%c: starting cmd %02X\n", SCpnt 745 drivers/scsi/arm/acornscsi.c host->host->host_no, '0' + SCpnt->device->id, SCpnt 746 drivers/scsi/arm/acornscsi.c SCpnt->cmnd[0])); SCpnt 754 drivers/scsi/arm/acornscsi.c if (SCpnt->device->simple_tags) { SCpnt 755 drivers/scsi/arm/acornscsi.c SCpnt->device->current_tag += 1; SCpnt 756 drivers/scsi/arm/acornscsi.c if (SCpnt->device->current_tag == 0) SCpnt 757 drivers/scsi/arm/acornscsi.c SCpnt->device->current_tag = 1; SCpnt 758 drivers/scsi/arm/acornscsi.c SCpnt->tag = SCpnt->device->current_tag; SCpnt 761 drivers/scsi/arm/acornscsi.c set_bit(SCpnt->device->id * 8 + SCpnt 762 drivers/scsi/arm/acornscsi.c (u8)(SCpnt->device->lun & 0x07), host->busyluns); SCpnt 766 drivers/scsi/arm/acornscsi.c switch (acornscsi_cmdtype(SCpnt->cmnd[0])) { SCpnt 791 drivers/scsi/arm/acornscsi.c struct scsi_cmnd *SCpnt = *SCpntp; SCpnt 798 drivers/scsi/arm/acornscsi.c if (SCpnt) { SCpnt 803 drivers/scsi/arm/acornscsi.c SCpnt->result = result << 16 | host->scsi.SCp.Message << 8 | host->scsi.SCp.Status; SCpnt 816 drivers/scsi/arm/acornscsi.c if (SCpnt->underflow == 0) { SCpnt 818 drivers/scsi/arm/acornscsi.c acornscsi_cmdtype(SCpnt->cmnd[0]) != CMD_MISC) SCpnt 821 drivers/scsi/arm/acornscsi.c if (host->scsi.SCp.scsi_xferred < SCpnt->underflow || SCpnt 842 drivers/scsi/arm/acornscsi.c switch (status_byte(SCpnt->result)) { SCpnt 851 drivers/scsi/arm/acornscsi.c scmd_printk(KERN_ERR, SCpnt, SCpnt 853 drivers/scsi/arm/acornscsi.c "result=%08X", SCpnt->result); SCpnt 854 drivers/scsi/arm/acornscsi.c scsi_print_command(SCpnt); SCpnt 856 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, SCpnt->device->id); SCpnt 857 drivers/scsi/arm/acornscsi.c set_host_byte(SCpnt, DID_ERROR); SCpnt 862 drivers/scsi/arm/acornscsi.c if (!SCpnt->scsi_done) SCpnt 865 drivers/scsi/arm/acornscsi.c clear_bit(SCpnt->device->id * 8 + SCpnt 866 drivers/scsi/arm/acornscsi.c (u8)(SCpnt->device->lun & 0x7), host->busyluns); SCpnt 868 drivers/scsi/arm/acornscsi.c SCpnt->scsi_done(SCpnt); SCpnt 1000 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, acornscsi_dumpdma(host, "stop")); SCpnt 1023 drivers/scsi/arm/acornscsi.c if (NO_WRITE & (1 << host->SCpnt->device->id)) { SCpnt 1059 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, acornscsi_dumpdma(host, "strt")); SCpnt 1098 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, acornscsi_dumpdma(host, "cupi")); SCpnt 1116 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, acornscsi_dumpdma(host, "cupo")); SCpnt 1137 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, acornscsi_dumpdma(host, "inti")); SCpnt 1186 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, acornscsi_dumpdma(host, "into")); SCpnt 1198 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 1238 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, acornscsi_dumpdma(host, "adji")); SCpnt 1263 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, acornscsi_dumpdma(host, "adjo")); SCpnt 1306 drivers/scsi/arm/acornscsi.c struct scsi_cmnd *SCpnt = host->SCpnt; SCpnt 1310 drivers/scsi/arm/acornscsi.c sbic_arm_writenext(host, SCpnt->cmd_len - host->scsi.SCp.sent_command); SCpnt 1314 drivers/scsi/arm/acornscsi.c if (acornscsi_write_pio(host, SCpnt->cmnd, SCpnt 1315 drivers/scsi/arm/acornscsi.c (int *)&host->scsi.SCp.sent_command, SCpnt->cmd_len, 1000000)) SCpnt 1499 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt->device->id); SCpnt 1513 drivers/scsi/arm/acornscsi.c host->SCpnt->SCp = host->scsi.SCp; SCpnt 1514 drivers/scsi/arm/acornscsi.c host->SCpnt->SCp.sent_command = 0; SCpnt 1529 drivers/scsi/arm/acornscsi.c host->scsi.SCp = host->SCpnt->SCp; SCpnt 1555 drivers/scsi/arm/acornscsi.c if (host->device[host->SCpnt->device->id].sync_state == SYNC_SENT_REQUEST) SCpnt 1556 drivers/scsi/arm/acornscsi.c host->device[host->SCpnt->device->id].sync_state = SYNC_NEGOCIATE; SCpnt 1578 drivers/scsi/arm/acornscsi.c host->SCpnt->device->simple_tags = 0; SCpnt 1579 drivers/scsi/arm/acornscsi.c set_bit(host->SCpnt->device->id * 8 + SCpnt 1580 drivers/scsi/arm/acornscsi.c (u8)(host->SCpnt->device->lun & 0x7), host->busyluns); SCpnt 1589 drivers/scsi/arm/acornscsi.c host->device[host->SCpnt->device->id].sync_xfer = SYNCHTRANSFER_2DBA; SCpnt 1590 drivers/scsi/arm/acornscsi.c host->device[host->SCpnt->device->id].sync_state = SYNC_ASYNCHRONOUS; SCpnt 1591 drivers/scsi/arm/acornscsi.c sbic_arm_write(host, SBIC_SYNCHTRANSFER, host->device[host->SCpnt->device->id].sync_xfer); SCpnt 1614 drivers/scsi/arm/acornscsi.c if (host->device[host->SCpnt->device->id].sync_state == SYNC_SENT_REQUEST) { SCpnt 1621 drivers/scsi/arm/acornscsi.c host->device[host->SCpnt->device->id].sync_state = SYNC_COMPLETED; SCpnt 1625 drivers/scsi/arm/acornscsi.c host->device[host->SCpnt->device->id].sync_xfer = SCpnt 1638 drivers/scsi/arm/acornscsi.c host->device[host->SCpnt->device->id].sync_xfer = SCpnt 1641 drivers/scsi/arm/acornscsi.c sbic_arm_write(host, SBIC_SYNCHTRANSFER, host->device[host->SCpnt->device->id].sync_xfer); SCpnt 1691 drivers/scsi/arm/acornscsi.c IDENTIFY(host->device[host->SCpnt->device->id].disconnect_ok, SCpnt 1692 drivers/scsi/arm/acornscsi.c host->SCpnt->device->lun)); SCpnt 1697 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host->SCpnt->tag); SCpnt 1703 drivers/scsi/arm/acornscsi.c if (host->SCpnt->tag) { SCpnt 1706 drivers/scsi/arm/acornscsi.c if (host->SCpnt->cmnd[0] == REQUEST_SENSE || SCpnt 1707 drivers/scsi/arm/acornscsi.c host->SCpnt->cmnd[0] == TEST_UNIT_READY || SCpnt 1708 drivers/scsi/arm/acornscsi.c host->SCpnt->cmnd[0] == INQUIRY) SCpnt 1712 drivers/scsi/arm/acornscsi.c msgqueue_addmsg(&host->scsi.msgs, 2, tag_type, host->SCpnt->tag); SCpnt 1717 drivers/scsi/arm/acornscsi.c if (host->device[host->SCpnt->device->id].sync_state == SYNC_NEGOCIATE) { SCpnt 1718 drivers/scsi/arm/acornscsi.c host->device[host->SCpnt->device->id].sync_state = SYNC_SENT_REQUEST; SCpnt 1743 drivers/scsi/arm/acornscsi.c residual = scsi_bufflen(host->SCpnt) - host->scsi.SCp.scsi_xferred; SCpnt 1745 drivers/scsi/arm/acornscsi.c sbic_arm_write(host, SBIC_SYNCHTRANSFER, host->device[host->SCpnt->device->id].sync_xfer); SCpnt 1778 drivers/scsi/arm/acornscsi.c if (host->SCpnt && !host->scsi.disconnectable) { SCpnt 1781 drivers/scsi/arm/acornscsi.c host->host->host_no, target, host->SCpnt->device->id); SCpnt 1782 drivers/scsi/arm/acornscsi.c host->SCpnt = NULL; SCpnt 1791 drivers/scsi/arm/acornscsi.c if (host->scsi.disconnectable && host->SCpnt && SCpnt 1792 drivers/scsi/arm/acornscsi.c host->SCpnt->device->id == target && host->SCpnt->device->lun == lun) SCpnt 1809 drivers/scsi/arm/acornscsi.c if (host->SCpnt) { SCpnt 1810 drivers/scsi/arm/acornscsi.c queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt); SCpnt 1811 drivers/scsi/arm/acornscsi.c host->SCpnt = NULL; SCpnt 1827 drivers/scsi/arm/acornscsi.c if (host->scsi.disconnectable && host->SCpnt) { SCpnt 1829 drivers/scsi/arm/acornscsi.c if (host->SCpnt->device->id == host->scsi.reconnected.target && SCpnt 1830 drivers/scsi/arm/acornscsi.c host->SCpnt->device->lun == host->scsi.reconnected.lun && SCpnt 1831 drivers/scsi/arm/acornscsi.c host->SCpnt->tag == host->scsi.reconnected.tag) { SCpnt 1833 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, printk("scsi%d.%c: reconnected", SCpnt 1837 drivers/scsi/arm/acornscsi.c queue_add_cmd_tail(&host->queues.disconnected, host->SCpnt); SCpnt 1839 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, printk("scsi%d.%c: had to move command " SCpnt 1843 drivers/scsi/arm/acornscsi.c host->SCpnt = NULL; SCpnt 1846 drivers/scsi/arm/acornscsi.c if (!host->SCpnt) { SCpnt 1847 drivers/scsi/arm/acornscsi.c host->SCpnt = queue_remove_tgtluntag(&host->queues.disconnected, SCpnt 1852 drivers/scsi/arm/acornscsi.c DBG(host->SCpnt, printk("scsi%d.%c: had to get command", SCpnt 1857 drivers/scsi/arm/acornscsi.c if (!host->SCpnt) SCpnt 1863 drivers/scsi/arm/acornscsi.c host->scsi.SCp = host->SCpnt->SCp; SCpnt 1875 drivers/scsi/arm/acornscsi.c return host->SCpnt != NULL; SCpnt 1892 drivers/scsi/arm/acornscsi.c acornscsi_done(host, &host->SCpnt, DID_ERROR); SCpnt 1944 drivers/scsi/arm/acornscsi.c if (host->SCpnt && !host->scsi.disconnectable) SCpnt 1945 drivers/scsi/arm/acornscsi.c ADD_STATUS(host->SCpnt->device->id, ssr, host->scsi.phase, in_irq); SCpnt 1983 drivers/scsi/arm/acornscsi.c ADD_STATUS(host->SCpnt->device->id, ssr, host->scsi.phase, 1); SCpnt 1988 drivers/scsi/arm/acornscsi.c acornscsi_done(host, &host->SCpnt, DID_NO_CONNECT); SCpnt 1993 drivers/scsi/arm/acornscsi.c host->origSCpnt = host->SCpnt; SCpnt 1994 drivers/scsi/arm/acornscsi.c host->SCpnt = NULL; SCpnt 2002 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2003 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2032 drivers/scsi/arm/acornscsi.c acornscsi_done(host, &host->SCpnt, DID_ERROR); SCpnt 2038 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2039 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2076 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2084 drivers/scsi/arm/acornscsi.c if (host->scsi.SCp.sent_command != host->SCpnt->cmd_len) SCpnt 2085 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2088 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2094 drivers/scsi/arm/acornscsi.c if (host->scsi.SCp.sent_command != host->SCpnt->cmd_len) SCpnt 2095 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2098 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2121 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2134 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2144 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2159 drivers/scsi/arm/acornscsi.c ADD_STATUS(host->SCpnt->device->id, ssr, host->scsi.phase, in_irq); SCpnt 2166 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2175 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2204 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2216 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2223 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCpnt 2234 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCpnt 2244 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCpnt 2253 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2265 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2272 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCpnt 2284 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCpnt 2295 drivers/scsi/arm/acornscsi.c host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) - SCpnt 2305 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2326 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2349 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2350 drivers/scsi/arm/acornscsi.c acornscsi_done(host, &host->SCpnt, DID_ERROR); SCpnt 2356 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2363 drivers/scsi/arm/acornscsi.c acornscsi_done(host, &host->SCpnt, DID_OK); SCpnt 2374 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2381 drivers/scsi/arm/acornscsi.c if (host->SCpnt) SCpnt 2382 drivers/scsi/arm/acornscsi.c acornscsi_done(host, &host->SCpnt, DID_ABORT); SCpnt 2400 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2407 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, host->SCpnt ? host->SCpnt->device->id : 8); SCpnt 2467 drivers/scsi/arm/acornscsi.c static int acornscsi_queuecmd_lck(struct scsi_cmnd *SCpnt, SCpnt 2470 drivers/scsi/arm/acornscsi.c AS_Host *host = (AS_Host *)SCpnt->device->host->hostdata; SCpnt 2475 drivers/scsi/arm/acornscsi.c host->host->host_no, SCpnt); SCpnt 2480 drivers/scsi/arm/acornscsi.c if (acornscsi_cmdtype(SCpnt->cmnd[0]) == CMD_WRITE && (NO_WRITE & (1 << SCpnt->device->id))) { SCpnt 2482 drivers/scsi/arm/acornscsi.c host->host->host_no, '0' + SCpnt->device->id); SCpnt 2483 drivers/scsi/arm/acornscsi.c SCpnt->result = DID_NO_CONNECT << 16; SCpnt 2484 drivers/scsi/arm/acornscsi.c done(SCpnt); SCpnt 2489 drivers/scsi/arm/acornscsi.c SCpnt->scsi_done = done; SCpnt 2490 drivers/scsi/arm/acornscsi.c SCpnt->host_scribble = NULL; SCpnt 2491 drivers/scsi/arm/acornscsi.c SCpnt->result = 0; SCpnt 2492 drivers/scsi/arm/acornscsi.c SCpnt->tag = 0; SCpnt 2493 drivers/scsi/arm/acornscsi.c SCpnt->SCp.phase = (int)acornscsi_datadirection(SCpnt->cmnd[0]); SCpnt 2494 drivers/scsi/arm/acornscsi.c SCpnt->SCp.sent_command = 0; SCpnt 2495 drivers/scsi/arm/acornscsi.c SCpnt->SCp.scsi_xferred = 0; SCpnt 2497 drivers/scsi/arm/acornscsi.c init_SCp(SCpnt); SCpnt 2504 drivers/scsi/arm/acornscsi.c if (!queue_add_cmd_ordered(&host->queues.issue, SCpnt)) { SCpnt 2505 drivers/scsi/arm/acornscsi.c SCpnt->result = DID_ERROR << 16; SCpnt 2506 drivers/scsi/arm/acornscsi.c done(SCpnt); SCpnt 2531 drivers/scsi/arm/acornscsi.c struct scsi_cmnd *SCpnt = *SCpntp1; SCpnt 2533 drivers/scsi/arm/acornscsi.c if (SCpnt) { SCpnt 2536 drivers/scsi/arm/acornscsi.c SCpnt->result = result; SCpnt 2537 drivers/scsi/arm/acornscsi.c SCpnt->scsi_done(SCpnt); SCpnt 2540 drivers/scsi/arm/acornscsi.c if (SCpnt == *SCpntp2) SCpnt 2552 drivers/scsi/arm/acornscsi.c static enum res_abort acornscsi_do_abort(AS_Host *host, struct scsi_cmnd *SCpnt) SCpnt 2556 drivers/scsi/arm/acornscsi.c if (queue_remove_cmd(&host->queues.issue, SCpnt)) { SCpnt 2567 drivers/scsi/arm/acornscsi.c } else if (queue_remove_cmd(&host->queues.disconnected, SCpnt)) { SCpnt 2579 drivers/scsi/arm/acornscsi.c } else if (host->SCpnt == SCpnt) { SCpnt 2599 drivers/scsi/arm/acornscsi.c host->SCpnt = NULL; SCpnt 2611 drivers/scsi/arm/acornscsi.c host->SCpnt = NULL; SCpnt 2616 drivers/scsi/arm/acornscsi.c acornscsi_abortcmd(host, host->SCpnt->tag); SCpnt 2620 drivers/scsi/arm/acornscsi.c } else if (host->origSCpnt == SCpnt) { SCpnt 2644 drivers/scsi/arm/acornscsi.c int acornscsi_abort(struct scsi_cmnd *SCpnt) SCpnt 2646 drivers/scsi/arm/acornscsi.c AS_Host *host = (AS_Host *) SCpnt->device->host->hostdata; SCpnt 2659 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, SCpnt->device->id); SCpnt 2665 drivers/scsi/arm/acornscsi.c switch (acornscsi_do_abort(host, SCpnt)) { SCpnt 2675 drivers/scsi/arm/acornscsi.c clear_bit(SCpnt->device->id * 8 + SCpnt 2676 drivers/scsi/arm/acornscsi.c (u8)(SCpnt->device->lun & 0x7), host->busyluns); SCpnt 2708 drivers/scsi/arm/acornscsi.c acornscsi_dumplog(host, SCpnt->device->id); SCpnt 2725 drivers/scsi/arm/acornscsi.c int acornscsi_host_reset(struct scsi_cmnd *SCpnt) SCpnt 2727 drivers/scsi/arm/acornscsi.c AS_Host *host = (AS_Host *)SCpnt->device->host->hostdata; SCpnt 276 drivers/scsi/arm/acornscsi.h struct scsi_cmnd *SCpnt; /* currently processing command */ SCpnt 192 drivers/scsi/arm/fas216.c info->magic_start, info->host, info->SCpnt, SCpnt 283 drivers/scsi/arm/fas216.c if (info->SCpnt) SCpnt 284 drivers/scsi/arm/fas216.c return '0' + info->SCpnt->device->id; SCpnt 299 drivers/scsi/arm/fas216.c struct scsi_cmnd *SCpnt, char *fmt, ...) SCpnt 307 drivers/scsi/arm/fas216.c fas216_do_log(info, '0' + SCpnt->device->id, fmt, args); SCpnt 310 drivers/scsi/arm/fas216.c scsi_print_command(SCpnt); SCpnt 515 drivers/scsi/arm/fas216.c struct fas216_device *dev = &info->device[info->SCpnt->device->id]; SCpnt 598 drivers/scsi/arm/fas216.c fas216_set_sync(info, info->SCpnt->device->id); SCpnt 612 drivers/scsi/arm/fas216.c fas216_set_sync(info, info->SCpnt->device->id); SCpnt 647 drivers/scsi/arm/fas216.c info->host->host_no, '0' + info->SCpnt->device->id); SCpnt 761 drivers/scsi/arm/fas216.c print_SCp(&info->SCpnt->SCp, "Cmnd SCp: ", "\n"); SCpnt 770 drivers/scsi/arm/fas216.c if (info->device[info->SCpnt->device->id].sof) SCpnt 803 drivers/scsi/arm/fas216.c direction, info->SCpnt->transfersize); SCpnt 989 drivers/scsi/arm/fas216.c if (info->scsi.disconnectable && info->SCpnt) { SCpnt 991 drivers/scsi/arm/fas216.c if (info->SCpnt->device->id == target && SCpnt 992 drivers/scsi/arm/fas216.c info->SCpnt->device->lun == lun && SCpnt 993 drivers/scsi/arm/fas216.c info->SCpnt->tag == tag) { SCpnt 996 drivers/scsi/arm/fas216.c queue_add_cmd_tail(&info->queues.disconnected, info->SCpnt); SCpnt 998 drivers/scsi/arm/fas216.c info->SCpnt = NULL; SCpnt 1001 drivers/scsi/arm/fas216.c if (!info->SCpnt) { SCpnt 1002 drivers/scsi/arm/fas216.c info->SCpnt = queue_remove_tgtluntag(&info->queues.disconnected, SCpnt 1007 drivers/scsi/arm/fas216.c if (info->SCpnt) { SCpnt 1011 drivers/scsi/arm/fas216.c info->scsi.SCp = info->SCpnt->SCp; SCpnt 1078 drivers/scsi/arm/fas216.c info->SCpnt->SCp = info->scsi.SCp; SCpnt 1079 drivers/scsi/arm/fas216.c info->SCpnt->SCp.sent_command = 0; SCpnt 1092 drivers/scsi/arm/fas216.c info->scsi.SCp = info->SCpnt->SCp; SCpnt 1297 drivers/scsi/arm/fas216.c for (i = info->scsi.SCp.sent_command; i < info->SCpnt->cmd_len; i++) SCpnt 1298 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_FF, info->SCpnt->cmnd[i]); SCpnt 1470 drivers/scsi/arm/fas216.c if (info->device[info->SCpnt->device->id].parity_check) { SCpnt 1475 drivers/scsi/arm/fas216.c info->device[info->SCpnt->device->id].parity_check = 0; SCpnt 1476 drivers/scsi/arm/fas216.c info->device[info->SCpnt->device->id].parity_enabled = 1; SCpnt 1608 drivers/scsi/arm/fas216.c info->SCpnt = NULL; /* bug! */ SCpnt 1669 drivers/scsi/arm/fas216.c static void __fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) SCpnt 1681 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_SDID, BUSID(SCpnt->device->id)); SCpnt 1685 drivers/scsi/arm/fas216.c fas216_set_sync(info, SCpnt->device->id); SCpnt 1695 drivers/scsi/arm/fas216.c info->host->host_no, '0' + SCpnt->device->id); SCpnt 1723 drivers/scsi/arm/fas216.c for (i = 0; i < SCpnt->cmd_len; i++) SCpnt 1724 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_FF, SCpnt->cmnd[i]); SCpnt 1761 drivers/scsi/arm/fas216.c static void fas216_start_command(FAS216_Info *info, struct scsi_cmnd *SCpnt) SCpnt 1769 drivers/scsi/arm/fas216.c info->scsi.SCp = SCpnt->SCp; SCpnt 1770 drivers/scsi/arm/fas216.c info->SCpnt = SCpnt; SCpnt 1773 drivers/scsi/arm/fas216.c if (parity_test(info, SCpnt->device->id)) SCpnt 1781 drivers/scsi/arm/fas216.c disconnect_ok = SCpnt->cmnd[0] != REQUEST_SENSE && SCpnt 1782 drivers/scsi/arm/fas216.c info->device[SCpnt->device->id].disconnect_ok; SCpnt 1788 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, IDENTIFY(disconnect_ok, SCpnt->device->lun)); SCpnt 1793 drivers/scsi/arm/fas216.c if (SCpnt->tag) SCpnt 1794 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 2, SIMPLE_QUEUE_TAG, SCpnt->tag); SCpnt 1798 drivers/scsi/arm/fas216.c if ((info->device[SCpnt->device->id].sync_state == neg_wait || SCpnt 1799 drivers/scsi/arm/fas216.c info->device[SCpnt->device->id].sync_state == neg_complete) && SCpnt 1800 drivers/scsi/arm/fas216.c (SCpnt->cmnd[0] == REQUEST_SENSE || SCpnt 1801 drivers/scsi/arm/fas216.c SCpnt->cmnd[0] == INQUIRY)) { SCpnt 1802 drivers/scsi/arm/fas216.c info->device[SCpnt->device->id].sync_state = neg_inprogress; SCpnt 1812 drivers/scsi/arm/fas216.c __fas216_start_command(info, SCpnt); SCpnt 1815 drivers/scsi/arm/fas216.c static void fas216_allocate_tag(FAS216_Info *info, struct scsi_cmnd *SCpnt) SCpnt 1821 drivers/scsi/arm/fas216.c if (SCpnt->device->simple_tags && SCpnt->cmnd[0] != REQUEST_SENSE && SCpnt 1822 drivers/scsi/arm/fas216.c SCpnt->cmnd[0] != INQUIRY) { SCpnt 1823 drivers/scsi/arm/fas216.c SCpnt->device->current_tag += 1; SCpnt 1824 drivers/scsi/arm/fas216.c if (SCpnt->device->current_tag == 0) SCpnt 1825 drivers/scsi/arm/fas216.c SCpnt->device->current_tag = 1; SCpnt 1826 drivers/scsi/arm/fas216.c SCpnt->tag = SCpnt->device->current_tag; SCpnt 1829 drivers/scsi/arm/fas216.c set_bit(SCpnt->device->id * 8 + SCpnt 1830 drivers/scsi/arm/fas216.c (u8)(SCpnt->device->lun & 0x7), info->busyluns); SCpnt 1833 drivers/scsi/arm/fas216.c switch (SCpnt->cmnd[0]) { SCpnt 1851 drivers/scsi/arm/fas216.c struct scsi_cmnd *SCpnt) SCpnt 1859 drivers/scsi/arm/fas216.c info->scsi.SCp = SCpnt->SCp; SCpnt 1860 drivers/scsi/arm/fas216.c info->SCpnt = SCpnt; SCpnt 1876 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_SDID, BUSID(SCpnt->device->id)); SCpnt 1880 drivers/scsi/arm/fas216.c fas216_set_sync(info, SCpnt->device->id); SCpnt 1899 drivers/scsi/arm/fas216.c struct scsi_cmnd *SCpnt = NULL; SCpnt 1912 drivers/scsi/arm/fas216.c SCpnt = info->rstSCpnt; SCpnt 1919 drivers/scsi/arm/fas216.c SCpnt = info->reqSCpnt; SCpnt 1925 drivers/scsi/arm/fas216.c SCpnt = info->origSCpnt; SCpnt 1931 drivers/scsi/arm/fas216.c if (!SCpnt) { SCpnt 1932 drivers/scsi/arm/fas216.c SCpnt = queue_remove_exclude(&info->queues.issue, SCpnt 1939 drivers/scsi/arm/fas216.c if (!SCpnt) { SCpnt 1952 drivers/scsi/arm/fas216.c if (info->scsi.disconnectable && info->SCpnt) { SCpnt 1955 drivers/scsi/arm/fas216.c info->SCpnt->device->id); SCpnt 1956 drivers/scsi/arm/fas216.c queue_add_cmd_tail(&info->queues.disconnected, info->SCpnt); SCpnt 1958 drivers/scsi/arm/fas216.c info->SCpnt = NULL; SCpnt 1961 drivers/scsi/arm/fas216.c fas216_log_command(info, LOG_CONNECT | LOG_MESSAGES, SCpnt, SCpnt 1966 drivers/scsi/arm/fas216.c fas216_allocate_tag(info, SCpnt); SCpnt 1969 drivers/scsi/arm/fas216.c fas216_start_command(info, SCpnt); SCpnt 1972 drivers/scsi/arm/fas216.c fas216_do_bus_device_reset(info, SCpnt); SCpnt 1988 drivers/scsi/arm/fas216.c static void fas216_devicereset_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, SCpnt 2006 drivers/scsi/arm/fas216.c static void fas216_rq_sns_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, SCpnt 2009 drivers/scsi/arm/fas216.c fas216_log_target(info, LOG_CONNECT, SCpnt->device->id, SCpnt 2011 drivers/scsi/arm/fas216.c result, SCpnt->SCp.Message, SCpnt->SCp.Status); SCpnt 2013 drivers/scsi/arm/fas216.c if (result != DID_OK || SCpnt->SCp.Status != GOOD) SCpnt 2019 drivers/scsi/arm/fas216.c memset(SCpnt->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); SCpnt 2028 drivers/scsi/arm/fas216.c scsi_eh_restore_cmnd(SCpnt, &info->ses); SCpnt 2029 drivers/scsi/arm/fas216.c SCpnt->scsi_done(SCpnt); SCpnt 2041 drivers/scsi/arm/fas216.c fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result) SCpnt 2045 drivers/scsi/arm/fas216.c SCpnt->result = result << 16 | info->scsi.SCp.Message << 8 | SCpnt 2048 drivers/scsi/arm/fas216.c fas216_log_command(info, LOG_CONNECT, SCpnt, SCpnt 2049 drivers/scsi/arm/fas216.c "command complete, result=0x%08x", SCpnt->result); SCpnt 2054 drivers/scsi/arm/fas216.c if (host_byte(SCpnt->result) != DID_OK || SCpnt 2055 drivers/scsi/arm/fas216.c msg_byte(SCpnt->result) != COMMAND_COMPLETE) SCpnt 2062 drivers/scsi/arm/fas216.c if (status_byte(SCpnt->result) == CHECK_CONDITION || SCpnt 2063 drivers/scsi/arm/fas216.c status_byte(SCpnt->result) == COMMAND_TERMINATED) SCpnt 2070 drivers/scsi/arm/fas216.c if (status_byte(SCpnt->result) != GOOD) SCpnt 2081 drivers/scsi/arm/fas216.c switch (SCpnt->cmnd[0]) { SCpnt 2088 drivers/scsi/arm/fas216.c scmd_printk(KERN_ERR, SCpnt, SCpnt 2090 drivers/scsi/arm/fas216.c SCpnt->result, info->scsi.SCp.ptr, SCpnt 2092 drivers/scsi/arm/fas216.c scsi_print_command(SCpnt); SCpnt 2093 drivers/scsi/arm/fas216.c set_host_byte(SCpnt, DID_ERROR); SCpnt 2099 drivers/scsi/arm/fas216.c if (SCpnt->scsi_done) { SCpnt 2100 drivers/scsi/arm/fas216.c SCpnt->scsi_done(SCpnt); SCpnt 2109 drivers/scsi/arm/fas216.c if (SCpnt->cmnd[0] == REQUEST_SENSE) SCpnt 2112 drivers/scsi/arm/fas216.c scsi_eh_prep_cmnd(SCpnt, &info->ses, NULL, 0, ~0); SCpnt 2113 drivers/scsi/arm/fas216.c fas216_log_target(info, LOG_CONNECT, SCpnt->device->id, SCpnt 2115 drivers/scsi/arm/fas216.c init_SCp(SCpnt); SCpnt 2116 drivers/scsi/arm/fas216.c SCpnt->SCp.Message = 0; SCpnt 2117 drivers/scsi/arm/fas216.c SCpnt->SCp.Status = 0; SCpnt 2118 drivers/scsi/arm/fas216.c SCpnt->tag = 0; SCpnt 2119 drivers/scsi/arm/fas216.c SCpnt->host_scribble = (void *)fas216_rq_sns_done; SCpnt 2128 drivers/scsi/arm/fas216.c info->host->host_no, '0' + SCpnt->device->id); SCpnt 2129 drivers/scsi/arm/fas216.c info->reqSCpnt = SCpnt; SCpnt 2142 drivers/scsi/arm/fas216.c struct scsi_cmnd *SCpnt; SCpnt 2147 drivers/scsi/arm/fas216.c if (!info->SCpnt) SCpnt 2150 drivers/scsi/arm/fas216.c SCpnt = info->SCpnt; SCpnt 2151 drivers/scsi/arm/fas216.c info->SCpnt = NULL; SCpnt 2165 drivers/scsi/arm/fas216.c scmd_printk(KERN_INFO, SCpnt, SCpnt 2169 drivers/scsi/arm/fas216.c scsi_print_command(SCpnt); SCpnt 2177 drivers/scsi/arm/fas216.c info->device[SCpnt->device->id].parity_check = 0; SCpnt 2178 drivers/scsi/arm/fas216.c clear_bit(SCpnt->device->id * 8 + SCpnt 2179 drivers/scsi/arm/fas216.c (u8)(SCpnt->device->lun & 0x7), info->busyluns); SCpnt 2181 drivers/scsi/arm/fas216.c fn = (void (*)(FAS216_Info *, struct scsi_cmnd *, unsigned int))SCpnt->host_scribble; SCpnt 2182 drivers/scsi/arm/fas216.c fn(info, SCpnt, result); SCpnt 2206 drivers/scsi/arm/fas216.c static int fas216_queue_command_lck(struct scsi_cmnd *SCpnt, SCpnt 2209 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; SCpnt 2214 drivers/scsi/arm/fas216.c fas216_log_command(info, LOG_CONNECT, SCpnt, SCpnt 2215 drivers/scsi/arm/fas216.c "received command (%p)", SCpnt); SCpnt 2217 drivers/scsi/arm/fas216.c SCpnt->scsi_done = done; SCpnt 2218 drivers/scsi/arm/fas216.c SCpnt->host_scribble = (void *)fas216_std_done; SCpnt 2219 drivers/scsi/arm/fas216.c SCpnt->result = 0; SCpnt 2221 drivers/scsi/arm/fas216.c init_SCp(SCpnt); SCpnt 2224 drivers/scsi/arm/fas216.c SCpnt->tag = 0; SCpnt 2232 drivers/scsi/arm/fas216.c result = !queue_add_cmd_ordered(&info->queues.issue, SCpnt); SCpnt 2256 drivers/scsi/arm/fas216.c static void fas216_internal_done(struct scsi_cmnd *SCpnt) SCpnt 2258 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; SCpnt 2273 drivers/scsi/arm/fas216.c static int fas216_noqueue_command_lck(struct scsi_cmnd *SCpnt, SCpnt 2276 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; SCpnt 2287 drivers/scsi/arm/fas216.c fas216_queue_command_lck(SCpnt, fas216_internal_done); SCpnt 2315 drivers/scsi/arm/fas216.c done(SCpnt); SCpnt 2356 drivers/scsi/arm/fas216.c struct scsi_cmnd *SCpnt) SCpnt 2360 drivers/scsi/arm/fas216.c if (queue_remove_cmd(&info->queues.issue, SCpnt)) { SCpnt 2370 drivers/scsi/arm/fas216.c } else if (queue_remove_cmd(&info->queues.disconnected, SCpnt)) { SCpnt 2379 drivers/scsi/arm/fas216.c } else if (info->SCpnt == SCpnt) { SCpnt 2390 drivers/scsi/arm/fas216.c info->SCpnt = NULL; SCpnt 2398 drivers/scsi/arm/fas216.c } else if (info->origSCpnt == SCpnt) { SCpnt 2406 drivers/scsi/arm/fas216.c clear_bit(SCpnt->device->id * 8 + SCpnt 2407 drivers/scsi/arm/fas216.c (u8)(SCpnt->device->lun & 0x7), info->busyluns); SCpnt 2424 drivers/scsi/arm/fas216.c int fas216_eh_abort(struct scsi_cmnd *SCpnt) SCpnt 2426 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; SCpnt 2433 drivers/scsi/arm/fas216.c scmd_printk(KERN_WARNING, SCpnt, "abort command\n"); SCpnt 2438 drivers/scsi/arm/fas216.c switch (fas216_find_command(info, SCpnt)) { SCpnt 2445 drivers/scsi/arm/fas216.c scmd_printk(KERN_WARNING, SCpnt, "abort %p success\n", SCpnt); SCpnt 2461 drivers/scsi/arm/fas216.c scmd_printk(KERN_WARNING, SCpnt, "abort %p failed\n", SCpnt); SCpnt 2477 drivers/scsi/arm/fas216.c int fas216_eh_device_reset(struct scsi_cmnd *SCpnt) SCpnt 2479 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; SCpnt 2481 drivers/scsi/arm/fas216.c int i, res = FAILED, target = SCpnt->device->id; SCpnt 2494 drivers/scsi/arm/fas216.c if (info->SCpnt && !info->scsi.disconnectable && SCpnt 2495 drivers/scsi/arm/fas216.c info->SCpnt->device->id == SCpnt->device->id) SCpnt 2517 drivers/scsi/arm/fas216.c SCpnt->host_scribble = (void *)fas216_devicereset_done; SCpnt 2520 drivers/scsi/arm/fas216.c info->rstSCpnt = SCpnt; SCpnt 2541 drivers/scsi/arm/fas216.c SCpnt->host_scribble = NULL; SCpnt 2558 drivers/scsi/arm/fas216.c int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt) SCpnt 2560 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; SCpnt 2602 drivers/scsi/arm/fas216.c info->SCpnt = NULL; SCpnt 2658 drivers/scsi/arm/fas216.c int fas216_eh_host_reset(struct scsi_cmnd *SCpnt) SCpnt 2660 drivers/scsi/arm/fas216.c FAS216_Info *info = (FAS216_Info *)SCpnt->device->host->hostdata; SCpnt 2828 drivers/scsi/arm/fas216.c info->SCpnt = NULL; SCpnt 216 drivers/scsi/arm/fas216.h struct scsi_cmnd *SCpnt; /* currently processing command */ SCpnt 333 drivers/scsi/arm/fas216.h extern int fas216_queue_command(struct Scsi_Host *h, struct scsi_cmnd *SCpnt); SCpnt 367 drivers/scsi/arm/fas216.h extern int fas216_eh_abort(struct scsi_cmnd *SCpnt); SCpnt 374 drivers/scsi/arm/fas216.h extern int fas216_eh_device_reset(struct scsi_cmnd *SCpnt); SCpnt 381 drivers/scsi/arm/fas216.h extern int fas216_eh_bus_reset(struct scsi_cmnd *SCpnt); SCpnt 388 drivers/scsi/arm/fas216.h extern int fas216_eh_host_reset(struct scsi_cmnd *SCpnt); SCpnt 29 drivers/scsi/arm/queue.c struct scsi_cmnd *SCpnt; SCpnt 74 drivers/scsi/arm/queue.c q->SCpnt = NULL; SCpnt 103 drivers/scsi/arm/queue.c int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head) SCpnt 121 drivers/scsi/arm/queue.c q->SCpnt = SCpnt; SCpnt 148 drivers/scsi/arm/queue.c return q->SCpnt; SCpnt 162 drivers/scsi/arm/queue.c struct scsi_cmnd *SCpnt = NULL; SCpnt 167 drivers/scsi/arm/queue.c if (!test_bit(q->SCpnt->device->id * 8 + SCpnt 168 drivers/scsi/arm/queue.c (u8)(q->SCpnt->device->lun & 0x7), exclude)) { SCpnt 169 drivers/scsi/arm/queue.c SCpnt = __queue_remove(queue, l); SCpnt 175 drivers/scsi/arm/queue.c return SCpnt; SCpnt 187 drivers/scsi/arm/queue.c struct scsi_cmnd *SCpnt = NULL; SCpnt 191 drivers/scsi/arm/queue.c SCpnt = __queue_remove(queue, queue->head.next); SCpnt 194 drivers/scsi/arm/queue.c return SCpnt; SCpnt 211 drivers/scsi/arm/queue.c struct scsi_cmnd *SCpnt = NULL; SCpnt 216 drivers/scsi/arm/queue.c if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun && SCpnt 217 drivers/scsi/arm/queue.c q->SCpnt->tag == tag) { SCpnt 218 drivers/scsi/arm/queue.c SCpnt = __queue_remove(queue, l); SCpnt 224 drivers/scsi/arm/queue.c return SCpnt; SCpnt 242 drivers/scsi/arm/queue.c if (q->SCpnt->device->id == target) SCpnt 266 drivers/scsi/arm/queue.c if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) { SCpnt 283 drivers/scsi/arm/queue.c int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt) SCpnt 292 drivers/scsi/arm/queue.c if (q->SCpnt == SCpnt) { SCpnt 49 drivers/scsi/arm/queue.h #define queue_add_cmd_ordered(queue,SCpnt) \ SCpnt 50 drivers/scsi/arm/queue.h __queue_add(queue,SCpnt,(SCpnt)->cmnd[0] == REQUEST_SENSE) SCpnt 51 drivers/scsi/arm/queue.h #define queue_add_cmd_tail(queue,SCpnt) \ SCpnt 52 drivers/scsi/arm/queue.h __queue_add(queue,SCpnt,0) SCpnt 61 drivers/scsi/arm/queue.h extern int __queue_add(Queue_t *queue, struct scsi_cmnd *SCpnt, int head); SCpnt 102 drivers/scsi/arm/queue.h int queue_remove_cmd(Queue_t *queue, struct scsi_cmnd *SCpnt); SCpnt 79 drivers/scsi/arm/scsi.h static inline void init_SCp(struct scsi_cmnd *SCpnt) SCpnt 81 drivers/scsi/arm/scsi.h memset(&SCpnt->SCp, 0, sizeof(struct scsi_pointer)); SCpnt 83 drivers/scsi/arm/scsi.h if (scsi_bufflen(SCpnt)) { SCpnt 86 drivers/scsi/arm/scsi.h SCpnt->SCp.buffer = scsi_sglist(SCpnt); SCpnt 87 drivers/scsi/arm/scsi.h SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; SCpnt 88 drivers/scsi/arm/scsi.h SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer); SCpnt 89 drivers/scsi/arm/scsi.h SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCpnt 90 drivers/scsi/arm/scsi.h SCpnt->SCp.phase = scsi_bufflen(SCpnt); SCpnt 98 drivers/scsi/arm/scsi.h unsigned i, sg_count = scsi_sg_count(SCpnt); SCpnt 100 drivers/scsi/arm/scsi.h scsi_for_each_sg(SCpnt, sg, sg_count, i) SCpnt 103 drivers/scsi/arm/scsi.h if (scsi_bufflen(SCpnt) != len) { SCpnt 107 drivers/scsi/arm/scsi.h SCpnt->device->host->host_no, SCpnt 108 drivers/scsi/arm/scsi.h '0' + SCpnt->device->id, SCpnt 109 drivers/scsi/arm/scsi.h scsi_bufflen(SCpnt), len); SCpnt 114 drivers/scsi/arm/scsi.h SCpnt->SCp.phase = SCpnt 116 drivers/scsi/arm/scsi.h scsi_bufflen(SCpnt)); SCpnt 121 drivers/scsi/arm/scsi.h SCpnt->SCp.ptr = NULL; SCpnt 122 drivers/scsi/arm/scsi.h SCpnt->SCp.this_residual = 0; SCpnt 123 drivers/scsi/arm/scsi.h SCpnt->SCp.phase = 0; SCpnt 1585 drivers/scsi/atp870u.c static int atp870u_abort(struct scsi_cmnd * SCpnt) SCpnt 1591 drivers/scsi/atp870u.c host = SCpnt->device->host; SCpnt 1594 drivers/scsi/atp870u.c c = scmd_channel(SCpnt); SCpnt 147 drivers/scsi/gvp11.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, SCpnt 161 drivers/scsi/gvp11.c if (wh->dma_dir && SCpnt) SCpnt 162 drivers/scsi/gvp11.c memcpy(SCpnt->SCp.ptr, wh->dma_bounce_buffer, SCpnt 163 drivers/scsi/gvp11.c SCpnt->SCp.this_residual); SCpnt 62 drivers/scsi/mvme147.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, SCpnt 355 drivers/scsi/nsp32.c static void nsp32_build_identify(struct scsi_cmnd *SCpnt) SCpnt 357 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 366 drivers/scsi/nsp32.c data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++; SCpnt 374 drivers/scsi/nsp32.c static void nsp32_build_sdtr(struct scsi_cmnd *SCpnt, SCpnt 378 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 393 drivers/scsi/nsp32.c static void nsp32_build_nop(struct scsi_cmnd *SCpnt) SCpnt 395 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 411 drivers/scsi/nsp32.c static void nsp32_build_reject(struct scsi_cmnd *SCpnt) SCpnt 413 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 424 drivers/scsi/nsp32.c static void nsp32_start_timer(struct scsi_cmnd *SCpnt, int time) SCpnt 426 drivers/scsi/nsp32.c unsigned int base = SCpnt->host->io_port; SCpnt 442 drivers/scsi/nsp32.c static int nsp32_selection_autopara(struct scsi_cmnd *SCpnt) SCpnt 444 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 445 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 446 drivers/scsi/nsp32.c unsigned int host_id = SCpnt->device->host->this_id; SCpnt 447 drivers/scsi/nsp32.c unsigned char target = scmd_id(SCpnt); SCpnt 463 drivers/scsi/nsp32.c SCpnt->result = DID_BUS_BUSY << 16; SCpnt 475 drivers/scsi/nsp32.c SCpnt->result = DID_ERROR << 16; SCpnt 505 drivers/scsi/nsp32.c for (i = 0; i < SCpnt->cmd_len; i++) { SCpnt 506 drivers/scsi/nsp32.c param->cdb[4 * i] = SCpnt->cmnd[i]; SCpnt 564 drivers/scsi/nsp32.c ret = nsp32_arbitration(SCpnt, base); SCpnt 573 drivers/scsi/nsp32.c static int nsp32_selection_autoscsi(struct scsi_cmnd *SCpnt) SCpnt 575 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 576 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 577 drivers/scsi/nsp32.c unsigned int host_id = SCpnt->device->host->this_id; SCpnt 578 drivers/scsi/nsp32.c unsigned char target = scmd_id(SCpnt); SCpnt 599 drivers/scsi/nsp32.c SCpnt->result = DID_BUS_BUSY << 16; SCpnt 617 drivers/scsi/nsp32.c for (i = 0; i < SCpnt->cmd_len; i++) { SCpnt 618 drivers/scsi/nsp32.c nsp32_write1(base, COMMAND_DATA, SCpnt->cmnd[i]); SCpnt 620 drivers/scsi/nsp32.c nsp32_dbg(NSP32_DEBUG_CDB_CONTENTS, "CDB[0]=[0x%x]", SCpnt->cmnd[0]); SCpnt 635 drivers/scsi/nsp32.c SCpnt->result = DID_ERROR << 16; SCpnt 705 drivers/scsi/nsp32.c if (scsi_bufflen(SCpnt) > 0) { SCpnt 728 drivers/scsi/nsp32.c status = nsp32_arbitration(SCpnt, base); SCpnt 748 drivers/scsi/nsp32.c static int nsp32_arbitration(struct scsi_cmnd *SCpnt, unsigned int base) SCpnt 765 drivers/scsi/nsp32.c SCpnt->result = DID_OK << 16; SCpnt 769 drivers/scsi/nsp32.c SCpnt->result = DID_BUS_BUSY << 16; SCpnt 777 drivers/scsi/nsp32.c SCpnt->result = DID_NO_CONNECT << 16; SCpnt 797 drivers/scsi/nsp32.c static int nsp32_reselection(struct scsi_cmnd *SCpnt, unsigned char newlun) SCpnt 799 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 800 drivers/scsi/nsp32.c unsigned int host_id = SCpnt->device->host->this_id; SCpnt 801 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 828 drivers/scsi/nsp32.c } else if(data->lunt[newid][newlun].SCpnt == NULL) { SCpnt 851 drivers/scsi/nsp32.c static int nsp32_setup_sg_table(struct scsi_cmnd *SCpnt) SCpnt 853 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 864 drivers/scsi/nsp32.c num = scsi_dma_map(SCpnt); SCpnt 870 drivers/scsi/nsp32.c scsi_for_each_sg(SCpnt, sg, num, i) { SCpnt 897 drivers/scsi/nsp32.c static int nsp32_queuecommand_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) SCpnt 899 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 907 drivers/scsi/nsp32.c SCpnt->device->id, SCpnt->device->lun, SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt 908 drivers/scsi/nsp32.c scsi_sg_count(SCpnt), scsi_sglist(SCpnt), scsi_bufflen(SCpnt)); SCpnt 913 drivers/scsi/nsp32.c SCpnt->result = DID_NO_CONNECT << 16; SCpnt 914 drivers/scsi/nsp32.c done(SCpnt); SCpnt 919 drivers/scsi/nsp32.c if (scmd_id(SCpnt) == SCpnt->device->host->this_id) { SCpnt 921 drivers/scsi/nsp32.c SCpnt->result = DID_BAD_TARGET << 16; SCpnt 922 drivers/scsi/nsp32.c done(SCpnt); SCpnt 927 drivers/scsi/nsp32.c if (SCpnt->device->lun >= MAX_LUN) { SCpnt 929 drivers/scsi/nsp32.c SCpnt->result = DID_BAD_TARGET << 16; SCpnt 930 drivers/scsi/nsp32.c done(SCpnt); SCpnt 934 drivers/scsi/nsp32.c show_command(SCpnt); SCpnt 936 drivers/scsi/nsp32.c SCpnt->scsi_done = done; SCpnt 937 drivers/scsi/nsp32.c data->CurrentSC = SCpnt; SCpnt 938 drivers/scsi/nsp32.c SCpnt->SCp.Status = CHECK_CONDITION; SCpnt 939 drivers/scsi/nsp32.c SCpnt->SCp.Message = 0; SCpnt 940 drivers/scsi/nsp32.c scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); SCpnt 942 drivers/scsi/nsp32.c SCpnt->SCp.ptr = (char *)scsi_sglist(SCpnt); SCpnt 943 drivers/scsi/nsp32.c SCpnt->SCp.this_residual = scsi_bufflen(SCpnt); SCpnt 944 drivers/scsi/nsp32.c SCpnt->SCp.buffer = NULL; SCpnt 945 drivers/scsi/nsp32.c SCpnt->SCp.buffers_residual = 0; SCpnt 950 drivers/scsi/nsp32.c cur_lunt = &(data->lunt[SCpnt->device->id][SCpnt->device->lun]); SCpnt 951 drivers/scsi/nsp32.c cur_lunt->SCpnt = SCpnt; SCpnt 955 drivers/scsi/nsp32.c data->cur_id = SCpnt->device->id; SCpnt 956 drivers/scsi/nsp32.c data->cur_lun = SCpnt->device->lun; SCpnt 958 drivers/scsi/nsp32.c ret = nsp32_setup_sg_table(SCpnt); SCpnt 961 drivers/scsi/nsp32.c SCpnt->result = DID_ERROR << 16; SCpnt 962 drivers/scsi/nsp32.c nsp32_scsi_done(SCpnt); SCpnt 967 drivers/scsi/nsp32.c nsp32_build_identify(SCpnt); SCpnt 974 drivers/scsi/nsp32.c target = &data->target[scmd_id(SCpnt)]; SCpnt 982 drivers/scsi/nsp32.c nsp32_build_sdtr(SCpnt, period, offset); SCpnt 1020 drivers/scsi/nsp32.c SCpnt->device->id, target->sync_flag, target->syncreg, SCpnt 1025 drivers/scsi/nsp32.c ret = nsp32_selection_autopara(SCpnt); SCpnt 1027 drivers/scsi/nsp32.c ret = nsp32_selection_autoscsi(SCpnt); SCpnt 1032 drivers/scsi/nsp32.c nsp32_scsi_done(SCpnt); SCpnt 1152 drivers/scsi/nsp32.c struct scsi_cmnd *SCpnt = data->CurrentSC; SCpnt 1184 drivers/scsi/nsp32.c SCpnt->result = DID_BAD_TARGET << 16; SCpnt 1185 drivers/scsi/nsp32.c nsp32_scsi_done(SCpnt); SCpnt 1201 drivers/scsi/nsp32.c if (SCpnt != NULL) { SCpnt 1202 drivers/scsi/nsp32.c SCpnt->result = DID_RESET << 16; SCpnt 1203 drivers/scsi/nsp32.c nsp32_scsi_done(SCpnt); SCpnt 1208 drivers/scsi/nsp32.c if (SCpnt == NULL) { SCpnt 1230 drivers/scsi/nsp32.c SCpnt->result = DID_TIME_OUT << 16; SCpnt 1231 drivers/scsi/nsp32.c nsp32_scsi_done(SCpnt); SCpnt 1256 drivers/scsi/nsp32.c (scsi_get_resid(SCpnt) > 0) && SCpnt 1277 drivers/scsi/nsp32.c scsi_set_resid(SCpnt, 0); /* all data transferred! */ SCpnt 1284 drivers/scsi/nsp32.c nsp32_msgin_occur(SCpnt, irq_stat, auto_stat); SCpnt 1291 drivers/scsi/nsp32.c nsp32_msgout_occur(SCpnt); SCpnt 1298 drivers/scsi/nsp32.c ret = nsp32_busfree_occur(SCpnt, auto_stat); SCpnt 1312 drivers/scsi/nsp32.c SCpnt->result = (int)nsp32_read1(base, SCSI_CSB_IN); SCpnt 1365 drivers/scsi/nsp32.c SCpnt->SCp.Status = nsp32_read1(base, SCSI_CSB_IN); SCpnt 1385 drivers/scsi/nsp32.c nsp32_msgin_occur(SCpnt, irq_stat, 0); SCpnt 1510 drivers/scsi/nsp32.c static void nsp32_scsi_done(struct scsi_cmnd *SCpnt) SCpnt 1512 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 1513 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 1515 drivers/scsi/nsp32.c scsi_dma_unmap(SCpnt); SCpnt 1526 drivers/scsi/nsp32.c (*SCpnt->scsi_done)(SCpnt); SCpnt 1531 drivers/scsi/nsp32.c data->cur_lunt->SCpnt = NULL; SCpnt 1548 drivers/scsi/nsp32.c static int nsp32_busfree_occur(struct scsi_cmnd *SCpnt, unsigned short execph) SCpnt 1550 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 1551 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 1609 drivers/scsi/nsp32.c nsp32_adjust_busfree(SCpnt, s_sacklen); SCpnt 1668 drivers/scsi/nsp32.c SCpnt->SCp.Status = nsp32_read1(base, SCSI_CSB_IN); SCpnt 1669 drivers/scsi/nsp32.c SCpnt->SCp.Message = 0; SCpnt 1672 drivers/scsi/nsp32.c SCpnt->SCp.Status, scsi_get_resid(SCpnt)); SCpnt 1673 drivers/scsi/nsp32.c SCpnt->result = (DID_OK << 16) | SCpnt 1674 drivers/scsi/nsp32.c (SCpnt->SCp.Message << 8) | SCpnt 1675 drivers/scsi/nsp32.c (SCpnt->SCp.Status << 0); SCpnt 1676 drivers/scsi/nsp32.c nsp32_scsi_done(SCpnt); SCpnt 1681 drivers/scsi/nsp32.c SCpnt->SCp.Status = nsp32_read1(base, SCSI_CSB_IN); SCpnt 1682 drivers/scsi/nsp32.c SCpnt->SCp.Message = 4; SCpnt 1692 drivers/scsi/nsp32.c SCpnt->result = DID_ERROR << 16; SCpnt 1693 drivers/scsi/nsp32.c nsp32_scsi_done(SCpnt); SCpnt 1706 drivers/scsi/nsp32.c static void nsp32_adjust_busfree(struct scsi_cmnd *SCpnt, unsigned int s_sacklen) SCpnt 1708 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 1716 drivers/scsi/nsp32.c nsp32_dbg(NSP32_DEBUG_SGLIST, "old resid=0x%x", scsi_get_resid(SCpnt)); SCpnt 1760 drivers/scsi/nsp32.c if (scsi_get_resid(SCpnt) < sentlen) { SCpnt 1764 drivers/scsi/nsp32.c scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) - sentlen); SCpnt 1765 drivers/scsi/nsp32.c nsp32_dbg(NSP32_DEBUG_SGLIST, "new resid=0x%x", scsi_get_resid(SCpnt)); SCpnt 1779 drivers/scsi/nsp32.c static void nsp32_msgout_occur(struct scsi_cmnd *SCpnt) SCpnt 1781 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 1782 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 1795 drivers/scsi/nsp32.c nsp32_build_nop(SCpnt); SCpnt 1855 drivers/scsi/nsp32.c static void nsp32_restart_autoscsi(struct scsi_cmnd *SCpnt, unsigned short command) SCpnt 1857 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 1894 drivers/scsi/nsp32.c if (scsi_bufflen(SCpnt) > 0) { SCpnt 1921 drivers/scsi/nsp32.c static void nsp32_msgin_occur(struct scsi_cmnd *SCpnt, SCpnt 1925 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 1926 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 1966 drivers/scsi/nsp32.c ret = nsp32_reselection(SCpnt, newlun); SCpnt 2003 drivers/scsi/nsp32.c nsp32_adjust_busfree(SCpnt, s_sacklen); SCpnt 2128 drivers/scsi/nsp32.c nsp32_analyze_sdtr(SCpnt); SCpnt 2188 drivers/scsi/nsp32.c nsp32_restart_autoscsi(SCpnt, command); SCpnt 2209 drivers/scsi/nsp32.c nsp32_build_reject(SCpnt); SCpnt 2218 drivers/scsi/nsp32.c static void nsp32_analyze_sdtr(struct scsi_cmnd *SCpnt) SCpnt 2220 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 2322 drivers/scsi/nsp32.c nsp32_build_sdtr(SCpnt, 0, ASYNC_OFFSET); SCpnt 2325 drivers/scsi/nsp32.c nsp32_build_sdtr(SCpnt, get_period, get_offset); SCpnt 2338 drivers/scsi/nsp32.c nsp32_build_reject(SCpnt); SCpnt 2660 drivers/scsi/nsp32.c .SCpnt = NULL, SCpnt 2809 drivers/scsi/nsp32.c static int nsp32_eh_abort(struct scsi_cmnd *SCpnt) SCpnt 2811 drivers/scsi/nsp32.c nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; SCpnt 2812 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 2816 drivers/scsi/nsp32.c if (data->cur_lunt->SCpnt == NULL) { SCpnt 2830 drivers/scsi/nsp32.c SCpnt->result = DID_ABORT << 16; SCpnt 2831 drivers/scsi/nsp32.c nsp32_scsi_done(SCpnt); SCpnt 2879 drivers/scsi/nsp32.c static int nsp32_eh_host_reset(struct scsi_cmnd *SCpnt) SCpnt 2881 drivers/scsi/nsp32.c struct Scsi_Host *host = SCpnt->device->host; SCpnt 2882 drivers/scsi/nsp32.c unsigned int base = SCpnt->device->host->io_port; SCpnt 2886 drivers/scsi/nsp32.c nsp32_dbg(NSP32_DEBUG_BUSRESET, "SCpnt=0x%x", SCpnt); SCpnt 2888 drivers/scsi/nsp32.c spin_lock_irq(SCpnt->device->host->host_lock); SCpnt 2895 drivers/scsi/nsp32.c spin_unlock_irq(SCpnt->device->host->host_lock); SCpnt 488 drivers/scsi/nsp32.h struct scsi_cmnd *SCpnt; /* Current Handling struct scsi_cmnd */ SCpnt 140 drivers/scsi/nsp32_debug.c static void show_command(struct scsi_cmnd *SCpnt) SCpnt 142 drivers/scsi/nsp32_debug.c print_commandk(SCpnt->cmnd); SCpnt 134 drivers/scsi/pcmcia/nsp_cs.c static inline void nsp_inc_resid(struct scsi_cmnd *SCpnt, int residInc) SCpnt 136 drivers/scsi/pcmcia/nsp_cs.c scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc); SCpnt 177 drivers/scsi/pcmcia/nsp_cs.c static void nsp_scsi_done(struct scsi_cmnd *SCpnt) SCpnt 179 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 183 drivers/scsi/pcmcia/nsp_cs.c SCpnt->scsi_done(SCpnt); SCpnt 186 drivers/scsi/pcmcia/nsp_cs.c static int nsp_queuecommand_lck(struct scsi_cmnd *SCpnt, SCpnt 192 drivers/scsi/pcmcia/nsp_cs.c unsigned char target = scmd_id(SCpnt); SCpnt 194 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 198 drivers/scsi/pcmcia/nsp_cs.c SCpnt, target, SCpnt->device->lun, scsi_sglist(SCpnt), SCpnt 199 drivers/scsi/pcmcia/nsp_cs.c scsi_bufflen(SCpnt), scsi_sg_count(SCpnt)); SCpnt 202 drivers/scsi/pcmcia/nsp_cs.c SCpnt->scsi_done = done; SCpnt 206 drivers/scsi/pcmcia/nsp_cs.c SCpnt->result = DID_BAD_TARGET << 16; SCpnt 207 drivers/scsi/pcmcia/nsp_cs.c nsp_scsi_done(SCpnt); SCpnt 216 drivers/scsi/pcmcia/nsp_cs.c SCpnt->result = DID_BAD_TARGET << 16; SCpnt 217 drivers/scsi/pcmcia/nsp_cs.c nsp_scsi_done(SCpnt); SCpnt 222 drivers/scsi/pcmcia/nsp_cs.c show_command(SCpnt); SCpnt 224 drivers/scsi/pcmcia/nsp_cs.c data->CurrentSC = SCpnt; SCpnt 226 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.Status = CHECK_CONDITION; SCpnt 227 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.Message = 0; SCpnt 228 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.have_data_in = IO_UNKNOWN; SCpnt 229 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.sent_command = 0; SCpnt 230 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.phase = PH_UNDETERMINED; SCpnt 231 drivers/scsi/pcmcia/nsp_cs.c scsi_set_resid(SCpnt, scsi_bufflen(SCpnt)); SCpnt 239 drivers/scsi/pcmcia/nsp_cs.c if (scsi_bufflen(SCpnt)) { SCpnt 240 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer = scsi_sglist(SCpnt); SCpnt 241 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr = BUFFER_ADDR; SCpnt 242 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCpnt 243 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; SCpnt 245 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr = NULL; SCpnt 246 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual = 0; SCpnt 247 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer = NULL; SCpnt 248 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual = 0; SCpnt 251 drivers/scsi/pcmcia/nsp_cs.c if (nsphw_start_selection(SCpnt) == FALSE) { SCpnt 253 drivers/scsi/pcmcia/nsp_cs.c SCpnt->result = DID_BUS_BUSY << 16; SCpnt 254 drivers/scsi/pcmcia/nsp_cs.c nsp_scsi_done(SCpnt); SCpnt 364 drivers/scsi/pcmcia/nsp_cs.c static int nsphw_start_selection(struct scsi_cmnd *SCpnt) SCpnt 366 drivers/scsi/pcmcia/nsp_cs.c unsigned int host_id = SCpnt->device->host->this_id; SCpnt 367 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 368 drivers/scsi/pcmcia/nsp_cs.c unsigned char target = scmd_id(SCpnt); SCpnt 369 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 383 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.phase = PH_ARBSTART; SCpnt 403 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.phase = PH_SELSTART; SCpnt 414 drivers/scsi/pcmcia/nsp_cs.c nsp_start_timer(SCpnt, 1000/51); SCpnt 445 drivers/scsi/pcmcia/nsp_cs.c static int nsp_analyze_sdtr(struct scsi_cmnd *SCpnt) SCpnt 447 drivers/scsi/pcmcia/nsp_cs.c unsigned char target = scmd_id(SCpnt); SCpnt 449 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 503 drivers/scsi/pcmcia/nsp_cs.c static void nsp_start_timer(struct scsi_cmnd *SCpnt, int time) SCpnt 505 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 506 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 516 drivers/scsi/pcmcia/nsp_cs.c static int nsp_negate_signal(struct scsi_cmnd *SCpnt, unsigned char mask, SCpnt 519 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 544 drivers/scsi/pcmcia/nsp_cs.c static int nsp_expect_signal(struct scsi_cmnd *SCpnt, SCpnt 548 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 579 drivers/scsi/pcmcia/nsp_cs.c static int nsp_xfer(struct scsi_cmnd *SCpnt, int phase) SCpnt 581 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 582 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 591 drivers/scsi/pcmcia/nsp_cs.c ret = nsp_expect_signal(SCpnt, phase, BUSMON_REQ); SCpnt 598 drivers/scsi/pcmcia/nsp_cs.c if (len == 1 && SCpnt->SCp.phase == PH_MSG_OUT) { SCpnt 610 drivers/scsi/pcmcia/nsp_cs.c nsp_negate_signal(SCpnt, BUSMON_ACK, "xfer<ack>"); SCpnt 619 drivers/scsi/pcmcia/nsp_cs.c static int nsp_dataphase_bypass(struct scsi_cmnd *SCpnt) SCpnt 621 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 626 drivers/scsi/pcmcia/nsp_cs.c if (SCpnt->SCp.have_data_in != IO_IN) { SCpnt 630 drivers/scsi/pcmcia/nsp_cs.c count = nsp_fifo_count(SCpnt); SCpnt 641 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.phase = PH_DATA; SCpnt 642 drivers/scsi/pcmcia/nsp_cs.c nsp_pio_read(SCpnt); SCpnt 651 drivers/scsi/pcmcia/nsp_cs.c static int nsp_reselected(struct scsi_cmnd *SCpnt) SCpnt 653 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 654 drivers/scsi/pcmcia/nsp_cs.c unsigned int host_id = SCpnt->device->host->this_id; SCpnt 673 drivers/scsi/pcmcia/nsp_cs.c if (scmd_id(SCpnt) != target) { SCpnt 677 drivers/scsi/pcmcia/nsp_cs.c nsp_negate_signal(SCpnt, BUSMON_SEL, "reselect<SEL>"); SCpnt 679 drivers/scsi/pcmcia/nsp_cs.c nsp_nexus(SCpnt); SCpnt 690 drivers/scsi/pcmcia/nsp_cs.c static int nsp_fifo_count(struct scsi_cmnd *SCpnt) SCpnt 692 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 717 drivers/scsi/pcmcia/nsp_cs.c static void nsp_pio_read(struct scsi_cmnd *SCpnt) SCpnt 719 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 720 drivers/scsi/pcmcia/nsp_cs.c unsigned long mmio_base = SCpnt->device->host->base; SCpnt 721 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 729 drivers/scsi/pcmcia/nsp_cs.c SCpnt, scsi_get_resid(SCpnt), ocount, SCpnt->SCp.ptr, SCpnt 730 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual, SCpnt->SCp.buffer, SCpnt 731 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual); SCpnt 736 drivers/scsi/pcmcia/nsp_cs.c (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0 ) ) { SCpnt 742 drivers/scsi/pcmcia/nsp_cs.c res = nsp_fifo_count(SCpnt) - ocount; SCpnt 760 drivers/scsi/pcmcia/nsp_cs.c res = min(res, SCpnt->SCp.this_residual); SCpnt 765 drivers/scsi/pcmcia/nsp_cs.c nsp_fifo32_read(base, SCpnt->SCp.ptr, res >> 2); SCpnt 768 drivers/scsi/pcmcia/nsp_cs.c nsp_fifo8_read (base, SCpnt->SCp.ptr, res ); SCpnt 773 drivers/scsi/pcmcia/nsp_cs.c nsp_mmio_fifo32_read(mmio_base, SCpnt->SCp.ptr, res >> 2); SCpnt 781 drivers/scsi/pcmcia/nsp_cs.c nsp_inc_resid(SCpnt, -res); SCpnt 782 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr += res; SCpnt 783 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual -= res; SCpnt 788 drivers/scsi/pcmcia/nsp_cs.c if (SCpnt->SCp.this_residual == 0 && SCpnt 789 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual != 0 ) { SCpnt 791 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual--; SCpnt 792 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer = sg_next(SCpnt->SCp.buffer); SCpnt 793 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr = BUFFER_ADDR; SCpnt 794 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCpnt 805 drivers/scsi/pcmcia/nsp_cs.c scsi_get_resid(SCpnt), SCpnt->SCp.this_residual, SCpnt 806 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual); SCpnt 810 drivers/scsi/pcmcia/nsp_cs.c scsi_get_resid(SCpnt)); SCpnt 816 drivers/scsi/pcmcia/nsp_cs.c static void nsp_pio_write(struct scsi_cmnd *SCpnt) SCpnt 818 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 819 drivers/scsi/pcmcia/nsp_cs.c unsigned long mmio_base = SCpnt->device->host->base; SCpnt 820 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 828 drivers/scsi/pcmcia/nsp_cs.c data->FifoCount, SCpnt->SCp.ptr, SCpnt->SCp.this_residual, SCpnt 829 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer, SCpnt->SCp.buffers_residual, SCpnt 830 drivers/scsi/pcmcia/nsp_cs.c scsi_get_resid(SCpnt)); SCpnt 835 drivers/scsi/pcmcia/nsp_cs.c (SCpnt->SCp.this_residual > 0 || SCpnt->SCp.buffers_residual > 0)) { SCpnt 840 drivers/scsi/pcmcia/nsp_cs.c res = ocount - nsp_fifo_count(SCpnt); SCpnt 844 drivers/scsi/pcmcia/nsp_cs.c nsp_inc_resid(SCpnt, res); SCpnt 845 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr -= res; SCpnt 846 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual += res; SCpnt 852 drivers/scsi/pcmcia/nsp_cs.c res = ocount - nsp_fifo_count(SCpnt); SCpnt 858 drivers/scsi/pcmcia/nsp_cs.c res = min(SCpnt->SCp.this_residual, WFIFO_CRIT); SCpnt 864 drivers/scsi/pcmcia/nsp_cs.c nsp_fifo32_write(base, SCpnt->SCp.ptr, res >> 2); SCpnt 867 drivers/scsi/pcmcia/nsp_cs.c nsp_fifo8_write (base, SCpnt->SCp.ptr, res ); SCpnt 872 drivers/scsi/pcmcia/nsp_cs.c nsp_mmio_fifo32_write(mmio_base, SCpnt->SCp.ptr, res >> 2); SCpnt 880 drivers/scsi/pcmcia/nsp_cs.c nsp_inc_resid(SCpnt, -res); SCpnt 881 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr += res; SCpnt 882 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual -= res; SCpnt 886 drivers/scsi/pcmcia/nsp_cs.c if (SCpnt->SCp.this_residual == 0 && SCpnt 887 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual != 0 ) { SCpnt 889 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffers_residual--; SCpnt 890 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.buffer = sg_next(SCpnt->SCp.buffer); SCpnt 891 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.ptr = BUFFER_ADDR; SCpnt 892 drivers/scsi/pcmcia/nsp_cs.c SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; SCpnt 901 drivers/scsi/pcmcia/nsp_cs.c scsi_get_resid(SCpnt)); SCpnt 905 drivers/scsi/pcmcia/nsp_cs.c scsi_get_resid(SCpnt)); SCpnt 913 drivers/scsi/pcmcia/nsp_cs.c static int nsp_nexus(struct scsi_cmnd *SCpnt) SCpnt 915 drivers/scsi/pcmcia/nsp_cs.c unsigned int base = SCpnt->device->host->io_port; SCpnt 916 drivers/scsi/pcmcia/nsp_cs.c unsigned char target = scmd_id(SCpnt); SCpnt 918 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 927 drivers/scsi/pcmcia/nsp_cs.c if (scsi_get_resid(SCpnt) % 4 != 0 || SCpnt 928 drivers/scsi/pcmcia/nsp_cs.c scsi_get_resid(SCpnt) <= PAGE_SIZE ) { SCpnt 1480 drivers/scsi/pcmcia/nsp_cs.c static int nsp_eh_bus_reset(struct scsi_cmnd *SCpnt) SCpnt 1482 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 1484 drivers/scsi/pcmcia/nsp_cs.c nsp_dbg(NSP_DEBUG_BUSRESET, "SCpnt=0x%p", SCpnt); SCpnt 1489 drivers/scsi/pcmcia/nsp_cs.c static int nsp_eh_host_reset(struct scsi_cmnd *SCpnt) SCpnt 1491 drivers/scsi/pcmcia/nsp_cs.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 297 drivers/scsi/pcmcia/nsp_cs.h static int nsp_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *SCpnt); SCpnt 302 drivers/scsi/pcmcia/nsp_cs.h static int nsp_eh_bus_reset (struct scsi_cmnd *SCpnt); SCpnt 303 drivers/scsi/pcmcia/nsp_cs.h static int nsp_eh_host_reset (struct scsi_cmnd *SCpnt); SCpnt 308 drivers/scsi/pcmcia/nsp_cs.h static int nsphw_start_selection(struct scsi_cmnd *SCpnt); SCpnt 309 drivers/scsi/pcmcia/nsp_cs.h static void nsp_start_timer (struct scsi_cmnd *SCpnt, int time); SCpnt 310 drivers/scsi/pcmcia/nsp_cs.h static int nsp_fifo_count (struct scsi_cmnd *SCpnt); SCpnt 311 drivers/scsi/pcmcia/nsp_cs.h static void nsp_pio_read (struct scsi_cmnd *SCpnt); SCpnt 312 drivers/scsi/pcmcia/nsp_cs.h static void nsp_pio_write (struct scsi_cmnd *SCpnt); SCpnt 313 drivers/scsi/pcmcia/nsp_cs.h static int nsp_nexus (struct scsi_cmnd *SCpnt); SCpnt 314 drivers/scsi/pcmcia/nsp_cs.h static void nsp_scsi_done (struct scsi_cmnd *SCpnt); SCpnt 315 drivers/scsi/pcmcia/nsp_cs.h static int nsp_analyze_sdtr (struct scsi_cmnd *SCpnt); SCpnt 316 drivers/scsi/pcmcia/nsp_cs.h static int nsp_negate_signal (struct scsi_cmnd *SCpnt, SCpnt 318 drivers/scsi/pcmcia/nsp_cs.h static int nsp_expect_signal (struct scsi_cmnd *SCpnt, SCpnt 321 drivers/scsi/pcmcia/nsp_cs.h static int nsp_xfer (struct scsi_cmnd *SCpnt, int phase); SCpnt 322 drivers/scsi/pcmcia/nsp_cs.h static int nsp_dataphase_bypass (struct scsi_cmnd *SCpnt); SCpnt 323 drivers/scsi/pcmcia/nsp_cs.h static int nsp_reselected (struct scsi_cmnd *SCpnt); SCpnt 331 drivers/scsi/pcmcia/nsp_cs.h static void show_command (struct scsi_cmnd *SCpnt); SCpnt 332 drivers/scsi/pcmcia/nsp_cs.h static void show_phase (struct scsi_cmnd *SCpnt); SCpnt 337 drivers/scsi/pcmcia/nsp_cs.h # define show_phase(SCpnt) /* */ SCpnt 385 drivers/scsi/pcmcia/nsp_cs.h # define BUFFER_ADDR ((char *)((sg_virt(SCpnt->SCp.buffer)))) SCpnt 141 drivers/scsi/pcmcia/nsp_debug.c static void show_command(struct scsi_cmnd *SCpnt) SCpnt 143 drivers/scsi/pcmcia/nsp_debug.c print_commandk(SCpnt->cmnd); SCpnt 146 drivers/scsi/pcmcia/nsp_debug.c static void show_phase(struct scsi_cmnd *SCpnt) SCpnt 148 drivers/scsi/pcmcia/nsp_debug.c int i = SCpnt->SCp.phase; SCpnt 11 drivers/scsi/pcmcia/nsp_message.c static void nsp_message_in(struct scsi_cmnd *SCpnt) SCpnt 13 drivers/scsi/pcmcia/nsp_message.c unsigned int base = SCpnt->device->host->io_port; SCpnt 14 drivers/scsi/pcmcia/nsp_message.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 36 drivers/scsi/pcmcia/nsp_message.c nsp_negate_signal(SCpnt, BUSMON_REQ, "msgin<REQ>"); SCpnt 46 drivers/scsi/pcmcia/nsp_message.c ret = nsp_expect_signal(SCpnt, BUSPHASE_MESSAGE_IN, BUSMON_REQ); SCpnt 53 drivers/scsi/pcmcia/nsp_message.c static void nsp_message_out(struct scsi_cmnd *SCpnt) SCpnt 55 drivers/scsi/pcmcia/nsp_message.c nsp_hw_data *data = (nsp_hw_data *)SCpnt->device->host->hostdata; SCpnt 68 drivers/scsi/pcmcia/nsp_message.c if (nsp_xfer(SCpnt, BUSPHASE_MESSAGE_OUT)) { SCpnt 73 drivers/scsi/pcmcia/nsp_message.c ret = nsp_expect_signal(SCpnt, BUSPHASE_MESSAGE_OUT, BUSMON_REQ); SCpnt 541 drivers/scsi/pcmcia/sym53c500_cs.c SYM53C500_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) SCpnt 544 drivers/scsi/pcmcia/sym53c500_cs.c int port_base = SCpnt->device->host->io_port; SCpnt 546 drivers/scsi/pcmcia/sym53c500_cs.c (struct sym53c500_data *)SCpnt->device->host->hostdata; SCpnt 551 drivers/scsi/pcmcia/sym53c500_cs.c SCpnt->cmnd[0], SCpnt->cmd_len, SCpnt->device->id, SCpnt 552 drivers/scsi/pcmcia/sym53c500_cs.c (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); SCpnt 554 drivers/scsi/pcmcia/sym53c500_cs.c VDEB(for (i = 0; i < SCpnt->cmd_len; i++) SCpnt 555 drivers/scsi/pcmcia/sym53c500_cs.c printk("cmd[%d]=%02x ", i, SCpnt->cmnd[i])); SCpnt 558 drivers/scsi/pcmcia/sym53c500_cs.c data->current_SC = SCpnt; SCpnt 566 drivers/scsi/pcmcia/sym53c500_cs.c outb(scmd_id(SCpnt), port_base + DEST_ID); /* set destination */ SCpnt 569 drivers/scsi/pcmcia/sym53c500_cs.c for (i = 0; i < SCpnt->cmd_len; i++) { SCpnt 570 drivers/scsi/pcmcia/sym53c500_cs.c outb(SCpnt->cmnd[i], port_base + SCSI_FIFO); SCpnt 580 drivers/scsi/pcmcia/sym53c500_cs.c SYM53C500_host_reset(struct scsi_cmnd *SCpnt) SCpnt 582 drivers/scsi/pcmcia/sym53c500_cs.c int port_base = SCpnt->device->host->io_port; SCpnt 585 drivers/scsi/pcmcia/sym53c500_cs.c spin_lock_irq(SCpnt->device->host->host_lock); SCpnt 587 drivers/scsi/pcmcia/sym53c500_cs.c spin_unlock_irq(SCpnt->device->host->host_lock); SCpnt 2589 drivers/scsi/scsi_debug.c static void dif_copy_prot(struct scsi_cmnd *SCpnt, sector_t sector, SCpnt 2600 drivers/scsi/scsi_debug.c sg_miter_start(&miter, scsi_prot_sglist(SCpnt), SCpnt 2601 drivers/scsi/scsi_debug.c scsi_prot_sg_count(SCpnt), SG_MITER_ATOMIC | SCpnt 2632 drivers/scsi/scsi_debug.c static int prot_verify_read(struct scsi_cmnd *SCpnt, sector_t start_sec, SCpnt 2655 drivers/scsi/scsi_debug.c dif_copy_prot(SCpnt, start_sec, sectors, true); SCpnt 2815 drivers/scsi/scsi_debug.c static int prot_verify_write(struct scsi_cmnd *SCpnt, sector_t start_sec, SCpnt 2827 drivers/scsi/scsi_debug.c BUG_ON(scsi_sg_count(SCpnt) == 0); SCpnt 2828 drivers/scsi/scsi_debug.c BUG_ON(scsi_prot_sg_count(SCpnt) == 0); SCpnt 2830 drivers/scsi/scsi_debug.c sg_miter_start(&piter, scsi_prot_sglist(SCpnt), SCpnt 2831 drivers/scsi/scsi_debug.c scsi_prot_sg_count(SCpnt), SCpnt 2833 drivers/scsi/scsi_debug.c sg_miter_start(&diter, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), SCpnt 2875 drivers/scsi/scsi_debug.c dif_copy_prot(SCpnt, start_sec, sectors, false); SCpnt 4021 drivers/scsi/scsi_debug.c static int scsi_debug_abort(struct scsi_cmnd *SCpnt) SCpnt 4026 drivers/scsi/scsi_debug.c if (SCpnt) { SCpnt 4027 drivers/scsi/scsi_debug.c ok = stop_queued_cmnd(SCpnt); SCpnt 4028 drivers/scsi/scsi_debug.c if (SCpnt->device && (SDEBUG_OPT_ALL_NOISE & sdebug_opts)) SCpnt 4029 drivers/scsi/scsi_debug.c sdev_printk(KERN_INFO, SCpnt->device, SCpnt 4036 drivers/scsi/scsi_debug.c static int scsi_debug_device_reset(struct scsi_cmnd *SCpnt) SCpnt 4039 drivers/scsi/scsi_debug.c if (SCpnt && SCpnt->device) { SCpnt 4040 drivers/scsi/scsi_debug.c struct scsi_device *sdp = SCpnt->device; SCpnt 4052 drivers/scsi/scsi_debug.c static int scsi_debug_target_reset(struct scsi_cmnd *SCpnt) SCpnt 4061 drivers/scsi/scsi_debug.c if (!SCpnt) SCpnt 4063 drivers/scsi/scsi_debug.c sdp = SCpnt->device; SCpnt 4088 drivers/scsi/scsi_debug.c static int scsi_debug_bus_reset(struct scsi_cmnd *SCpnt) SCpnt 4097 drivers/scsi/scsi_debug.c if (!(SCpnt && SCpnt->device)) SCpnt 4099 drivers/scsi/scsi_debug.c sdp = SCpnt->device; SCpnt 4121 drivers/scsi/scsi_debug.c static int scsi_debug_host_reset(struct scsi_cmnd *SCpnt) SCpnt 4128 drivers/scsi/scsi_debug.c if ((SCpnt->device) && (SDEBUG_OPT_ALL_NOISE & sdebug_opts)) SCpnt 4129 drivers/scsi/scsi_debug.c sdev_printk(KERN_INFO, SCpnt->device, "%s\n", __func__); SCpnt 4141 drivers/scsi/scsi_debug.c sdev_printk(KERN_INFO, SCpnt->device, SCpnt 118 drivers/scsi/sd.c static blk_status_t sd_init_command(struct scsi_cmnd *SCpnt); SCpnt 119 drivers/scsi/sd.c static void sd_uninit_command(struct scsi_cmnd *SCpnt); SCpnt 1303 drivers/scsi/sd.c static void sd_uninit_command(struct scsi_cmnd *SCpnt) SCpnt 1305 drivers/scsi/sd.c struct request *rq = SCpnt->request; SCpnt 1311 drivers/scsi/sd.c if (SCpnt->cmnd != scsi_req(rq)->cmd) { SCpnt 1312 drivers/scsi/sd.c cmnd = SCpnt->cmnd; SCpnt 1313 drivers/scsi/sd.c SCpnt->cmnd = NULL; SCpnt 1314 drivers/scsi/sd.c SCpnt->cmd_len = 0; SCpnt 1956 drivers/scsi/sd.c static int sd_done(struct scsi_cmnd *SCpnt) SCpnt 1958 drivers/scsi/sd.c int result = SCpnt->result; SCpnt 1959 drivers/scsi/sd.c unsigned int good_bytes = result ? 0 : scsi_bufflen(SCpnt); SCpnt 1960 drivers/scsi/sd.c unsigned int sector_size = SCpnt->device->sector_size; SCpnt 1963 drivers/scsi/sd.c struct scsi_disk *sdkp = scsi_disk(SCpnt->request->rq_disk); SCpnt 1964 drivers/scsi/sd.c struct request *req = SCpnt->request; SCpnt 1976 drivers/scsi/sd.c scsi_set_resid(SCpnt, 0); SCpnt 1979 drivers/scsi/sd.c scsi_set_resid(SCpnt, blk_rq_bytes(req)); SCpnt 1988 drivers/scsi/sd.c resid = scsi_get_resid(SCpnt); SCpnt 1993 drivers/scsi/sd.c scsi_print_command(SCpnt); SCpnt 1994 drivers/scsi/sd.c resid = min(scsi_bufflen(SCpnt), SCpnt 1996 drivers/scsi/sd.c scsi_set_resid(SCpnt, resid); SCpnt 2001 drivers/scsi/sd.c sense_valid = scsi_command_normalize_sense(SCpnt, &sshdr); SCpnt 2014 drivers/scsi/sd.c good_bytes = sd_completed_bytes(SCpnt); SCpnt 2017 drivers/scsi/sd.c good_bytes = scsi_bufflen(SCpnt); SCpnt 2024 drivers/scsi/sd.c SCpnt->result = 0; SCpnt 2025 drivers/scsi/sd.c memset(SCpnt->sense_buffer, 0, SCSI_SENSE_BUFFERSIZE); SCpnt 2029 drivers/scsi/sd.c good_bytes = sd_completed_bytes(SCpnt); SCpnt 2034 drivers/scsi/sd.c good_bytes = sd_completed_bytes(SCpnt); SCpnt 2038 drivers/scsi/sd.c switch (SCpnt->cmnd[0]) { SCpnt 2044 drivers/scsi/sd.c if (SCpnt->cmnd[1] & 8) { /* UNMAP */ SCpnt 2061 drivers/scsi/sd.c sd_zbc_complete(SCpnt, good_bytes, &sshdr); SCpnt 2063 drivers/scsi/sd.c SCSI_LOG_HLCOMPLETE(1, scmd_printk(KERN_INFO, SCpnt, SCpnt 2065 drivers/scsi/sd.c good_bytes, scsi_bufflen(SCpnt))); SCpnt 136 drivers/scsi/sgiwd93.c static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, SCpnt 142 drivers/scsi/sgiwd93.c if (!SCpnt) SCpnt 145 drivers/scsi/sgiwd93.c if (SCpnt->SCp.ptr == NULL || SCpnt->SCp.this_residual == 0) SCpnt 148 drivers/scsi/sgiwd93.c hregs = (struct hpc3_scsiregs *) SCpnt->device->host->base; SCpnt 159 drivers/scsi/sgiwd93.c dma_unmap_single(hdata->dev, SCpnt->SCp.dma_handle, SCpnt 160 drivers/scsi/sgiwd93.c SCpnt->SCp.this_residual, SCpnt 84 drivers/scsi/sr.c static blk_status_t sr_init_command(struct scsi_cmnd *SCpnt); SCpnt 320 drivers/scsi/sr.c static int sr_done(struct scsi_cmnd *SCpnt) SCpnt 322 drivers/scsi/sr.c int result = SCpnt->result; SCpnt 323 drivers/scsi/sr.c int this_count = scsi_bufflen(SCpnt); SCpnt 327 drivers/scsi/sr.c struct scsi_cd *cd = scsi_cd(SCpnt->request->rq_disk); SCpnt 330 drivers/scsi/sr.c scmd_printk(KERN_INFO, SCpnt, "done: %x\n", result); SCpnt 340 drivers/scsi/sr.c (SCpnt->sense_buffer[0] & 0x7f) == 0x70) { /* Sense current */ SCpnt 341 drivers/scsi/sr.c switch (SCpnt->sense_buffer[2]) { SCpnt 345 drivers/scsi/sr.c if (!(SCpnt->sense_buffer[0] & 0x90)) SCpnt 347 drivers/scsi/sr.c error_sector = (SCpnt->sense_buffer[3] << 24) | SCpnt 348 drivers/scsi/sr.c (SCpnt->sense_buffer[4] << 16) | SCpnt 349 drivers/scsi/sr.c (SCpnt->sense_buffer[5] << 8) | SCpnt 350 drivers/scsi/sr.c SCpnt->sense_buffer[6]; SCpnt 351 drivers/scsi/sr.c if (SCpnt->request->bio != NULL) SCpnt 353 drivers/scsi/sr.c bio_sectors(SCpnt->request->bio); SCpnt 360 drivers/scsi/sr.c blk_rq_pos(SCpnt->request)) << 9; SCpnt 388 drivers/scsi/sr.c static blk_status_t sr_init_command(struct scsi_cmnd *SCpnt) SCpnt 392 drivers/scsi/sr.c struct request *rq = SCpnt->request; SCpnt 395 drivers/scsi/sr.c ret = scsi_init_io(SCpnt); SCpnt 404 drivers/scsi/sr.c SCSI_LOG_HLQUEUE(1, scmd_printk(KERN_INFO, SCpnt, SCpnt 408 drivers/scsi/sr.c SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt, SCpnt 410 drivers/scsi/sr.c SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt, SCpnt 411 drivers/scsi/sr.c "Retry with 0x%p\n", SCpnt)); SCpnt 432 drivers/scsi/sr.c scmd_printk(KERN_INFO, SCpnt, SCpnt 437 drivers/scsi/sr.c scmd_printk(KERN_ERR, SCpnt, "bad sector size %d\n", s_size); SCpnt 445 drivers/scsi/sr.c SCpnt->cmnd[0] = WRITE_10; SCpnt 449 drivers/scsi/sr.c SCpnt->cmnd[0] = READ_10; SCpnt 458 drivers/scsi/sr.c int i, size = 0, sg_count = scsi_sg_count(SCpnt); SCpnt 460 drivers/scsi/sr.c scsi_for_each_sg(SCpnt, sg, sg_count, i) SCpnt 463 drivers/scsi/sr.c if (size != scsi_bufflen(SCpnt)) { SCpnt 464 drivers/scsi/sr.c scmd_printk(KERN_ERR, SCpnt, SCpnt 466 drivers/scsi/sr.c size, scsi_bufflen(SCpnt)); SCpnt 467 drivers/scsi/sr.c if (scsi_bufflen(SCpnt) > size) SCpnt 468 drivers/scsi/sr.c SCpnt->sdb.length = size; SCpnt 476 drivers/scsi/sr.c (scsi_bufflen(SCpnt) % s_size)) { SCpnt 477 drivers/scsi/sr.c scmd_printk(KERN_NOTICE, SCpnt, "unaligned transfer\n"); SCpnt 481 drivers/scsi/sr.c this_count = (scsi_bufflen(SCpnt) >> 9) / (s_size >> 9); SCpnt 484 drivers/scsi/sr.c SCSI_LOG_HLQUEUE(2, scmd_printk(KERN_INFO, SCpnt, SCpnt 490 drivers/scsi/sr.c SCpnt->cmnd[1] = 0; SCpnt 495 drivers/scsi/sr.c SCpnt->sdb.length = this_count * s_size; SCpnt 498 drivers/scsi/sr.c SCpnt->cmnd[2] = (unsigned char) (block >> 24) & 0xff; SCpnt 499 drivers/scsi/sr.c SCpnt->cmnd[3] = (unsigned char) (block >> 16) & 0xff; SCpnt 500 drivers/scsi/sr.c SCpnt->cmnd[4] = (unsigned char) (block >> 8) & 0xff; SCpnt 501 drivers/scsi/sr.c SCpnt->cmnd[5] = (unsigned char) block & 0xff; SCpnt 502 drivers/scsi/sr.c SCpnt->cmnd[6] = SCpnt->cmnd[9] = 0; SCpnt 503 drivers/scsi/sr.c SCpnt->cmnd[7] = (unsigned char) (this_count >> 8) & 0xff; SCpnt 504 drivers/scsi/sr.c SCpnt->cmnd[8] = (unsigned char) this_count & 0xff; SCpnt 511 drivers/scsi/sr.c SCpnt->transfersize = cd->device->sector_size; SCpnt 512 drivers/scsi/sr.c SCpnt->underflow = this_count << 9; SCpnt 513 drivers/scsi/sr.c SCpnt->allowed = MAX_RETRIES; SCpnt 1565 drivers/scsi/wd33c93.c wd33c93_host_reset(struct scsi_cmnd * SCpnt) SCpnt 1571 drivers/scsi/wd33c93.c instance = SCpnt->device->host; SCpnt 1596 drivers/scsi/wd33c93.c SCpnt->result = DID_RESET << 16; SCpnt 193 drivers/scsi/wd33c93.h typedef int (*dma_setup_t) (struct scsi_cmnd *SCpnt, int dir_in); SCpnt 195 drivers/scsi/wd33c93.h struct scsi_cmnd *SCpnt, int status);