taglinefilesource code
instance1177drivers/scsi/53c7,8xx.cstruct Scsi_Host *instance;
instance1259drivers/scsi/53c7,8xx.cinstance = scsi_register (tpnt, size);
instance1260drivers/scsi/53c7,8xx.cif (!instance)
instance1268drivers/scsi/53c7,8xx.cinstance->hostdata;
instance1271drivers/scsi/53c7,8xx.chostdata = (struct NCR53c7x0_hostdata *) instance->hostdata;
instance1294drivers/scsi/53c7,8xx.cinstance->base = (unsigned char *) (unsigned long) base;
instance1305drivers/scsi/53c7,8xx.cinstance->io_port = io_port;
instance1314drivers/scsi/53c7,8xx.cinstance->host_no);
instance1315drivers/scsi/53c7,8xx.cscsi_unregister (instance);
instance1318drivers/scsi/53c7,8xx.cinstance->irq = irq;
instance1319drivers/scsi/53c7,8xx.cinstance->dma_channel = dma;
instance1361drivers/scsi/53c7,8xx.creturn NCR53c7x0_init(instance);
instance3063drivers/scsi/53c7,8xx.cinstance->hostdata;
instance3068drivers/scsi/53c7,8xx.cfor (bp = (struct NCR53c7x0_break *) instance->breakpoints,
instance3069drivers/scsi/53c7,8xx.cprev = (struct NCR53c7x0_break **) &instance->breakpoints;
instance3248drivers/scsi/53c7,8xx.cstruct Scsi_Host *instance;
instance121drivers/scsi/AM53C974.cstatic void AM53C974_print_pci(struct Scsi_Host *instance);
instance122drivers/scsi/AM53C974.cstatic void AM53C974_print_phase(struct Scsi_Host *instance);
instance123drivers/scsi/AM53C974.cstatic void AM53C974_print_queues(struct Scsi_Host *instance);
instance125drivers/scsi/AM53C974.cstatic void AM53C974_print(struct Scsi_Host *instance);
instance130drivers/scsi/AM53C974.cstatic void AM53C974_config_after_reset(struct Scsi_Host *instance);
instance135drivers/scsi/AM53C974.cstatic void AM53C974_intr_disconnect(struct Scsi_Host *instance); 
instance136drivers/scsi/AM53C974.cstatic int AM53C974_sync_neg(struct Scsi_Host *instance, int target, unsigned char *msg);
instance137drivers/scsi/AM53C974.cstatic __inline__ void AM53C974_set_async(struct Scsi_Host *instance, int target);
instance138drivers/scsi/AM53C974.cstatic __inline__ void AM53C974_set_sync(struct Scsi_Host *instance, int target);
instance139drivers/scsi/AM53C974.cstatic void AM53C974_information_transfer(struct Scsi_Host *instance, 
instance143drivers/scsi/AM53C974.cstatic int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd *cmd, unsigned char msg);
instance144drivers/scsi/AM53C974.cstatic void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag);
instance145drivers/scsi/AM53C974.cstatic void AM53C974_intr_reselect(struct Scsi_Host *instance, unsigned char statreg);
instance146drivers/scsi/AM53C974.cstatic  __inline__ void AM53C974_transfer_dma(struct Scsi_Host *instance, short dir,
instance148drivers/scsi/AM53C974.cstatic void AM53C974_dma_blast(struct Scsi_Host *instance, unsigned char dmastatus, 
instance150drivers/scsi/AM53C974.cstatic void AM53C974_intr_bus_reset(struct Scsi_Host *instance);
instance169drivers/scsi/AM53C974.cstatic void AM53C974_print_pci(struct Scsi_Host *instance)
instance178drivers/scsi/AM53C974.cfor (i = 0; i < 8; i++) *(scratch + i) = AM53C974_PCIREG_READ_WORD(instance, PCI_SCRATCH_REG_0 + 2*i);
instance179drivers/scsi/AM53C974.cvendor_id = AM53C974_PCIREG_READ_WORD(instance, PCI_VENDOR_ID);
instance180drivers/scsi/AM53C974.cdevice_id = AM53C974_PCIREG_READ_WORD(instance, PCI_DEVICE_ID);
instance181drivers/scsi/AM53C974.ccommand   = AM53C974_PCIREG_READ_WORD(instance, PCI_COMMAND);
instance182drivers/scsi/AM53C974.cstatus    = AM53C974_PCIREG_READ_WORD(instance, PCI_STATUS);
instance183drivers/scsi/AM53C974.cclass_revision = AM53C974_PCIREG_READ_DWORD(instance, PCI_CLASS_REVISION);
instance184drivers/scsi/AM53C974.ccache_line_size = AM53C974_PCIREG_READ_BYTE(instance, PCI_CACHE_LINE_SIZE);
instance185drivers/scsi/AM53C974.clatency_timer = AM53C974_PCIREG_READ_BYTE(instance, PCI_LATENCY_TIMER);
instance186drivers/scsi/AM53C974.cheader_type = AM53C974_PCIREG_READ_BYTE(instance, PCI_HEADER_TYPE);
instance187drivers/scsi/AM53C974.cbase = AM53C974_PCIREG_READ_DWORD(instance, PCI_BASE_ADDRESS_0);
instance188drivers/scsi/AM53C974.cirq = AM53C974_PCIREG_READ_BYTE(instance, PCI_INTERRUPT_LINE);
instance223drivers/scsi/AM53C974.cstatic void AM53C974_print_phase(struct Scsi_Host *instance)
instance228drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance235drivers/scsi/AM53C974.cprintk("scsi%d : phase %s, latched at end of last command\n", instance->host_no, phases[i].name);
instance237drivers/scsi/AM53C974.cprintk("scsi%d : phase %s, real time\n", instance->host_no, phases[i].name);
instance247drivers/scsi/AM53C974.cstatic void AM53C974_print_queues(struct Scsi_Host *instance)
instance249drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance257drivers/scsi/AM53C974.cprintk ("scsi%d: no currently connected command\n", instance->host_no); } 
instance261drivers/scsi/AM53C974.cprintk ("scsi%d: no currently arbitrating command\n", instance->host_no); } 
instance265drivers/scsi/AM53C974.cprintk ("scsi%d: issue_queue ", instance->host_no);
instance273drivers/scsi/AM53C974.cprintk ("scsi%d: disconnected_queue ", instance->host_no);
instance293drivers/scsi/AM53C974.cstatic void AM53C974_print(struct Scsi_Host *instance)
instance298drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance594drivers/scsi/AM53C974.cstruct Scsi_Host         *instance, *search;
instance602drivers/scsi/AM53C974.cinstance = scsi_register(tpnt, sizeof(struct AM53C974_hostdata));
instance603drivers/scsi/AM53C974.chostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance604drivers/scsi/AM53C974.cinstance->base = NULL;
instance605drivers/scsi/AM53C974.cinstance->io_port = pci_config._base0 & (pci_config._base0 & 0x1 ? 
instance607drivers/scsi/AM53C974.cinstance->irq = pci_config._int_line;
instance608drivers/scsi/AM53C974.cinstance->dma_channel = -1;
instance609drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance612drivers/scsi/AM53C974.cinstance->this_id = AM53C974_SCSI_ID;
instance613drivers/scsi/AM53C974.cAM53C974_write_8(CNTLREG1, instance->this_id & CNTLREG1_SID);
instance615drivers/scsi/AM53C974.cinstance->this_id = AM53C974_read_8(CNTLREG1) & CNTLREG1_SID;
instance616drivers/scsi/AM53C974.cif (instance->this_id != 7) 
instance618drivers/scsi/AM53C974.cinstance->host_no, instance->this_id);
instance635drivers/scsi/AM53C974.cif (overrides[i].host_scsi_id == instance->this_id) {
instance656drivers/scsi/AM53C974.c(search->irq != instance->irq) || (search == instance) );
instance659drivers/scsi/AM53C974.cif (request_irq(instance->irq, AM53C974_intr, SA_INTERRUPT, "AM53C974", NULL)) {
instance660drivers/scsi/AM53C974.cprintk("scsi%d: IRQ%d not free, detaching\n", instance->host_no, instance->irq);
instance661drivers/scsi/AM53C974.cscsi_unregister(instance);
instance666drivers/scsi/AM53C974.cinstance->host_no, search->host_no); }
instance669drivers/scsi/AM53C974.cthe_template = instance->hostt;
instance670drivers/scsi/AM53C974.cfirst_instance = instance; }
instance676drivers/scsi/AM53C974.cAM53C974_write_8(CNTLREG1, CNTLREG1_DISR | instance->this_id); 
instance679drivers/scsi/AM53C974.cAM53C974_config_after_reset(instance);
instance693drivers/scsi/AM53C974.cstatic void AM53C974_config_after_reset(struct Scsi_Host *instance)
instance696drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance706drivers/scsi/AM53C974.cAM53C974_write_8(CNTLREG1, (DEF_ETM<<7) | CNTLREG1_DISR | (DEF_PERE<<4) | instance->this_id);
instance721drivers/scsi/AM53C974.cconst char *AM53C974_info(struct Scsi_Host *instance)
instance727drivers/scsi/AM53C974.cinstance->io_port, instance->irq);
instance814drivers/scsi/AM53C974.cstruct Scsi_Host         *instance = cmd->host;
instance815drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance820drivers/scsi/AM53C974.cDEB_QUEUE(printk("scsi%d: AM53C974_queue_command called\n", instance->host_no));
instance844drivers/scsi/AM53C974.cDEB_QUEUE(printk("scsi%d : command added to %s of queue\n", instance->host_no,
instance867drivers/scsi/AM53C974.cstruct Scsi_Host         *instance;
instance878drivers/scsi/AM53C974.cfor (instance = first_instance; instance && instance->hostt == the_template;
instance879drivers/scsi/AM53C974.cinstance = instance->next) {
instance880drivers/scsi/AM53C974.chostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance881drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance931drivers/scsi/AM53C974.cstruct Scsi_Host         *instance;
instance936drivers/scsi/AM53C974.cfor (instance = first_instance; instance; instance = instance->next)
instance937drivers/scsi/AM53C974.cif ((instance->irq == irq) && (instance->hostt == the_template)) goto FOUND;
instance943drivers/scsi/AM53C974.chostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance944drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance956drivers/scsi/AM53C974.cinstance->host_no, dmastatus);
instance960drivers/scsi/AM53C974.cpanic("scsi%d: cannot recover\n", instance->host_no); }
instance992drivers/scsi/AM53C974.cAM53C974_information_transfer(instance, statreg, isreg, instreg, cfifo,
instance1009drivers/scsi/AM53C974.cinstance->host_no, statreg, isreg, instreg, cfifo));
instance1016drivers/scsi/AM53C974.cprintk("scsi%d : PARITY error\n", instance->host_no);
instance1025drivers/scsi/AM53C974.cprintk("scsi%d : ILLEGAL OPERATION error\n", instance->host_no);
instance1035drivers/scsi/AM53C974.cAM53C974_intr_bus_reset(instance);
instance1057drivers/scsi/AM53C974.cprintk("scsi%d: Invalid command interrupt\n", instance->host_no);
instance1061drivers/scsi/AM53C974.cpanic("scsi%d: cannot recover\n", instance->host_no); }
instance1067drivers/scsi/AM53C974.cAM53C974_intr_disconnect(instance);
instance1075drivers/scsi/AM53C974.cAM53C974_intr_reselect(instance, statreg);
instance1084drivers/scsi/AM53C974.cAM53C974_select(instance, (Scsi_Cmnd *)hostdata->sel_cmd,
instance1088drivers/scsi/AM53C974.cAM53C974_set_sync(instance, hostdata->sel_cmd->target);
instance1121drivers/scsi/AM53C974.cDEB(printk("scsi%d: REQUEST_SENSE command with nonzero use_sg\n", instance->host_no));
instance1126drivers/scsi/AM53C974.cAM53C974_information_transfer(instance, statreg, isreg, instreg, cfifo, dmastatus);
instance1132drivers/scsi/AM53C974.cAM53C974_information_transfer(instance, statreg, isreg, instreg, cfifo, dmastatus);
instance1142drivers/scsi/AM53C974.cAM53C974_information_transfer(instance, statreg, isreg, instreg, cfifo, dmastatus);
instance1145drivers/scsi/AM53C974.cprintk("scsi%d: weird: service request when no command connected\n", instance->host_no);
instance1165drivers/scsi/AM53C974.cstatic void AM53C974_intr_disconnect(struct Scsi_Host *instance) 
instance1168drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance1170drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance1188drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
instance1190drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
instance1198drivers/scsi/AM53C974.c"  the disconnected_queue\n", instance->host_no, cmd->target,
instance1200drivers/scsi/AM53C974.cDEB_QUEUE(AM53C974_print_queues(instance));
instance1222drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
instance1224drivers/scsi/AM53C974.cinstance->host_no, cmd->SCp.phase, cmd->target, cmd->SCp.this_residual, cmd->SCp.buffers_residual,
instance1255drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target); 
instance1270drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target); 
instance1290drivers/scsi/AM53C974.cstatic int AM53C974_sync_neg(struct Scsi_Host *instance, int target, unsigned char *msg) 
instance1293drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance1295drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance1337drivers/scsi/AM53C974.cstatic __inline__ void AM53C974_set_async(struct Scsi_Host *instance, int target)
instance1340drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance1341drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance1357drivers/scsi/AM53C974.cstatic __inline__ void AM53C974_set_sync(struct Scsi_Host *instance, int target)
instance1360drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance1361drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance1385drivers/scsi/AM53C974.cstatic void AM53C974_information_transfer(struct Scsi_Host *instance, 
instance1391drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance1394drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance1422drivers/scsi/AM53C974.cAM53C974_transfer_dma(instance, statreg & STATREG_IO,
instance1433drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
instance1435drivers/scsi/AM53C974.cAM53C974_dma_blast(instance, dmastatus, statreg);
instance1450drivers/scsi/AM53C974.cret = AM53C974_message(instance, cmd, cmd->SCp.Message); }
instance1457drivers/scsi/AM53C974.cret = AM53C974_message(instance, cmd, cmd->SCp.Message);
instance1460drivers/scsi/AM53C974.cAM53C974_set_sync(instance, cmd->target);
instance1466drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
instance1489drivers/scsi/AM53C974.cAM53C974_set_sync(instance, cmd->target);
instance1494drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
instance1498drivers/scsi/AM53C974.cAM53C974_set_sync(instance, cmd->target);
instance1504drivers/scsi/AM53C974.cAM53C974_dma_blast(instance, dmastatus, statreg);
instance1505drivers/scsi/AM53C974.cAM53C974_set_async(instance, cmd->target);
instance1544drivers/scsi/AM53C974.cstatic int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd *cmd,
instance1555drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance1556drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance1573drivers/scsi/AM53C974.cinstance->host_no, cmd->target, cmd->lun));
instance1578drivers/scsi/AM53C974.cinstance->host_no, cmd->target, cmd->lun);
instance1594drivers/scsi/AM53C974.cinstance->host_no, cmd->target, cmd->lun));
instance1604drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
instance1631drivers/scsi/AM53C974.cDEB_MSG(printk("scsi%d : performing request sense\n", instance->host_no));
instance1645drivers/scsi/AM53C974.cDEB_MSG(printk("scsi%d : REQUEST SENSE added to head of issue queue\n",instance->host_no));
instance1654drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
instance1679drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
instance1688drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
instance1706drivers/scsi/AM53C974.cinstance->host_no, cmd->cmnd[0], cmd->target, cmd->lun));
instance1737drivers/scsi/AM53C974.cprintk("scsi%d: received extended message: ", instance->host_no);
instance1746drivers/scsi/AM53C974.cret = AM53C974_sync_neg(instance, cmd->target, extended_msg);
instance1753drivers/scsi/AM53C974.cprintk("scsi%d: unknown message 0x%02x received\n",instance->host_no, msg);
instance1786drivers/scsi/AM53C974.cstatic void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag)
instance1789drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance1792drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance1796drivers/scsi/AM53C974.cprintk("scsi%d: select error; %d residual bytes in FIFO\n", instance->host_no, cfifo);
instance1869drivers/scsi/AM53C974.cstatic void AM53C974_intr_reselect(struct Scsi_Host *instance, unsigned char statreg)
instance1872drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance1878drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance1895drivers/scsi/AM53C974.cprintk("scsi %d: error: %d bytes in fifo, 2 expected\n", instance->host_no, cfifo);
instance1901drivers/scsi/AM53C974.cif (!(t & (1 << instance->this_id))) {
instance1902drivers/scsi/AM53C974.cprintk("scsi %d: error: invalid host id\n", instance->host_no);
instance1905drivers/scsi/AM53C974.ct ^= (1 << instance->this_id);
instance1907drivers/scsi/AM53C974.cDEB_RESEL(printk("scsi %d: reselect; target: %d\n", instance->host_no, target));
instance1912drivers/scsi/AM53C974.cprintk("scsi %d: error: upon reselection interrupt not in MSGIN\n", instance->host_no);
instance1918drivers/scsi/AM53C974.cprintk("scsi%d: error: expecting IDENTIFY message, got ", instance->host_no);
instance1955drivers/scsi/AM53C974.cinstance->host_no, target, lun, tag);
instance1958drivers/scsi/AM53C974.cinstance->host_no, target, lun);
instance1974drivers/scsi/AM53C974.cinstance->host_no, target, tmp->lun, tmp->tag));
instance1975drivers/scsi/AM53C974.cAM53C974_set_sync(instance, target);
instance1996drivers/scsi/AM53C974.cstatic __inline__ void AM53C974_transfer_dma(struct Scsi_Host *instance, short dir,
instance2000drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance2025drivers/scsi/AM53C974.cstatic void AM53C974_dma_blast(struct Scsi_Host *instance, unsigned char dmastatus,
instance2029drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance2033drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance2072drivers/scsi/AM53C974.cstatic void AM53C974_intr_bus_reset(struct Scsi_Host *instance)
instance2076drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance2099drivers/scsi/AM53C974.cstruct Scsi_Host         *instance = cmd->host;
instance2100drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance2107drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance2110drivers/scsi/AM53C974.cDEB_ABORT(printk("scsi%d : AM53C974_abort called -- trouble starts!!\n", instance->host_no));
instance2111drivers/scsi/AM53C974.cDEB_ABORT(AM53C974_print(instance));
instance2118drivers/scsi/AM53C974.cDEB_ABORT(printk("scsi%d: aborting connected command\n", instance->host_no));
instance2131drivers/scsi/AM53C974.cDEB_ABORT(printk("scsi%d : abort removed command from issue queue.\n", instance->host_no));
instance2142drivers/scsi/AM53C974.cprintk("scsi%d : LOOP\n", instance->host_no); 
instance2156drivers/scsi/AM53C974.cDEB_ABORT(printk("scsi%d : abort failed, other command connected.\n", instance->host_no));
instance2167drivers/scsi/AM53C974.cDEB_ABORT(printk("scsi%d: aborting disconnected command\n", instance->host_no));
instance2184drivers/scsi/AM53C974.cDEB_ABORT(printk("scsi%d : abort failed, command not found.\n", instance->host_no));
instance2202drivers/scsi/AM53C974.cstruct Scsi_Host         *instance = cmd->host;
instance2203drivers/scsi/AM53C974.cstruct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata;
instance2204drivers/scsi/AM53C974.cAM53C974_setio(instance);
instance2210drivers/scsi/AM53C974.cAM53C974_print(instance);
instance2234drivers/scsi/AM53C974.cAM53C974_write_8(CNTLREG1, CNTLREG1_DISR | instance->this_id); /* disable interrupt upon SCSI RESET */
instance2237drivers/scsi/AM53C974.cAM53C974_config_after_reset(instance);
instance296drivers/scsi/AM53C974.h#define AM53C974_setio(instance)  io_port = instance->io_port
instance325drivers/scsi/AM53C974.h#define AM53C974_PCIREG_READ_BYTE(instance,a)     ( inb((a) + (instance)->io_port) )
instance326drivers/scsi/AM53C974.h#define AM53C974_PCIREG_READ_WORD(instance,a)     ( inw((a) + (instance)->io_port) )
instance327drivers/scsi/AM53C974.h#define AM53C974_PCIREG_READ_DWORD(instance,a)    ( inl((a) + (instance)->io_port) )
instance328drivers/scsi/AM53C974.h#define AM53C974_PCIREG_WRITE_BYTE(instance,x,a)  ( outb((x), (a) + (instance)->io_port) )
instance329drivers/scsi/AM53C974.h#define AM53C974_PCIREG_WRITE_WORD(instance,x,a)  ( outw((x), (a) + (instance)->io_port) )
instance330drivers/scsi/AM53C974.h#define AM53C974_PCIREG_WRITE_DWORD(instance,x,a) ( outl((x), (a) + (instance)->io_port) )
instance358drivers/scsi/NCR5380.cstatic void NCR5380_print(struct Scsi_Host *instance) {
instance361drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance404drivers/scsi/NCR5380.cstatic void NCR5380_print_phase(struct Scsi_Host *instance) {
instance408drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance413drivers/scsi/NCR5380.cinstance->host_no);
instance417drivers/scsi/NCR5380.cprintk("scsi%d : phase %s\n", instance->host_no, phases[i].name);
instance538drivers/scsi/NCR5380.cstatic int NCR5380_set_timer (struct Scsi_Host *instance) {
instance542drivers/scsi/NCR5380.cif (((struct NCR5380_hostdata *) (instance->host_data))->next_timer) {
instance550drivers/scsi/NCR5380.cif (instance->time_expires < tmp->time_expires) 
instance553drivers/scsi/NCR5380.cinstance->next_timer = tmp;
instance554drivers/scsi/NCR5380.c*prev = instance;
instance563drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance566drivers/scsi/NCR5380.cinstance = ((NCR5380_hostdata *) expires_first->host_data)->
instance572drivers/scsi/NCR5380.cexpires_first = instance;
instance623drivers/scsi/NCR5380.cstatic int NCR5380_probe_irq (struct Scsi_Host *instance, int possible) {
instance626drivers/scsi/NCR5380.cinstance->hostdata;
instance629drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance678drivers/scsi/NCR5380.cstatic void NCR5380_print_options (struct Scsi_Host *instance) {
instance712drivers/scsi/NCR5380.cif (((struct NCR5380_hostdata *)instance->hostdata)->flags & FLAG_NCR53C400) {
instance726drivers/scsi/NCR5380.cstatic void NCR5380_print_status (struct Scsi_Host *instance) {
instance728drivers/scsi/NCR5380.cinstance->hostdata;
instance736drivers/scsi/NCR5380.cNCR5380_print (instance);
instance737drivers/scsi/NCR5380.cNCR5380_print_phase (instance);
instance743drivers/scsi/NCR5380.cinstance->host_no);
instance748drivers/scsi/NCR5380.cprintk ("scsi%d: issue_queue\n", instance->host_no);
instance754drivers/scsi/NCR5380.cprintk ("scsi%d: disconnected_queue\n", instance->host_no);
instance777drivers/scsi/NCR5380.cstatic void NCR5380_init (struct Scsi_Host *instance, int flags) {
instance782drivers/scsi/NCR5380.cinstance->hostdata;
instance791drivers/scsi/NCR5380.cinstance->NCR5380_instance_name += NCR53C400_address_adjust;
instance794drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance799drivers/scsi/NCR5380.chostdata->id_mask = 1 << instance->this_id;
instance831drivers/scsi/NCR5380.cthe_template = instance->hostt;
instance832drivers/scsi/NCR5380.cfirst_instance = instance;
instance842drivers/scsi/NCR5380.cif ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) 
instance845drivers/scsi/NCR5380.c"         be incorrectly cleared.\n", instance->host_no);
instance878drivers/scsi/NCR5380.cinstance->host_no);
instance884drivers/scsi/NCR5380.cinstance->host_no);
instance885drivers/scsi/NCR5380.cdo_abort (instance);
instance889drivers/scsi/NCR5380.cinstance->host_no);
instance890drivers/scsi/NCR5380.cdo_reset (instance);
instance894drivers/scsi/NCR5380.cinstance->host_no);
instance922drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
instance924drivers/scsi/NCR5380.cinstance->hostdata;
instance933drivers/scsi/NCR5380.cinstance->host_no);
instance999drivers/scsi/NCR5380.cprintk("scsi%d : command added to %s of queue\n", instance->host_no,
instance1022drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance1041drivers/scsi/NCR5380.cfor (instance = first_instance; instance && 
instance1042drivers/scsi/NCR5380.cinstance->hostt == the_template; instance=instance->next) {
instance1043drivers/scsi/NCR5380.chostdata = (struct NCR5380_hostdata *) instance->hostdata;
instance1047drivers/scsi/NCR5380.cprintk("scsi%d : not connected\n", instance->host_no);
instance1089drivers/scsi/NCR5380.cinstance->host_no, tmp->target, tmp->lun);
instance1103drivers/scsi/NCR5380.cif (!NCR5380_select(instance, tmp, 
instance1123drivers/scsi/NCR5380.cinstance->host_no);
instance1141drivers/scsi/NCR5380.cinstance->host_no);
instance1143drivers/scsi/NCR5380.cNCR5380_information_transfer(instance);
instance1145drivers/scsi/NCR5380.cprintk("scsi%d : main() : done set false\n", instance->host_no);
instance1168drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance1176drivers/scsi/NCR5380.cfor (instance = first_instance; instance && (instance->hostt == 
instance1177drivers/scsi/NCR5380.cthe_template); instance = instance->next)
instance1178drivers/scsi/NCR5380.cif (instance->irq == irq) {
instance1181drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1186drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1193drivers/scsi/NCR5380.cprintk("scsi%d : SEL interrupt\n", instance->host_no);
instance1195drivers/scsi/NCR5380.cNCR5380_reselect(instance);
instance1199drivers/scsi/NCR5380.cprintk("scsi%d : PARITY interrupt\n", instance->host_no);
instance1204drivers/scsi/NCR5380.cprintk("scsi%d : RESET interrupt\n", instance->host_no);
instance1227drivers/scsi/NCR5380.cinstance->hostno);
instance1229drivers/scsi/NCR5380.ctransfered = (hostdata->dmalen - NCR5380_dma_residual(instance));
instance1324drivers/scsi/NCR5380.cstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd,
instance1328drivers/scsi/NCR5380.cinstance->hostdata;
instance1333drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1337drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1338drivers/scsi/NCR5380.cprintk("scsi%d : starting arbitration, id = %d\n", instance->host_no,
instance1339drivers/scsi/NCR5380.cinstance->this_id);
instance1381drivers/scsi/NCR5380.cprintk("scsi%d : arbitration complete\n", instance->host_no);
instance1402drivers/scsi/NCR5380.cinstance->host_no);
instance1416drivers/scsi/NCR5380.cinstance->host_no);
instance1429drivers/scsi/NCR5380.cprintk("scsi%d : won arbitration\n", instance->host_no);
instance1486drivers/scsi/NCR5380.cprintk("scsi%d : selecting target %d\n", instance->host_no, cmd->target);
instance1508drivers/scsi/NCR5380.cNCR5380_reselect(instance);
instance1510drivers/scsi/NCR5380.cinstance->host_no);
instance1528drivers/scsi/NCR5380.cprintk("scsi%d : weirdness\n", instance->host_no);
instance1532drivers/scsi/NCR5380.cNCR5380_print (instance);
instance1545drivers/scsi/NCR5380.cinstance->host_no);
instance1587drivers/scsi/NCR5380.cinstance->host_no, cmd->target);
instance1589drivers/scsi/NCR5380.ctmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun);
instance1616drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1618drivers/scsi/NCR5380.cprintk("scsi%d : nexus established.\n", instance->host_no);
instance1658drivers/scsi/NCR5380.cstatic int NCR5380_transfer_pio (struct Scsi_Host *instance, 
instance1664drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1668drivers/scsi/NCR5380.cprintk("scsi%d : pio write %d bytes\n", instance->host_no, c);
instance1670drivers/scsi/NCR5380.cprintk("scsi%d : pio read %d bytes\n", instance->host_no, c);
instance1689drivers/scsi/NCR5380.cprintk("scsi%d : REQ detected\n", instance->host_no);
instance1695drivers/scsi/NCR5380.cprintk("scsi%d : phase mismatch\n", instance->host_no);
instance1696drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance1721drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1729drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1736drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1744drivers/scsi/NCR5380.cprintk("scsi%d : req false, handshake complete\n", instance->host_no);
instance1767drivers/scsi/NCR5380.cprintk("scsi%d : residual %d\n", instance->host_no, c);
instance1872drivers/scsi/NCR5380.cstatic int NCR5380_transfer_dma (struct Scsi_Host *instance, 
instance1886drivers/scsi/NCR5380.cinstance->hostdata;
instance1888drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1902drivers/scsi/NCR5380.cinstance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" :
instance1906drivers/scsi/NCR5380.cNCR5380_dma_read_setup(instance, d, c) : 
instance1907drivers/scsi/NCR5380.cNCR5380_dma_write_setup(instance, d, c);
instance1936drivers/scsi/NCR5380.cprintk("scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG));
instance2030drivers/scsi/NCR5380.cinstance->host_no, tmp, NCR5380_read(STATUS_REG));
instance2036drivers/scsi/NCR5380.cresidue = NCR5380_dma_residual(instance);
instance2059drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, phase, &cnt, data);
instance2079drivers/scsi/NCR5380.cif (!(foo = NCR5380_pread(instance, d, c - diff))) {
instance2114drivers/scsi/NCR5380.cif (!(foo = NCR5380_pwrite(instance, d, c))) {
instance2140drivers/scsi/NCR5380.cinstance->host_no);
instance2150drivers/scsi/NCR5380.cinstance->host_no);
instance2190drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance2217drivers/scsi/NCR5380.cstatic void NCR5380_information_transfer (struct Scsi_Host *instance) {
instance2220drivers/scsi/NCR5380.cinstance->hostdata;
instance2230drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2240drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance2261drivers/scsi/NCR5380.cinstance->host_no);
instance2263drivers/scsi/NCR5380.cdo_abort(instance);
instance2280drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
instance2306drivers/scsi/NCR5380.c(transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) {
instance2321drivers/scsi/NCR5380.cif (NCR5380_transfer_dma(instance, &phase,
instance2328drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2333drivers/scsi/NCR5380.cdo_abort(instance);
instance2341drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, 
instance2348drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2370drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2380drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2382drivers/scsi/NCR5380.cdo_abort (instance);
instance2392drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2409drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2439drivers/scsi/NCR5380.cinstance->host_no);
instance2460drivers/scsi/NCR5380.cprintk("scsi%d : REQUEST SENSE added to head of issue queue\n",instance->host_no);
instance2506drivers/scsi/NCR5380.c"  the disconnected_queue\n", instance->host_no, 
instance2521drivers/scsi/NCR5380.cNCR5380_print_status(instance);
instance2558drivers/scsi/NCR5380.cinstance->host_no);
instance2564drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2568drivers/scsi/NCR5380.cinstance->host_no, (int) extended_msg[1],
instance2580drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2584drivers/scsi/NCR5380.cinstance->host_no, len);
instance2596drivers/scsi/NCR5380.cinstance->host_no);
instance2600drivers/scsi/NCR5380.cinstance->host_no, extended_msg[2], extended_msg[1]);
instance2611drivers/scsi/NCR5380.cprintk("scsi%d: rejecting message ", instance->host_no);
instance2616drivers/scsi/NCR5380.cinstance->host_no, tmp, cmd->target, cmd->lun);
instance2619drivers/scsi/NCR5380.cinstance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun);
instance2631drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2653drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, 
instance2659drivers/scsi/NCR5380.cprintk("scsi%d : issued command, sleeping until %ul\n", instance->host_no,
instance2662drivers/scsi/NCR5380.cNCR5380_set_timer (instance);
instance2670drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2674drivers/scsi/NCR5380.cprintk("scsi%d : unknown phase\n", instance->host_no);
instance2676drivers/scsi/NCR5380.cNCR5380_print(instance);
instance2686drivers/scsi/NCR5380.cprintk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no,
instance2689drivers/scsi/NCR5380.cNCR5380_set_timer (instance);
instance2709drivers/scsi/NCR5380.cstatic void NCR5380_reselect (struct Scsi_Host *instance) {
instance2712drivers/scsi/NCR5380.cinstance->hostdata;
instance2723drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2736drivers/scsi/NCR5380.cprintk("scsi%d : reselect\n", instance->host_no);
instance2762drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2767drivers/scsi/NCR5380.cinstance->host_no);
instance2812drivers/scsi/NCR5380.cinstance->host_no, target_mask, lun, tag);
instance2815drivers/scsi/NCR5380.cinstance->host_no, target_mask, lun);
instance2826drivers/scsi/NCR5380.cdo_abort (instance);
instance2831drivers/scsi/NCR5380.cinstance->host_no, tmp->target, tmp->lun, tmp->tag);
instance2849drivers/scsi/NCR5380.cstatic void NCR5380_dma_complete (NCR5380_instance *instance) {
instance2852drivers/scsi/NCR5380.cinstance->hostdata);
instance2854drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2877drivers/scsi/NCR5380.ctransferred = instance->dmalen - NCR5380_dma_residual();
instance2906drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
instance2908drivers/scsi/NCR5380.cinstance->hostdata;
instance2911drivers/scsi/NCR5380.cprintk("scsi%d : aborting command\n", instance->host_no);
instance2914drivers/scsi/NCR5380.cNCR5380_print_status (instance);
instance2916drivers/scsi/NCR5380.cprintk("scsi%d : aborting command\n", instance->host_no);
instance2919drivers/scsi/NCR5380.cNCR5380_print_status (instance);
instance2922drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2925drivers/scsi/NCR5380.cprintk("scsi%d : abort called\n", instance->host_no);
instance2939drivers/scsi/NCR5380.cprintk("scsi%d : aborting connected command\n", instance->host_no);
instance2969drivers/scsi/NCR5380.cprintk("scsi%d : abort going into loop.\n", instance->host_no);
instance2983drivers/scsi/NCR5380.cinstance->host_no);
instance2990drivers/scsi/NCR5380.celse if (prev == tmp) printk("scsi%d : LOOP\n", instance->host_no);
instance3007drivers/scsi/NCR5380.cprintk("scsi%d : abort failed, command connected.\n", instance->host_no);
instance3042drivers/scsi/NCR5380.cprintk("scsi%d : aborting disconnected command.\n", instance->host_no);
instance3045drivers/scsi/NCR5380.cif (NCR5380_select (instance, cmd, (int) cmd->tag)) 
instance3049drivers/scsi/NCR5380.cprintk("scsi%d : nexus reestablished.\n", instance->host_no);
instance3052drivers/scsi/NCR5380.cdo_abort (instance);
instance3082drivers/scsi/NCR5380.c"         before abortion\n", instance->host_no); 
instance283drivers/scsi/NCR5380.hstatic int NCR5380_probe_irq (struct Scsi_Host *instance, int possible);
instance285drivers/scsi/NCR5380.hstatic void NCR5380_init (struct Scsi_Host *instance, int flags);
instance286drivers/scsi/NCR5380.hstatic void NCR5380_information_transfer (struct Scsi_Host *instance);
instance289drivers/scsi/NCR5380.hstatic void NCR5380_print_options (struct Scsi_Host *instance);
instance290drivers/scsi/NCR5380.hstatic void NCR5380_print_phase (struct Scsi_Host *instance);
instance291drivers/scsi/NCR5380.hstatic void NCR5380_print (struct Scsi_Host *instance);
instance306drivers/scsi/NCR5380.hstatic void NCR5380_reselect (struct Scsi_Host *instance);
instance307drivers/scsi/NCR5380.hstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag);
instance309drivers/scsi/NCR5380.hstatic int NCR5380_transfer_dma (struct Scsi_Host *instance,
instance312drivers/scsi/NCR5380.hstatic int NCR5380_transfer_pio (struct Scsi_Host *instance,
instance316drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_setup (struct Scsi_Host *instance,
instance320drivers/scsi/NCR5380.hif (instance->dma_channel <=3) {
instance333drivers/scsi/NCR5380.hpanic ("scsi%d : attempted unaligned DMA transfer\n", instance->host_no);
instance335drivers/scsi/NCR5380.hdisable_dma(instance->dma_channel);
instance336drivers/scsi/NCR5380.hclear_dma_ff(instance->dma_channel);
instance337drivers/scsi/NCR5380.hset_dma_addr(instance->dma_channel, (unsigned int) ptr);
instance338drivers/scsi/NCR5380.hset_dma_count(instance->dma_channel, count);
instance339drivers/scsi/NCR5380.hset_dma_mode(instance->dma_channel, mode);
instance340drivers/scsi/NCR5380.henable_dma(instance->dma_channel);
instance345drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_write_setup (struct Scsi_Host *instance,
instance347drivers/scsi/NCR5380.hreturn NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_WRITE);
instance350drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_read_setup (struct Scsi_Host *instance,
instance352drivers/scsi/NCR5380.hreturn NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_READ);
instance355drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_residual (struct Scsi_Host *instance) {
instance358drivers/scsi/NCR5380.hclear_dma_ff(instance->dma_channel);
instance359drivers/scsi/NCR5380.htmp = get_dma_residue(instance->dma_channel);
instance188drivers/scsi/g_NCR5380.cstruct Scsi_Host *instance;
instance205drivers/scsi/g_NCR5380.cinstance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
instance206drivers/scsi/g_NCR5380.cinstance->NCR5380_instance_name = overrides[current_override].NCR5380_map_name;
instance208drivers/scsi/g_NCR5380.cNCR5380_init(instance, flags);
instance211drivers/scsi/g_NCR5380.cinstance->irq = overrides[current_override].irq;
instance213drivers/scsi/g_NCR5380.cinstance->irq = NCR5380_probe_irq(instance, 0xffff);
instance215drivers/scsi/g_NCR5380.cif (instance->irq != IRQ_NONE) 
instance216drivers/scsi/g_NCR5380.cif (request_irq(instance->irq, generic_NCR5380_intr, SA_INTERRUPT, "NCR5380", NULL)) {
instance218drivers/scsi/g_NCR5380.cinstance->host_no, instance->irq);
instance219drivers/scsi/g_NCR5380.cinstance->irq = IRQ_NONE;
instance222drivers/scsi/g_NCR5380.cif (instance->irq == IRQ_NONE) {
instance223drivers/scsi/g_NCR5380.cprintk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no);
instance224drivers/scsi/g_NCR5380.cprintk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no);
instance227drivers/scsi/g_NCR5380.cprintk("scsi%d : at " STRVAL(NCR5380_map_name) " 0x%x", instance->host_no, (unsigned int)instance->NCR5380_instance_name);
instance228drivers/scsi/g_NCR5380.cif (instance->irq == IRQ_NONE)
instance231drivers/scsi/g_NCR5380.cprintk (" irq %d", instance->irq);
instance234drivers/scsi/g_NCR5380.cNCR5380_print_options(instance);
instance248drivers/scsi/g_NCR5380.cint generic_NCR5380_release_resources(struct Scsi_Host * instance)
instance252drivers/scsi/g_NCR5380.cNCR5380_setup(instance);
instance254drivers/scsi/g_NCR5380.cfree_irq(instance->irq, NULL);
instance291drivers/scsi/g_NCR5380.cstatic inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,    int len)
instance299drivers/scsi/g_NCR5380.cNCR5380_setup(instance);
instance399drivers/scsi/g_NCR5380.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,    int len)
instance407drivers/scsi/g_NCR5380.cNCR5380_setup(instance);
instance145drivers/scsi/g_NCR5380.h#define NCR5380_setup(instance) \
instance146drivers/scsi/g_NCR5380.hNCR5380_map_name = (NCR5380_map_type)((instance)->NCR5380_instance_name)
instance355drivers/scsi/pas16.cstruct Scsi_Host *instance;
instance393drivers/scsi/pas16.cinstance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
instance394drivers/scsi/pas16.cinstance->io_port = io_port;
instance396drivers/scsi/pas16.cNCR5380_init(instance, 0);
instance399drivers/scsi/pas16.cinstance->irq = overrides[current_override].irq;
instance401drivers/scsi/pas16.cinstance->irq = NCR5380_probe_irq(instance, PAS16_IRQS);
instance403drivers/scsi/pas16.cif (instance->irq != IRQ_NONE) 
instance404drivers/scsi/pas16.cif (request_irq(instance->irq, pas16_intr, SA_INTERRUPT, "pas16", NULL)) {
instance406drivers/scsi/pas16.cinstance->host_no, instance->irq);
instance407drivers/scsi/pas16.cinstance->irq = IRQ_NONE;
instance410drivers/scsi/pas16.cif (instance->irq == IRQ_NONE) {
instance411drivers/scsi/pas16.cprintk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no);
instance412drivers/scsi/pas16.cprintk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no);
instance419drivers/scsi/pas16.cprintk("scsi%d : irq = %d\n", instance->host_no, instance->irq);
instance422drivers/scsi/pas16.cprintk("scsi%d : at 0x%04x", instance->host_no, (int) 
instance423drivers/scsi/pas16.cinstance->io_port);
instance424drivers/scsi/pas16.cif (instance->irq == IRQ_NONE)
instance427drivers/scsi/pas16.cprintk (" irq %d", instance->irq);
instance430drivers/scsi/pas16.cNCR5380_print_options(instance);
instance489drivers/scsi/pas16.cstatic inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,
instance492drivers/scsi/pas16.cregister unsigned short reg = (unsigned short) (instance->io_port + 
instance496drivers/scsi/pas16.cwhile ( !(inb(instance->io_port + P_STATUS_REG_OFFSET) & P_ST_RDY) );
instance500drivers/scsi/pas16.cif ( inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) {
instance501drivers/scsi/pas16.coutb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET);
instance503drivers/scsi/pas16.cinstance->host_no);
instance522drivers/scsi/pas16.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,
instance525drivers/scsi/pas16.cregister unsigned short reg = (instance->io_port + P_DATA_REG_OFFSET);
instance528drivers/scsi/pas16.cwhile ( !((inb(instance->io_port + P_STATUS_REG_OFFSET)) & P_ST_RDY) );
instance532drivers/scsi/pas16.cif (inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) {
instance533drivers/scsi/pas16.coutb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET);
instance535drivers/scsi/pas16.cinstance->host_no);
instance160drivers/scsi/pas16.h#define NCR5380_setup(instance) \
instance161drivers/scsi/pas16.hio_port = (instance)->io_port
instance171drivers/scsi/pas16.h, instance->hostno, (reg), PAS16_io_port(reg))), inb( PAS16_io_port(reg)) )
instance175drivers/scsi/pas16.hinstance->hostno, (value), (reg), PAS16_io_port(reg)),  \
instance286drivers/scsi/seagate.cstruct Scsi_Host *instance;
instance358drivers/scsi/seagate.cinstance = scsi_register(tpnt, 0);
instance359drivers/scsi/seagate.chostno = instance->host_no;
instance366drivers/scsi/seagate.cinstance->irq = irq;
instance367drivers/scsi/seagate.cinstance->io_port = (unsigned int) base_address;
instance202drivers/scsi/t128.cstruct Scsi_Host *instance;
instance237drivers/scsi/t128.cinstance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
instance238drivers/scsi/t128.cinstance->base = base;
instance240drivers/scsi/t128.cNCR5380_init(instance, 0);
instance243drivers/scsi/t128.cinstance->irq = overrides[current_override].irq;
instance245drivers/scsi/t128.cinstance->irq = NCR5380_probe_irq(instance, T128_IRQS);
instance247drivers/scsi/t128.cif (instance->irq != IRQ_NONE) 
instance248drivers/scsi/t128.cif (request_irq(instance->irq, t128_intr, SA_INTERRUPT, "t128", NULL)) {
instance250drivers/scsi/t128.cinstance->host_no, instance->irq);
instance251drivers/scsi/t128.cinstance->irq = IRQ_NONE;
instance254drivers/scsi/t128.cif (instance->irq == IRQ_NONE) {
instance255drivers/scsi/t128.cprintk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no);
instance256drivers/scsi/t128.cprintk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no);
instance260drivers/scsi/t128.cprintk("scsi%d : irq = %d\n", instance->host_no, instance->irq);
instance263drivers/scsi/t128.cprintk("scsi%d : at 0x%08x", instance->host_no, (int) 
instance264drivers/scsi/t128.cinstance->base);
instance265drivers/scsi/t128.cif (instance->irq == IRQ_NONE)
instance268drivers/scsi/t128.cprintk (" irq %d", instance->irq);
instance271drivers/scsi/t128.cNCR5380_print_options(instance);
instance322drivers/scsi/t128.cstatic inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,
instance324drivers/scsi/t128.cregister unsigned char *reg = (unsigned char *) (instance->base + 
instance331drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier();
instance333drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier();
instance339drivers/scsi/t128.cif (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {
instance342drivers/scsi/t128.cfoo = instance->base + T_CONTROL_REG_OFFSET;
instance347drivers/scsi/t128.cinstance->host_no);
instance366drivers/scsi/t128.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,
instance368drivers/scsi/t128.cregister unsigned char *reg = (unsigned char *) (instance->base + 
instance374drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier();
instance376drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier();
instance382drivers/scsi/t128.cif (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {
instance385drivers/scsi/t128.cfoo = instance->base + T_CONTROL_REG_OFFSET;
instance390drivers/scsi/t128.cinstance->host_no);
instance138drivers/scsi/t128.h#define NCR5380_setup(instance) \
instance139drivers/scsi/t128.hbase = (volatile unsigned char *) (instance)->base
instance149drivers/scsi/t128.h, instance->hostno, (reg), T128_address(reg))), *(T128_address(reg)))
instance153drivers/scsi/t128.hinstance->hostno, (value), (reg), T128_address(reg));  \