tag | line | file | source code |
instance | 299 | drivers/scsi/NCR5380.c | static void NCR5380_print(struct Scsi_Host *instance) { |
instance | 302 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 341 | drivers/scsi/NCR5380.c | static void NCR5380_print_phase(struct Scsi_Host *instance) { |
instance | 345 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 350 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 354 | drivers/scsi/NCR5380.c | printk("scsi%d : phase %s\n", instance->host_no, phases[i].name); |
instance | 475 | drivers/scsi/NCR5380.c | static int NCR5380_set_timer (struct Scsi_Host *instance) { |
instance | 479 | drivers/scsi/NCR5380.c | if (((struct NCR5380_hostdata *) (instance->host_data))->next_timer) { |
instance | 487 | drivers/scsi/NCR5380.c | if (instance->time_expires < tmp->time_expires) |
instance | 490 | drivers/scsi/NCR5380.c | instance->next_timer = tmp; |
instance | 491 | drivers/scsi/NCR5380.c | *prev = instance; |
instance | 500 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 503 | drivers/scsi/NCR5380.c | instance = ((NCR5380_hostdata *) expires_first->host_data)-> |
instance | 509 | drivers/scsi/NCR5380.c | expires_first = instance; |
instance | 562 | drivers/scsi/NCR5380.c | static int NCR5380_probe_irq (struct Scsi_Host *instance, int possible) { |
instance | 565 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 568 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 616 | drivers/scsi/NCR5380.c | static void NCR5380_print_options (struct Scsi_Host *instance) { |
instance | 662 | drivers/scsi/NCR5380.c | static void NCR5380_init (struct Scsi_Host *instance) { |
instance | 666 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 667 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 671 | drivers/scsi/NCR5380.c | hostdata->id_mask = 1 << instance->this_id; |
instance | 685 | drivers/scsi/NCR5380.c | the_template = instance->hostt; |
instance | 686 | drivers/scsi/NCR5380.c | first_instance = instance; |
instance | 696 | drivers/scsi/NCR5380.c | if ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) |
instance | 699 | drivers/scsi/NCR5380.c | " be incorrectly cleared.\n", instance->host_no); |
instance | 740 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 776 | drivers/scsi/NCR5380.c | printk("scsi%d : command added to %s of queue\n", instance->host_no, |
instance | 799 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 818 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && instance->hostt == the_template; |
instance | 819 | drivers/scsi/NCR5380.c | instance=instance->next) { |
instance | 820 | drivers/scsi/NCR5380.c | hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
instance | 824 | drivers/scsi/NCR5380.c | printk("scsi%d : not connected\n", instance->host_no); |
instance | 853 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun); |
instance | 862 | drivers/scsi/NCR5380.c | if (!NCR5380_select(instance, tmp, |
instance | 874 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 891 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 893 | drivers/scsi/NCR5380.c | NCR5380_information_transfer(instance); |
instance | 895 | drivers/scsi/NCR5380.c | printk("scsi%d : main() : done set false\n", instance->host_no); |
instance | 918 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 925 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && (instance->hostt == |
instance | 926 | drivers/scsi/NCR5380.c | the_template); instance = instance->next) |
instance | 927 | drivers/scsi/NCR5380.c | if (instance->irq == irq) { |
instance | 930 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 934 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 941 | drivers/scsi/NCR5380.c | printk("scsi%d : SEL interrupt\n", instance->host_no); |
instance | 943 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 948 | drivers/scsi/NCR5380.c | printk("scsi%d : PARITY interrupt\n", instance->host_no); |
instance | 1002 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
instance | 1006 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1011 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1014 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1015 | drivers/scsi/NCR5380.c | printk("scsi%d : starting arbitration, id = %d\n", instance->host_no, |
instance | 1016 | drivers/scsi/NCR5380.c | instance->this_id); |
instance | 1034 | drivers/scsi/NCR5380.c | printk("scsi%d : arbitration complete\n", instance->host_no); |
instance | 1055 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1067 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1080 | drivers/scsi/NCR5380.c | printk("scsi%d : won arbitration\n", instance->host_no); |
instance | 1127 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
instance | 1154 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1179 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
instance | 1181 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
instance | 1208 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1210 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus established.\n", instance->host_no); |
instance | 1249 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 1255 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1273 | drivers/scsi/NCR5380.c | printk("scsi%d : REQ detected\n", instance->host_no); |
instance | 1279 | drivers/scsi/NCR5380.c | printk("scsi%d : phase mismatch\n", instance->host_no); |
instance | 1280 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 1305 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1313 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1320 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1328 | drivers/scsi/NCR5380.c | printk("scsi%d : req false, handshake complete\n", instance->host_no); |
instance | 1338 | drivers/scsi/NCR5380.c | printk("scsi%d : residual %d\n", instance->host_no, c); |
instance | 1376 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 1384 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1387 | drivers/scsi/NCR5380.c | instance->dmalen = c; |
instance | 1427 | drivers/scsi/NCR5380.c | foo = ((p & SR_IO) ? NCR5380_pread(instance, d, c) : |
instance | 1428 | drivers/scsi/NCR5380.c | NCR5380_pwrite(instance, d, c)); |
instance | 1459 | drivers/scsi/NCR5380.c | static void NCR5380_information_transfer (struct Scsi_Host *instance) { |
instance | 1462 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1468 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1478 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 1486 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1503 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
instance | 1523 | drivers/scsi/NCR5380.c | if (NCR5380_transfer_dma(instance, &phase, |
instance | 1530 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 1539 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, |
instance | 1553 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1572 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 1582 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 1595 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 1606 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 1624 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1673 | drivers/scsi/NCR5380.c | " the disconnected_queue\n", instance->host_no, |
instance | 1715 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1734 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
instance | 1740 | drivers/scsi/NCR5380.c | printk("scsi%d : issued command, sleeping until %ul\n", instance->host_no, |
instance | 1743 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 1751 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1755 | drivers/scsi/NCR5380.c | printk("scsi%d : unknown phase\n", instance->host_no); |
instance | 1757 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1767 | drivers/scsi/NCR5380.c | printk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no, |
instance | 1770 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 1790 | drivers/scsi/NCR5380.c | static void NCR5380_reselect (struct Scsi_Host *instance) { |
instance | 1793 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1804 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1809 | drivers/scsi/NCR5380.c | printk("scsi%d : reselect\n", instance->host_no); |
instance | 1834 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1858 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1888 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun, tag); |
instance | 1891 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun); |
instance | 1907 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1912 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun, cmd->tag); |
instance | 1930 | drivers/scsi/NCR5380.c | static void NCR5380_dma_complete (NCR5380_instance *instance) { |
instance | 1933 | drivers/scsi/NCR5380.c | instance->hostdata); |
instance | 1935 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1958 | drivers/scsi/NCR5380.c | transferred = instance->dma_len - NCR5380_dma_residual(); |
instance | 1987 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
instance | 1989 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1995 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1998 | drivers/scsi/NCR5380.c | printk("scsi%d : abort called\n", instance->host_no); |
instance | 2015 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2035 | drivers/scsi/NCR5380.c | printk("scsi%d : abort failed, command connected.\n", instance->host_no); |
instance | 2070 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting disconnected command.\n", instance->host_no); |
instance | 2073 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
instance | 2077 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus restablished.\n", instance->host_no); |
instance | 2085 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (instance, &phase, &len, &msgptr); |
instance | 2114 | drivers/scsi/NCR5380.c | " before abortion\n", instance->host_no); |
instance | 2132 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 2135 | drivers/scsi/NCR5380.c | instance = SCpnt->host; |
instance | 2136 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 225 | drivers/scsi/NCR5380.h | static int NCR5380_probe_irq (struct Scsi_Host *instance, int possible); |
instance | 227 | drivers/scsi/NCR5380.h | static void NCR5380_init (struct Scsi_Host *instance); |
instance | 228 | drivers/scsi/NCR5380.h | static void NCR5380_information_transfer (struct Scsi_Host *instance); |
instance | 231 | drivers/scsi/NCR5380.h | static void NCR5380_print_options (struct Scsi_Host *instance); |
instance | 246 | drivers/scsi/NCR5380.h | static void NCR5380_reselect (struct Scsi_Host *instance); |
instance | 247 | drivers/scsi/NCR5380.h | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
instance | 249 | drivers/scsi/NCR5380.h | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 252 | drivers/scsi/NCR5380.h | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 128 | drivers/scsi/g_NCR5380.c | struct Scsi_Host *instance; |
instance | 134 | drivers/scsi/g_NCR5380.c | instance = scsi_register (hostno, sizeof(struct NCR5380_hostdata)); |
instance | 135 | drivers/scsi/g_NCR5380.c | instance->io_port = overrides[current_override].port; |
instance | 137 | drivers/scsi/g_NCR5380.c | NCR5380_init(instance); |
instance | 140 | drivers/scsi/g_NCR5380.c | instance->irq = overrides[current_override].irq; |
instance | 142 | drivers/scsi/g_NCR5380.c | instance->irq = NCR5380_probe_irq(instance, 0xffff); |
instance | 144 | drivers/scsi/g_NCR5380.c | if (instance->irq != IRQ_NONE) |
instance | 145 | drivers/scsi/g_NCR5380.c | if (irqaction (instance->irq, &sa)) { |
instance | 147 | drivers/scsi/g_NCR5380.c | hostno, instance->irq); |
instance | 148 | drivers/scsi/g_NCR5380.c | instance->irq = IRQ_NONE; |
instance | 151 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) { |
instance | 156 | drivers/scsi/g_NCR5380.c | printk("scsi%d : at port %d", instance->host_no, instance->io_port); |
instance | 157 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) |
instance | 160 | drivers/scsi/g_NCR5380.c | printk (" irq %d", instance->irq); |
instance | 163 | drivers/scsi/g_NCR5380.c | NCR5380_print_options(instance); |
instance | 71 | drivers/scsi/g_NCR5380.h | #define NCR5380_setup(instance) \ |
instance | 72 | drivers/scsi/g_NCR5380.h | port = (instance)->io_port |
instance | 296 | drivers/scsi/pas16.c | struct Scsi_Host *instance; |
instance | 332 | drivers/scsi/pas16.c | instance = scsi_register (hostno, sizeof(struct NCR5380_hostdata)); |
instance | 333 | drivers/scsi/pas16.c | instance->io_port = io_port; |
instance | 335 | drivers/scsi/pas16.c | NCR5380_init(instance); |
instance | 338 | drivers/scsi/pas16.c | instance->irq = overrides[current_override].irq; |
instance | 340 | drivers/scsi/pas16.c | instance->irq = NCR5380_probe_irq(instance, PAS16_IRQS); |
instance | 342 | drivers/scsi/pas16.c | if (instance->irq != IRQ_NONE) |
instance | 343 | drivers/scsi/pas16.c | if (irqaction (instance->irq, &pas16_sigaction)) { |
instance | 345 | drivers/scsi/pas16.c | hostno, instance->irq); |
instance | 346 | drivers/scsi/pas16.c | instance->irq = IRQ_NONE; |
instance | 349 | drivers/scsi/pas16.c | if (instance->irq == IRQ_NONE) { |
instance | 355 | drivers/scsi/pas16.c | printk("scsi%d : irq = %d\n", hostno, instance->irq); |
instance | 358 | drivers/scsi/pas16.c | printk("scsi%d : at 0x%04x", instance->host_no, (int) |
instance | 359 | drivers/scsi/pas16.c | instance->io_port); |
instance | 360 | drivers/scsi/pas16.c | if (instance->irq == IRQ_NONE) |
instance | 363 | drivers/scsi/pas16.c | printk (" irq %d", instance->irq); |
instance | 366 | drivers/scsi/pas16.c | NCR5380_print_options(instance); |
instance | 417 | drivers/scsi/pas16.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, |
instance | 420 | drivers/scsi/pas16.c | register unsigned short reg = (unsigned short) (instance->io_port + |
instance | 424 | drivers/scsi/pas16.c | while ( inb(instance->io_port + P_STATUS_REG_OFFSET) & P_ST_RDY ); |
instance | 429 | drivers/scsi/pas16.c | if ( inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) { |
instance | 430 | drivers/scsi/pas16.c | outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET); |
instance | 432 | drivers/scsi/pas16.c | instance->host_no); |
instance | 451 | drivers/scsi/pas16.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, |
instance | 454 | drivers/scsi/pas16.c | register unsigned short reg = (instance->io_port + P_DATA_REG_OFFSET); |
instance | 457 | drivers/scsi/pas16.c | while ( ( inb( instance->io_port + P_STATUS_REG_OFFSET ) ) & P_ST_RDY ); |
instance | 461 | drivers/scsi/pas16.c | if (inb(instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET) & P_TS_TIM) { |
instance | 462 | drivers/scsi/pas16.c | outb( P_TS_CT, instance->io_port + P_TIMEOUT_STATUS_REG_OFFSET); |
instance | 464 | 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 | 198 | drivers/scsi/t128.c | struct Scsi_Host *instance; |
instance | 231 | drivers/scsi/t128.c | instance = scsi_register (hostno, sizeof(struct NCR5380_hostdata)); |
instance | 232 | drivers/scsi/t128.c | instance->base = base; |
instance | 234 | drivers/scsi/t128.c | NCR5380_init(instance); |
instance | 237 | drivers/scsi/t128.c | instance->irq = overrides[current_override].irq; |
instance | 239 | drivers/scsi/t128.c | instance->irq = NCR5380_probe_irq(instance, T128_IRQS); |
instance | 241 | drivers/scsi/t128.c | if (instance->irq != IRQ_NONE) |
instance | 242 | drivers/scsi/t128.c | if (irqaction (instance->irq, &t128_sigaction)) { |
instance | 244 | drivers/scsi/t128.c | hostno, instance->irq); |
instance | 245 | drivers/scsi/t128.c | instance->irq = IRQ_NONE; |
instance | 248 | drivers/scsi/t128.c | if (instance->irq == IRQ_NONE) { |
instance | 254 | drivers/scsi/t128.c | printk("scsi%d : irq = %d\n", hostno, instance->irq); |
instance | 257 | drivers/scsi/t128.c | printk("scsi%d : at 0x%08x", instance->host_no, (int) |
instance | 258 | drivers/scsi/t128.c | instance->base); |
instance | 259 | drivers/scsi/t128.c | if (instance->irq == IRQ_NONE) |
instance | 262 | drivers/scsi/t128.c | printk (" irq %d", instance->irq); |
instance | 265 | drivers/scsi/t128.c | NCR5380_print_options(instance); |
instance | 316 | drivers/scsi/t128.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, |
instance | 318 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
instance | 322 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
instance | 327 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
instance | 330 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
instance | 335 | drivers/scsi/t128.c | instance->host_no); |
instance | 354 | drivers/scsi/t128.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, |
instance | 356 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
instance | 360 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY); |
instance | 364 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
instance | 367 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
instance | 372 | 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)); \ |