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", NULL)) { |
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 | 831 | drivers/scsi/NCR5380.c | the_template = instance->hostt; |
instance | 832 | drivers/scsi/NCR5380.c | first_instance = instance; |
instance | 842 | drivers/scsi/NCR5380.c | if ((instance->cmd_per_lun > 1) || instance->can_queue > 1)) |
instance | 845 | drivers/scsi/NCR5380.c | " be incorrectly cleared.\n", instance->host_no); |
instance | 878 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 884 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 885 | drivers/scsi/NCR5380.c | do_abort (instance); |
instance | 889 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 890 | drivers/scsi/NCR5380.c | do_reset (instance); |
instance | 894 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 922 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
instance | 924 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 933 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 999 | drivers/scsi/NCR5380.c | printk("scsi%d : command added to %s of queue\n", instance->host_no, |
instance | 1022 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 1041 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && |
instance | 1042 | drivers/scsi/NCR5380.c | instance->hostt == the_template; instance=instance->next) { |
instance | 1043 | drivers/scsi/NCR5380.c | hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
instance | 1047 | drivers/scsi/NCR5380.c | printk("scsi%d : not connected\n", instance->host_no); |
instance | 1089 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun); |
instance | 1103 | drivers/scsi/NCR5380.c | if (!NCR5380_select(instance, tmp, |
instance | 1123 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1141 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1143 | drivers/scsi/NCR5380.c | NCR5380_information_transfer(instance); |
instance | 1145 | drivers/scsi/NCR5380.c | printk("scsi%d : main() : done set false\n", instance->host_no); |
instance | 1168 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance; |
instance | 1176 | drivers/scsi/NCR5380.c | for (instance = first_instance; instance && (instance->hostt == |
instance | 1177 | drivers/scsi/NCR5380.c | the_template); instance = instance->next) |
instance | 1178 | drivers/scsi/NCR5380.c | if (instance->irq == irq) { |
instance | 1181 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1186 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1193 | drivers/scsi/NCR5380.c | printk("scsi%d : SEL interrupt\n", instance->host_no); |
instance | 1195 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 1199 | drivers/scsi/NCR5380.c | printk("scsi%d : PARITY interrupt\n", instance->host_no); |
instance | 1204 | drivers/scsi/NCR5380.c | printk("scsi%d : RESET interrupt\n", instance->host_no); |
instance | 1227 | drivers/scsi/NCR5380.c | instance->hostno); |
instance | 1229 | drivers/scsi/NCR5380.c | transfered = (hostdata->dmalen - NCR5380_dma_residual(instance)); |
instance | 1324 | drivers/scsi/NCR5380.c | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, |
instance | 1328 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1333 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1337 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1338 | drivers/scsi/NCR5380.c | printk("scsi%d : starting arbitration, id = %d\n", instance->host_no, |
instance | 1339 | drivers/scsi/NCR5380.c | instance->this_id); |
instance | 1381 | drivers/scsi/NCR5380.c | printk("scsi%d : arbitration complete\n", instance->host_no); |
instance | 1402 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1416 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1429 | drivers/scsi/NCR5380.c | printk("scsi%d : won arbitration\n", instance->host_no); |
instance | 1486 | drivers/scsi/NCR5380.c | printk("scsi%d : selecting target %d\n", instance->host_no, cmd->target); |
instance | 1508 | drivers/scsi/NCR5380.c | NCR5380_reselect(instance); |
instance | 1510 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1528 | drivers/scsi/NCR5380.c | printk("scsi%d : weirdness\n", instance->host_no); |
instance | 1532 | drivers/scsi/NCR5380.c | NCR5380_print (instance); |
instance | 1545 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 1587 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target); |
instance | 1589 | drivers/scsi/NCR5380.c | tmp[0] = IDENTIFY(((instance->irq == IRQ_NONE) ? 0 : 1), cmd->lun); |
instance | 1616 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 1618 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus established.\n", instance->host_no); |
instance | 1658 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 1664 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1668 | drivers/scsi/NCR5380.c | printk("scsi%d : pio write %d bytes\n", instance->host_no, c); |
instance | 1670 | drivers/scsi/NCR5380.c | printk("scsi%d : pio read %d bytes\n", instance->host_no, c); |
instance | 1689 | drivers/scsi/NCR5380.c | printk("scsi%d : REQ detected\n", instance->host_no); |
instance | 1695 | drivers/scsi/NCR5380.c | printk("scsi%d : phase mismatch\n", instance->host_no); |
instance | 1696 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 1721 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1729 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1736 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 1744 | drivers/scsi/NCR5380.c | printk("scsi%d : req false, handshake complete\n", instance->host_no); |
instance | 1767 | drivers/scsi/NCR5380.c | printk("scsi%d : residual %d\n", instance->host_no, c); |
instance | 1872 | drivers/scsi/NCR5380.c | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 1886 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 1888 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 1902 | drivers/scsi/NCR5380.c | instance->host_no, instance->dma_channel, (p & SR_IO) ? "reading" : |
instance | 1906 | drivers/scsi/NCR5380.c | NCR5380_dma_read_setup(instance, d, c) : |
instance | 1907 | drivers/scsi/NCR5380.c | NCR5380_dma_write_setup(instance, d, c); |
instance | 1936 | drivers/scsi/NCR5380.c | printk("scsi%d : mode reg = 0x%X\n", instance->host_no, NCR5380_read(MODE_REG)); |
instance | 2030 | drivers/scsi/NCR5380.c | instance->host_no, tmp, NCR5380_read(STATUS_REG)); |
instance | 2036 | drivers/scsi/NCR5380.c | residue = NCR5380_dma_residual(instance); |
instance | 2059 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, phase, &cnt, data); |
instance | 2079 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pread(instance, d, c - diff))) { |
instance | 2114 | drivers/scsi/NCR5380.c | if (!(foo = NCR5380_pwrite(instance, d, c))) { |
instance | 2140 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2150 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2190 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 2217 | drivers/scsi/NCR5380.c | static void NCR5380_information_transfer (struct Scsi_Host *instance) { |
instance | 2220 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2230 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2240 | drivers/scsi/NCR5380.c | NCR5380_print_phase(instance); |
instance | 2261 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2263 | drivers/scsi/NCR5380.c | do_abort(instance); |
instance | 2280 | drivers/scsi/NCR5380.c | instance->host_no, cmd->SCp.this_residual, |
instance | 2306 | drivers/scsi/NCR5380.c | (transfersize = NCR5380_dma_xfer_len(instance, cmd)) != 0) { |
instance | 2321 | drivers/scsi/NCR5380.c | if (NCR5380_transfer_dma(instance, &phase, |
instance | 2328 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2333 | drivers/scsi/NCR5380.c | do_abort(instance); |
instance | 2341 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, |
instance | 2348 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2370 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2380 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2382 | drivers/scsi/NCR5380.c | do_abort (instance); |
instance | 2392 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2409 | drivers/scsi/NCR5380.c | instance->host_no, cmd->target, cmd->lun); |
instance | 2439 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2460 | drivers/scsi/NCR5380.c | printk("scsi%d : REQUEST SENSE added to head of issue queue\n",instance->host_no); |
instance | 2506 | drivers/scsi/NCR5380.c | " the disconnected_queue\n", instance->host_no, |
instance | 2521 | drivers/scsi/NCR5380.c | NCR5380_print_status(instance); |
instance | 2558 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2564 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2568 | drivers/scsi/NCR5380.c | instance->host_no, (int) extended_msg[1], |
instance | 2580 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2584 | drivers/scsi/NCR5380.c | instance->host_no, len); |
instance | 2596 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2600 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[2], extended_msg[1]); |
instance | 2611 | drivers/scsi/NCR5380.c | printk("scsi%d: rejecting message ", instance->host_no); |
instance | 2616 | drivers/scsi/NCR5380.c | instance->host_no, tmp, cmd->target, cmd->lun); |
instance | 2619 | drivers/scsi/NCR5380.c | instance->host_no, extended_msg[1], extended_msg[0], cmd->target, cmd->lun); |
instance | 2631 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2653 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, |
instance | 2659 | drivers/scsi/NCR5380.c | printk("scsi%d : issued command, sleeping until %ul\n", instance->host_no, |
instance | 2662 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 2670 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2674 | drivers/scsi/NCR5380.c | printk("scsi%d : unknown phase\n", instance->host_no); |
instance | 2676 | drivers/scsi/NCR5380.c | NCR5380_print(instance); |
instance | 2686 | drivers/scsi/NCR5380.c | printk("scsi%d : poll timed out, sleeping until %ul\n", instance->host_no, |
instance | 2689 | drivers/scsi/NCR5380.c | NCR5380_set_timer (instance); |
instance | 2709 | drivers/scsi/NCR5380.c | static void NCR5380_reselect (struct Scsi_Host *instance) { |
instance | 2712 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2723 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2736 | drivers/scsi/NCR5380.c | printk("scsi%d : reselect\n", instance->host_no); |
instance | 2762 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio(instance, &phase, &len, &data); |
instance | 2767 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2812 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun, tag); |
instance | 2815 | drivers/scsi/NCR5380.c | instance->host_no, target_mask, lun); |
instance | 2826 | drivers/scsi/NCR5380.c | do_abort (instance); |
instance | 2831 | drivers/scsi/NCR5380.c | instance->host_no, tmp->target, tmp->lun, tmp->tag); |
instance | 2849 | drivers/scsi/NCR5380.c | static void NCR5380_dma_complete (NCR5380_instance *instance) { |
instance | 2852 | drivers/scsi/NCR5380.c | instance->hostdata); |
instance | 2854 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2877 | drivers/scsi/NCR5380.c | transferred = instance->dmalen - NCR5380_dma_residual(); |
instance | 2906 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
instance | 2908 | drivers/scsi/NCR5380.c | instance->hostdata; |
instance | 2911 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting command\n", instance->host_no); |
instance | 2914 | drivers/scsi/NCR5380.c | NCR5380_print_status (instance); |
instance | 2916 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting command\n", instance->host_no); |
instance | 2919 | drivers/scsi/NCR5380.c | NCR5380_print_status (instance); |
instance | 2922 | drivers/scsi/NCR5380.c | NCR5380_setup(instance); |
instance | 2925 | drivers/scsi/NCR5380.c | printk("scsi%d : abort called\n", instance->host_no); |
instance | 2939 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting connected command\n", instance->host_no); |
instance | 2969 | drivers/scsi/NCR5380.c | printk("scsi%d : abort going into loop.\n", instance->host_no); |
instance | 2983 | drivers/scsi/NCR5380.c | instance->host_no); |
instance | 2990 | drivers/scsi/NCR5380.c | else if (prev == tmp) printk("scsi%d : LOOP\n", instance->host_no); |
instance | 3007 | drivers/scsi/NCR5380.c | printk("scsi%d : abort failed, command connected.\n", instance->host_no); |
instance | 3042 | drivers/scsi/NCR5380.c | printk("scsi%d : aborting disconnected command.\n", instance->host_no); |
instance | 3045 | drivers/scsi/NCR5380.c | if (NCR5380_select (instance, cmd, (int) cmd->tag)) |
instance | 3049 | drivers/scsi/NCR5380.c | printk("scsi%d : nexus reestablished.\n", instance->host_no); |
instance | 3052 | drivers/scsi/NCR5380.c | do_abort (instance); |
instance | 3082 | drivers/scsi/NCR5380.c | " before abortion\n", instance->host_no); |
instance | 283 | drivers/scsi/NCR5380.h | static int NCR5380_probe_irq (struct Scsi_Host *instance, int possible); |
instance | 285 | drivers/scsi/NCR5380.h | static void NCR5380_init (struct Scsi_Host *instance, int flags); |
instance | 286 | drivers/scsi/NCR5380.h | static void NCR5380_information_transfer (struct Scsi_Host *instance); |
instance | 289 | drivers/scsi/NCR5380.h | static void NCR5380_print_options (struct Scsi_Host *instance); |
instance | 290 | drivers/scsi/NCR5380.h | static void NCR5380_print_phase (struct Scsi_Host *instance); |
instance | 291 | drivers/scsi/NCR5380.h | static void NCR5380_print (struct Scsi_Host *instance); |
instance | 306 | drivers/scsi/NCR5380.h | static void NCR5380_reselect (struct Scsi_Host *instance); |
instance | 307 | drivers/scsi/NCR5380.h | static int NCR5380_select (struct Scsi_Host *instance, Scsi_Cmnd *cmd, int tag); |
instance | 309 | drivers/scsi/NCR5380.h | static int NCR5380_transfer_dma (struct Scsi_Host *instance, |
instance | 312 | drivers/scsi/NCR5380.h | static int NCR5380_transfer_pio (struct Scsi_Host *instance, |
instance | 316 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_setup (struct Scsi_Host *instance, |
instance | 320 | drivers/scsi/NCR5380.h | if (instance->dma_channel <=3) { |
instance | 333 | drivers/scsi/NCR5380.h | panic ("scsi%d : attempted unaligned DMA transfer\n", instance->host_no); |
instance | 335 | drivers/scsi/NCR5380.h | disable_dma(instance->dma_channel); |
instance | 336 | drivers/scsi/NCR5380.h | clear_dma_ff(instance->dma_channel); |
instance | 337 | drivers/scsi/NCR5380.h | set_dma_addr(instance->dma_channel, (unsigned int) ptr); |
instance | 338 | drivers/scsi/NCR5380.h | set_dma_count(instance->dma_channel, count); |
instance | 339 | drivers/scsi/NCR5380.h | set_dma_mode(instance->dma_channel, mode); |
instance | 340 | drivers/scsi/NCR5380.h | enable_dma(instance->dma_channel); |
instance | 345 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_write_setup (struct Scsi_Host *instance, |
instance | 347 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_WRITE); |
instance | 350 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_read_setup (struct Scsi_Host *instance, |
instance | 352 | drivers/scsi/NCR5380.h | return NCR5380_i386_dma_setup (instance, src, count, DMA_MODE_READ); |
instance | 355 | drivers/scsi/NCR5380.h | static __inline__ int NCR5380_i386_dma_residual (struct Scsi_Host *instance) { |
instance | 358 | drivers/scsi/NCR5380.h | clear_dma_ff(instance->dma_channel); |
instance | 359 | drivers/scsi/NCR5380.h | tmp = get_dma_residue(instance->dma_channel); |
instance | 188 | drivers/scsi/g_NCR5380.c | struct Scsi_Host *instance; |
instance | 205 | drivers/scsi/g_NCR5380.c | instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); |
instance | 206 | drivers/scsi/g_NCR5380.c | instance->NCR5380_instance_name = overrides[current_override].NCR5380_map_name; |
instance | 208 | drivers/scsi/g_NCR5380.c | NCR5380_init(instance, flags); |
instance | 211 | drivers/scsi/g_NCR5380.c | instance->irq = overrides[current_override].irq; |
instance | 213 | drivers/scsi/g_NCR5380.c | instance->irq = NCR5380_probe_irq(instance, 0xffff); |
instance | 215 | drivers/scsi/g_NCR5380.c | if (instance->irq != IRQ_NONE) |
instance | 216 | drivers/scsi/g_NCR5380.c | if (request_irq(instance->irq, generic_NCR5380_intr, SA_INTERRUPT, "NCR5380", NULL)) { |
instance | 218 | drivers/scsi/g_NCR5380.c | instance->host_no, instance->irq); |
instance | 219 | drivers/scsi/g_NCR5380.c | instance->irq = IRQ_NONE; |
instance | 222 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) { |
instance | 223 | drivers/scsi/g_NCR5380.c | printk("scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no); |
instance | 224 | drivers/scsi/g_NCR5380.c | printk("scsi%d : please jumper the board for a free IRQ.\n", instance->host_no); |
instance | 227 | 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 | 228 | drivers/scsi/g_NCR5380.c | if (instance->irq == IRQ_NONE) |
instance | 231 | drivers/scsi/g_NCR5380.c | printk (" irq %d", instance->irq); |
instance | 234 | drivers/scsi/g_NCR5380.c | NCR5380_print_options(instance); |
instance | 248 | drivers/scsi/g_NCR5380.c | int generic_NCR5380_release_resources(struct Scsi_Host * instance) |
instance | 252 | drivers/scsi/g_NCR5380.c | NCR5380_setup(instance); |
instance | 254 | drivers/scsi/g_NCR5380.c | free_irq(instance->irq, NULL); |
instance | 291 | drivers/scsi/g_NCR5380.c | static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst, int len) |
instance | 299 | drivers/scsi/g_NCR5380.c | NCR5380_setup(instance); |
instance | 399 | drivers/scsi/g_NCR5380.c | static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src, int len) |
instance | 407 | drivers/scsi/g_NCR5380.c | NCR5380_setup(instance); |
instance | 145 | drivers/scsi/g_NCR5380.h | #define NCR5380_setup(instance) \ |
instance | 146 | 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", NULL)) { |
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", NULL)) { |
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)); \ |