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;
instance820drivers/scsi/NCR5380.cthe_template = instance->hostt;
instance821drivers/scsi/NCR5380.cfirst_instance = instance;
instance831drivers/scsi/NCR5380.cif ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) 
instance834drivers/scsi/NCR5380.c"         be incorrectly cleared.\n", instance->host_no);
instance867drivers/scsi/NCR5380.cinstance->host_no);
instance873drivers/scsi/NCR5380.cinstance->host_no);
instance874drivers/scsi/NCR5380.cdo_abort (instance);
instance878drivers/scsi/NCR5380.cinstance->host_no);
instance879drivers/scsi/NCR5380.cdo_reset (instance);
instance883drivers/scsi/NCR5380.cinstance->host_no);
instance911drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
instance913drivers/scsi/NCR5380.cinstance->hostdata;
instance921drivers/scsi/NCR5380.cinstance->host_no);
instance959drivers/scsi/NCR5380.cprintk("scsi%d : command added to %s of queue\n", instance->host_no,
instance982drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance1001drivers/scsi/NCR5380.cfor (instance = first_instance; instance && 
instance1002drivers/scsi/NCR5380.cinstance->hostt == the_template; instance=instance->next) {
instance1003drivers/scsi/NCR5380.chostdata = (struct NCR5380_hostdata *) instance->hostdata;
instance1007drivers/scsi/NCR5380.cprintk("scsi%d : not connected\n", instance->host_no);
instance1049drivers/scsi/NCR5380.cinstance->host_no, tmp->target, tmp->lun);
instance1063drivers/scsi/NCR5380.cif (!NCR5380_select(instance, tmp, 
instance1083drivers/scsi/NCR5380.cinstance->host_no);
instance1101drivers/scsi/NCR5380.cinstance->host_no);
instance1103drivers/scsi/NCR5380.cNCR5380_information_transfer(instance);
instance1105drivers/scsi/NCR5380.cprintk("scsi%d : main() : done set false\n", instance->host_no);
instance1128drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance1136drivers/scsi/NCR5380.cfor (instance = first_instance; instance && (instance->hostt == 
instance1137drivers/scsi/NCR5380.cthe_template); instance = instance->next)
instance1138drivers/scsi/NCR5380.cif (instance->irq == irq) {
instance1141drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1146drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1153drivers/scsi/NCR5380.cprintk("scsi%d : SEL interrupt\n", instance->host_no);
instance1155drivers/scsi/NCR5380.cNCR5380_reselect(instance);
instance1159drivers/scsi/NCR5380.cprintk("scsi%d : PARITY interrupt\n", instance->host_no);
instance1164drivers/scsi/NCR5380.cprintk("scsi%d : RESET interrupt\n", instance->host_no);
instance1187drivers/scsi/NCR5380.cinstance->hostno);
instance1189drivers/scsi/NCR5380.ctransfered = (hostdata->dmalen - NCR5380_dma_residual(instance));
instance1258drivers/scsi/NCR5380.cstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd,
instance1262drivers/scsi/NCR5380.cinstance->hostdata;
instance1267drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1271drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1272drivers/scsi/NCR5380.cprintk("scsi%d : starting arbitration, id = %d\n", instance->host_no,
instance1273drivers/scsi/NCR5380.cinstance->this_id);
instance1315drivers/scsi/NCR5380.cprintk("scsi%d : arbitration complete\n", instance->host_no);
instance1336drivers/scsi/NCR5380.cinstance->host_no);
instance1350drivers/scsi/NCR5380.cinstance->host_no);
instance1363drivers/scsi/NCR5380.cprintk("scsi%d : won arbitration\n", instance->host_no);
instance1420drivers/scsi/NCR5380.cprintk("scsi%d : selecting target %d\n", instance->host_no, cmd->target);
instance1442drivers/scsi/NCR5380.cNCR5380_reselect(instance);
instance1444drivers/scsi/NCR5380.cinstance->host_no);
instance1462drivers/scsi/NCR5380.cprintk("scsi%d : weirdness\n", instance->host_no);
instance1466drivers/scsi/NCR5380.cNCR5380_print (instance);
instance1476drivers/scsi/NCR5380.cinstance->host_no);
instance1518drivers/scsi/NCR5380.cinstance->host_no, cmd->target);
instance1520drivers/scsi/NCR5380.ctmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun);
instance1547drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1549drivers/scsi/NCR5380.cprintk("scsi%d : nexus established.\n", instance->host_no);
instance1589drivers/scsi/NCR5380.cstatic int NCR5380_transfer_pio (struct Scsi_Host *instance, 
instance1595drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1599drivers/scsi/NCR5380.cprintk("scsi%d : pio write %d bytes\n", instance->host_no, c);
instance1601drivers/scsi/NCR5380.cprintk("scsi%d : pio read %d bytes\n", instance->host_no, c);
instance1620drivers/scsi/NCR5380.cprintk("scsi%d : REQ detected\n", instance->host_no);
instance1626drivers/scsi/NCR5380.cprintk("scsi%d : phase mismatch\n", instance->host_no);
instance1627drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance1652drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1660drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1667drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1675drivers/scsi/NCR5380.cprintk("scsi%d : req false, handshake complete\n", instance->host_no);
instance1698drivers/scsi/NCR5380.cprintk("scsi%d : residual %d\n", instance->host_no, c);
instance1803drivers/scsi/NCR5380.cstatic int NCR5380_transfer_dma (struct Scsi_Host *instance, 
instance1817drivers/scsi/NCR5380.cinstance->hostdata;
instance1819drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1833drivers/scsi/NCR5380.cinstance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" :
instance1837drivers/scsi/NCR5380.cNCR5380_dma_read_setup(instance, d, c) : 
instance1838drivers/scsi/NCR5380.cNCR5380_dma_write_setup(instance, d, c);
instance1867drivers/scsi/NCR5380.cprintk("scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG));
instance1961drivers/scsi/NCR5380.cinstance->host_no, tmp, NCR5380_read(STATUS_REG));
instance1967drivers/scsi/NCR5380.cresidue = NCR5380_dma_residual(instance);
instance1990drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, phase, &cnt, data);
instance2010drivers/scsi/NCR5380.cif (!(foo = NCR5380_pread(instance, d, c - diff))) {
instance2045drivers/scsi/NCR5380.cif (!(foo = NCR5380_pwrite(instance, d, c))) {
instance2071drivers/scsi/NCR5380.cinstance->host_no);
instance2081drivers/scsi/NCR5380.cinstance->host_no);
instance2121drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance2148drivers/scsi/NCR5380.cstatic void NCR5380_information_transfer (struct Scsi_Host *instance) {
instance2151drivers/scsi/NCR5380.cinstance->hostdata;
instance2161drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2171drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance2192drivers/scsi/NCR5380.cinstance->host_no);
instance2194drivers/scsi/NCR5380.cdo_abort(instance);
instance2211drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
instance2237drivers/scsi/NCR5380.c(transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) {
instance2252drivers/scsi/NCR5380.cif (NCR5380_transfer_dma(instance, &phase,
instance2259drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2264drivers/scsi/NCR5380.cdo_abort(instance);
instance2272drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, 
instance2279drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2301drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2311drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2313drivers/scsi/NCR5380.cdo_abort (instance);
instance2323drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2337drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2367drivers/scsi/NCR5380.cinstance->host_no);
instance2388drivers/scsi/NCR5380.cprintk("scsi%d : REQUEST SENSE added to head of issue queue\n",instance->host_no);
instance2430drivers/scsi/NCR5380.c"  the disconnected_queue\n", instance->host_no, 
instance2445drivers/scsi/NCR5380.cNCR5380_print_status(instance);
instance2482drivers/scsi/NCR5380.cinstance->host_no);
instance2488drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2492drivers/scsi/NCR5380.cinstance->host_no, (int) extended_msg[1],
instance2504drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2508drivers/scsi/NCR5380.cinstance->host_no, len);
instance2520drivers/scsi/NCR5380.cinstance->host_no);
instance2524drivers/scsi/NCR5380.cinstance->host_no, extended_msg[2], extended_msg[1]);
instance2535drivers/scsi/NCR5380.cprintk("scsi%d: rejecting message ", instance->host_no);
instance2540drivers/scsi/NCR5380.cinstance->host_no, tmp, cmd->target, cmd->lun);
instance2543drivers/scsi/NCR5380.cinstance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun);
instance2555drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2574drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, 
instance2580drivers/scsi/NCR5380.cprintk("scsi%d : issued command, sleeping until %ul\n", instance->host_no,
instance2583drivers/scsi/NCR5380.cNCR5380_set_timer (instance);
instance2591drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2595drivers/scsi/NCR5380.cprintk("scsi%d : unknown phase\n", instance->host_no);
instance2597drivers/scsi/NCR5380.cNCR5380_print(instance);
instance2607drivers/scsi/NCR5380.cprintk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no,
instance2610drivers/scsi/NCR5380.cNCR5380_set_timer (instance);
instance2630drivers/scsi/NCR5380.cstatic void NCR5380_reselect (struct Scsi_Host *instance) {
instance2633drivers/scsi/NCR5380.cinstance->hostdata;
instance2644drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2657drivers/scsi/NCR5380.cprintk("scsi%d : reselect\n", instance->host_no);
instance2683drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2688drivers/scsi/NCR5380.cinstance->host_no);
instance2733drivers/scsi/NCR5380.cinstance->host_no, target_mask, lun, tag);
instance2736drivers/scsi/NCR5380.cinstance->host_no, target_mask, lun);
instance2747drivers/scsi/NCR5380.cdo_abort (instance);
instance2752drivers/scsi/NCR5380.cinstance->host_no, tmp->target, tmp->lun, tmp->tag);
instance2770drivers/scsi/NCR5380.cstatic void NCR5380_dma_complete (NCR5380_instance *instance) {
instance2773drivers/scsi/NCR5380.cinstance->hostdata);
instance2775drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2798drivers/scsi/NCR5380.ctransferred = instance->dmalen - NCR5380_dma_residual();
instance2827drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
instance2829drivers/scsi/NCR5380.cinstance->hostdata;
instance2832drivers/scsi/NCR5380.cprintk("scsi%d : aborting command\n", instance->host_no);
instance2835drivers/scsi/NCR5380.cNCR5380_print_status (instance);
instance2837drivers/scsi/NCR5380.cprintk("scsi%d : aborting command\n", instance->host_no);
instance2840drivers/scsi/NCR5380.cNCR5380_print_status (instance);
instance2843drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2846drivers/scsi/NCR5380.cprintk("scsi%d : abort called\n", instance->host_no);
instance2860drivers/scsi/NCR5380.cprintk("scsi%d : aborting connected command\n", instance->host_no);
instance2890drivers/scsi/NCR5380.cprintk("scsi%d : abort going into loop.\n", instance->host_no);
instance2904drivers/scsi/NCR5380.cinstance->host_no);
instance2911drivers/scsi/NCR5380.celse if (prev == tmp) printk("scsi%d : LOOP\n", instance->host_no);
instance2928drivers/scsi/NCR5380.cprintk("scsi%d : abort failed, command connected.\n", instance->host_no);
instance2963drivers/scsi/NCR5380.cprintk("scsi%d : aborting disconnected command.\n", instance->host_no);
instance2966drivers/scsi/NCR5380.cif (NCR5380_select (instance, cmd, (int) cmd->tag)) 
instance2970drivers/scsi/NCR5380.cprintk("scsi%d : nexus reestablished.\n", instance->host_no);
instance2973drivers/scsi/NCR5380.cdo_abort (instance);
instance3003drivers/scsi/NCR5380.c"         before abortion\n", instance->host_no); 
instance274drivers/scsi/NCR5380.hstatic int NCR5380_probe_irq (struct Scsi_Host *instance, int possible);
instance276drivers/scsi/NCR5380.hstatic void NCR5380_init (struct Scsi_Host *instance, int flags);
instance277drivers/scsi/NCR5380.hstatic void NCR5380_information_transfer (struct Scsi_Host *instance);
instance280drivers/scsi/NCR5380.hstatic void NCR5380_print_options (struct Scsi_Host *instance);
instance281drivers/scsi/NCR5380.hstatic void NCR5380_print_phase (struct Scsi_Host *instance);
instance282drivers/scsi/NCR5380.hstatic void NCR5380_print (struct Scsi_Host *instance);
instance297drivers/scsi/NCR5380.hstatic void NCR5380_reselect (struct Scsi_Host *instance);
instance298drivers/scsi/NCR5380.hstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag);
instance300drivers/scsi/NCR5380.hstatic int NCR5380_transfer_dma (struct Scsi_Host *instance,
instance303drivers/scsi/NCR5380.hstatic int NCR5380_transfer_pio (struct Scsi_Host *instance,
instance307drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_setup (struct Scsi_Host *instance,
instance311drivers/scsi/NCR5380.hif (instance->dma_channel <=3) {
instance324drivers/scsi/NCR5380.hpanic ("scsi%d : attempted unaligned DMA transfer\n", instance->host_no);
instance326drivers/scsi/NCR5380.hdisable_dma(instance->dma_channel);
instance327drivers/scsi/NCR5380.hclear_dma_ff(instance->dma_channel);
instance328drivers/scsi/NCR5380.hset_dma_addr(instance->dma_channel, (unsigned int) ptr);
instance329drivers/scsi/NCR5380.hset_dma_count(instance->dma_channel, count);
instance330drivers/scsi/NCR5380.hset_dma_mode(instance->dma_channel, mode);
instance331drivers/scsi/NCR5380.henable_dma(instance->dma_channel);
instance336drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_write_setup (struct Scsi_Host *instance,
instance338drivers/scsi/NCR5380.hreturn NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_WRITE);
instance341drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_read_setup (struct Scsi_Host *instance,
instance343drivers/scsi/NCR5380.hreturn NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_READ);
instance346drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_residual (struct Scsi_Host *instance) {
instance349drivers/scsi/NCR5380.hclear_dma_ff(instance->dma_channel);
instance350drivers/scsi/NCR5380.htmp = get_dma_residue(instance->dma_channel);
instance186drivers/scsi/g_NCR5380.cstruct Scsi_Host *instance;
instance203drivers/scsi/g_NCR5380.cinstance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
instance204drivers/scsi/g_NCR5380.cinstance->NCR5380_instance_name = overrides[current_override].NCR5380_map_name;
instance206drivers/scsi/g_NCR5380.cNCR5380_init(instance, flags);
instance209drivers/scsi/g_NCR5380.cinstance->irq = overrides[current_override].irq;
instance211drivers/scsi/g_NCR5380.cinstance->irq = NCR5380_probe_irq(instance, 0xffff);
instance213drivers/scsi/g_NCR5380.cif (instance->irq != IRQ_NONE) 
instance214drivers/scsi/g_NCR5380.cif (request_irq(instance->irq, generic_NCR5380_intr, SA_INTERRUPT, "NCR5380", NULL)) {
instance216drivers/scsi/g_NCR5380.cinstance->host_no, instance->irq);
instance217drivers/scsi/g_NCR5380.cinstance->irq = IRQ_NONE;
instance220drivers/scsi/g_NCR5380.cif (instance->irq == IRQ_NONE) {
instance221drivers/scsi/g_NCR5380.cprintk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no);
instance222drivers/scsi/g_NCR5380.cprintk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no);
instance225drivers/scsi/g_NCR5380.cprintk("scsi%d : at " STRVAL(NCR5380_map_name) " 0x%x", instance->host_no, (unsigned int)instance->NCR5380_instance_name);
instance226drivers/scsi/g_NCR5380.cif (instance->irq == IRQ_NONE)
instance229drivers/scsi/g_NCR5380.cprintk (" irq %d", instance->irq);
instance232drivers/scsi/g_NCR5380.cNCR5380_print_options(instance);
instance246drivers/scsi/g_NCR5380.cint generic_NCR5380_release_resources(struct Scsi_Host * instance)
instance250drivers/scsi/g_NCR5380.cNCR5380_setup(instance);
instance252drivers/scsi/g_NCR5380.cfree_irq(instance->irq, NULL);
instance323drivers/scsi/g_NCR5380.cstatic inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,    int len)
instance331drivers/scsi/g_NCR5380.cNCR5380_setup(instance);
instance431drivers/scsi/g_NCR5380.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,    int len)
instance439drivers/scsi/g_NCR5380.cNCR5380_setup(instance);
instance144drivers/scsi/g_NCR5380.h#define NCR5380_setup(instance) \
instance145drivers/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));  \