taglinefilesource code
instance299drivers/scsi/NCR5380.cstatic void NCR5380_print(struct Scsi_Host *instance) {
instance302drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance341drivers/scsi/NCR5380.cstatic void NCR5380_print_phase(struct Scsi_Host *instance) {
instance345drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance350drivers/scsi/NCR5380.cinstance->host_no);
instance354drivers/scsi/NCR5380.cprintk("scsi%d : phase %s\n", instance->host_no, phases[i].name);
instance475drivers/scsi/NCR5380.cstatic int NCR5380_set_timer (struct Scsi_Host *instance) {
instance479drivers/scsi/NCR5380.cif (((struct NCR5380_hostdata *) (instance->host_data))->next_timer) {
instance487drivers/scsi/NCR5380.cif (instance->time_expires < tmp->time_expires) 
instance490drivers/scsi/NCR5380.cinstance->next_timer = tmp;
instance491drivers/scsi/NCR5380.c*prev = instance;
instance500drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance503drivers/scsi/NCR5380.cinstance = ((NCR5380_hostdata *) expires_first->host_data)->
instance509drivers/scsi/NCR5380.cexpires_first = instance;
instance562drivers/scsi/NCR5380.cstatic int NCR5380_probe_irq (struct Scsi_Host *instance, int possible) {
instance565drivers/scsi/NCR5380.cinstance->hostdata;
instance568drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance616drivers/scsi/NCR5380.cstatic void NCR5380_print_options (struct Scsi_Host *instance) {
instance662drivers/scsi/NCR5380.cstatic void NCR5380_init (struct Scsi_Host *instance) {
instance666drivers/scsi/NCR5380.cinstance->hostdata;
instance667drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance671drivers/scsi/NCR5380.chostdata->id_mask = 1 << instance->this_id;
instance685drivers/scsi/NCR5380.cthe_template = instance->hostt;
instance686drivers/scsi/NCR5380.cfirst_instance = instance;
instance696drivers/scsi/NCR5380.cif ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) 
instance699drivers/scsi/NCR5380.c"         be incorrectly cleared.\n", instance->host_no);
instance740drivers/scsi/NCR5380.cinstance->host_no);
instance776drivers/scsi/NCR5380.cprintk("scsi%d : command added to %s of queue\n", instance->host_no,
instance799drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance818drivers/scsi/NCR5380.cfor (instance = first_instance; instance && instance->hostt == the_template; 
instance819drivers/scsi/NCR5380.cinstance=instance->next) {
instance820drivers/scsi/NCR5380.chostdata = (struct NCR5380_hostdata *) instance->hostdata;
instance824drivers/scsi/NCR5380.cprintk("scsi%d : not connected\n", instance->host_no);
instance853drivers/scsi/NCR5380.cinstance->host_no, tmp->target, tmp->lun);
instance862drivers/scsi/NCR5380.cif (!NCR5380_select(instance, tmp, 
instance874drivers/scsi/NCR5380.cinstance->host_no);
instance891drivers/scsi/NCR5380.cinstance->host_no);
instance893drivers/scsi/NCR5380.cNCR5380_information_transfer(instance);
instance895drivers/scsi/NCR5380.cprintk("scsi%d : main() : done set false\n", instance->host_no);
instance918drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance925drivers/scsi/NCR5380.cfor (instance = first_instance; instance && (instance->hostt == 
instance926drivers/scsi/NCR5380.cthe_template); instance = instance->next)
instance927drivers/scsi/NCR5380.cif (instance->irq == irq) {
instance930drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance934drivers/scsi/NCR5380.cNCR5380_print(instance);
instance941drivers/scsi/NCR5380.cprintk("scsi%d : SEL interrupt\n", instance->host_no);
instance943drivers/scsi/NCR5380.cNCR5380_reselect(instance);
instance948drivers/scsi/NCR5380.cprintk("scsi%d : PARITY interrupt\n", instance->host_no);
instance1002drivers/scsi/NCR5380.cstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd,
instance1006drivers/scsi/NCR5380.cinstance->hostdata;
instance1011drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1014drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1015drivers/scsi/NCR5380.cprintk("scsi%d : starting arbitration, id = %d\n", instance->host_no,
instance1016drivers/scsi/NCR5380.cinstance->this_id);
instance1034drivers/scsi/NCR5380.cprintk("scsi%d : arbitration complete\n", instance->host_no);
instance1055drivers/scsi/NCR5380.cinstance->host_no);
instance1067drivers/scsi/NCR5380.cinstance->host_no);
instance1080drivers/scsi/NCR5380.cprintk("scsi%d : won arbitration\n", instance->host_no);
instance1127drivers/scsi/NCR5380.cprintk("scsi%d : selecting target %d\n", instance->host_no, cmd->target);
instance1154drivers/scsi/NCR5380.cinstance->host_no);
instance1179drivers/scsi/NCR5380.cinstance->host_no, cmd->target);
instance1181drivers/scsi/NCR5380.ctmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun);
instance1208drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1210drivers/scsi/NCR5380.cprintk("scsi%d : nexus established.\n", instance->host_no);
instance1249drivers/scsi/NCR5380.cstatic int NCR5380_transfer_pio (struct Scsi_Host *instance, 
instance1255drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1273drivers/scsi/NCR5380.cprintk("scsi%d : REQ detected\n", instance->host_no);
instance1279drivers/scsi/NCR5380.cprintk("scsi%d : phase mismatch\n", instance->host_no);
instance1280drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance1305drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1313drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1320drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1328drivers/scsi/NCR5380.cprintk("scsi%d : req false, handshake complete\n", instance->host_no);
instance1338drivers/scsi/NCR5380.cprintk("scsi%d : residual %d\n", instance->host_no, c);
instance1376drivers/scsi/NCR5380.cstatic int NCR5380_transfer_dma (struct Scsi_Host *instance, 
instance1384drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1387drivers/scsi/NCR5380.cinstance->dmalen = c;
instance1427drivers/scsi/NCR5380.cfoo = ((p & SR_IO) ? NCR5380_pread(instance, d, c) : 
instance1428drivers/scsi/NCR5380.cNCR5380_pwrite(instance, d, c));
instance1459drivers/scsi/NCR5380.cstatic void NCR5380_information_transfer (struct Scsi_Host *instance) {
instance1462drivers/scsi/NCR5380.cinstance->hostdata;
instance1468drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1478drivers/scsi/NCR5380.cNCR5380_print_phase(instance);
instance1486drivers/scsi/NCR5380.cinstance->host_no);
instance1503drivers/scsi/NCR5380.cinstance->host_no, cmd->SCp.this_residual,
instance1523drivers/scsi/NCR5380.cif (NCR5380_transfer_dma(instance, &phase,
instance1530drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance1539drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, 
instance1553drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1572drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance1582drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance1595drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance1606drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun);
instance1624drivers/scsi/NCR5380.cinstance->host_no);
instance1673drivers/scsi/NCR5380.c"  the disconnected_queue\n", instance->host_no, 
instance1715drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1734drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, 
instance1740drivers/scsi/NCR5380.cprintk("scsi%d : issued command, sleeping until %ul\n", instance->host_no,
instance1743drivers/scsi/NCR5380.cNCR5380_set_timer (instance);
instance1751drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1755drivers/scsi/NCR5380.cprintk("scsi%d : unknown phase\n", instance->host_no);
instance1757drivers/scsi/NCR5380.cNCR5380_print(instance);
instance1767drivers/scsi/NCR5380.cprintk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no,
instance1770drivers/scsi/NCR5380.cNCR5380_set_timer (instance);
instance1790drivers/scsi/NCR5380.cstatic void NCR5380_reselect (struct Scsi_Host *instance) {
instance1793drivers/scsi/NCR5380.cinstance->hostdata;
instance1804drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1809drivers/scsi/NCR5380.cprintk("scsi%d : reselect\n", instance->host_no);
instance1834drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1858drivers/scsi/NCR5380.cinstance->host_no);
instance1888drivers/scsi/NCR5380.cinstance->host_no, target_mask, lun, tag);
instance1891drivers/scsi/NCR5380.cinstance->host_no, target_mask, lun);
instance1907drivers/scsi/NCR5380.cNCR5380_transfer_pio(instance, &phase, &len, &data);
instance1912drivers/scsi/NCR5380.cinstance->host_no, cmd->target, cmd->lun, cmd->tag);
instance1930drivers/scsi/NCR5380.cstatic void NCR5380_dma_complete (NCR5380_instance *instance) {
instance1933drivers/scsi/NCR5380.cinstance->hostdata);
instance1935drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1958drivers/scsi/NCR5380.ctransferred = instance->dma_len - NCR5380_dma_residual();
instance1987drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
instance1989drivers/scsi/NCR5380.cinstance->hostdata;
instance1995drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance1998drivers/scsi/NCR5380.cprintk("scsi%d : abort called\n", instance->host_no);
instance2015drivers/scsi/NCR5380.cinstance->host_no);
instance2035drivers/scsi/NCR5380.cprintk("scsi%d : abort failed, command connected.\n", instance->host_no);
instance2070drivers/scsi/NCR5380.cprintk("scsi%d : aborting disconnected command.\n", instance->host_no);
instance2073drivers/scsi/NCR5380.cif (NCR5380_select (instance, cmd, (int) cmd->tag)) 
instance2077drivers/scsi/NCR5380.cprintk("scsi%d : nexus restablished.\n", instance->host_no);
instance2085drivers/scsi/NCR5380.cNCR5380_transfer_pio (instance, &phase, &len, &msgptr);
instance2114drivers/scsi/NCR5380.c"         before abortion\n", instance->host_no); 
instance2132drivers/scsi/NCR5380.cstruct Scsi_Host *instance;
instance2135drivers/scsi/NCR5380.cinstance = SCpnt->host;
instance2136drivers/scsi/NCR5380.cNCR5380_setup(instance);
instance225drivers/scsi/NCR5380.hstatic int NCR5380_probe_irq (struct Scsi_Host *instance, int possible);
instance227drivers/scsi/NCR5380.hstatic void NCR5380_init (struct Scsi_Host *instance);
instance228drivers/scsi/NCR5380.hstatic void NCR5380_information_transfer (struct Scsi_Host *instance);
instance231drivers/scsi/NCR5380.hstatic void NCR5380_print_options (struct Scsi_Host *instance);
instance246drivers/scsi/NCR5380.hstatic void NCR5380_reselect (struct Scsi_Host *instance);
instance247drivers/scsi/NCR5380.hstatic int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag);
instance249drivers/scsi/NCR5380.hstatic int NCR5380_transfer_dma (struct Scsi_Host *instance,
instance252drivers/scsi/NCR5380.hstatic int NCR5380_transfer_pio (struct Scsi_Host *instance,
instance128drivers/scsi/g_NCR5380.cstruct Scsi_Host *instance;
instance134drivers/scsi/g_NCR5380.cinstance = scsi_register (hostno, sizeof(struct NCR5380_hostdata));
instance135drivers/scsi/g_NCR5380.cinstance->io_port = overrides[current_override].port;
instance137drivers/scsi/g_NCR5380.cNCR5380_init(instance);
instance140drivers/scsi/g_NCR5380.cinstance->irq = overrides[current_override].irq;
instance142drivers/scsi/g_NCR5380.cinstance->irq = NCR5380_probe_irq(instance, 0xffff);
instance144drivers/scsi/g_NCR5380.cif (instance->irq != IRQ_NONE) 
instance145drivers/scsi/g_NCR5380.cif (irqaction (instance->irq, &sa)) {
instance147drivers/scsi/g_NCR5380.chostno, instance->irq);
instance148drivers/scsi/g_NCR5380.cinstance->irq = IRQ_NONE;
instance151drivers/scsi/g_NCR5380.cif (instance->irq == IRQ_NONE) {
instance156drivers/scsi/g_NCR5380.cprintk("scsi%d : at port %d", instance->host_no, instance->io_port);
instance157drivers/scsi/g_NCR5380.cif (instance->irq == IRQ_NONE)
instance160drivers/scsi/g_NCR5380.cprintk (" irq %d", instance->irq);
instance163drivers/scsi/g_NCR5380.cNCR5380_print_options(instance);
instance71drivers/scsi/g_NCR5380.h#define NCR5380_setup(instance) \
instance72drivers/scsi/g_NCR5380.hport = (instance)->io_port
instance296drivers/scsi/pas16.cstruct Scsi_Host *instance;
instance332drivers/scsi/pas16.cinstance = scsi_register (hostno, sizeof(struct NCR5380_hostdata));
instance333drivers/scsi/pas16.cinstance->io_port = io_port;
instance335drivers/scsi/pas16.cNCR5380_init(instance);
instance338drivers/scsi/pas16.cinstance->irq = overrides[current_override].irq;
instance340drivers/scsi/pas16.cinstance->irq = NCR5380_probe_irq(instance, PAS16_IRQS);
instance342drivers/scsi/pas16.cif (instance->irq != IRQ_NONE) 
instance343drivers/scsi/pas16.cif (irqaction (instance->irq, &pas16_sigaction)) {
instance345drivers/scsi/pas16.chostno, instance->irq);
instance346drivers/scsi/pas16.cinstance->irq = IRQ_NONE;
instance349drivers/scsi/pas16.cif (instance->irq == IRQ_NONE) {
instance355drivers/scsi/pas16.cprintk("scsi%d : irq = %d\n", hostno, instance->irq);
instance358drivers/scsi/pas16.cprintk("scsi%d : at 0x%04x", instance->host_no, (int) 
instance359drivers/scsi/pas16.cinstance->io_port);
instance360drivers/scsi/pas16.cif (instance->irq == IRQ_NONE)
instance363drivers/scsi/pas16.cprintk (" irq %d", instance->irq);
instance366drivers/scsi/pas16.cNCR5380_print_options(instance);
instance417drivers/scsi/pas16.cstatic inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,
instance420drivers/scsi/pas16.cregister unsigned short reg = (unsigned short) (instance->io_port + 
instance424drivers/scsi/pas16.cwhile ( inb(instance->io_port + P_STATUS_REG_OFFSET) & P_ST_RDY );
instance429drivers/scsi/pas16.cif ( inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) {
instance430drivers/scsi/pas16.coutb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET);
instance432drivers/scsi/pas16.cinstance->host_no);
instance451drivers/scsi/pas16.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,
instance454drivers/scsi/pas16.cregister unsigned short reg = (instance->io_port + P_DATA_REG_OFFSET);
instance457drivers/scsi/pas16.cwhile ( ( inb( instance->io_port + P_STATUS_REG_OFFSET ) ) & P_ST_RDY );
instance461drivers/scsi/pas16.cif (inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) {
instance462drivers/scsi/pas16.coutb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET);
instance464drivers/scsi/pas16.cinstance->host_no);
instance158drivers/scsi/pas16.h#define NCR5380_setup(instance) \
instance159drivers/scsi/pas16.hio_port = (instance)->io_port
instance169drivers/scsi/pas16.h, instance->hostno, (reg), PAS16_io_port(reg))), inb( PAS16_io_port(reg)) )
instance173drivers/scsi/pas16.hinstance->hostno, (value), (reg), PAS16_io_port(reg)),  \
instance198drivers/scsi/t128.cstruct Scsi_Host *instance;
instance231drivers/scsi/t128.cinstance = scsi_register (hostno, sizeof(struct NCR5380_hostdata));
instance232drivers/scsi/t128.cinstance->base = base;
instance234drivers/scsi/t128.cNCR5380_init(instance);
instance237drivers/scsi/t128.cinstance->irq = overrides[current_override].irq;
instance239drivers/scsi/t128.cinstance->irq = NCR5380_probe_irq(instance, T128_IRQS);
instance241drivers/scsi/t128.cif (instance->irq != IRQ_NONE) 
instance242drivers/scsi/t128.cif (irqaction (instance->irq, &t128_sigaction)) {
instance244drivers/scsi/t128.chostno, instance->irq);
instance245drivers/scsi/t128.cinstance->irq = IRQ_NONE;
instance248drivers/scsi/t128.cif (instance->irq == IRQ_NONE) {
instance254drivers/scsi/t128.cprintk("scsi%d : irq = %d\n", hostno, instance->irq);
instance257drivers/scsi/t128.cprintk("scsi%d : at 0x%08x", instance->host_no, (int) 
instance258drivers/scsi/t128.cinstance->base);
instance259drivers/scsi/t128.cif (instance->irq == IRQ_NONE)
instance262drivers/scsi/t128.cprintk (" irq %d", instance->irq);
instance265drivers/scsi/t128.cNCR5380_print_options(instance);
instance316drivers/scsi/t128.cstatic inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,
instance318drivers/scsi/t128.cregister unsigned char *reg = (unsigned char *) (instance->base + 
instance322drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY);
instance327drivers/scsi/t128.cif (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {
instance330drivers/scsi/t128.cfoo = instance->base + T_CONTROL_REG_OFFSET;
instance335drivers/scsi/t128.cinstance->host_no);
instance354drivers/scsi/t128.cstatic inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,
instance356drivers/scsi/t128.cregister unsigned char *reg = (unsigned char *) (instance->base + 
instance360drivers/scsi/t128.cwhile (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY);
instance364drivers/scsi/t128.cif (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {
instance367drivers/scsi/t128.cfoo = instance->base + T_CONTROL_REG_OFFSET;
instance372drivers/scsi/t128.cinstance->host_no);
instance135drivers/scsi/t128.h#define NCR5380_setup(instance) \
instance136drivers/scsi/t128.hbase = (volatile unsigned char *) (instance)->base
instance146drivers/scsi/t128.h, instance->hostno, (reg), T128_address(reg))), *(T128_address(reg)))
instance150drivers/scsi/t128.hinstance->hostno, (value), (reg), T128_address(reg));  \