tag | line | file | source code |
instance | 1175 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *instance; |
instance | 1257 | drivers/scsi/53c7,8xx.c | instance = scsi_register (tpnt, size); |
instance | 1258 | drivers/scsi/53c7,8xx.c | if (!instance) |
instance | 1266 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
instance | 1269 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) instance->hostdata; |
instance | 1292 | drivers/scsi/53c7,8xx.c | instance->base = (unsigned char *) (unsigned long) base; |
instance | 1303 | drivers/scsi/53c7,8xx.c | instance->io_port = io_port; |
instance | 1312 | drivers/scsi/53c7,8xx.c | instance->host_no); |
instance | 1313 | drivers/scsi/53c7,8xx.c | scsi_unregister (instance); |
instance | 1316 | drivers/scsi/53c7,8xx.c | instance->irq = irq; |
instance | 1317 | drivers/scsi/53c7,8xx.c | instance->dma_channel = dma; |
instance | 1365 | drivers/scsi/53c7,8xx.c | return NCR53c7x0_init(instance); |
instance | 3063 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
instance | 3068 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) instance->breakpoints, |
instance | 3069 | drivers/scsi/53c7,8xx.c | prev = (struct NCR53c7x0_break **) &instance->breakpoints; |
instance | 3248 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *instance; |
instance | 346 | drivers/scsi/NCR5380.c | static void NCR5380_print(struct Scsi_Host *instance) { |
instance | 349 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 388 | drivers/scsi/NCR5380.c | static void NCR5380_print_phase(struct Scsi_Host *instance) { |
instance | 392 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 397 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 401 | drivers/scsi/NCR5380.c | printk("scsi%d : phase %s\n", instance->host_no, phases[i].name); |
instance | 522 | drivers/scsi/NCR5380.c | static int NCR5380_set_timer (struct Scsi_Host *instance) { |
instance | 526 | drivers/scsi/NCR5380.c | if (((struct NCR5380_hostdata *) (instance->host_data))->next_timer) { |
instance | 534 | drivers/scsi/NCR5380.c | if (instance->time_expires < tmp->time_expires) |
instance | 537 | drivers/scsi/NCR5380.c | instance->next_timer = tmp; |
instance | 538 | drivers/scsi/NCR5380.c | *prev = instance; |
instance | 547 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 550 | drivers/scsi/NCR5380.c | instance = ((NCR5380_hostdata *) expires_first->host_data)-> |
instance | 556 | drivers/scsi/NCR5380.c | expires_first = instance; |
instance | 607 | drivers/scsi/NCR5380.c | static int NCR5380_probe_irq (struct Scsi_Host *instance, int possible) { |
instance | 610 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 613 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 662 | drivers/scsi/NCR5380.c | static void NCR5380_print_options (struct Scsi_Host *instance) { |
instance | 712 | drivers/scsi/NCR5380.c | static void NCR5380_print_status (struct Scsi_Host *instance) { |
instance | 714 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 722 | drivers/scsi/NCR5380.c | NCR5380_print (instance); |
instance | 723 | drivers/scsi/NCR5380.c | NCR5380_print_phase (instance); |
instance | 729 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 734 | drivers/scsi/NCR5380.c | printk ("scsi%d: issue_queue\n", instance->host_no); |
instance | 740 | drivers/scsi/NCR5380.c | printk ("scsi%d: disconnected_queue\n", instance->host_no); |
instance | 763 | drivers/scsi/NCR5380.c | static void NCR5380_init (struct Scsi_Host *instance, int flags) { |
instance | 767 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 775 | drivers/scsi/NCR5380.c | instance->io_port += 8; |
instance | 777 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 782 | drivers/scsi/NCR5380.c | hostdata->id_mask = 1 << instance->this_id; |
instance | 798 | drivers/scsi/NCR5380.c | the_template = instance->hostt; |
instance | 799 | drivers/scsi/NCR5380.c | first_instance = instance; |
instance | 809 | drivers/scsi/NCR5380.c | if ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) |
instance | 812 | drivers/scsi/NCR5380.c | " be incorrectly cleared.\n", instance->host_no); |
instance | 858 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 894 | drivers/scsi/NCR5380.c | printk("scsi%d : command added to %s of queue\n", instance->host_no, |
instance | 917 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 936 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && |
instance | 937 | drivers/scsi/NCR5380.c | instance->hostt == the_template; instance=instance->next) { |
instance | 938 | drivers/scsi/NCR5380.c | hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
instance | 942 | drivers/scsi/NCR5380.c | printk("scsi%d : not connected\n", instance->host_no); |
instance | 971 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun); |
instance | 980 | drivers/scsi/NCR5380.c | if (!NCR5380_select(instance, tmp, |
instance | 992 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1009 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1011 | drivers/scsi/NCR5380.c | NCR5380_information_transfer(instance); |
instance | 1013 | drivers/scsi/NCR5380.c | printk("scsi%d : main() : done set false\n", instance->host_no); |
instance | 1036 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 1044 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && (instance->hostt == |
instance | 1045 | drivers/scsi/NCR5380.c | the_template); instance = instance->next) |
instance | 1046 | drivers/scsi/NCR5380.c | if (instance->irq == irq) { |
instance | 1049 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1054 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1061 | drivers/scsi/NCR5380.c | printk("scsi%d : SEL interrupt\n", instance->host_no); |
instance | 1063 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 1067 | drivers/scsi/NCR5380.c | printk("scsi%d : PARITY interrupt\n", instance->host_no); |
instance | 1072 | drivers/scsi/NCR5380.c | printk("scsi%d : RESET interrupt\n", instance->host_no); |
instance | 1095 | drivers/scsi/NCR5380.c | instance->hostno); |
instance | 1097 | drivers/scsi/NCR5380.c | transfered = (hostdata->dmalen - NCR5380_dma_residual(instance)); |
instance | 1165 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
instance | 1169 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1174 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1178 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1179 | drivers/scsi/NCR5380.c | printk("scsi%d : starting arbitration, id = %d\n", instance->host_no, |
instance | 1180 | drivers/scsi/NCR5380.c | instance->this_id); |
instance | 1222 | drivers/scsi/NCR5380.c | printk("scsi%d : arbitration complete\n", instance->host_no); |
instance | 1243 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1257 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1270 | drivers/scsi/NCR5380.c | printk("scsi%d : won arbitration\n", instance->host_no); |
instance | 1318 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
instance | 1340 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 1342 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1352 | drivers/scsi/NCR5380.c | printk("scsi%d : weirdness\n", instance->host_no); |
instance | 1356 | drivers/scsi/NCR5380.c | NCR5380_print (instance); |
instance | 1366 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1394 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
instance | 1396 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
instance | 1423 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1425 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus established.\n", instance->host_no); |
instance | 1465 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 1471 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1489 | drivers/scsi/NCR5380.c | printk("scsi%d : REQ detected\n", instance->host_no); |
instance | 1495 | drivers/scsi/NCR5380.c | printk("scsi%d : phase mismatch\n", instance->host_no); |
instance | 1496 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 1521 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1529 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1536 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1544 | drivers/scsi/NCR5380.c | printk("scsi%d : req false, handshake complete\n", instance->host_no); |
instance | 1567 | drivers/scsi/NCR5380.c | printk("scsi%d : residual %d\n", instance->host_no, c); |
instance | 1605 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 1619 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1621 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1635 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
instance | 1639 | drivers/scsi/NCR5380.c | NCR5380_dma_read_setup(instance, d, c) : |
instance | 1640 | drivers/scsi/NCR5380.c | NCR5380_dma_write_setup(instance, d, c); |
instance | 1663 | drivers/scsi/NCR5380.c | printk("scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG)); |
instance | 1757 | drivers/scsi/NCR5380.c | instance->host_no, tmp, NCR5380_read(STATUS_REG)); |
instance | 1763 | drivers/scsi/NCR5380.c | residue = NCR5380_dma_residual(instance); |
instance | 1786 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, phase, &cnt, data); |
instance | 1801 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pread(instance, d, c - 1))) { |
instance | 1831 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pwrite(instance, d, c))) { |
instance | 1857 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1867 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1910 | drivers/scsi/NCR5380.c | static void NCR5380_information_transfer (struct Scsi_Host *instance) { |
instance | 1913 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1923 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1933 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 1954 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1972 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
instance | 1990 | drivers/scsi/NCR5380.c | (transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) { |
instance | 2004 | drivers/scsi/NCR5380.c | if (NCR5380_transfer_dma(instance, &phase, |
instance | 2011 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2022 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, |
instance | 2029 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2051 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2061 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2075 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2088 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2118 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2179 | drivers/scsi/NCR5380.c | " the disconnected_queue\n", instance->host_no, |
instance | 2228 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2234 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2238 | drivers/scsi/NCR5380.c | instance->host_no, (int) extended_msg[1], |
instance | 2250 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2254 | drivers/scsi/NCR5380.c | instance->host_no, len); |
instance | 2266 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2270 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[2], extended_msg[1]); |
instance | 2281 | drivers/scsi/NCR5380.c | printk("scsi%d: rejecting message ", instance->host_no); |
instance | 2286 | drivers/scsi/NCR5380.c | instance->host_no, tmp, cmd->target, cmd->lun); |
instance | 2289 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun); |
instance | 2301 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2320 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
instance | 2326 | drivers/scsi/NCR5380.c | printk("scsi%d : issued command, sleeping until %ul\n", instance->host_no, |
instance | 2329 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 2337 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2341 | drivers/scsi/NCR5380.c | printk("scsi%d : unknown phase\n", instance->host_no); |
instance | 2343 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 2353 | drivers/scsi/NCR5380.c | printk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no, |
instance | 2356 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 2376 | drivers/scsi/NCR5380.c | static void NCR5380_reselect (struct Scsi_Host *instance) { |
instance | 2379 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2390 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2403 | drivers/scsi/NCR5380.c | printk("scsi%d : reselect\n", instance->host_no); |
instance | 2429 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2434 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2476 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun, tag); |
instance | 2479 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun); |
instance | 2495 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2500 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun, tmp->tag); |
instance | 2518 | drivers/scsi/NCR5380.c | static void NCR5380_dma_complete (NCR5380_instance *instance) { |
instance | 2521 | drivers/scsi/NCR5380.c | instance->hostdata); |
instance | 2523 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2546 | drivers/scsi/NCR5380.c | transferred = instance->dmalen - NCR5380_dma_residual(); |
instance | 2575 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
instance | 2577 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2582 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting command\n", instance->host_no); |
instance | 2585 | drivers/scsi/NCR5380.c | NCR5380_print_status (instance); |
instance | 2588 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2591 | drivers/scsi/NCR5380.c | printk("scsi%d : abort called\n", instance->host_no); |
instance | 2605 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting connected command\n", instance->host_no); |
instance | 2644 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2664 | drivers/scsi/NCR5380.c | printk("scsi%d : abort failed, command connected.\n", instance->host_no); |
instance | 2699 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting disconnected command.\n", instance->host_no); |
instance | 2702 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
instance | 2706 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus reestablished.\n", instance->host_no); |
instance | 2714 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (instance, &phase, &len, &msgptr); |
instance | 2743 | drivers/scsi/NCR5380.c | " before abortion\n", instance->host_no); |
instance | 271 | drivers/scsi/NCR5380.h | static int NCR5380_probe_irq (struct Scsi_Host *instance, int possible); |
instance | 273 | drivers/scsi/NCR5380.h | static void NCR5380_init (struct Scsi_Host *instance, int flags); |
instance | 274 | drivers/scsi/NCR5380.h | static void NCR5380_information_transfer (struct Scsi_Host *instance); |
instance | 277 | drivers/scsi/NCR5380.h | static void NCR5380_print_options (struct Scsi_Host *instance); |
instance | 292 | drivers/scsi/NCR5380.h | static void NCR5380_reselect (struct Scsi_Host *instance); |
instance | 293 | drivers/scsi/NCR5380.h | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
instance | 295 | drivers/scsi/NCR5380.h | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 298 | drivers/scsi/NCR5380.h | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 302 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_setup (struct Scsi_Host *instance, |
instance | 306 | drivers/scsi/NCR5380.h | if (instance->dma_channel <=3) { |
instance | 319 | drivers/scsi/NCR5380.h | panic ("scsi%d : attempted unaligned DMA transfer\n", instance->host_no); |
instance | 321 | drivers/scsi/NCR5380.h | disable_dma(instance->dma_channel); |
instance | 322 | drivers/scsi/NCR5380.h | clear_dma_ff(instance->dma_channel); |
instance | 323 | drivers/scsi/NCR5380.h | set_dma_addr(instance->dma_channel, (unsigned int) ptr); |
instance | 324 | drivers/scsi/NCR5380.h | set_dma_count(instance->dma_channel, count); |
instance | 325 | drivers/scsi/NCR5380.h | set_dma_mode(instance->dma_channel, mode); |
instance | 326 | drivers/scsi/NCR5380.h | enable_dma(instance->dma_channel); |
instance | 331 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_write_setup (struct Scsi_Host *instance, |
instance | 333 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_WRITE); |
instance | 336 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_read_setup (struct Scsi_Host *instance, |
instance | 338 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_READ); |
instance | 341 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_residual (struct Scsi_Host *instance) { |
instance | 344 | drivers/scsi/NCR5380.h | clear_dma_ff(instance->dma_channel); |
instance | 345 | drivers/scsi/NCR5380.h | tmp = get_dma_residue(instance->dma_channel); |
instance | 128 | drivers/scsi/g_NCR5380.c | struct Scsi_Host *instance; |
instance | 136 | drivers/scsi/g_NCR5380.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 137 | drivers/scsi/g_NCR5380.c | instance->io_port = overrides[current_override].port; |
instance | 139 | drivers/scsi/g_NCR5380.c | NCR5380_init(instance, 0); |
instance | 142 | drivers/scsi/g_NCR5380.c | instance->irq = overrides[current_override].irq; |
instance | 144 | drivers/scsi/g_NCR5380.c | instance->irq = NCR5380_probe_irq(instance, 0xffff); |
instance | 146 | drivers/scsi/g_NCR5380.c | if (instance->irq != IRQ_NONE) |
instance | 147 | drivers/scsi/g_NCR5380.c | if (request_irq(instance->irq, generic_NCR5380_intr, SA_INTERRUPT, "NCR5380")) { |
instance | 149 | drivers/scsi/g_NCR5380.c | instance->host_no, instance->irq); |
instance | 150 | drivers/scsi/g_NCR5380.c | instance->irq = IRQ_NONE; |
instance | 153 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) { |
instance | 154 | drivers/scsi/g_NCR5380.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 155 | drivers/scsi/g_NCR5380.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 158 | drivers/scsi/g_NCR5380.c | printk("scsi%d : at port %d", instance->host_no, instance->io_port); |
instance | 159 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) |
instance | 162 | drivers/scsi/g_NCR5380.c | printk (" irq %d", instance->irq); |
instance | 165 | drivers/scsi/g_NCR5380.c | NCR5380_print_options(instance); |
instance | 74 | drivers/scsi/g_NCR5380.h | #define NCR5380_setup(instance) \ |
instance | 75 | drivers/scsi/g_NCR5380.h | port = (instance)->io_port |
instance | 355 | drivers/scsi/pas16.c | struct Scsi_Host *instance; |
instance | 393 | drivers/scsi/pas16.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 394 | drivers/scsi/pas16.c | instance->io_port = io_port; |
instance | 396 | drivers/scsi/pas16.c | NCR5380_init(instance, 0); |
instance | 399 | drivers/scsi/pas16.c | instance->irq = overrides[current_override].irq; |
instance | 401 | drivers/scsi/pas16.c | instance->irq = NCR5380_probe_irq(instance, PAS16_IRQS); |
instance | 403 | drivers/scsi/pas16.c | if (instance->irq != IRQ_NONE) |
instance | 404 | drivers/scsi/pas16.c | if (request_irq(instance->irq, pas16_intr, SA_INTERRUPT, "pas16")) { |
instance | 406 | drivers/scsi/pas16.c | instance->host_no, instance->irq); |
instance | 407 | drivers/scsi/pas16.c | instance->irq = IRQ_NONE; |
instance | 410 | drivers/scsi/pas16.c | if (instance->irq == IRQ_NONE) { |
instance | 411 | drivers/scsi/pas16.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 412 | drivers/scsi/pas16.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 419 | drivers/scsi/pas16.c | printk("scsi%d : irq = %d\n", instance->host_no, instance->irq); |
instance | 422 | drivers/scsi/pas16.c | printk("scsi%d : at 0x%04x", instance->host_no, (int) |
instance | 423 | drivers/scsi/pas16.c | instance->io_port); |
instance | 424 | drivers/scsi/pas16.c | if (instance->irq == IRQ_NONE) |
instance | 427 | drivers/scsi/pas16.c | printk (" irq %d", instance->irq); |
instance | 430 | drivers/scsi/pas16.c | NCR5380_print_options(instance); |
instance | 489 | drivers/scsi/pas16.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, |
instance | 492 | drivers/scsi/pas16.c | register unsigned short reg = (unsigned short) (instance->io_port + |
instance | 496 | drivers/scsi/pas16.c | while ( !(inb(instance->io_port + P_STATUS_REG_OFFSET) & P_ST_RDY) ); |
instance | 500 | drivers/scsi/pas16.c | if ( inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) { |
instance | 501 | drivers/scsi/pas16.c | outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET); |
instance | 503 | drivers/scsi/pas16.c | instance->host_no); |
instance | 522 | drivers/scsi/pas16.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, |
instance | 525 | drivers/scsi/pas16.c | register unsigned short reg = (instance->io_port + P_DATA_REG_OFFSET); |
instance | 528 | drivers/scsi/pas16.c | while ( !((inb(instance->io_port + P_STATUS_REG_OFFSET)) & P_ST_RDY) ); |
instance | 532 | drivers/scsi/pas16.c | if (inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) { |
instance | 533 | drivers/scsi/pas16.c | outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET); |
instance | 535 | drivers/scsi/pas16.c | instance->host_no); |
instance | 160 | drivers/scsi/pas16.h | #define NCR5380_setup(instance) \ |
instance | 161 | drivers/scsi/pas16.h | io_port = (instance)->io_port |
instance | 171 | drivers/scsi/pas16.h | , instance->hostno, (reg), PAS16_io_port(reg))), inb( PAS16_io_port(reg)) ) |
instance | 175 | drivers/scsi/pas16.h | instance->hostno, (value), (reg), PAS16_io_port(reg)), \ |
instance | 286 | drivers/scsi/seagate.c | struct Scsi_Host *instance; |
instance | 358 | drivers/scsi/seagate.c | instance = scsi_register(tpnt, 0); |
instance | 359 | drivers/scsi/seagate.c | hostno = instance->host_no; |
instance | 366 | drivers/scsi/seagate.c | instance->irq = irq; |
instance | 367 | drivers/scsi/seagate.c | instance->io_port = (unsigned int) base_address; |
instance | 201 | drivers/scsi/t128.c | struct Scsi_Host *instance; |
instance | 236 | drivers/scsi/t128.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 237 | drivers/scsi/t128.c | instance->base = base; |
instance | 239 | drivers/scsi/t128.c | NCR5380_init(instance, 0); |
instance | 242 | drivers/scsi/t128.c | instance->irq = overrides[current_override].irq; |
instance | 244 | drivers/scsi/t128.c | instance->irq = NCR5380_probe_irq(instance, T128_IRQS); |
instance | 246 | drivers/scsi/t128.c | if (instance->irq != IRQ_NONE) |
instance | 247 | drivers/scsi/t128.c | if (request_irq(instance->irq, t128_intr, SA_INTERRUPT, "t128")) { |
instance | 249 | drivers/scsi/t128.c | instance->host_no, instance->irq); |
instance | 250 | drivers/scsi/t128.c | instance->irq = IRQ_NONE; |
instance | 253 | drivers/scsi/t128.c | if (instance->irq == IRQ_NONE) { |
instance | 254 | drivers/scsi/t128.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 255 | drivers/scsi/t128.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 259 | drivers/scsi/t128.c | printk("scsi%d : irq = %d\n", instance->host_no, instance->irq); |
instance | 262 | drivers/scsi/t128.c | printk("scsi%d : at 0x%08x", instance->host_no, (int) |
instance | 263 | drivers/scsi/t128.c | instance->base); |
instance | 264 | drivers/scsi/t128.c | if (instance->irq == IRQ_NONE) |
instance | 267 | drivers/scsi/t128.c | printk (" irq %d", instance->irq); |
instance | 270 | drivers/scsi/t128.c | NCR5380_print_options(instance); |
instance | 321 | drivers/scsi/t128.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, |
instance | 323 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
instance | 330 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
instance | 332 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
instance | 338 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
instance | 341 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
instance | 346 | drivers/scsi/t128.c | instance->host_no); |
instance | 365 | drivers/scsi/t128.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, |
instance | 367 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
instance | 373 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
instance | 375 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
instance | 381 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
instance | 384 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
instance | 389 | drivers/scsi/t128.c | instance->host_no); |
instance | 138 | drivers/scsi/t128.h | #define NCR5380_setup(instance) \ |
instance | 139 | drivers/scsi/t128.h | base = (volatile unsigned char *) (instance)->base |
instance | 149 | drivers/scsi/t128.h | , instance->hostno, (reg), T128_address(reg))), *(T128_address(reg))) |
instance | 153 | drivers/scsi/t128.h | instance->hostno, (value), (reg), T128_address(reg)); \ |