taglinefilesource code
instance1197drivers/scsi/53c7,8xx.cstruct Scsi_Host *instance;
instance1279drivers/scsi/53c7,8xx.cinstance = scsi_register (tpnt, size);
instance1280drivers/scsi/53c7,8xx.cif (!instance)
instance1288drivers/scsi/53c7,8xx.cinstance->hostdata;
instance1291drivers/scsi/53c7,8xx.chostdata = (struct NCR53c7x0_hostdata *) instance->hostdata;
instance1314drivers/scsi/53c7,8xx.cinstance->base = (unsigned char *) (unsigned long) base;
instance1325drivers/scsi/53c7,8xx.cinstance->io_port = io_port;
instance1334drivers/scsi/53c7,8xx.cinstance->host_no);
instance1335drivers/scsi/53c7,8xx.cscsi_unregister (instance);
instance1338drivers/scsi/53c7,8xx.cinstance->irq = irq;
instance1339drivers/scsi/53c7,8xx.cinstance->dma_channel = dma;
instance1381drivers/scsi/53c7,8xx.creturn NCR53c7x0_init(instance);
instance3083drivers/scsi/53c7,8xx.cinstance->hostdata;
instance3088drivers/scsi/53c7,8xx.cfor (bp = (struct NCR53c7x0_break *) instance->breakpoints,
instance3089drivers/scsi/53c7,8xx.cprev = (struct NCR53c7x0_break **) &instance->breakpoints;
instance3268drivers/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) )
instance368drivers/scsi/NCR5380.cstatic void NCR5380_print(struct Scsi_Host *instance) {
instance371drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance414drivers/scsi/NCR5380.cstatic void NCR5380_print_phase(struct Scsi_Host *instance) {
instance418drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance423drivers/scsi/NCR5380.cinstance->host_no);
instance427drivers/scsi/NCR5380.cprintk("scsi%d : phase %s\n", instance->host_no, phases[i].name);
instance548drivers/scsi/NCR5380.cstatic int NCR5380_set_timer (struct Scsi_Host *instance) {
instance552drivers/scsi/NCR5380.cif (((struct NCR5380_hostdata *) (instance->host_data))->next_timer) {
instance560drivers/scsi/NCR5380.cif (instance->time_expires < tmp->time_expires) 
instance563drivers/scsi/NCR5380.cinstance->next_timer = tmp;
instance564drivers/scsi/NCR5380.c*prev = instance;
instance573drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance576drivers/scsi/NCR5380.cinstance = ((NCR5380_hostdata *) expires_first->host_data)->
instance582drivers/scsi/NCR5380.cexpires_first = instance;
instance633drivers/scsi/NCR5380.cstatic int NCR5380_probe_irq (struct Scsi_Host *instance, int possible) {
instance636drivers/scsi/NCR5380.cinstance->hostdata;
instance639drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance688drivers/scsi/NCR5380.cstatic void NCR5380_print_options (struct Scsi_Host *instance) {
instance722drivers/scsi/NCR5380.cif (((struct NCR5380_hostdata *)instance->hostdata)->flags & FLAG_NCR53C400) {
instance736drivers/scsi/NCR5380.cstatic void NCR5380_print_status (struct Scsi_Host *instance) {
instance745drivers/scsi/NCR5380.cNCR5380_print (instance);
instance746drivers/scsi/NCR5380.cNCR5380_print_phase (instance);
instance750drivers/scsi/NCR5380.cinstance->host_no, 0);
instance786drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance790drivers/scsi/NCR5380.cfor (instance = first_instance; instance &&
instance791drivers/scsi/NCR5380.cinstance->host_no != hostno; instance=instance->next)
instance793drivers/scsi/NCR5380.cif (!instance)
instance795drivers/scsi/NCR5380.chostdata = (struct NCR5380_hostdata *)instance->hostdata;
instance807drivers/scsi/NCR5380.cif (((struct NCR5380_hostdata *)instance->hostdata)->flags & FLAG_NCR53C400)
instance822drivers/scsi/NCR5380.cSPRINTF("\nBase Addr: 0x%05X    ", (int)instance->base);
instance823drivers/scsi/NCR5380.cSPRINTF("io_port: %04x      ", (int)instance->io_port);
instance824drivers/scsi/NCR5380.cif (instance->irq == IRQ_NONE)
instance827drivers/scsi/NCR5380.cSPRINTF("IRQ: %d.\n", instance->irq);
instance840drivers/scsi/NCR5380.cSPRINTF("scsi%d: no currently connected command\n", instance->host_no);
instance844drivers/scsi/NCR5380.cSPRINTF("scsi%d: issue_queue\n", instance->host_no);
instance849drivers/scsi/NCR5380.cSPRINTF("scsi%d: disconnected_queue\n", instance->host_no);
instance903drivers/scsi/NCR5380.cstatic void NCR5380_init (struct Scsi_Host *instance, int flags) {
instance908drivers/scsi/NCR5380.cinstance->hostdata;
instance917drivers/scsi/NCR5380.cinstance->NCR5380_instance_name += NCR53C400_address_adjust;
instance920drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance925drivers/scsi/NCR5380.chostdata->id_mask = 1 << instance->this_id;
instance957drivers/scsi/NCR5380.cthe_template = instance->hostt;
instance958drivers/scsi/NCR5380.cfirst_instance = instance;
instance968drivers/scsi/NCR5380.cif ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) 
instance971drivers/scsi/NCR5380.c"         be incorrectly cleared.\n", instance->host_no);
instance1004drivers/scsi/NCR5380.cinstance->host_no);
instance1010drivers/scsi/NCR5380.cinstance->host_no);
instance1011drivers/scsi/NCR5380.cdo_abort (instance);
instance1015drivers/scsi/NCR5380.cinstance->host_no);
instance1016drivers/scsi/NCR5380.cdo_reset (instance);
instance1020drivers/scsi/NCR5380.cinstance->host_no);
instance1048drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
instance1050drivers/scsi/NCR5380.cinstance->hostdata;
instance1058drivers/scsi/NCR5380.cinstance->host_no);
instance1124drivers/scsi/NCR5380.cprintk("scsi%d : command added to %s of queue\n", instance->host_no,
instance1147drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance1166drivers/scsi/NCR5380.cfor (instance = first_instance; instance && 
instance1167drivers/scsi/NCR5380.cinstance->hostt == the_template; instance=instance->next) {
instance1168drivers/scsi/NCR5380.chostdata = (struct NCR5380_hostdata *) instance->hostdata;
instance1172drivers/scsi/NCR5380.cprintk("scsi%d : not connected\n", instance->host_no);
instance1214drivers/scsi/NCR5380.cinstance->host_no, tmp->target, tmp->lun);
instance1228drivers/scsi/NCR5380.cif (!NCR5380_select(instance, tmp, 
instance1248drivers/scsi/NCR5380.cinstance->host_no);
instance1266drivers/scsi/NCR5380.cinstance->host_no);
instance1268drivers/scsi/NCR5380.cNCR5380_information_transfer(instance);
instance1270drivers/scsi/NCR5380.cprintk("scsi%d : main() : done set false\n", instance->host_no);
instance1294drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance1302drivers/scsi/NCR5380.cfor (instance = first_instance; instance && (instance->hostt == 
instance1303drivers/scsi/NCR5380.cthe_template); instance = instance->next)
instance1304drivers/scsi/NCR5380.cif (instance->irq == irq) {
instance1307drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1312drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1319drivers/scsi/NCR5380.cprintk("scsi%d : SEL interrupt\n", instance->host_no);
instance1321drivers/scsi/NCR5380.cNCR5380_reselect(instance);
instance1325drivers/scsi/NCR5380.cprintk("scsi%d : PARITY interrupt\n", instance->host_no);
instance1330drivers/scsi/NCR5380.cprintk("scsi%d : RESET interrupt\n", instance->host_no);
instance1353drivers/scsi/NCR5380.cinstance->hostno);
instance1355drivers/scsi/NCR5380.ctransfered = (hostdata->dmalen - NCR5380_dma_residual(instance));
instance1451drivers/scsi/NCR5380.cstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd,
instance1455drivers/scsi/NCR5380.cinstance->hostdata;
instance1460drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1464drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1465drivers/scsi/NCR5380.cprintk("scsi%d : starting arbitration, id = %d\n", instance->host_no,
instance1466drivers/scsi/NCR5380.cinstance->this_id);
instance1508drivers/scsi/NCR5380.cprintk("scsi%d : arbitration complete\n", instance->host_no);
instance1529drivers/scsi/NCR5380.cinstance->host_no);
instance1543drivers/scsi/NCR5380.cinstance->host_no);
instance1556drivers/scsi/NCR5380.cprintk("scsi%d : won arbitration\n", instance->host_no);
instance1613drivers/scsi/NCR5380.cprintk("scsi%d : selecting target %d\n", instance->host_no, cmd->target);
instance1635drivers/scsi/NCR5380.cNCR5380_reselect(instance);
instance1637drivers/scsi/NCR5380.cinstance->host_no);
instance1655drivers/scsi/NCR5380.cprintk("scsi%d : weirdness\n", instance->host_no);
instance1659drivers/scsi/NCR5380.cNCR5380_print (instance);
instance1672drivers/scsi/NCR5380.cinstance->host_no);
instance1714drivers/scsi/NCR5380.cinstance->host_no, cmd->target);
instance1716drivers/scsi/NCR5380.ctmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun);
instance1743drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1745drivers/scsi/NCR5380.cprintk("scsi%d : nexus established.\n", instance->host_no);
instance1785drivers/scsi/NCR5380.cstatic int NCR5380_transfer_pio (struct Scsi_Host *instance, 
instance1791drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1795drivers/scsi/NCR5380.cprintk("scsi%d : pio write %d bytes\n", instance->host_no, c);
instance1797drivers/scsi/NCR5380.cprintk("scsi%d : pio read %d bytes\n", instance->host_no, c);
instance1816drivers/scsi/NCR5380.cprintk("scsi%d : REQ detected\n", instance->host_no);
instance1822drivers/scsi/NCR5380.cprintk("scsi%d : phase mismatch\n", instance->host_no);
instance1823drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance1848drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1856drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1863drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1871drivers/scsi/NCR5380.cprintk("scsi%d : req false, handshake complete\n", instance->host_no);
instance1894drivers/scsi/NCR5380.cprintk("scsi%d : residual %d\n", instance->host_no, c);
instance1999drivers/scsi/NCR5380.cstatic int NCR5380_transfer_dma (struct Scsi_Host *instance, 
instance2013drivers/scsi/NCR5380.cinstance->hostdata;
instance2015drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2029drivers/scsi/NCR5380.cinstance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" :
instance2033drivers/scsi/NCR5380.cNCR5380_dma_read_setup(instance, d, c) : 
instance2034drivers/scsi/NCR5380.cNCR5380_dma_write_setup(instance, d, c);
instance2063drivers/scsi/NCR5380.cprintk("scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG));
instance2157drivers/scsi/NCR5380.cinstance->host_no, tmp, NCR5380_read(STATUS_REG));
instance2163drivers/scsi/NCR5380.cresidue = NCR5380_dma_residual(instance);
instance2186drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, phase, &cnt, data);
instance2202drivers/scsi/NCR5380.cfoo = NCR5380_pread(instance, d, c);
instance2209drivers/scsi/NCR5380.cif (!(foo = NCR5380_pread(instance, d, c - diff))) {
instance2242drivers/scsi/NCR5380.cfoo = NCR5380_pwrite(instance, d, c);
instance2248drivers/scsi/NCR5380.cif (!(foo = NCR5380_pwrite(instance, d, c))) {
instance2274drivers/scsi/NCR5380.cinstance->host_no);
instance2284drivers/scsi/NCR5380.cinstance->host_no);
instance2325drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance2352drivers/scsi/NCR5380.cstatic void NCR5380_information_transfer (struct Scsi_Host *instance) {
instance2355drivers/scsi/NCR5380.cinstance->hostdata;
instance2365drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2375drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance2396drivers/scsi/NCR5380.cinstance->host_no);
instance2398drivers/scsi/NCR5380.cdo_abort(instance);
instance2415drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
instance2441drivers/scsi/NCR5380.c(transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) {
instance2460drivers/scsi/NCR5380.cif (NCR5380_transfer_dma(instance, &phase,
instance2467drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2472drivers/scsi/NCR5380.cdo_abort(instance);
instance2480drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, 
instance2487drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2509drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2519drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2521drivers/scsi/NCR5380.cdo_abort (instance);
instance2531drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2548drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance2578drivers/scsi/NCR5380.cinstance->host_no);
instance2599drivers/scsi/NCR5380.cprintk("scsi%d : REQUEST SENSE added to head of issue queue\n",instance->host_no);
instance2645drivers/scsi/NCR5380.c"  the disconnected_queue\n", instance->host_no, 
instance2660drivers/scsi/NCR5380.cNCR5380_print_status(instance);
instance2697drivers/scsi/NCR5380.cinstance->host_no);
instance2703drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2707drivers/scsi/NCR5380.cinstance->host_no, (int) extended_msg[1],
instance2719drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2723drivers/scsi/NCR5380.cinstance->host_no, len);
instance2735drivers/scsi/NCR5380.cinstance->host_no);
instance2739drivers/scsi/NCR5380.cinstance->host_no, extended_msg[2], extended_msg[1]);
instance2750drivers/scsi/NCR5380.cprintk("scsi%d: rejecting message ", instance->host_no);
instance2755drivers/scsi/NCR5380.cinstance->host_no, tmp, cmd->target, cmd->lun);
instance2758drivers/scsi/NCR5380.cinstance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun);
instance2770drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2792drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, 
instance2798drivers/scsi/NCR5380.cprintk("scsi%d : issued command, sleeping until %ul\n", instance->host_no,
instance2801drivers/scsi/NCR5380.cNCR5380_set_timer (instance);
instance2809drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2813drivers/scsi/NCR5380.cprintk("scsi%d : unknown phase\n", instance->host_no);
instance2815drivers/scsi/NCR5380.cNCR5380_print(instance);
instance2825drivers/scsi/NCR5380.cprintk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no,
instance2828drivers/scsi/NCR5380.cNCR5380_set_timer (instance);
instance2848drivers/scsi/NCR5380.cstatic void NCR5380_reselect (struct Scsi_Host *instance) {
instance2851drivers/scsi/NCR5380.cinstance->hostdata;
instance2862drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance2875drivers/scsi/NCR5380.cprintk("scsi%d : reselect\n", instance->host_no);
instance2901drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance2906drivers/scsi/NCR5380.cinstance->host_no);
instance2951drivers/scsi/NCR5380.cinstance->host_no, target_mask, lun, tag);
instance2954drivers/scsi/NCR5380.cinstance->host_no, target_mask, lun);
instance2965drivers/scsi/NCR5380.cdo_abort (instance);
instance2970drivers/scsi/NCR5380.cinstance->host_no, tmp->target, tmp->lun, tmp->tag);
instance2988drivers/scsi/NCR5380.cstatic void NCR5380_dma_complete (NCR5380_instance *instance) {
instance2991drivers/scsi/NCR5380.cinstance->hostdata);
instance2993drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance3016drivers/scsi/NCR5380.ctransferred = instance->dmalen - NCR5380_dma_residual();
instance3045drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
instance3047drivers/scsi/NCR5380.cinstance->hostdata;
instance3050drivers/scsi/NCR5380.cprintk("scsi%d : aborting command\n", instance->host_no);
instance3053drivers/scsi/NCR5380.cNCR5380_print_status (instance);
instance3055drivers/scsi/NCR5380.cprintk("scsi%d : aborting command\n", instance->host_no);
instance3058drivers/scsi/NCR5380.cNCR5380_print_status (instance);
instance3061drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance3064drivers/scsi/NCR5380.cprintk("scsi%d : abort called\n", instance->host_no);
instance3078drivers/scsi/NCR5380.cprintk("scsi%d : aborting connected command\n", instance->host_no);
instance3108drivers/scsi/NCR5380.cprintk("scsi%d : abort going into loop.\n", instance->host_no);
instance3122drivers/scsi/NCR5380.cinstance->host_no);
instance3129drivers/scsi/NCR5380.celse if (prev == tmp) printk("scsi%d : LOOP\n", instance->host_no);
instance3146drivers/scsi/NCR5380.cprintk("scsi%d : abort failed, command connected.\n", instance->host_no);
instance3181drivers/scsi/NCR5380.cprintk("scsi%d : aborting disconnected command.\n", instance->host_no);
instance3184drivers/scsi/NCR5380.cif (NCR5380_select (instance, cmd, (int) cmd->tag)) 
instance3188drivers/scsi/NCR5380.cprintk("scsi%d : nexus reestablished.\n", instance->host_no);
instance3191drivers/scsi/NCR5380.cdo_abort (instance);
instance3221drivers/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);
instance291drivers/scsi/NCR5380.hstatic void NCR5380_print_options (struct Scsi_Host *instance);
instance292drivers/scsi/NCR5380.hstatic void NCR5380_print_phase (struct Scsi_Host *instance);
instance293drivers/scsi/NCR5380.hstatic void NCR5380_print (struct Scsi_Host *instance);
instance308drivers/scsi/NCR5380.hstatic void NCR5380_reselect (struct Scsi_Host *instance);
instance309drivers/scsi/NCR5380.hstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag);
instance311drivers/scsi/NCR5380.hstatic int NCR5380_transfer_dma (struct Scsi_Host *instance,
instance314drivers/scsi/NCR5380.hstatic int NCR5380_transfer_pio (struct Scsi_Host *instance,
instance318drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_setup (struct Scsi_Host *instance,
instance322drivers/scsi/NCR5380.hif (instance->dma_channel <=3) {
instance335drivers/scsi/NCR5380.hpanic ("scsi%d : attempted unaligned DMA transfer\n", instance->host_no);
instance337drivers/scsi/NCR5380.hdisable_dma(instance->dma_channel);
instance338drivers/scsi/NCR5380.hclear_dma_ff(instance->dma_channel);
instance339drivers/scsi/NCR5380.hset_dma_addr(instance->dma_channel, (unsigned int) ptr);
instance340drivers/scsi/NCR5380.hset_dma_count(instance->dma_channel, count);
instance341drivers/scsi/NCR5380.hset_dma_mode(instance->dma_channel, mode);
instance342drivers/scsi/NCR5380.henable_dma(instance->dma_channel);
instance347drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_write_setup (struct Scsi_Host *instance,
instance349drivers/scsi/NCR5380.hreturn NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_WRITE);
instance352drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_read_setup (struct Scsi_Host *instance,
instance354drivers/scsi/NCR5380.hreturn NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_READ);
instance357drivers/scsi/NCR5380.hstatic __inline__ int NCR5380_i386_dma_residual (struct Scsi_Host *instance) {
instance360drivers/scsi/NCR5380.hclear_dma_ff(instance->dma_channel);
instance361drivers/scsi/NCR5380.htmp = get_dma_residue(instance->dma_channel);
instance168drivers/scsi/dtc.cstruct Scsi_Host *instance;
instance204drivers/scsi/dtc.cinstance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
instance205drivers/scsi/dtc.cinstance->base = base;
instance207drivers/scsi/dtc.cNCR5380_init(instance, 0);
instance211drivers/scsi/dtc.cinstance->irq = overrides[current_override].irq;
instance213drivers/scsi/dtc.cinstance->irq = NCR5380_probe_irq(instance, DTC_IRQS);
instance218drivers/scsi/dtc.cif (instance->irq != IRQ_NONE)
instance219drivers/scsi/dtc.cif (request_irq(instance->irq, dtc_intr, SA_INTERRUPT, "dtc")) {
instance221drivers/scsi/dtc.cinstance->host_no, instance->irq);
instance222drivers/scsi/dtc.cinstance->irq = IRQ_NONE;
instance225drivers/scsi/dtc.cif (instance->irq == IRQ_NONE) {
instance226drivers/scsi/dtc.cprintk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no);
instance227drivers/scsi/dtc.cprintk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no);
instance230drivers/scsi/dtc.cif (instance->irq != IRQ_NONE)
instance232drivers/scsi/dtc.cinstance->host_no);
instance233drivers/scsi/dtc.cinstance->irq = IRQ_NONE;
instance236drivers/scsi/dtc.cprintk("scsi%d : irq = %d\n", instance->host_no, instance->irq);
instance239drivers/scsi/dtc.cprintk("scsi%d : at 0x%05X", instance->host_no, (int)instance->base);
instance240drivers/scsi/dtc.cif (instance->irq == IRQ_NONE)
instance243drivers/scsi/dtc.cprintk (" irq %d", instance->irq);
instance246drivers/scsi/dtc.cNCR5380_print_options(instance);
instance301drivers/scsi/dtc.cstatic inline int NCR5380_pread (struct Scsi_Host *instance,
instance307drivers/scsi/dtc.cNCR5380_setup(instance);
instance312drivers/scsi/dtc.cif (instance->irq == IRQ_NONE)
instance353drivers/scsi/dtc.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance,
instance357drivers/scsi/dtc.cNCR5380_setup(instance);
instance362drivers/scsi/dtc.cif (instance->irq == IRQ_NONE)
instance124drivers/scsi/dtc.h#define NCR5380_setup(instance) \
instance125drivers/scsi/dtc.hbase = (volatile unsigned char *) (instance)->base
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);
instance147drivers/scsi/g_NCR5380.h#define NCR5380_setup(instance) \
instance148drivers/scsi/g_NCR5380.hNCR5380_map_name = (NCR5380_map_type)((instance)->NCR5380_instance_name)
instance373drivers/scsi/pas16.cstruct Scsi_Host *instance;
instance412drivers/scsi/pas16.cinstance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
instance413drivers/scsi/pas16.cinstance->io_port = io_port;
instance415drivers/scsi/pas16.cNCR5380_init(instance, 0);
instance418drivers/scsi/pas16.cinstance->irq = overrides[current_override].irq;
instance420drivers/scsi/pas16.cinstance->irq = NCR5380_probe_irq(instance, PAS16_IRQS);
instance422drivers/scsi/pas16.cif (instance->irq != IRQ_NONE) 
instance423drivers/scsi/pas16.cif (request_irq(instance->irq, pas16_intr, SA_INTERRUPT, "pas16", NULL)) {
instance425drivers/scsi/pas16.cinstance->host_no, instance->irq);
instance426drivers/scsi/pas16.cinstance->irq = IRQ_NONE;
instance429drivers/scsi/pas16.cif (instance->irq == IRQ_NONE) {
instance430drivers/scsi/pas16.cprintk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no);
instance431drivers/scsi/pas16.cprintk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no);
instance438drivers/scsi/pas16.cprintk("scsi%d : irq = %d\n", instance->host_no, instance->irq);
instance441drivers/scsi/pas16.cprintk("scsi%d : at 0x%04x", instance->host_no, (int) 
instance442drivers/scsi/pas16.cinstance->io_port);
instance443drivers/scsi/pas16.cif (instance->irq == IRQ_NONE)
instance446drivers/scsi/pas16.cprintk (" irq %d", instance->irq);
instance449drivers/scsi/pas16.cNCR5380_print_options(instance);
instance508drivers/scsi/pas16.cstatic inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,
instance511drivers/scsi/pas16.cregister unsigned short reg = (unsigned short) (instance->io_port + 
instance516drivers/scsi/pas16.cwhile ( !(inb(instance->io_port + P_STATUS_REG_OFFSET) & P_ST_RDY) )
instance521drivers/scsi/pas16.cif ( inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) {
instance522drivers/scsi/pas16.coutb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET);
instance524drivers/scsi/pas16.cinstance->host_no);
instance545drivers/scsi/pas16.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,
instance548drivers/scsi/pas16.cregister unsigned short reg = (instance->io_port + P_DATA_REG_OFFSET);
instance552drivers/scsi/pas16.cwhile ( !((inb(instance->io_port + P_STATUS_REG_OFFSET)) & P_ST_RDY) )
instance557drivers/scsi/pas16.cif (inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) {
instance558drivers/scsi/pas16.coutb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET);
instance560drivers/scsi/pas16.cinstance->host_no);
instance162drivers/scsi/pas16.h#define NCR5380_setup(instance) \
instance163drivers/scsi/pas16.hio_port = (instance)->io_port
instance173drivers/scsi/pas16.h, instance->hostno, (reg), PAS16_io_port(reg))), inb( PAS16_io_port(reg)) )
instance177drivers/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;
instance238drivers/scsi/t128.cinstance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
instance239drivers/scsi/t128.cinstance->base = base;
instance241drivers/scsi/t128.cNCR5380_init(instance, 0);
instance244drivers/scsi/t128.cinstance->irq = overrides[current_override].irq;
instance246drivers/scsi/t128.cinstance->irq = NCR5380_probe_irq(instance, T128_IRQS);
instance248drivers/scsi/t128.cif (instance->irq != IRQ_NONE) 
instance249drivers/scsi/t128.cif (request_irq(instance->irq, t128_intr, SA_INTERRUPT, "t128", NULL)) {
instance251drivers/scsi/t128.cinstance->host_no, instance->irq);
instance252drivers/scsi/t128.cinstance->irq = IRQ_NONE;
instance255drivers/scsi/t128.cif (instance->irq == IRQ_NONE) {
instance256drivers/scsi/t128.cprintk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no);
instance257drivers/scsi/t128.cprintk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no);
instance261drivers/scsi/t128.cprintk("scsi%d : irq = %d\n", instance->host_no, instance->irq);
instance264drivers/scsi/t128.cprintk("scsi%d : at 0x%08x", instance->host_no, (int) 
instance265drivers/scsi/t128.cinstance->base);
instance266drivers/scsi/t128.cif (instance->irq == IRQ_NONE)
instance269drivers/scsi/t128.cprintk (" irq %d", instance->irq);
instance272drivers/scsi/t128.cNCR5380_print_options(instance);
instance323drivers/scsi/t128.cstatic inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,
instance325drivers/scsi/t128.cregister unsigned char *reg = (unsigned char *) (instance->base + 
instance332drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier();
instance334drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier();
instance340drivers/scsi/t128.cif (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {
instance343drivers/scsi/t128.cfoo = instance->base + T_CONTROL_REG_OFFSET;
instance348drivers/scsi/t128.cinstance->host_no);
instance367drivers/scsi/t128.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,
instance369drivers/scsi/t128.cregister unsigned char *reg = (unsigned char *) (instance->base + 
instance375drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier();
instance377drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier();
instance383drivers/scsi/t128.cif (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {
instance386drivers/scsi/t128.cfoo = instance->base + T_CONTROL_REG_OFFSET;
instance391drivers/scsi/t128.cinstance->host_no);
instance140drivers/scsi/t128.h#define NCR5380_setup(instance) \
instance141drivers/scsi/t128.hbase = (volatile unsigned char *) (instance)->base
instance151drivers/scsi/t128.h, instance->hostno, (reg), T128_address(reg))), *(T128_address(reg)))
instance155drivers/scsi/t128.hinstance->hostno, (value), (reg), T128_address(reg));  \