tag | line | file | source code |
instance | 687 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *instance; |
instance | 730 | drivers/scsi/53c7,8xx.c | instance = scsi_register (tpnt, size); |
instance | 732 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
instance | 735 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) instance->hostdata; |
instance | 758 | drivers/scsi/53c7,8xx.c | instance->base = (unsigned char *) base; |
instance | 769 | drivers/scsi/53c7,8xx.c | instance->io_port = io_port; |
instance | 778 | drivers/scsi/53c7,8xx.c | instance->host_no); |
instance | 779 | drivers/scsi/53c7,8xx.c | scsi_unregister (instance); |
instance | 782 | drivers/scsi/53c7,8xx.c | instance->irq = irq; |
instance | 783 | drivers/scsi/53c7,8xx.c | instance->dma_channel = dma; |
instance | 787 | drivers/scsi/53c7,8xx.c | return NCR53c7x0_init(instance); |
instance | 1948 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
instance | 1952 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) instance->breakpoints, |
instance | 1953 | drivers/scsi/53c7,8xx.c | prev = (struct NCR53c7x0_break **) &instance->breakpoints; |
instance | 2126 | 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 | 661 | drivers/scsi/NCR5380.c | static void NCR5380_print_options (struct Scsi_Host *instance) { |
instance | 711 | drivers/scsi/NCR5380.c | static void NCR5380_print_status (struct Scsi_Host *instance) { |
instance | 713 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 721 | drivers/scsi/NCR5380.c | NCR5380_print (instance); |
instance | 722 | drivers/scsi/NCR5380.c | NCR5380_print_phase (instance); |
instance | 728 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 733 | drivers/scsi/NCR5380.c | printk ("scsi%d: issue_queue\n", instance->host_no); |
instance | 739 | drivers/scsi/NCR5380.c | printk ("scsi%d: disconnected_queue\n", instance->host_no); |
instance | 762 | drivers/scsi/NCR5380.c | static void NCR5380_init (struct Scsi_Host *instance, int flags) { |
instance | 766 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 774 | drivers/scsi/NCR5380.c | instance->io_port += 8; |
instance | 776 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 781 | drivers/scsi/NCR5380.c | hostdata->id_mask = 1 << instance->this_id; |
instance | 797 | drivers/scsi/NCR5380.c | the_template = instance->hostt; |
instance | 798 | drivers/scsi/NCR5380.c | first_instance = instance; |
instance | 808 | drivers/scsi/NCR5380.c | if ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) |
instance | 811 | drivers/scsi/NCR5380.c | " be incorrectly cleared.\n", instance->host_no); |
instance | 857 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 893 | drivers/scsi/NCR5380.c | printk("scsi%d : command added to %s of queue\n", instance->host_no, |
instance | 916 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 935 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && |
instance | 936 | drivers/scsi/NCR5380.c | instance->hostt == the_template; instance=instance->next) { |
instance | 937 | drivers/scsi/NCR5380.c | hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
instance | 941 | drivers/scsi/NCR5380.c | printk("scsi%d : not connected\n", instance->host_no); |
instance | 970 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun); |
instance | 979 | drivers/scsi/NCR5380.c | if (!NCR5380_select(instance, tmp, |
instance | 991 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1008 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1010 | drivers/scsi/NCR5380.c | NCR5380_information_transfer(instance); |
instance | 1012 | drivers/scsi/NCR5380.c | printk("scsi%d : main() : done set false\n", instance->host_no); |
instance | 1035 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 1043 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && (instance->hostt == |
instance | 1044 | drivers/scsi/NCR5380.c | the_template); instance = instance->next) |
instance | 1045 | drivers/scsi/NCR5380.c | if (instance->irq == irq) { |
instance | 1048 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1053 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1060 | drivers/scsi/NCR5380.c | printk("scsi%d : SEL interrupt\n", instance->host_no); |
instance | 1062 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 1066 | drivers/scsi/NCR5380.c | printk("scsi%d : PARITY interrupt\n", instance->host_no); |
instance | 1071 | drivers/scsi/NCR5380.c | printk("scsi%d : RESET interrupt\n", instance->host_no); |
instance | 1094 | drivers/scsi/NCR5380.c | instance->hostno); |
instance | 1096 | drivers/scsi/NCR5380.c | transfered = (hostdata->dmalen - NCR5380_dma_residual(instance)); |
instance | 1164 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
instance | 1168 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1173 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1177 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1178 | drivers/scsi/NCR5380.c | printk("scsi%d : starting arbitration, id = %d\n", instance->host_no, |
instance | 1179 | drivers/scsi/NCR5380.c | instance->this_id); |
instance | 1221 | drivers/scsi/NCR5380.c | printk("scsi%d : arbitration complete\n", instance->host_no); |
instance | 1242 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1256 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1269 | drivers/scsi/NCR5380.c | printk("scsi%d : won arbitration\n", instance->host_no); |
instance | 1317 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
instance | 1339 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 1341 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1351 | drivers/scsi/NCR5380.c | printk("scsi%d : weirdness\n", instance->host_no); |
instance | 1355 | drivers/scsi/NCR5380.c | NCR5380_print (instance); |
instance | 1365 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1393 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
instance | 1395 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
instance | 1422 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1424 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus established.\n", instance->host_no); |
instance | 1464 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 1470 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1488 | drivers/scsi/NCR5380.c | printk("scsi%d : REQ detected\n", instance->host_no); |
instance | 1494 | drivers/scsi/NCR5380.c | printk("scsi%d : phase mismatch\n", instance->host_no); |
instance | 1495 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 1520 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1528 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1535 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1543 | drivers/scsi/NCR5380.c | printk("scsi%d : req false, handshake complete\n", instance->host_no); |
instance | 1566 | drivers/scsi/NCR5380.c | printk("scsi%d : residual %d\n", instance->host_no, c); |
instance | 1604 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 1618 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1620 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1634 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
instance | 1638 | drivers/scsi/NCR5380.c | NCR5380_dma_read_setup(instance, d, c) : |
instance | 1639 | drivers/scsi/NCR5380.c | NCR5380_dma_write_setup(instance, d, c); |
instance | 1662 | drivers/scsi/NCR5380.c | printk("scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG)); |
instance | 1756 | drivers/scsi/NCR5380.c | instance->host_no, tmp, NCR5380_read(STATUS_REG)); |
instance | 1762 | drivers/scsi/NCR5380.c | residue = NCR5380_dma_residual(instance); |
instance | 1785 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, phase, &cnt, data); |
instance | 1800 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pread(instance, d, c - 1))) { |
instance | 1830 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pwrite(instance, d, c))) { |
instance | 1856 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1866 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1909 | drivers/scsi/NCR5380.c | static void NCR5380_information_transfer (struct Scsi_Host *instance) { |
instance | 1912 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1919 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1929 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 1950 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1968 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
instance | 1986 | drivers/scsi/NCR5380.c | (transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) { |
instance | 2000 | drivers/scsi/NCR5380.c | if (NCR5380_transfer_dma(instance, &phase, |
instance | 2007 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2018 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, |
instance | 2025 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2047 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2057 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2071 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2084 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2114 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2175 | drivers/scsi/NCR5380.c | " the disconnected_queue\n", instance->host_no, |
instance | 2224 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2230 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2234 | drivers/scsi/NCR5380.c | instance->host_no, (int) extended_msg[1], |
instance | 2246 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2250 | drivers/scsi/NCR5380.c | instance->host_no, len); |
instance | 2262 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2266 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[2], extended_msg[1]); |
instance | 2277 | drivers/scsi/NCR5380.c | printk("scsi%d: rejecting message ", instance->host_no); |
instance | 2282 | drivers/scsi/NCR5380.c | instance->host_no, tmp, cmd->target, cmd->lun); |
instance | 2285 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun); |
instance | 2297 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2316 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
instance | 2322 | drivers/scsi/NCR5380.c | printk("scsi%d : issued command, sleeping until %ul\n", instance->host_no, |
instance | 2325 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 2333 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2337 | drivers/scsi/NCR5380.c | printk("scsi%d : unknown phase\n", instance->host_no); |
instance | 2339 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 2349 | drivers/scsi/NCR5380.c | printk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no, |
instance | 2352 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 2372 | drivers/scsi/NCR5380.c | static void NCR5380_reselect (struct Scsi_Host *instance) { |
instance | 2375 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2386 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2399 | drivers/scsi/NCR5380.c | printk("scsi%d : reselect\n", instance->host_no); |
instance | 2425 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2430 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2472 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun, tag); |
instance | 2475 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun); |
instance | 2491 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2496 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun, tmp->tag); |
instance | 2514 | drivers/scsi/NCR5380.c | static void NCR5380_dma_complete (NCR5380_instance *instance) { |
instance | 2517 | drivers/scsi/NCR5380.c | instance->hostdata); |
instance | 2519 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2542 | drivers/scsi/NCR5380.c | transferred = instance->dmalen - NCR5380_dma_residual(); |
instance | 2571 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
instance | 2573 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2578 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting command\n", instance->host_no); |
instance | 2581 | drivers/scsi/NCR5380.c | NCR5380_print_status (instance); |
instance | 2584 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2587 | drivers/scsi/NCR5380.c | printk("scsi%d : abort called\n", instance->host_no); |
instance | 2601 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting connected command\n", instance->host_no); |
instance | 2640 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2660 | drivers/scsi/NCR5380.c | printk("scsi%d : abort failed, command connected.\n", instance->host_no); |
instance | 2695 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting disconnected command.\n", instance->host_no); |
instance | 2698 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
instance | 2702 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus reestablished.\n", instance->host_no); |
instance | 2710 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (instance, &phase, &len, &msgptr); |
instance | 2739 | 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 | 122 | drivers/scsi/g_NCR5380.c | struct Scsi_Host *instance; |
instance | 128 | drivers/scsi/g_NCR5380.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 129 | drivers/scsi/g_NCR5380.c | instance->io_port = overrides[current_override].port; |
instance | 131 | drivers/scsi/g_NCR5380.c | NCR5380_init(instance, 0); |
instance | 134 | drivers/scsi/g_NCR5380.c | instance->irq = overrides[current_override].irq; |
instance | 136 | drivers/scsi/g_NCR5380.c | instance->irq = NCR5380_probe_irq(instance, 0xffff); |
instance | 138 | drivers/scsi/g_NCR5380.c | if (instance->irq != IRQ_NONE) |
instance | 139 | drivers/scsi/g_NCR5380.c | if (request_irq(instance->irq, generic_NCR5380_intr, SA_INTERRUPT, "NCR5380")) { |
instance | 141 | drivers/scsi/g_NCR5380.c | instance->host_no, instance->irq); |
instance | 142 | drivers/scsi/g_NCR5380.c | instance->irq = IRQ_NONE; |
instance | 145 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) { |
instance | 146 | drivers/scsi/g_NCR5380.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 147 | drivers/scsi/g_NCR5380.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 150 | drivers/scsi/g_NCR5380.c | printk("scsi%d : at port %d", instance->host_no, instance->io_port); |
instance | 151 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) |
instance | 154 | drivers/scsi/g_NCR5380.c | printk (" irq %d", instance->irq); |
instance | 157 | drivers/scsi/g_NCR5380.c | NCR5380_print_options(instance); |
instance | 70 | drivers/scsi/g_NCR5380.h | #define NCR5380_setup(instance) \ |
instance | 71 | drivers/scsi/g_NCR5380.h | port = (instance)->io_port |
instance | 344 | drivers/scsi/pas16.c | struct Scsi_Host *instance; |
instance | 380 | drivers/scsi/pas16.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 381 | drivers/scsi/pas16.c | instance->io_port = io_port; |
instance | 383 | drivers/scsi/pas16.c | NCR5380_init(instance, 0); |
instance | 386 | drivers/scsi/pas16.c | instance->irq = overrides[current_override].irq; |
instance | 388 | drivers/scsi/pas16.c | instance->irq = NCR5380_probe_irq(instance, PAS16_IRQS); |
instance | 390 | drivers/scsi/pas16.c | if (instance->irq != IRQ_NONE) |
instance | 391 | drivers/scsi/pas16.c | if (request_irq(instance->irq, pas16_intr, SA_INTERRUPT, "pas16")) { |
instance | 393 | drivers/scsi/pas16.c | instance->host_no, instance->irq); |
instance | 394 | drivers/scsi/pas16.c | instance->irq = IRQ_NONE; |
instance | 397 | drivers/scsi/pas16.c | if (instance->irq == IRQ_NONE) { |
instance | 398 | drivers/scsi/pas16.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 399 | drivers/scsi/pas16.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 406 | drivers/scsi/pas16.c | printk("scsi%d : irq = %d\n", instance->host_no, instance->irq); |
instance | 409 | drivers/scsi/pas16.c | printk("scsi%d : at 0x%04x", instance->host_no, (int) |
instance | 410 | drivers/scsi/pas16.c | instance->io_port); |
instance | 411 | drivers/scsi/pas16.c | if (instance->irq == IRQ_NONE) |
instance | 414 | drivers/scsi/pas16.c | printk (" irq %d", instance->irq); |
instance | 417 | drivers/scsi/pas16.c | NCR5380_print_options(instance); |
instance | 476 | drivers/scsi/pas16.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, |
instance | 479 | drivers/scsi/pas16.c | register unsigned short reg = (unsigned short) (instance->io_port + |
instance | 483 | drivers/scsi/pas16.c | while ( !(inb(instance->io_port + P_STATUS_REG_OFFSET) & P_ST_RDY) ); |
instance | 487 | drivers/scsi/pas16.c | if ( inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) { |
instance | 488 | drivers/scsi/pas16.c | outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET); |
instance | 490 | drivers/scsi/pas16.c | instance->host_no); |
instance | 509 | drivers/scsi/pas16.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, |
instance | 512 | drivers/scsi/pas16.c | register unsigned short reg = (instance->io_port + P_DATA_REG_OFFSET); |
instance | 515 | drivers/scsi/pas16.c | while ( !((inb(instance->io_port + P_STATUS_REG_OFFSET)) & P_ST_RDY) ); |
instance | 519 | drivers/scsi/pas16.c | if (inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) { |
instance | 520 | drivers/scsi/pas16.c | outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET); |
instance | 522 | drivers/scsi/pas16.c | instance->host_no); |
instance | 158 | drivers/scsi/pas16.h | #define NCR5380_setup(instance) \ |
instance | 159 | drivers/scsi/pas16.h | io_port = (instance)->io_port |
instance | 169 | drivers/scsi/pas16.h | , instance->hostno, (reg), PAS16_io_port(reg))), inb( PAS16_io_port(reg)) ) |
instance | 173 | drivers/scsi/pas16.h | instance->hostno, (value), (reg), PAS16_io_port(reg)), \ |
instance | 275 | drivers/scsi/seagate.c | struct Scsi_Host *instance; |
instance | 346 | drivers/scsi/seagate.c | instance = scsi_register(tpnt, 0); |
instance | 347 | drivers/scsi/seagate.c | hostno = instance->host_no; |
instance | 196 | drivers/scsi/t128.c | struct Scsi_Host *instance; |
instance | 229 | drivers/scsi/t128.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 230 | drivers/scsi/t128.c | instance->base = base; |
instance | 232 | drivers/scsi/t128.c | NCR5380_init(instance, 0); |
instance | 235 | drivers/scsi/t128.c | instance->irq = overrides[current_override].irq; |
instance | 237 | drivers/scsi/t128.c | instance->irq = NCR5380_probe_irq(instance, T128_IRQS); |
instance | 239 | drivers/scsi/t128.c | if (instance->irq != IRQ_NONE) |
instance | 240 | drivers/scsi/t128.c | if (request_irq(instance->irq, t128_intr, SA_INTERRUPT, "t128")) { |
instance | 242 | drivers/scsi/t128.c | instance->host_no, instance->irq); |
instance | 243 | drivers/scsi/t128.c | instance->irq = IRQ_NONE; |
instance | 246 | drivers/scsi/t128.c | if (instance->irq == IRQ_NONE) { |
instance | 247 | drivers/scsi/t128.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 248 | drivers/scsi/t128.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 252 | drivers/scsi/t128.c | printk("scsi%d : irq = %d\n", instance->host_no, instance->irq); |
instance | 255 | drivers/scsi/t128.c | printk("scsi%d : at 0x%08x", instance->host_no, (int) |
instance | 256 | drivers/scsi/t128.c | instance->base); |
instance | 257 | drivers/scsi/t128.c | if (instance->irq == IRQ_NONE) |
instance | 260 | drivers/scsi/t128.c | printk (" irq %d", instance->irq); |
instance | 263 | drivers/scsi/t128.c | NCR5380_print_options(instance); |
instance | 314 | drivers/scsi/t128.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, |
instance | 316 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
instance | 323 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
instance | 325 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
instance | 331 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
instance | 334 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
instance | 339 | drivers/scsi/t128.c | instance->host_no); |
instance | 358 | drivers/scsi/t128.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, |
instance | 360 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
instance | 366 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
instance | 368 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
instance | 374 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
instance | 377 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
instance | 382 | drivers/scsi/t128.c | instance->host_no); |
instance | 135 | drivers/scsi/t128.h | #define NCR5380_setup(instance) \ |
instance | 136 | drivers/scsi/t128.h | base = (volatile unsigned char *) (instance)->base |
instance | 146 | drivers/scsi/t128.h | , instance->hostno, (reg), T128_address(reg))), *(T128_address(reg))) |
instance | 150 | drivers/scsi/t128.h | instance->hostno, (value), (reg), T128_address(reg)); \ |