tag | line | file | source code |
shpnt | 463 | drivers/scsi/NCR53c406a.c | struct Scsi_Host *shpnt; |
shpnt | 573 | drivers/scsi/NCR53c406a.c | shpnt = scsi_register(tpnt, 0); |
shpnt | 574 | drivers/scsi/NCR53c406a.c | shpnt->irq = irq_level; |
shpnt | 575 | drivers/scsi/NCR53c406a.c | shpnt->io_port = port_base; |
shpnt | 576 | drivers/scsi/NCR53c406a.c | shpnt->n_io_port = 0x10; |
shpnt | 578 | drivers/scsi/NCR53c406a.c | shpnt->dma = dma_chan; |
shpnt | 354 | drivers/scsi/aha152x.c | #define HOSTDATA(shpnt) ((struct aha152x_hostdata *) &shpnt->hostdata) |
shpnt | 355 | drivers/scsi/aha152x.c | #define CURRENT_SC (HOSTDATA(shpnt)->current_SC) |
shpnt | 356 | drivers/scsi/aha152x.c | #define ISSUE_SC (HOSTDATA(shpnt)->issue_SC) |
shpnt | 357 | drivers/scsi/aha152x.c | #define DISCONNECTED_SC (HOSTDATA(shpnt)->disconnected_SC) |
shpnt | 358 | drivers/scsi/aha152x.c | #define DELAY (HOSTDATA(shpnt)->delay) |
shpnt | 359 | drivers/scsi/aha152x.c | #define SYNCRATE (HOSTDATA(shpnt)->syncrate[CURRENT_SC->target]) |
shpnt | 360 | drivers/scsi/aha152x.c | #define MSG(i) (HOSTDATA(shpnt)->message[i]) |
shpnt | 361 | drivers/scsi/aha152x.c | #define MSGLEN (HOSTDATA(shpnt)->message_len) |
shpnt | 389 | drivers/scsi/aha152x.c | void aha152x_done(struct Scsi_Host *shpnt, int error); |
shpnt | 393 | drivers/scsi/aha152x.c | static void aha152x_reset_ports(struct Scsi_Host *shpnt); |
shpnt | 394 | drivers/scsi/aha152x.c | static void aha152x_panic(struct Scsi_Host *shpnt, char *msg); |
shpnt | 396 | drivers/scsi/aha152x.c | static void disp_ports(struct Scsi_Host *shpnt); |
shpnt | 398 | drivers/scsi/aha152x.c | static void show_queues(struct Scsi_Host *shpnt); |
shpnt | 399 | drivers/scsi/aha152x.c | static void disp_enintr(struct Scsi_Host *shpnt); |
shpnt | 514 | drivers/scsi/aha152x.c | static void make_acklow(struct Scsi_Host *shpnt) |
shpnt | 534 | drivers/scsi/aha152x.c | static int getphase(struct Scsi_Host *shpnt) |
shpnt | 563 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 778 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt; |
shpnt | 780 | drivers/scsi/aha152x.c | shpnt = aha152x_host[setup[i].irq-IRQ_MIN] = |
shpnt | 783 | drivers/scsi/aha152x.c | shpnt->io_port = setup[i].io_port; |
shpnt | 784 | drivers/scsi/aha152x.c | shpnt->n_io_port = IO_RANGE; |
shpnt | 785 | drivers/scsi/aha152x.c | shpnt->irq = setup[i].irq; |
shpnt | 791 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect = setup[i].reconnect; |
shpnt | 792 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity = setup[i].parity; |
shpnt | 793 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous = setup[i].synchronous; |
shpnt | 794 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->delay = setup[i].delay; |
shpnt | 796 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->debug = setup[i].debug; |
shpnt | 799 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting = 0; |
shpnt | 800 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete = 0; |
shpnt | 801 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result = 0; |
shpnt | 802 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands = 0; |
shpnt | 804 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->message_len = 0; |
shpnt | 807 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[j] = 0; |
shpnt | 810 | drivers/scsi/aha152x.c | shpnt->this_id=setup[i].scsiid; |
shpnt | 813 | drivers/scsi/aha152x.c | shpnt->hostt->can_queue=AHA152X_MAXQUEUE; |
shpnt | 821 | drivers/scsi/aha152x.c | aha152x_reset_ports(shpnt); |
shpnt | 826 | drivers/scsi/aha152x.c | shpnt->io_port, |
shpnt | 827 | drivers/scsi/aha152x.c | shpnt->irq, |
shpnt | 828 | drivers/scsi/aha152x.c | shpnt->this_id, |
shpnt | 829 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect ? "enabled" : "disabled", |
shpnt | 830 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity ? "enabled" : "disabled", |
shpnt | 831 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous ? "enabled" : "disabled", |
shpnt | 832 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->delay); |
shpnt | 834 | drivers/scsi/aha152x.c | request_region(shpnt->io_port, IO_RANGE, "aha152x"); /* Register */ |
shpnt | 874 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 881 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queue) |
shpnt | 887 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queue) |
shpnt | 894 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 931 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands++; |
shpnt | 932 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->commands==1) |
shpnt | 936 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 937 | drivers/scsi/aha152x.c | printk("i+ (%d), ", HOSTDATA(shpnt)->commands); |
shpnt | 971 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 979 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_abort) |
shpnt | 982 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1039 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->aborting) |
shpnt | 1051 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->target); |
shpnt | 1063 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_SUCCESS; |
shpnt | 1064 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting++; |
shpnt | 1065 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete=0; |
shpnt | 1070 | drivers/scsi/aha152x.c | while(!HOSTDATA(shpnt)->abortion_complete) |
shpnt | 1072 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->aborting=0; |
shpnt | 1073 | drivers/scsi/aha152x.c | return HOSTDATA(shpnt)->abort_result; |
shpnt | 1091 | drivers/scsi/aha152x.c | static void aha152x_reset_ports(struct Scsi_Host *shpnt) |
shpnt | 1128 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
shpnt | 1132 | drivers/scsi/aha152x.c | aha152x_reset_ports(shpnt); |
shpnt | 1140 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_reset) |
shpnt | 1143 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1185 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_reset) |
shpnt | 1188 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1213 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_biosparam) |
shpnt | 1231 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_biosparam) |
shpnt | 1245 | drivers/scsi/aha152x.c | void aha152x_done(struct Scsi_Host *shpnt, int error) |
shpnt | 1251 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1254 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 1261 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1272 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands--; |
shpnt | 1273 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->commands) |
shpnt | 1277 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1278 | drivers/scsi/aha152x.c | printk("ok (%d), ", HOSTDATA(shpnt)->commands); |
shpnt | 1286 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 1292 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 1300 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1305 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_done) |
shpnt | 1313 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "done() called outside of command"); |
shpnt | 1321 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = aha152x_host[irqno-IRQ_MIN]; |
shpnt | 1329 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 1356 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1372 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_queues|debug_phases)) |
shpnt | 1376 | drivers/scsi/aha152x.c | i = GETPORT(SELID) & ~(1 << shpnt->this_id); |
shpnt | 1382 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "reconnecting target unknown"); |
shpnt | 1385 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1388 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | target); |
shpnt | 1392 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "RESELI failed"); |
shpnt | 1394 | drivers/scsi/aha152x.c | SETPORT(SCSIRATE, HOSTDATA(shpnt)->syncrate[target]&0x7f); |
shpnt | 1399 | drivers/scsi/aha152x.c | if((i=getphase(shpnt))!=P_MSGI) |
shpnt | 1402 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "unknown lun"); |
shpnt | 1414 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "unknown lun"); |
shpnt | 1419 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1427 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1437 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "no disconnected command for that lun"); |
shpnt | 1443 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1444 | drivers/scsi/aha152x.c | if(getphase(shpnt)!=P_MSGI) { |
shpnt | 1464 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1471 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_selection|debug_phases)) |
shpnt | 1477 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_selection|debug_phases)) |
shpnt | 1480 | drivers/scsi/aha152x.c | SETPORT(SCSIID, (shpnt->this_id << OID_) | CURRENT_SC->target); |
shpnt | 1483 | drivers/scsi/aha152x.c | SETPORT(SXFRCTL1, HOSTDATA(shpnt)->parity ? (ENSPCHK|ENSTIMER) : ENSTIMER); |
shpnt | 1501 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 1514 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 1515 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 1546 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_ERROR; |
shpnt | 1547 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1550 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_NO_CONNECT << 16); |
shpnt | 1554 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_selection|debug_phases)) |
shpnt | 1562 | drivers/scsi/aha152x.c | if((HOSTDATA(shpnt)->debug & debug_abort) && (CURRENT_SC->SCp.phase & aborted)) |
shpnt | 1569 | drivers/scsi/aha152x.c | ADDMSG(IDENTIFY(HOSTDATA(shpnt)->reconnect,CURRENT_SC->lun)); |
shpnt | 1571 | drivers/scsi/aha152x.c | if(!(SYNCRATE&0x80) && HOSTDATA(shpnt)->synchronous) |
shpnt | 1599 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "neither timeout nor selection\007"); |
shpnt | 1603 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_selection|debug_phases)) |
shpnt | 1622 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_abort) |
shpnt | 1625 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_ERROR; |
shpnt | 1626 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1631 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_BUS_BUSY << 16); |
shpnt | 1634 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_NO_CONNECT << 16); |
shpnt | 1641 | drivers/scsi/aha152x.c | phase = getphase(shpnt); |
shpnt | 1656 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_msgo|debug_phases)) |
shpnt | 1663 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1679 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1693 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgo) |
shpnt | 1704 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1705 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1707 | drivers/scsi/aha152x.c | if(MSG(i)==IDENTIFY(HOSTDATA(shpnt)->reconnect,CURRENT_SC->lun)) |
shpnt | 1723 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abort_result=SCSI_ABORT_SUCCESS; |
shpnt | 1724 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->abortion_complete++; |
shpnt | 1733 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_ABORT<<16); |
shpnt | 1741 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_cmd|debug_phases)) |
shpnt | 1761 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1762 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1766 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "target left COMMAND"); |
shpnt | 1771 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "Nothing to send while in COMMAND"); |
shpnt | 1779 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_intr|debug_msgi|debug_phases)) |
shpnt | 1794 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_msgi|debug_phases)) |
shpnt | 1799 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->reconnect) |
shpnt | 1800 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "target was not allowed to disconnect"); |
shpnt | 1805 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_msgi|debug_phases)) |
shpnt | 1821 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1828 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1839 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1842 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1843 | drivers/scsi/aha152x.c | if(getphase(shpnt)!=P_MSGI) |
shpnt | 1850 | drivers/scsi/aha152x.c | (make_acklow(shpnt), getphase(shpnt)==P_MSGI); i++) |
shpnt | 1854 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_msgi) |
shpnt | 1865 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "SDTR message length != 3"); |
shpnt | 1867 | drivers/scsi/aha152x.c | if(!HOSTDATA(shpnt)->synchronous) |
shpnt | 1878 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "received SDTR invalid"); |
shpnt | 1937 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1938 | drivers/scsi/aha152x.c | phase=getphase(shpnt); |
shpnt | 1958 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_queues) |
shpnt | 1979 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_status|debug_intr|debug_phases)) |
shpnt | 1991 | drivers/scsi/aha152x.c | make_acklow(shpnt); |
shpnt | 1992 | drivers/scsi/aha152x.c | getphase(shpnt); |
shpnt | 1995 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_status) |
shpnt | 2009 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datai|debug_intr|debug_phases)) |
shpnt | 2035 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2043 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2058 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2065 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2080 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2097 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2151 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datai) |
shpnt | 2160 | drivers/scsi/aha152x.c | if((HOSTDATA(shpnt)->debug & debug_datai) && |
shpnt | 2174 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datai|debug_intr)) |
shpnt | 2187 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datao|debug_intr|debug_phases)) |
shpnt | 2191 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2201 | drivers/scsi/aha152x.c | aha152x_panic(shpnt, "FIFO should be empty"); |
shpnt | 2220 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2231 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2256 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2288 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2302 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2309 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_datao) |
shpnt | 2324 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & (debug_datao|debug_intr)) |
shpnt | 2335 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_phases) |
shpnt | 2340 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_ERROR << 16); /* Don't know any better */ |
shpnt | 2353 | drivers/scsi/aha152x.c | aha152x_done(shpnt, DID_PARITY << 16); |
shpnt | 2365 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 2378 | drivers/scsi/aha152x.c | aha152x_done(shpnt, |
shpnt | 2396 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_intr) |
shpnt | 2397 | drivers/scsi/aha152x.c | disp_enintr(shpnt); |
shpnt | 2410 | drivers/scsi/aha152x.c | static void aha152x_panic(struct Scsi_Host *shpnt, char *msg) |
shpnt | 2413 | drivers/scsi/aha152x.c | show_queues(shpnt); |
shpnt | 2420 | drivers/scsi/aha152x.c | static void disp_ports(struct Scsi_Host *shpnt) |
shpnt | 2426 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->debug & debug_skipports) |
shpnt | 2603 | drivers/scsi/aha152x.c | static void disp_enintr(struct Scsi_Host *shpnt) |
shpnt | 2729 | drivers/scsi/aha152x.c | static void show_queues(struct Scsi_Host *shpnt) |
shpnt | 2750 | drivers/scsi/aha152x.c | disp_ports(shpnt); |
shpnt | 2751 | drivers/scsi/aha152x.c | disp_enintr(shpnt); |
shpnt | 2755 | drivers/scsi/aha152x.c | int aha152x_set_info(char *buffer, int length, struct Scsi_Host *shpnt) |
shpnt | 2833 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt; |
shpnt | 2837 | drivers/scsi/aha152x.c | for(i=0, shpnt= (struct Scsi_Host *) NULL; i<IRQS; i++) |
shpnt | 2839 | drivers/scsi/aha152x.c | shpnt=aha152x_host[i]; |
shpnt | 2841 | drivers/scsi/aha152x.c | if(!shpnt) |
shpnt | 2845 | drivers/scsi/aha152x.c | return(aha152x_set_info(buffer, length, shpnt)); |
shpnt | 2853 | drivers/scsi/aha152x.c | shpnt->io_port, shpnt->io_port+shpnt->n_io_port-1); |
shpnt | 2854 | drivers/scsi/aha152x.c | SPRINTF("interrupt 0x%02x\n", shpnt->irq); |
shpnt | 2856 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->reconnect ? "enabled" : "disabled"); |
shpnt | 2858 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->parity ? "enabled" : "disabled"); |
shpnt | 2860 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->synchronous ? "enabled" : "disabled"); |
shpnt | 2862 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->commands); |
shpnt | 2868 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->syncrate[i]&0x7f) |
shpnt | 2871 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2), |
shpnt | 2872 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2)* |
shpnt | 2874 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[i]&0x0f); |
shpnt | 2878 | drivers/scsi/aha152x.c | if(HOSTDATA(shpnt)->syncrate[i]&0x7f) |
shpnt | 2881 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2), |
shpnt | 2882 | drivers/scsi/aha152x.c | (((HOSTDATA(shpnt)->syncrate[i]&0x70)>>4)+2)*50, |
shpnt | 2883 | drivers/scsi/aha152x.c | HOSTDATA(shpnt)->syncrate[i]&0x0f); |
shpnt | 2887 | drivers/scsi/aha152x.c | #define PDEBUG(flags,txt) if(HOSTDATA(shpnt)->debug & flags) SPRINTF("(%s) ", txt); |
shpnt | 2932 | drivers/scsi/aha152x.c | if (scd->host == shpnt) { |
shpnt | 56 | drivers/scsi/aha152x.h | #define SCSISEQ (shpnt->io_port+0x00) /* SCSI sequence control */ |
shpnt | 57 | drivers/scsi/aha152x.h | #define SXFRCTL0 (shpnt->io_port+0x01) /* SCSI transfer control 0 */ |
shpnt | 58 | drivers/scsi/aha152x.h | #define SXFRCTL1 (shpnt->io_port+0x02) /* SCSI transfer control 1 */ |
shpnt | 59 | drivers/scsi/aha152x.h | #define SCSISIG (shpnt->io_port+0x03) /* SCSI signal in/out */ |
shpnt | 60 | drivers/scsi/aha152x.h | #define SCSIRATE (shpnt->io_port+0x04) /* SCSI rate control */ |
shpnt | 61 | drivers/scsi/aha152x.h | #define SELID (shpnt->io_port+0x05) /* selection/reselection ID */ |
shpnt | 63 | drivers/scsi/aha152x.h | #define SCSIDAT (shpnt->io_port+0x06) /* SCSI latched data */ |
shpnt | 64 | drivers/scsi/aha152x.h | #define SCSIBUS (shpnt->io_port+0x07) /* SCSI data bus */ |
shpnt | 65 | drivers/scsi/aha152x.h | #define STCNT0 (shpnt->io_port+0x08) /* SCSI transfer count 0 */ |
shpnt | 66 | drivers/scsi/aha152x.h | #define STCNT1 (shpnt->io_port+0x09) /* SCSI transfer count 1 */ |
shpnt | 67 | drivers/scsi/aha152x.h | #define STCNT2 (shpnt->io_port+0x0a) /* SCSI transfer count 2 */ |
shpnt | 68 | drivers/scsi/aha152x.h | #define SSTAT0 (shpnt->io_port+0x0b) /* SCSI interrupt status 0 */ |
shpnt | 69 | drivers/scsi/aha152x.h | #define SSTAT1 (shpnt->io_port+0x0c) /* SCSI interrupt status 1 */ |
shpnt | 70 | drivers/scsi/aha152x.h | #define SSTAT2 (shpnt->io_port+0x0d) /* SCSI interrupt status 2 */ |
shpnt | 71 | drivers/scsi/aha152x.h | #define SCSITEST (shpnt->io_port+0x0e) /* SCSI test control */ |
shpnt | 73 | drivers/scsi/aha152x.h | #define SSTAT4 (shpnt->io_port+0x0f) /* SCSI status 4 */ |
shpnt | 74 | drivers/scsi/aha152x.h | #define SIMODE0 (shpnt->io_port+0x10) /* SCSI interrupt mode 0 */ |
shpnt | 75 | drivers/scsi/aha152x.h | #define SIMODE1 (shpnt->io_port+0x11) /* SCSI interrupt mode 1 */ |
shpnt | 76 | drivers/scsi/aha152x.h | #define DMACNTRL0 (shpnt->io_port+0x12) /* DMA control 0 */ |
shpnt | 77 | drivers/scsi/aha152x.h | #define DMACNTRL1 (shpnt->io_port+0x13) /* DMA control 1 */ |
shpnt | 78 | drivers/scsi/aha152x.h | #define DMASTAT (shpnt->io_port+0x14) /* DMA status */ |
shpnt | 79 | drivers/scsi/aha152x.h | #define FIFOSTAT (shpnt->io_port+0x15) /* FIFO status */ |
shpnt | 80 | drivers/scsi/aha152x.h | #define DATAPORT (shpnt->io_port+0x16) /* DATA port */ |
shpnt | 81 | drivers/scsi/aha152x.h | #define BRSTCNTRL (shpnt->io_port+0x18) /* burst control */ |
shpnt | 82 | drivers/scsi/aha152x.h | #define PORTA (shpnt->io_port+0x1a) /* PORT A */ |
shpnt | 83 | drivers/scsi/aha152x.h | #define PORTB (shpnt->io_port+0x1b) /* PORT B */ |
shpnt | 84 | drivers/scsi/aha152x.h | #define REV (shpnt->io_port+0x1c) /* revision */ |
shpnt | 85 | drivers/scsi/aha152x.h | #define STACK (shpnt->io_port+0x1d) /* stack */ |
shpnt | 86 | drivers/scsi/aha152x.h | #define TEST (shpnt->io_port+0x1e) /* test register */ |
shpnt | 119 | drivers/scsi/aha1542.c | static void setup_mailboxes(int base_io, struct Scsi_Host * shpnt); |
shpnt | 287 | drivers/scsi/aha1542.c | static int aha1542_test_port(int bse, struct Scsi_Host * shpnt) |
shpnt | 694 | drivers/scsi/aha1542.c | static void setup_mailboxes(int bse, struct Scsi_Host * shpnt) |
shpnt | 702 | drivers/scsi/aha1542.c | mb = HOSTDATA(shpnt)->mb; |
shpnt | 703 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shpnt)->ccb; |
shpnt | 930 | drivers/scsi/aha1542.c | struct Scsi_Host * shpnt = NULL; |
shpnt | 940 | drivers/scsi/aha1542.c | shpnt = scsi_register(tpnt, |
shpnt | 945 | drivers/scsi/aha1542.c | if ((unsigned int) shpnt > 0xffffff) { |
shpnt | 950 | drivers/scsi/aha1542.c | if(!aha1542_test_port(bases[indx], shpnt)) goto unregister; |
shpnt | 996 | drivers/scsi/aha1542.c | setup_mailboxes(base_io, shpnt); |
shpnt | 1020 | drivers/scsi/aha1542.c | aha_host[irq_level - 9] = shpnt; |
shpnt | 1021 | drivers/scsi/aha1542.c | shpnt->this_id = scsi_id; |
shpnt | 1022 | drivers/scsi/aha1542.c | shpnt->unique_id = base_io; |
shpnt | 1023 | drivers/scsi/aha1542.c | shpnt->io_port = base_io; |
shpnt | 1024 | drivers/scsi/aha1542.c | shpnt->n_io_port = 4; /* Number of bytes of I/O space used */ |
shpnt | 1025 | drivers/scsi/aha1542.c | shpnt->dma_channel = dma_chan; |
shpnt | 1026 | drivers/scsi/aha1542.c | shpnt->irq = irq_level; |
shpnt | 1027 | drivers/scsi/aha1542.c | HOSTDATA(shpnt)->bios_translation = trans; |
shpnt | 1030 | drivers/scsi/aha1542.c | HOSTDATA(shpnt)->aha1542_last_mbi_used = (2*AHA1542_MAILBOXES - 1); |
shpnt | 1031 | drivers/scsi/aha1542.c | HOSTDATA(shpnt)->aha1542_last_mbo_used = (AHA1542_MAILBOXES - 1); |
shpnt | 1032 | drivers/scsi/aha1542.c | memset(HOSTDATA(shpnt)->SCint, 0, sizeof(HOSTDATA(shpnt)->SCint)); |
shpnt | 1071 | drivers/scsi/aha1542.c | scsi_unregister(shpnt); |
shpnt | 487 | drivers/scsi/fdomain.c | static void print_banner( struct Scsi_Host *shpnt ) |
shpnt | 489 | drivers/scsi/fdomain.c | if (!shpnt) return; /* This won't ever happen */ |
shpnt | 493 | drivers/scsi/fdomain.c | shpnt->host_no, shpnt->this_id ); |
shpnt | 495 | drivers/scsi/fdomain.c | printk( "scsi%d <fdomain>: BIOS version ", shpnt->host_no ); |
shpnt | 504 | drivers/scsi/fdomain.c | (unsigned)bios_base, shpnt->this_id ); |
shpnt | 512 | drivers/scsi/fdomain.c | shpnt->host_no, |
shpnt | 914 | drivers/scsi/fdomain.c | struct Scsi_Host *shpnt; |
shpnt | 1033 | drivers/scsi/fdomain.c | shpnt = scsi_register( tpnt, 0 ); |
shpnt | 1034 | drivers/scsi/fdomain.c | shpnt->irq = interrupt_level; |
shpnt | 1035 | drivers/scsi/fdomain.c | shpnt->io_port = port_base; |
shpnt | 1036 | drivers/scsi/fdomain.c | shpnt->n_io_port = 0x10; |
shpnt | 1037 | drivers/scsi/fdomain.c | print_banner( shpnt ); |
shpnt | 313 | drivers/scsi/hosts.c | struct Scsi_Host * shpnt; |
shpnt | 318 | drivers/scsi/hosts.c | shpnt = scsi_hostlist; |
shpnt | 319 | drivers/scsi/hosts.c | while(shpnt->next != sh) shpnt = shpnt->next; |
shpnt | 320 | drivers/scsi/hosts.c | shpnt->next = shpnt->next->next; |
shpnt | 339 | drivers/scsi/hosts.c | struct Scsi_Host * retval, *shpnt; |
shpnt | 384 | drivers/scsi/hosts.c | shpnt = scsi_hostlist; |
shpnt | 385 | drivers/scsi/hosts.c | while(shpnt->next) shpnt = shpnt->next; |
shpnt | 386 | drivers/scsi/hosts.c | shpnt->next = retval; |
shpnt | 406 | drivers/scsi/hosts.c | struct Scsi_Host * shpnt; |
shpnt | 443 | drivers/scsi/hosts.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 445 | drivers/scsi/hosts.c | if(shpnt->hostt->info) |
shpnt | 446 | drivers/scsi/hosts.c | name = shpnt->hostt->info(shpnt); |
shpnt | 448 | drivers/scsi/hosts.c | name = shpnt->hostt->name; |
shpnt | 450 | drivers/scsi/hosts.c | shpnt->host_no, name); |
shpnt | 94 | drivers/scsi/scsi.c | struct Scsi_Host *shpnt, char * scsi_result); |
shpnt | 319 | drivers/scsi/scsi.c | struct Scsi_Host * sh[128], * shpnt; |
shpnt | 343 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) { |
shpnt | 351 | drivers/scsi/scsi.c | if (shpnt->unchecked_isa_dma) shpnt->wish_block = 1; |
shpnt | 354 | drivers/scsi/scsi.c | if (shpnt->wish_block) sh[block_count++] = shpnt; |
shpnt | 407 | drivers/scsi/scsi.c | static void scan_scsis (struct Scsi_Host *shpnt, unchar hardcoded, |
shpnt | 423 | drivers/scsi/scsi.c | scsi_result = ( ( !shpnt->unchecked_isa_dma ) |
shpnt | 432 | drivers/scsi/scsi.c | if(shpnt->host_queue) |
shpnt | 433 | drivers/scsi/scsi.c | shpnt->host_queue->prev = SCpnt; |
shpnt | 434 | drivers/scsi/scsi.c | SCpnt->next = shpnt->host_queue; |
shpnt | 436 | drivers/scsi/scsi.c | shpnt->host_queue = SCpnt; |
shpnt | 443 | drivers/scsi/scsi.c | if(channel > shpnt->max_channel) goto leave; |
shpnt | 445 | drivers/scsi/scsi.c | if(dev >= shpnt->max_id) goto leave; |
shpnt | 447 | drivers/scsi/scsi.c | if(lun >= shpnt->max_lun) goto leave; |
shpnt | 449 | drivers/scsi/scsi.c | &SDpnt, SCpnt, shpnt, scsi_result); |
shpnt | 471 | drivers/scsi/scsi.c | for (channel = 0; channel <= shpnt->max_channel; channel++) { |
shpnt | 472 | drivers/scsi/scsi.c | for (dev = 0; dev < shpnt->max_id; ++dev) { |
shpnt | 473 | drivers/scsi/scsi.c | if (shpnt->this_id != dev) { |
shpnt | 480 | drivers/scsi/scsi.c | max_dev_lun = (max_scsi_luns < shpnt->max_lun ? |
shpnt | 481 | drivers/scsi/scsi.c | max_scsi_luns : shpnt->max_lun); |
shpnt | 484 | drivers/scsi/scsi.c | &SDpnt, SCpnt, shpnt, scsi_result)) |
shpnt | 496 | drivers/scsi/scsi.c | for(hqptr = shpnt->host_queue; hqptr != SCpnt; hqptr = hqptr->next) ; |
shpnt | 503 | drivers/scsi/scsi.c | shpnt->host_queue = next; |
shpnt | 527 | drivers/scsi/scsi.c | Scsi_Device **SDpnt2, Scsi_Cmnd * SCpnt, struct Scsi_Host * shpnt, |
shpnt | 541 | drivers/scsi/scsi.c | SDpnt->host = shpnt; |
shpnt | 2487 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2516 | drivers/scsi/scsi.c | for (shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) { |
shpnt | 2517 | drivers/scsi/scsi.c | scan_scsis(shpnt,0,0,0,0); /* scan for scsi devices */ |
shpnt | 2518 | drivers/scsi/scsi.c | if (shpnt->select_queue_depths != NULL) |
shpnt | 2519 | drivers/scsi/scsi.c | (shpnt->select_queue_depths)(shpnt, scsi_devices); |
shpnt | 2785 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2826 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2913 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 2943 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2944 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) |
shpnt | 2947 | drivers/scsi/scsi.c | name = tpnt->info(shpnt); |
shpnt | 2951 | drivers/scsi/scsi.c | shpnt->host_no, name); |
shpnt | 2963 | drivers/scsi/scsi.c | for(shpnt=scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 2964 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) scan_scsis(shpnt,0,0,0,0); |
shpnt | 3013 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt, *sh1; |
shpnt | 3023 | drivers/scsi/scsi.c | for(shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 3025 | drivers/scsi/scsi.c | if (shpnt->hostt != tpnt) continue; |
shpnt | 3026 | drivers/scsi/scsi.c | for(SCpnt = shpnt->host_queue; SCpnt; SCpnt = SCpnt->next) |
shpnt | 3032 | drivers/scsi/scsi.c | for(SCpnt = shpnt->host_queue; SCpnt; SCpnt = SCpnt->next) |
shpnt | 3087 | drivers/scsi/scsi.c | shpnt = scsi_hostlist; |
shpnt | 3088 | drivers/scsi/scsi.c | while(shpnt) { |
shpnt | 3089 | drivers/scsi/scsi.c | sh1 = shpnt->next; |
shpnt | 3090 | drivers/scsi/scsi.c | if(shpnt->hostt == tpnt) { |
shpnt | 3091 | drivers/scsi/scsi.c | if(shpnt->loaded_as_module) { |
shpnt | 3096 | drivers/scsi/scsi.c | shpnt->host_no + PROC_SCSI_FILE); |
shpnt | 3099 | drivers/scsi/scsi.c | (*tpnt->release)(shpnt); |
shpnt | 3105 | drivers/scsi/scsi.c | if (shpnt->irq) free_irq(shpnt->irq, NULL); |
shpnt | 3106 | drivers/scsi/scsi.c | if (shpnt->dma_channel != 0xff) free_dma(shpnt->dma_channel); |
shpnt | 3107 | drivers/scsi/scsi.c | if (shpnt->io_port && shpnt->n_io_port) |
shpnt | 3108 | drivers/scsi/scsi.c | release_region(shpnt->io_port, shpnt->n_io_port); |
shpnt | 3110 | drivers/scsi/scsi.c | if(pcount == next_scsi_host) scsi_unregister(shpnt); |
shpnt | 3114 | drivers/scsi/scsi.c | shpnt = sh1; |
shpnt | 3323 | drivers/scsi/scsi.c | struct Scsi_Host * shpnt; |
shpnt | 3327 | drivers/scsi/scsi.c | for(shpnt = scsi_hostlist; shpnt; shpnt = shpnt->next) |
shpnt | 3328 | drivers/scsi/scsi.c | for(SCpnt=shpnt->host_queue; SCpnt; SCpnt = SCpnt->next) |
shpnt | 401 | drivers/scsi/seagate.c | const char *seagate_st0x_info(struct Scsi_Host * shpnt) { |
shpnt | 531 | drivers/scsi/ultrastor.c | struct Scsi_Host * shpnt = NULL; |
shpnt | 609 | drivers/scsi/ultrastor.c | shpnt = scsi_register(tpnt, 0); |
shpnt | 610 | drivers/scsi/ultrastor.c | shpnt->irq = config.interrupt; |
shpnt | 611 | drivers/scsi/ultrastor.c | shpnt->dma_channel = config.dma_channel; |
shpnt | 612 | drivers/scsi/ultrastor.c | shpnt->io_port = config.port_address; |
shpnt | 638 | drivers/scsi/ultrastor.c | const char *ultrastor_info(struct Scsi_Host * shpnt) |
shpnt | 18 | drivers/scsi/ultrastor.h | const char *ultrastor_info(struct Scsi_Host * shpnt); |