tag | line | file | source code |
instance | 1177 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *instance; |
instance | 1259 | drivers/scsi/53c7,8xx.c | instance = scsi_register (tpnt, size); |
instance | 1260 | drivers/scsi/53c7,8xx.c | if (!instance) |
instance | 1268 | drivers/scsi/53c7,8xx.c | instance->hostdata; |
instance | 1271 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) instance->hostdata; |
instance | 1294 | drivers/scsi/53c7,8xx.c | instance->base = (unsigned char *) (unsigned long) base; |
instance | 1305 | drivers/scsi/53c7,8xx.c | instance->io_port = io_port; |
instance | 1314 | drivers/scsi/53c7,8xx.c | instance->host_no); |
instance | 1315 | drivers/scsi/53c7,8xx.c | scsi_unregister (instance); |
instance | 1318 | drivers/scsi/53c7,8xx.c | instance->irq = irq; |
instance | 1319 | drivers/scsi/53c7,8xx.c | instance->dma_channel = dma; |
instance | 1361 | 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 | 121 | drivers/scsi/AM53C974.c | static void AM53C974_print_pci(struct Scsi_Host *instance); |
instance | 122 | drivers/scsi/AM53C974.c | static void AM53C974_print_phase(struct Scsi_Host *instance); |
instance | 123 | drivers/scsi/AM53C974.c | static void AM53C974_print_queues(struct Scsi_Host *instance); |
instance | 125 | drivers/scsi/AM53C974.c | static void AM53C974_print(struct Scsi_Host *instance); |
instance | 130 | drivers/scsi/AM53C974.c | static void AM53C974_config_after_reset(struct Scsi_Host *instance); |
instance | 135 | drivers/scsi/AM53C974.c | static void AM53C974_intr_disconnect(struct Scsi_Host *instance); |
instance | 136 | drivers/scsi/AM53C974.c | static int AM53C974_sync_neg(struct Scsi_Host *instance, int target, unsigned char *msg); |
instance | 137 | drivers/scsi/AM53C974.c | static __inline__ void AM53C974_set_async(struct Scsi_Host *instance, int target); |
instance | 138 | drivers/scsi/AM53C974.c | static __inline__ void AM53C974_set_sync(struct Scsi_Host *instance, int target); |
instance | 139 | drivers/scsi/AM53C974.c | static void AM53C974_information_transfer(struct Scsi_Host *instance, |
instance | 143 | drivers/scsi/AM53C974.c | static int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd *cmd, unsigned char msg); |
instance | 144 | drivers/scsi/AM53C974.c | static void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
instance | 145 | drivers/scsi/AM53C974.c | static void AM53C974_intr_reselect(struct Scsi_Host *instance, unsigned char statreg); |
instance | 146 | drivers/scsi/AM53C974.c | static __inline__ void AM53C974_transfer_dma(struct Scsi_Host *instance, short dir, |
instance | 148 | drivers/scsi/AM53C974.c | static void AM53C974_dma_blast(struct Scsi_Host *instance, unsigned char dmastatus, |
instance | 150 | drivers/scsi/AM53C974.c | static void AM53C974_intr_bus_reset(struct Scsi_Host *instance); |
instance | 169 | drivers/scsi/AM53C974.c | static void AM53C974_print_pci(struct Scsi_Host *instance) |
instance | 178 | drivers/scsi/AM53C974.c | for (i = 0; i < 8; i++) *(scratch + i) = AM53C974_PCIREG_READ_WORD(instance, PCI_SCRATCH_REG_0 + 2*i); |
instance | 179 | drivers/scsi/AM53C974.c | vendor_id = AM53C974_PCIREG_READ_WORD(instance, PCI_VENDOR_ID); |
instance | 180 | drivers/scsi/AM53C974.c | device_id = AM53C974_PCIREG_READ_WORD(instance, PCI_DEVICE_ID); |
instance | 181 | drivers/scsi/AM53C974.c | command = AM53C974_PCIREG_READ_WORD(instance, PCI_COMMAND); |
instance | 182 | drivers/scsi/AM53C974.c | status = AM53C974_PCIREG_READ_WORD(instance, PCI_STATUS); |
instance | 183 | drivers/scsi/AM53C974.c | class_revision = AM53C974_PCIREG_READ_DWORD(instance, PCI_CLASS_REVISION); |
instance | 184 | drivers/scsi/AM53C974.c | cache_line_size = AM53C974_PCIREG_READ_BYTE(instance, PCI_CACHE_LINE_SIZE); |
instance | 185 | drivers/scsi/AM53C974.c | latency_timer = AM53C974_PCIREG_READ_BYTE(instance, PCI_LATENCY_TIMER); |
instance | 186 | drivers/scsi/AM53C974.c | header_type = AM53C974_PCIREG_READ_BYTE(instance, PCI_HEADER_TYPE); |
instance | 187 | drivers/scsi/AM53C974.c | base = AM53C974_PCIREG_READ_DWORD(instance, PCI_BASE_ADDRESS_0); |
instance | 188 | drivers/scsi/AM53C974.c | irq = AM53C974_PCIREG_READ_BYTE(instance, PCI_INTERRUPT_LINE); |
instance | 223 | drivers/scsi/AM53C974.c | static void AM53C974_print_phase(struct Scsi_Host *instance) |
instance | 228 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 235 | drivers/scsi/AM53C974.c | printk("scsi%d : phase %s, latched at end of last command\n", instance->host_no, phases[i].name); |
instance | 237 | drivers/scsi/AM53C974.c | printk("scsi%d : phase %s, real time\n", instance->host_no, phases[i].name); |
instance | 247 | drivers/scsi/AM53C974.c | static void AM53C974_print_queues(struct Scsi_Host *instance) |
instance | 249 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 257 | drivers/scsi/AM53C974.c | printk ("scsi%d: no currently connected command\n", instance->host_no); } |
instance | 261 | drivers/scsi/AM53C974.c | printk ("scsi%d: no currently arbitrating command\n", instance->host_no); } |
instance | 265 | drivers/scsi/AM53C974.c | printk ("scsi%d: issue_queue ", instance->host_no); |
instance | 273 | drivers/scsi/AM53C974.c | printk ("scsi%d: disconnected_queue ", instance->host_no); |
instance | 293 | drivers/scsi/AM53C974.c | static void AM53C974_print(struct Scsi_Host *instance) |
instance | 298 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 594 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance, *search; |
instance | 602 | drivers/scsi/AM53C974.c | instance = scsi_register(tpnt, sizeof(struct AM53C974_hostdata)); |
instance | 603 | drivers/scsi/AM53C974.c | hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 604 | drivers/scsi/AM53C974.c | instance->base = NULL; |
instance | 605 | drivers/scsi/AM53C974.c | instance->io_port = pci_config._base0 & (pci_config._base0 & 0x1 ? |
instance | 607 | drivers/scsi/AM53C974.c | instance->irq = pci_config._int_line; |
instance | 608 | drivers/scsi/AM53C974.c | instance->dma_channel = -1; |
instance | 609 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 612 | drivers/scsi/AM53C974.c | instance->this_id = AM53C974_SCSI_ID; |
instance | 613 | drivers/scsi/AM53C974.c | AM53C974_write_8(CNTLREG1, instance->this_id & CNTLREG1_SID); |
instance | 615 | drivers/scsi/AM53C974.c | instance->this_id = AM53C974_read_8(CNTLREG1) & CNTLREG1_SID; |
instance | 616 | drivers/scsi/AM53C974.c | if (instance->this_id != 7) |
instance | 618 | drivers/scsi/AM53C974.c | instance->host_no, instance->this_id); |
instance | 635 | drivers/scsi/AM53C974.c | if (overrides[i].host_scsi_id == instance->this_id) { |
instance | 656 | drivers/scsi/AM53C974.c | (search->irq != instance->irq) || (search == instance) ); |
instance | 659 | drivers/scsi/AM53C974.c | if (request_irq(instance->irq, AM53C974_intr, SA_INTERRUPT, "AM53C974")) { |
instance | 660 | drivers/scsi/AM53C974.c | printk("scsi%d: IRQ%d not free, detaching\n", instance->host_no, instance->irq); |
instance | 661 | drivers/scsi/AM53C974.c | scsi_unregister(instance); |
instance | 666 | drivers/scsi/AM53C974.c | instance->host_no, search->host_no); } |
instance | 669 | drivers/scsi/AM53C974.c | the_template = instance->hostt; |
instance | 670 | drivers/scsi/AM53C974.c | first_instance = instance; } |
instance | 676 | drivers/scsi/AM53C974.c | AM53C974_write_8(CNTLREG1, CNTLREG1_DISR | instance->this_id); |
instance | 679 | drivers/scsi/AM53C974.c | AM53C974_config_after_reset(instance); |
instance | 693 | drivers/scsi/AM53C974.c | static void AM53C974_config_after_reset(struct Scsi_Host *instance) |
instance | 696 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 706 | drivers/scsi/AM53C974.c | AM53C974_write_8(CNTLREG1, (DEF_ETM<<7) | CNTLREG1_DISR | (DEF_PERE<<4) | instance->this_id); |
instance | 721 | drivers/scsi/AM53C974.c | const char *AM53C974_info(struct Scsi_Host *instance) |
instance | 727 | drivers/scsi/AM53C974.c | instance->io_port, instance->irq); |
instance | 814 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
instance | 815 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 820 | drivers/scsi/AM53C974.c | DEB_QUEUE(printk("scsi%d: AM53C974_queue_command called\n", instance->host_no)); |
instance | 844 | drivers/scsi/AM53C974.c | DEB_QUEUE(printk("scsi%d : command added to %s of queue\n", instance->host_no, |
instance | 867 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance; |
instance | 878 | drivers/scsi/AM53C974.c | for (instance = first_instance; instance && instance->hostt == the_template; |
instance | 879 | drivers/scsi/AM53C974.c | instance = instance->next) { |
instance | 880 | drivers/scsi/AM53C974.c | hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 881 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 931 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance; |
instance | 936 | drivers/scsi/AM53C974.c | for (instance = first_instance; instance; instance = instance->next) |
instance | 937 | drivers/scsi/AM53C974.c | if ((instance->irq == irq) && (instance->hostt == the_template)) goto FOUND; |
instance | 943 | drivers/scsi/AM53C974.c | hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 944 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 956 | drivers/scsi/AM53C974.c | instance->host_no, dmastatus); |
instance | 960 | drivers/scsi/AM53C974.c | panic("scsi%d: cannot recover\n", instance->host_no); } |
instance | 992 | drivers/scsi/AM53C974.c | AM53C974_information_transfer(instance, statreg, isreg, instreg, cfifo, |
instance | 1009 | drivers/scsi/AM53C974.c | instance->host_no, statreg, isreg, instreg, cfifo)); |
instance | 1016 | drivers/scsi/AM53C974.c | printk("scsi%d : PARITY error\n", instance->host_no); |
instance | 1025 | drivers/scsi/AM53C974.c | printk("scsi%d : ILLEGAL OPERATION error\n", instance->host_no); |
instance | 1035 | drivers/scsi/AM53C974.c | AM53C974_intr_bus_reset(instance); |
instance | 1057 | drivers/scsi/AM53C974.c | printk("scsi%d: Invalid command interrupt\n", instance->host_no); |
instance | 1061 | drivers/scsi/AM53C974.c | panic("scsi%d: cannot recover\n", instance->host_no); } |
instance | 1067 | drivers/scsi/AM53C974.c | AM53C974_intr_disconnect(instance); |
instance | 1075 | drivers/scsi/AM53C974.c | AM53C974_intr_reselect(instance, statreg); |
instance | 1084 | drivers/scsi/AM53C974.c | AM53C974_select(instance, (Scsi_Cmnd *)hostdata->sel_cmd, |
instance | 1088 | drivers/scsi/AM53C974.c | AM53C974_set_sync(instance, hostdata->sel_cmd->target); |
instance | 1121 | drivers/scsi/AM53C974.c | DEB(printk("scsi%d: REQUEST_SENSE command with nonzero use_sg\n", instance->host_no)); |
instance | 1126 | drivers/scsi/AM53C974.c | AM53C974_information_transfer(instance, statreg, isreg, instreg, cfifo, dmastatus); |
instance | 1132 | drivers/scsi/AM53C974.c | AM53C974_information_transfer(instance, statreg, isreg, instreg, cfifo, dmastatus); |
instance | 1142 | drivers/scsi/AM53C974.c | AM53C974_information_transfer(instance, statreg, isreg, instreg, cfifo, dmastatus); |
instance | 1145 | drivers/scsi/AM53C974.c | printk("scsi%d: weird: service request when no command connected\n", instance->host_no); |
instance | 1165 | drivers/scsi/AM53C974.c | static void AM53C974_intr_disconnect(struct Scsi_Host *instance) |
instance | 1168 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 1170 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 1188 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
instance | 1190 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
instance | 1198 | drivers/scsi/AM53C974.c | " the disconnected_queue\n", instance->host_no, cmd->target, |
instance | 1200 | drivers/scsi/AM53C974.c | DEB_QUEUE(AM53C974_print_queues(instance)); |
instance | 1222 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
instance | 1224 | drivers/scsi/AM53C974.c | instance->host_no, cmd->SCp.phase, cmd->target, cmd->SCp.this_residual, cmd->SCp.buffers_residual, |
instance | 1255 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
instance | 1270 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
instance | 1290 | drivers/scsi/AM53C974.c | static int AM53C974_sync_neg(struct Scsi_Host *instance, int target, unsigned char *msg) |
instance | 1293 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 1295 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 1337 | drivers/scsi/AM53C974.c | static __inline__ void AM53C974_set_async(struct Scsi_Host *instance, int target) |
instance | 1340 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 1341 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 1357 | drivers/scsi/AM53C974.c | static __inline__ void AM53C974_set_sync(struct Scsi_Host *instance, int target) |
instance | 1360 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 1361 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 1385 | drivers/scsi/AM53C974.c | static void AM53C974_information_transfer(struct Scsi_Host *instance, |
instance | 1391 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 1394 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 1422 | drivers/scsi/AM53C974.c | AM53C974_transfer_dma(instance, statreg & STATREG_IO, |
instance | 1433 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
instance | 1435 | drivers/scsi/AM53C974.c | AM53C974_dma_blast(instance, dmastatus, statreg); |
instance | 1450 | drivers/scsi/AM53C974.c | ret = AM53C974_message(instance, cmd, cmd->SCp.Message); } |
instance | 1457 | drivers/scsi/AM53C974.c | ret = AM53C974_message(instance, cmd, cmd->SCp.Message); |
instance | 1460 | drivers/scsi/AM53C974.c | AM53C974_set_sync(instance, cmd->target); |
instance | 1466 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
instance | 1489 | drivers/scsi/AM53C974.c | AM53C974_set_sync(instance, cmd->target); |
instance | 1494 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
instance | 1498 | drivers/scsi/AM53C974.c | AM53C974_set_sync(instance, cmd->target); |
instance | 1504 | drivers/scsi/AM53C974.c | AM53C974_dma_blast(instance, dmastatus, statreg); |
instance | 1505 | drivers/scsi/AM53C974.c | AM53C974_set_async(instance, cmd->target); |
instance | 1544 | drivers/scsi/AM53C974.c | static int AM53C974_message(struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
instance | 1555 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 1556 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 1573 | drivers/scsi/AM53C974.c | instance->host_no, cmd->target, cmd->lun)); |
instance | 1578 | drivers/scsi/AM53C974.c | instance->host_no, cmd->target, cmd->lun); |
instance | 1594 | drivers/scsi/AM53C974.c | instance->host_no, cmd->target, cmd->lun)); |
instance | 1604 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
instance | 1631 | drivers/scsi/AM53C974.c | DEB_MSG(printk("scsi%d : performing request sense\n", instance->host_no)); |
instance | 1645 | drivers/scsi/AM53C974.c | DEB_MSG(printk("scsi%d : REQUEST SENSE added to head of issue queue\n",instance->host_no)); |
instance | 1654 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
instance | 1679 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
instance | 1688 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
instance | 1706 | drivers/scsi/AM53C974.c | instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); |
instance | 1737 | drivers/scsi/AM53C974.c | printk("scsi%d: received extended message: ", instance->host_no); |
instance | 1746 | drivers/scsi/AM53C974.c | ret = AM53C974_sync_neg(instance, cmd->target, extended_msg); |
instance | 1753 | drivers/scsi/AM53C974.c | printk("scsi%d: unknown message 0x%02x received\n",instance->host_no, msg); |
instance | 1786 | drivers/scsi/AM53C974.c | static void AM53C974_select(struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag) |
instance | 1789 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 1792 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 1796 | drivers/scsi/AM53C974.c | printk("scsi%d: select error; %d residual bytes in FIFO\n", instance->host_no, cfifo); |
instance | 1869 | drivers/scsi/AM53C974.c | static void AM53C974_intr_reselect(struct Scsi_Host *instance, unsigned char statreg) |
instance | 1872 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 1878 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 1895 | drivers/scsi/AM53C974.c | printk("scsi %d: error: %d bytes in fifo, 2 expected\n", instance->host_no, cfifo); |
instance | 1901 | drivers/scsi/AM53C974.c | if (!(t & (1 << instance->this_id))) { |
instance | 1902 | drivers/scsi/AM53C974.c | printk("scsi %d: error: invalid host id\n", instance->host_no); |
instance | 1905 | drivers/scsi/AM53C974.c | t ^= (1 << instance->this_id); |
instance | 1907 | drivers/scsi/AM53C974.c | DEB_RESEL(printk("scsi %d: reselect; target: %d\n", instance->host_no, target)); |
instance | 1912 | drivers/scsi/AM53C974.c | printk("scsi %d: error: upon reselection interrupt not in MSGIN\n", instance->host_no); |
instance | 1918 | drivers/scsi/AM53C974.c | printk("scsi%d: error: expecting IDENTIFY message, got ", instance->host_no); |
instance | 1955 | drivers/scsi/AM53C974.c | instance->host_no, target, lun, tag); |
instance | 1958 | drivers/scsi/AM53C974.c | instance->host_no, target, lun); |
instance | 1974 | drivers/scsi/AM53C974.c | instance->host_no, target, tmp->lun, tmp->tag)); |
instance | 1975 | drivers/scsi/AM53C974.c | AM53C974_set_sync(instance, target); |
instance | 1996 | drivers/scsi/AM53C974.c | static __inline__ void AM53C974_transfer_dma(struct Scsi_Host *instance, short dir, |
instance | 2000 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 2025 | drivers/scsi/AM53C974.c | static void AM53C974_dma_blast(struct Scsi_Host *instance, unsigned char dmastatus, |
instance | 2029 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 2033 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 2072 | drivers/scsi/AM53C974.c | static void AM53C974_intr_bus_reset(struct Scsi_Host *instance) |
instance | 2076 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 2099 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
instance | 2100 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 2107 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 2110 | drivers/scsi/AM53C974.c | DEB_ABORT(printk("scsi%d : AM53C974_abort called -- trouble starts!!\n", instance->host_no)); |
instance | 2111 | drivers/scsi/AM53C974.c | DEB_ABORT(AM53C974_print(instance)); |
instance | 2118 | drivers/scsi/AM53C974.c | DEB_ABORT(printk("scsi%d: aborting connected command\n", instance->host_no)); |
instance | 2131 | drivers/scsi/AM53C974.c | DEB_ABORT(printk("scsi%d : abort removed command from issue queue.\n", instance->host_no)); |
instance | 2142 | drivers/scsi/AM53C974.c | printk("scsi%d : LOOP\n", instance->host_no); |
instance | 2156 | drivers/scsi/AM53C974.c | DEB_ABORT(printk("scsi%d : abort failed, other command connected.\n", instance->host_no)); |
instance | 2167 | drivers/scsi/AM53C974.c | DEB_ABORT(printk("scsi%d: aborting disconnected command\n", instance->host_no)); |
instance | 2184 | drivers/scsi/AM53C974.c | DEB_ABORT(printk("scsi%d : abort failed, command not found.\n", instance->host_no)); |
instance | 2202 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
instance | 2203 | drivers/scsi/AM53C974.c | struct AM53C974_hostdata *hostdata = (struct AM53C974_hostdata *)instance->hostdata; |
instance | 2204 | drivers/scsi/AM53C974.c | AM53C974_setio(instance); |
instance | 2210 | drivers/scsi/AM53C974.c | AM53C974_print(instance); |
instance | 2234 | drivers/scsi/AM53C974.c | AM53C974_write_8(CNTLREG1, CNTLREG1_DISR | instance->this_id); /* disable interrupt upon SCSI RESET */ |
instance | 2237 | drivers/scsi/AM53C974.c | AM53C974_config_after_reset(instance); |
instance | 296 | drivers/scsi/AM53C974.h | #define AM53C974_setio(instance) io_port = instance->io_port |
instance | 325 | drivers/scsi/AM53C974.h | #define AM53C974_PCIREG_READ_BYTE(instance,a) ( inb((a) + (instance)->io_port) ) |
instance | 326 | drivers/scsi/AM53C974.h | #define AM53C974_PCIREG_READ_WORD(instance,a) ( inw((a) + (instance)->io_port) ) |
instance | 327 | drivers/scsi/AM53C974.h | #define AM53C974_PCIREG_READ_DWORD(instance,a) ( inl((a) + (instance)->io_port) ) |
instance | 328 | drivers/scsi/AM53C974.h | #define AM53C974_PCIREG_WRITE_BYTE(instance,x,a) ( outb((x), (a) + (instance)->io_port) ) |
instance | 329 | drivers/scsi/AM53C974.h | #define AM53C974_PCIREG_WRITE_WORD(instance,x,a) ( outw((x), (a) + (instance)->io_port) ) |
instance | 330 | drivers/scsi/AM53C974.h | #define AM53C974_PCIREG_WRITE_DWORD(instance,x,a) ( outl((x), (a) + (instance)->io_port) ) |
instance | 358 | drivers/scsi/NCR5380.c | static void NCR5380_print(struct Scsi_Host *instance) { |
instance | 361 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 404 | drivers/scsi/NCR5380.c | static void NCR5380_print_phase(struct Scsi_Host *instance) { |
instance | 408 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 413 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 417 | drivers/scsi/NCR5380.c | printk("scsi%d : phase %s\n", instance->host_no, phases[i].name); |
instance | 538 | drivers/scsi/NCR5380.c | static int NCR5380_set_timer (struct Scsi_Host *instance) { |
instance | 542 | drivers/scsi/NCR5380.c | if (((struct NCR5380_hostdata *) (instance->host_data))->next_timer) { |
instance | 550 | drivers/scsi/NCR5380.c | if (instance->time_expires < tmp->time_expires) |
instance | 553 | drivers/scsi/NCR5380.c | instance->next_timer = tmp; |
instance | 554 | drivers/scsi/NCR5380.c | *prev = instance; |
instance | 563 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 566 | drivers/scsi/NCR5380.c | instance = ((NCR5380_hostdata *) expires_first->host_data)-> |
instance | 572 | drivers/scsi/NCR5380.c | expires_first = instance; |
instance | 623 | drivers/scsi/NCR5380.c | static int NCR5380_probe_irq (struct Scsi_Host *instance, int possible) { |
instance | 626 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 629 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 678 | drivers/scsi/NCR5380.c | static void NCR5380_print_options (struct Scsi_Host *instance) { |
instance | 712 | drivers/scsi/NCR5380.c | if (((struct NCR5380_hostdata *)instance->hostdata)->flags & FLAG_NCR53C400) { |
instance | 726 | drivers/scsi/NCR5380.c | static void NCR5380_print_status (struct Scsi_Host *instance) { |
instance | 728 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 736 | drivers/scsi/NCR5380.c | NCR5380_print (instance); |
instance | 737 | drivers/scsi/NCR5380.c | NCR5380_print_phase (instance); |
instance | 743 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 748 | drivers/scsi/NCR5380.c | printk ("scsi%d: issue_queue\n", instance->host_no); |
instance | 754 | drivers/scsi/NCR5380.c | printk ("scsi%d: disconnected_queue\n", instance->host_no); |
instance | 777 | drivers/scsi/NCR5380.c | static void NCR5380_init (struct Scsi_Host *instance, int flags) { |
instance | 782 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 791 | drivers/scsi/NCR5380.c | instance->NCR5380_instance_name += NCR53C400_address_adjust; |
instance | 794 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 799 | drivers/scsi/NCR5380.c | hostdata->id_mask = 1 << instance->this_id; |
instance | 820 | drivers/scsi/NCR5380.c | the_template = instance->hostt; |
instance | 821 | drivers/scsi/NCR5380.c | first_instance = instance; |
instance | 831 | drivers/scsi/NCR5380.c | if ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) |
instance | 834 | drivers/scsi/NCR5380.c | " be incorrectly cleared.\n", instance->host_no); |
instance | 867 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 873 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 874 | drivers/scsi/NCR5380.c | do_abort (instance); |
instance | 878 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 879 | drivers/scsi/NCR5380.c | do_reset (instance); |
instance | 883 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 911 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
instance | 913 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 921 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 959 | drivers/scsi/NCR5380.c | printk("scsi%d : command added to %s of queue\n", instance->host_no, |
instance | 982 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 1001 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && |
instance | 1002 | drivers/scsi/NCR5380.c | instance->hostt == the_template; instance=instance->next) { |
instance | 1003 | drivers/scsi/NCR5380.c | hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
instance | 1007 | drivers/scsi/NCR5380.c | printk("scsi%d : not connected\n", instance->host_no); |
instance | 1049 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun); |
instance | 1063 | drivers/scsi/NCR5380.c | if (!NCR5380_select(instance, tmp, |
instance | 1083 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1101 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1103 | drivers/scsi/NCR5380.c | NCR5380_information_transfer(instance); |
instance | 1105 | drivers/scsi/NCR5380.c | printk("scsi%d : main() : done set false\n", instance->host_no); |
instance | 1128 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 1136 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && (instance->hostt == |
instance | 1137 | drivers/scsi/NCR5380.c | the_template); instance = instance->next) |
instance | 1138 | drivers/scsi/NCR5380.c | if (instance->irq == irq) { |
instance | 1141 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1146 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1153 | drivers/scsi/NCR5380.c | printk("scsi%d : SEL interrupt\n", instance->host_no); |
instance | 1155 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 1159 | drivers/scsi/NCR5380.c | printk("scsi%d : PARITY interrupt\n", instance->host_no); |
instance | 1164 | drivers/scsi/NCR5380.c | printk("scsi%d : RESET interrupt\n", instance->host_no); |
instance | 1187 | drivers/scsi/NCR5380.c | instance->hostno); |
instance | 1189 | drivers/scsi/NCR5380.c | transfered = (hostdata->dmalen - NCR5380_dma_residual(instance)); |
instance | 1258 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
instance | 1262 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1267 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1271 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1272 | drivers/scsi/NCR5380.c | printk("scsi%d : starting arbitration, id = %d\n", instance->host_no, |
instance | 1273 | drivers/scsi/NCR5380.c | instance->this_id); |
instance | 1315 | drivers/scsi/NCR5380.c | printk("scsi%d : arbitration complete\n", instance->host_no); |
instance | 1336 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1350 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1363 | drivers/scsi/NCR5380.c | printk("scsi%d : won arbitration\n", instance->host_no); |
instance | 1420 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
instance | 1442 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 1444 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1462 | drivers/scsi/NCR5380.c | printk("scsi%d : weirdness\n", instance->host_no); |
instance | 1466 | drivers/scsi/NCR5380.c | NCR5380_print (instance); |
instance | 1476 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1518 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
instance | 1520 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
instance | 1547 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1549 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus established.\n", instance->host_no); |
instance | 1589 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 1595 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1599 | drivers/scsi/NCR5380.c | printk("scsi%d : pio write %d bytes\n", instance->host_no, c); |
instance | 1601 | drivers/scsi/NCR5380.c | printk("scsi%d : pio read %d bytes\n", instance->host_no, c); |
instance | 1620 | drivers/scsi/NCR5380.c | printk("scsi%d : REQ detected\n", instance->host_no); |
instance | 1626 | drivers/scsi/NCR5380.c | printk("scsi%d : phase mismatch\n", instance->host_no); |
instance | 1627 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 1652 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1660 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1667 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1675 | drivers/scsi/NCR5380.c | printk("scsi%d : req false, handshake complete\n", instance->host_no); |
instance | 1698 | drivers/scsi/NCR5380.c | printk("scsi%d : residual %d\n", instance->host_no, c); |
instance | 1803 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 1817 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1819 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1833 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
instance | 1837 | drivers/scsi/NCR5380.c | NCR5380_dma_read_setup(instance, d, c) : |
instance | 1838 | drivers/scsi/NCR5380.c | NCR5380_dma_write_setup(instance, d, c); |
instance | 1867 | drivers/scsi/NCR5380.c | printk("scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG)); |
instance | 1961 | drivers/scsi/NCR5380.c | instance->host_no, tmp, NCR5380_read(STATUS_REG)); |
instance | 1967 | drivers/scsi/NCR5380.c | residue = NCR5380_dma_residual(instance); |
instance | 1990 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, phase, &cnt, data); |
instance | 2010 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pread(instance, d, c - diff))) { |
instance | 2045 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pwrite(instance, d, c))) { |
instance | 2071 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2081 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2121 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 2148 | drivers/scsi/NCR5380.c | static void NCR5380_information_transfer (struct Scsi_Host *instance) { |
instance | 2151 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2161 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2171 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 2192 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2194 | drivers/scsi/NCR5380.c | do_abort(instance); |
instance | 2211 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
instance | 2237 | drivers/scsi/NCR5380.c | (transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) { |
instance | 2252 | drivers/scsi/NCR5380.c | if (NCR5380_transfer_dma(instance, &phase, |
instance | 2259 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2264 | drivers/scsi/NCR5380.c | do_abort(instance); |
instance | 2272 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, |
instance | 2279 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2301 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2311 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2313 | drivers/scsi/NCR5380.c | do_abort (instance); |
instance | 2323 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2337 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2367 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2388 | drivers/scsi/NCR5380.c | printk("scsi%d : REQUEST SENSE added to head of issue queue\n",instance->host_no); |
instance | 2430 | drivers/scsi/NCR5380.c | " the disconnected_queue\n", instance->host_no, |
instance | 2445 | drivers/scsi/NCR5380.c | NCR5380_print_status(instance); |
instance | 2482 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2488 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2492 | drivers/scsi/NCR5380.c | instance->host_no, (int) extended_msg[1], |
instance | 2504 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2508 | drivers/scsi/NCR5380.c | instance->host_no, len); |
instance | 2520 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2524 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[2], extended_msg[1]); |
instance | 2535 | drivers/scsi/NCR5380.c | printk("scsi%d: rejecting message ", instance->host_no); |
instance | 2540 | drivers/scsi/NCR5380.c | instance->host_no, tmp, cmd->target, cmd->lun); |
instance | 2543 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun); |
instance | 2555 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2574 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
instance | 2580 | drivers/scsi/NCR5380.c | printk("scsi%d : issued command, sleeping until %ul\n", instance->host_no, |
instance | 2583 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 2591 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2595 | drivers/scsi/NCR5380.c | printk("scsi%d : unknown phase\n", instance->host_no); |
instance | 2597 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 2607 | drivers/scsi/NCR5380.c | printk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no, |
instance | 2610 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 2630 | drivers/scsi/NCR5380.c | static void NCR5380_reselect (struct Scsi_Host *instance) { |
instance | 2633 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2644 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2657 | drivers/scsi/NCR5380.c | printk("scsi%d : reselect\n", instance->host_no); |
instance | 2683 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2688 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2733 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun, tag); |
instance | 2736 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun); |
instance | 2747 | drivers/scsi/NCR5380.c | do_abort (instance); |
instance | 2752 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun, tmp->tag); |
instance | 2770 | drivers/scsi/NCR5380.c | static void NCR5380_dma_complete (NCR5380_instance *instance) { |
instance | 2773 | drivers/scsi/NCR5380.c | instance->hostdata); |
instance | 2775 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2798 | drivers/scsi/NCR5380.c | transferred = instance->dmalen - NCR5380_dma_residual(); |
instance | 2827 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
instance | 2829 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2832 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting command\n", instance->host_no); |
instance | 2835 | drivers/scsi/NCR5380.c | NCR5380_print_status (instance); |
instance | 2837 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting command\n", instance->host_no); |
instance | 2840 | drivers/scsi/NCR5380.c | NCR5380_print_status (instance); |
instance | 2843 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2846 | drivers/scsi/NCR5380.c | printk("scsi%d : abort called\n", instance->host_no); |
instance | 2860 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting connected command\n", instance->host_no); |
instance | 2890 | drivers/scsi/NCR5380.c | printk("scsi%d : abort going into loop.\n", instance->host_no); |
instance | 2904 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2911 | drivers/scsi/NCR5380.c | else if (prev == tmp) printk("scsi%d : LOOP\n", instance->host_no); |
instance | 2928 | drivers/scsi/NCR5380.c | printk("scsi%d : abort failed, command connected.\n", instance->host_no); |
instance | 2963 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting disconnected command.\n", instance->host_no); |
instance | 2966 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
instance | 2970 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus reestablished.\n", instance->host_no); |
instance | 2973 | drivers/scsi/NCR5380.c | do_abort (instance); |
instance | 3003 | drivers/scsi/NCR5380.c | " before abortion\n", instance->host_no); |
instance | 274 | drivers/scsi/NCR5380.h | static int NCR5380_probe_irq (struct Scsi_Host *instance, int possible); |
instance | 276 | drivers/scsi/NCR5380.h | static void NCR5380_init (struct Scsi_Host *instance, int flags); |
instance | 277 | drivers/scsi/NCR5380.h | static void NCR5380_information_transfer (struct Scsi_Host *instance); |
instance | 280 | drivers/scsi/NCR5380.h | static void NCR5380_print_options (struct Scsi_Host *instance); |
instance | 281 | drivers/scsi/NCR5380.h | static void NCR5380_print_phase (struct Scsi_Host *instance); |
instance | 282 | drivers/scsi/NCR5380.h | static void NCR5380_print (struct Scsi_Host *instance); |
instance | 297 | drivers/scsi/NCR5380.h | static void NCR5380_reselect (struct Scsi_Host *instance); |
instance | 298 | drivers/scsi/NCR5380.h | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
instance | 300 | drivers/scsi/NCR5380.h | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 303 | drivers/scsi/NCR5380.h | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 307 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_setup (struct Scsi_Host *instance, |
instance | 311 | drivers/scsi/NCR5380.h | if (instance->dma_channel <=3) { |
instance | 324 | drivers/scsi/NCR5380.h | panic ("scsi%d : attempted unaligned DMA transfer\n", instance->host_no); |
instance | 326 | drivers/scsi/NCR5380.h | disable_dma(instance->dma_channel); |
instance | 327 | drivers/scsi/NCR5380.h | clear_dma_ff(instance->dma_channel); |
instance | 328 | drivers/scsi/NCR5380.h | set_dma_addr(instance->dma_channel, (unsigned int) ptr); |
instance | 329 | drivers/scsi/NCR5380.h | set_dma_count(instance->dma_channel, count); |
instance | 330 | drivers/scsi/NCR5380.h | set_dma_mode(instance->dma_channel, mode); |
instance | 331 | drivers/scsi/NCR5380.h | enable_dma(instance->dma_channel); |
instance | 336 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_write_setup (struct Scsi_Host *instance, |
instance | 338 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_WRITE); |
instance | 341 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_read_setup (struct Scsi_Host *instance, |
instance | 343 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_READ); |
instance | 346 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_residual (struct Scsi_Host *instance) { |
instance | 349 | drivers/scsi/NCR5380.h | clear_dma_ff(instance->dma_channel); |
instance | 350 | drivers/scsi/NCR5380.h | tmp = get_dma_residue(instance->dma_channel); |
instance | 186 | drivers/scsi/g_NCR5380.c | struct Scsi_Host *instance; |
instance | 203 | drivers/scsi/g_NCR5380.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 204 | drivers/scsi/g_NCR5380.c | instance->NCR5380_instance_name = overrides[current_override].NCR5380_map_name; |
instance | 206 | drivers/scsi/g_NCR5380.c | NCR5380_init(instance, flags); |
instance | 209 | drivers/scsi/g_NCR5380.c | instance->irq = overrides[current_override].irq; |
instance | 211 | drivers/scsi/g_NCR5380.c | instance->irq = NCR5380_probe_irq(instance, 0xffff); |
instance | 213 | drivers/scsi/g_NCR5380.c | if (instance->irq != IRQ_NONE) |
instance | 214 | drivers/scsi/g_NCR5380.c | if (request_irq(instance->irq, generic_NCR5380_intr, SA_INTERRUPT, "NCR5380")) { |
instance | 216 | drivers/scsi/g_NCR5380.c | instance->host_no, instance->irq); |
instance | 217 | drivers/scsi/g_NCR5380.c | instance->irq = IRQ_NONE; |
instance | 220 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) { |
instance | 221 | drivers/scsi/g_NCR5380.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 222 | drivers/scsi/g_NCR5380.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 225 | drivers/scsi/g_NCR5380.c | printk("scsi%d : at " STRVAL(NCR5380_map_name) " 0x%x", instance->host_no, (unsigned int)instance->NCR5380_instance_name); |
instance | 226 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) |
instance | 229 | drivers/scsi/g_NCR5380.c | printk (" irq %d", instance->irq); |
instance | 232 | drivers/scsi/g_NCR5380.c | NCR5380_print_options(instance); |
instance | 246 | drivers/scsi/g_NCR5380.c | int generic_NCR5380_release_resources(struct Scsi_Host * instance) |
instance | 250 | drivers/scsi/g_NCR5380.c | NCR5380_setup(instance); |
instance | 252 | drivers/scsi/g_NCR5380.c | free_irq(instance->irq); |
instance | 323 | drivers/scsi/g_NCR5380.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, int len) |
instance | 331 | drivers/scsi/g_NCR5380.c | NCR5380_setup(instance); |
instance | 431 | drivers/scsi/g_NCR5380.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, int len) |
instance | 439 | drivers/scsi/g_NCR5380.c | NCR5380_setup(instance); |
instance | 144 | drivers/scsi/g_NCR5380.h | #define NCR5380_setup(instance) \ |
instance | 145 | drivers/scsi/g_NCR5380.h | NCR5380_map_name = (NCR5380_map_type)((instance)->NCR5380_instance_name) |
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 | 202 | drivers/scsi/t128.c | struct Scsi_Host *instance; |
instance | 237 | drivers/scsi/t128.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 238 | drivers/scsi/t128.c | instance->base = base; |
instance | 240 | drivers/scsi/t128.c | NCR5380_init(instance, 0); |
instance | 243 | drivers/scsi/t128.c | instance->irq = overrides[current_override].irq; |
instance | 245 | drivers/scsi/t128.c | instance->irq = NCR5380_probe_irq(instance, T128_IRQS); |
instance | 247 | drivers/scsi/t128.c | if (instance->irq != IRQ_NONE) |
instance | 248 | drivers/scsi/t128.c | if (request_irq(instance->irq, t128_intr, SA_INTERRUPT, "t128")) { |
instance | 250 | drivers/scsi/t128.c | instance->host_no, instance->irq); |
instance | 251 | drivers/scsi/t128.c | instance->irq = IRQ_NONE; |
instance | 254 | drivers/scsi/t128.c | if (instance->irq == IRQ_NONE) { |
instance | 255 | drivers/scsi/t128.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 256 | drivers/scsi/t128.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 260 | drivers/scsi/t128.c | printk("scsi%d : irq = %d\n", instance->host_no, instance->irq); |
instance | 263 | drivers/scsi/t128.c | printk("scsi%d : at 0x%08x", instance->host_no, (int) |
instance | 264 | drivers/scsi/t128.c | instance->base); |
instance | 265 | drivers/scsi/t128.c | if (instance->irq == IRQ_NONE) |
instance | 268 | drivers/scsi/t128.c | printk (" irq %d", instance->irq); |
instance | 271 | drivers/scsi/t128.c | NCR5380_print_options(instance); |
instance | 322 | drivers/scsi/t128.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, |
instance | 324 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
instance | 331 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
instance | 333 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
instance | 339 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
instance | 342 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
instance | 347 | drivers/scsi/t128.c | instance->host_no); |
instance | 366 | drivers/scsi/t128.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, |
instance | 368 | drivers/scsi/t128.c | register unsigned char *reg = (unsigned char *) (instance->base + |
instance | 374 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
instance | 376 | drivers/scsi/t128.c | while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY) barrier(); |
instance | 382 | drivers/scsi/t128.c | if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) { |
instance | 385 | drivers/scsi/t128.c | foo = instance->base + T_CONTROL_REG_OFFSET; |
instance | 390 | 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)); \ |