tag | line | file | source code |
host | 176 | drivers/scsi/53c7,8xx.c | static int NCR53c8xx_run_tests (struct Scsi_Host *host); |
host | 179 | drivers/scsi/53c7,8xx.c | static void intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd |
host | 181 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
host | 182 | drivers/scsi/53c7,8xx.c | static void print_dsa (struct Scsi_Host *host, unsigned long *dsa); |
host | 183 | drivers/scsi/53c7,8xx.c | static int print_insn (struct Scsi_Host *host, unsigned long *insn, |
host | 187 | drivers/scsi/53c7,8xx.c | static void NCR53c8x0_init_fixup (struct Scsi_Host *host); |
host | 188 | drivers/scsi/53c7,8xx.c | static int NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct |
host | 190 | drivers/scsi/53c7,8xx.c | static void NCR53c8x0_soft_reset (struct Scsi_Host *host); |
host | 405 | drivers/scsi/53c7,8xx.c | static int NCR53c7x0_init (struct Scsi_Host *host) { |
host | 410 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 412 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 430 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->chip); |
host | 431 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 441 | drivers/scsi/53c7,8xx.c | (search->irq != host->irq); search=search->next); |
host | 444 | drivers/scsi/53c7,8xx.c | if (request_irq(host->irq, NCR53c7x0_intr, SA_INTERRUPT, "53c7,8xx")) { |
host | 446 | drivers/scsi/53c7,8xx.c | host->host_no, host->irq); |
host | 447 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 452 | drivers/scsi/53c7,8xx.c | host->host_no, search->host_no); |
host | 455 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %s mapped access\n", host->host_no, |
host | 474 | drivers/scsi/53c7,8xx.c | for (host->this_id = 0; tmp != 1; tmp >>=1, ++host->this_id); |
host | 476 | drivers/scsi/53c7,8xx.c | host->this_id = NCR53c7x0_read8(SCID_REG) & 7; |
host | 477 | drivers/scsi/53c7,8xx.c | hostdata->this_id_mask = 1 << host->this_id; |
host | 480 | drivers/scsi/53c7,8xx.c | printk("scsi%d : using initiator ID %d\n", host->host_no, |
host | 481 | drivers/scsi/53c7,8xx.c | host->this_id); |
host | 508 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %s interrupts.\n", host->host_no, |
host | 525 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst mode disabled\n", host->host_no); |
host | 533 | drivers/scsi/53c7,8xx.c | printk ("scsi%d ; burst length %d\n", host->host_no, i); |
host | 564 | drivers/scsi/53c7,8xx.c | host->host_no, ccf); |
host | 569 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %dMHz SCSI clock\n", host->host_no, |
host | 609 | drivers/scsi/53c7,8xx.c | hostdata->init_save_regs (host); |
host | 611 | drivers/scsi/53c7,8xx.c | hostdata->init_fixup (host); |
host | 614 | drivers/scsi/53c7,8xx.c | the_template = host->hostt; |
host | 615 | drivers/scsi/53c7,8xx.c | first_host = host; |
host | 630 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
host | 637 | drivers/scsi/53c7,8xx.c | if ((hostdata->run_tests && hostdata->run_tests(host) == -1) || |
host | 640 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 974 | drivers/scsi/53c7,8xx.c | static void NCR53c8x0_init_fixup (struct Scsi_Host *host) { |
host | 977 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 981 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1013 | drivers/scsi/53c7,8xx.c | base = (long) host->io_port; |
host | 1018 | drivers/scsi/53c7,8xx.c | base = (long) host->base; |
host | 1023 | drivers/scsi/53c7,8xx.c | (int) host->host_no, (int) memory_to_ncr, (int) |
host | 1103 | drivers/scsi/53c7,8xx.c | host->host_no, A_dsa_fields_start, Ent_dsa_code_template_end - |
host | 1106 | drivers/scsi/53c7,8xx.c | printk("scsi%d : NCR code relocated to 0x%lx\n", host->host_no, |
host | 1125 | drivers/scsi/53c7,8xx.c | static int NCR53c8xx_run_tests (struct Scsi_Host *host) { |
host | 1128 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1131 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1133 | drivers/scsi/53c7,8xx.c | printk("scsi%d : testing\n", host->host_no); |
host | 1139 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : chip not idle, aborting tests\n", host->host_no); |
host | 1151 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1163 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 1", host->host_no); |
host | 1173 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : driver test 1 timed out%s\n",host->host_no , |
host | 1184 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 1 bad interrupt value (%ld)\n", host->host_no, |
host | 1193 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->test_dest); |
host | 1198 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned long) NCR53c7x0_read32(DSP_REG), |
host | 1200 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSPS = 0x%lx\n", host->host_no, |
host | 1210 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1240 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : chip not idle, aborting tests\n", host->host_no); |
host | 1263 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
host | 1264 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : status ", host->host_no); |
host | 1266 | drivers/scsi/53c7,8xx.c | printk ("\nscsi%d : message ", host->host_no); |
host | 1271 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
host | 1273 | drivers/scsi/53c7,8xx.c | printk("scsi%d : not idle\n", host->host_no); |
host | 1278 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 2 timed out\n", host->host_no); |
host | 1285 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
host | 1290 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : tests complete.\n", host->host_no); |
host | 1308 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = c->host; |
host | 1310 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1346 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = c->host; |
host | 1348 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1404 | drivers/scsi/53c7,8xx.c | static void intr_break (struct Scsi_Host *host, struct |
host | 1413 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1415 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1429 | drivers/scsi/53c7,8xx.c | host->host_no, dsp); |
host | 1459 | drivers/scsi/53c7,8xx.c | static int asynchronous (struct Scsi_Host *host, int target) { |
host | 1462 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1463 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1527 | drivers/scsi/53c7,8xx.c | static void synchronous (struct Scsi_Host *host, int target, char *msg) { |
host | 1529 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1541 | drivers/scsi/53c7,8xx.c | printk("scsi%d : optimal synchronous divisor of %d.%01d\n", host->host_no, |
host | 1547 | drivers/scsi/53c7,8xx.c | printk("scsi%d : selected synchronous divisor of %d.%01d\n", host->host_no, |
host | 1596 | drivers/scsi/53c7,8xx.c | static int NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct |
host | 1601 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1603 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1608 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSPS = 0x%lx\n", host->host_no, dsps); |
host | 1612 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : message", host->host_no); |
host | 1629 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1638 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, (cmd->flags & CMD_FLAG_SDTR) ? "accepting" : |
host | 1650 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, hostdata->msg_buf); |
host | 1658 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, hostdata->msg_buf); |
host | 1675 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, Hz / 1000000, Hz % 1000000, |
host | 1683 | drivers/scsi/53c7,8xx.c | host->host_no, c->target); |
host | 1695 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : unexpected phase\n", host->host_no); |
host | 1698 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : selected by target %d\n", host->host_no, |
host | 1705 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : unexpected reselect by target %d\n", host->host_no, |
host | 1724 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : CHECK CONDITION\n", host->host_no); |
host | 1727 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1736 | drivers/scsi/53c7,8xx.c | asynchronous (host, c->target); |
host | 1810 | drivers/scsi/53c7,8xx.c | printk("scsi%d : test%ld complete\n", host->host_no, |
host | 1816 | drivers/scsi/53c7,8xx.c | printk("scsi%d : new I/O 0x%lx scheduled\n", host->host_no, |
host | 1824 | drivers/scsi/53c7,8xx.c | printk("scsi%d : idle\n", host->host_no); |
host | 1838 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSA loaded with 0x%lx\n", host->host_no, |
host | 1847 | drivers/scsi/53c7,8xx.c | host->host_no, (int) NCR53c7x0_read8(SSID_REG_800), |
host | 1856 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned long) hostdata->issue_dsa_head); |
host | 1863 | drivers/scsi/53c7,8xx.c | host->host_no, dsps); |
host | 1868 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned) dsps); |
host | 1928 | drivers/scsi/53c7,8xx.c | static int debugger_fn_bc (struct Scsi_Host *host, struct debugger_token *token, |
host | 1959 | drivers/scsi/53c7,8xx.c | static int debugger_fn_bl (struct Scsi_Host *host, struct debugger_token *token, |
host | 1962 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1974 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1975 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
host | 1978 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) host->breakpoints; |
host | 1990 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
host | 1996 | drivers/scsi/53c7,8xx.c | static int debugger_fn_bs (struct Scsi_Host *host, struct debugger_token *token, |
host | 1999 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2007 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
host | 2008 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
host | 2015 | drivers/scsi/53c7,8xx.c | host->host_no, sizeof(struct NCR53c7x0_break)); |
host | 2048 | drivers/scsi/53c7,8xx.c | for (dev = MINOR(inode->rdev), host = first_host; |
host | 2049 | drivers/scsi/53c7,8xx.c | (host->hostt == the_template); --dev, host = host->next) |
host | 2050 | drivers/scsi/53c7,8xx.c | if (!dev) return host; |
host | 2057 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; /* This SCSI host */ |
host | 2064 | drivers/scsi/53c7,8xx.c | if (!(host = inode_to_host(inode))) |
host | 2067 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 2113 | drivers/scsi/53c7,8xx.c | static debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
host | 2116 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2149 | drivers/scsi/53c7,8xx.c | static void NCR53c8x0_soft_reset (struct Scsi_Host *host) { |
host | 2152 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2153 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2179 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE|SCID_800_SRE); |
host | 2242 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 2244 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2255 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(cmd->host); |
host | 2279 | drivers/scsi/53c7,8xx.c | printk("scsi%d : command is ", host->host_no); |
host | 2283 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : %d scatter/gather segments\n", host->host_no, |
host | 2350 | drivers/scsi/53c7,8xx.c | printk("scsi%d : size = %d\n", host->host_no, size); |
host | 2366 | drivers/scsi/53c7,8xx.c | host->host_no, size); |
host | 2379 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid); |
host | 2504 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain, "dynamic ", 1); |
host | 2505 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain + 2, "dynamic ", 1); |
host | 2518 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout, "dynamic ", 1); |
host | 2519 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout + 2, "dynamic ", 1); |
host | 2536 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain, "dynamic jump ", 1); |
host | 2555 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout, "dynamic jump ", 1); |
host | 2585 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 2587 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2590 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2596 | drivers/scsi/53c7,8xx.c | printk("scsi%d : disabled target %d lun %d\n", host->host_no, |
host | 2605 | drivers/scsi/53c7,8xx.c | printk("scsi%d : maximum commands exceeded\n", host->host_no); |
host | 2618 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2677 | drivers/scsi/53c7,8xx.c | printk("scsi%d : new dsa is 0x%x\n", host->host_no, (unsigned) dsa); |
host | 2706 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : no issue queue\n", host->host_no); |
host | 2720 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : existing issue queue\n", host->host_no); |
host | 2743 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2769 | drivers/scsi/53c7,8xx.c | static void intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 2772 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 2776 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2790 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : SIST0 0x%0x, SIST1 0x%0x\n", host->host_no, |
host | 2798 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : Selection Timeout\n", host->host_no); |
host | 2801 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 2803 | drivers/scsi/53c7,8xx.c | printk("scsi%d : dsp = 0x%x\n", host->host_no, |
host | 2806 | drivers/scsi/53c7,8xx.c | printk("scsi%d : no command\n", host->host_no); |
host | 2834 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 2848 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 2851 | drivers/scsi/53c7,8xx.c | printk("scsi%d : parity error\n", host->host_no); |
host | 2863 | drivers/scsi/53c7,8xx.c | printk("scsi%d : gross error\n", host->host_no); |
host | 2874 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : SSTAT0_MA\n", host->host_no); |
host | 2875 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (host, cmd); |
host | 2892 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DMA FIFO not empty\n", host->host_no); |
host | 2925 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; /* Host we are looking at */ |
host | 2948 | drivers/scsi/53c7,8xx.c | for (host = first_host; host; host = hostdata->next ? |
host | 2950 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2952 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 2986 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : INTFLY\n", host->host_no); |
host | 3005 | drivers/scsi/53c7,8xx.c | printk("scsi%d : very weird.\n", host->host_no); |
host | 3011 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3016 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->result); |
host | 3054 | drivers/scsi/53c7,8xx.c | host->host_no, tmp->pid, tmp->target, tmp->lun, tmp->result); |
host | 3070 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3101 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->pid, (int) cmd->cmd->target, |
host | 3105 | drivers/scsi/53c7,8xx.c | printk("scsi%d : no active command\n", host->host_no); |
host | 3111 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : ISTAT_SIP\n", host->host_no); |
host | 3112 | drivers/scsi/53c7,8xx.c | intr_scsi (host, cmd); |
host | 3117 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : ISTAT_DIP\n", host->host_no); |
host | 3118 | drivers/scsi/53c7,8xx.c | intr_dma (host, cmd); |
host | 3129 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DMA FIFO not empty\n", host->host_no); |
host | 3152 | drivers/scsi/53c7,8xx.c | printk("scsi%d : too many interrupts, halting", host->host_no); |
host | 3165 | drivers/scsi/53c7,8xx.c | printk("scsi%d : new dsp is 0x%lx\n", host->host_no, |
host | 3189 | drivers/scsi/53c7,8xx.c | static int abort_connected (struct Scsi_Host *host) { |
host | 3191 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3197 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3221 | drivers/scsi/53c7,8xx.c | static void intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd |
host | 3227 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3229 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3233 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3234 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 3309 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : new phase = STATIN\n", host->host_no); |
host | 3323 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : new phase = MSGIN\n", host->host_no); |
host | 3335 | drivers/scsi/53c7,8xx.c | host->host_no, dcmd); |
host | 3336 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3337 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp_next, "", 1); |
host | 3338 | drivers/scsi/53c7,8xx.c | abort_connected (host); |
host | 3353 | drivers/scsi/53c7,8xx.c | host->host_no, phase); |
host | 3354 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 3361 | drivers/scsi/53c7,8xx.c | host->host_no, phase, (unsigned) dsp); |
host | 3362 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3363 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp_next, "", 1); |
host | 3364 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 3379 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 3382 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3392 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3402 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSTAT=0x%x\n", host->host_no, (int) dstat); |
host | 3430 | drivers/scsi/53c7,8xx.c | " ", host->host_no); |
host | 3431 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "s ", 1); |
host | 3444 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "s ", 0); |
host | 3453 | drivers/scsi/53c7,8xx.c | " ", host->host_no); |
host | 3454 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3487 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3500 | drivers/scsi/53c7,8xx.c | printk("scsi%d : illegal instruction ", host->host_no); |
host | 3501 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3505 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned long) dsp, dbc_dcmd, |
host | 3521 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned long) dsp, NCR53c7x0_read32(DBC_REG), |
host | 3524 | drivers/scsi/53c7,8xx.c | print_dsa (host, dsa); |
host | 3525 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSP->\n", host->host_no); |
host | 3526 | drivers/scsi/53c7,8xx.c | print_insn(host, dsp, "", 1); |
host | 3527 | drivers/scsi/53c7,8xx.c | print_insn(host, next_dsp, "", 1); |
host | 3547 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSTAT_SIR\n", host->host_no); |
host | 3548 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
host | 3553 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 3556 | drivers/scsi/53c7,8xx.c | printk("scsi%d : failure at ", host->host_no); |
host | 3557 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3561 | drivers/scsi/53c7,8xx.c | intr_break (host, cmd); |
host | 3564 | drivers/scsi/53c7,8xx.c | printk("scsi%d : failure at ", host->host_no); |
host | 3565 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3593 | drivers/scsi/53c7,8xx.c | static int print_insn (struct Scsi_Host *host, unsigned long *insn, |
host | 3617 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
host | 3636 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3638 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3689 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
host | 3713 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : did this command ever run?\n", host->host_no); |
host | 3716 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3736 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd ? cmd->host : NULL; |
host | 3737 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = host ? |
host | 3738 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata : NULL; |
host | 3739 | drivers/scsi/53c7,8xx.c | if (host) NCR53c7x0_local_setup(host); |
host | 3743 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
host | 3752 | drivers/scsi/53c7,8xx.c | static void print_dsa (struct Scsi_Host *host, unsigned long *dsa) { |
host | 3754 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3762 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned) dsa, hostdata->dsa_msgout, |
host | 1061 | drivers/scsi/53c7,8xx.h | void (* init_fixup)(struct Scsi_Host *host); |
host | 1062 | drivers/scsi/53c7,8xx.h | void (* init_save_regs)(struct Scsi_Host *host); |
host | 1064 | drivers/scsi/53c7,8xx.h | void (* soft_reset)(struct Scsi_Host *host); |
host | 1065 | drivers/scsi/53c7,8xx.h | int (* run_tests)(struct Scsi_Host *host); |
host | 1073 | drivers/scsi/53c7,8xx.h | int (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
host | 1257 | drivers/scsi/53c7,8xx.h | #define NCR53c7x0_local_setup(host) \ |
host | 1258 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_memory = (void *) (host)->base; \ |
host | 1259 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_io = (unsigned short) (host)->io_port; \ |
host | 1261 | drivers/scsi/53c7,8xx.h | host->hostdata)-> options & OPTION_MEMORY_MAPPED |
host | 1302 | drivers/scsi/53c7,8xx.h | host->host_no, #symbol, i, A_##symbol##_used[i] - \ |
host | 849 | drivers/scsi/NCR5380.c | cmd->host->hostdata; |
host | 2571 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
host | 2758 | drivers/scsi/NCR5380.c | NCR5380_setup(cmd->host); |
host | 2760 | drivers/scsi/NCR5380.c | NCR5380_print_status (cmd->host); |
host | 101 | drivers/scsi/aha1542.c | #define HOSTDATA(host) ((struct aha1542_hostdata *) &host->hostdata) |
host | 509 | drivers/scsi/aha1542.c | mb = HOSTDATA(SCpnt->host)->mb; |
host | 510 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
host | 549 | drivers/scsi/aha1542.c | mbo = HOSTDATA(SCpnt->host)->aha1542_last_mbo_used + 1; |
host | 553 | drivers/scsi/aha1542.c | if(mb[mbo].status == 0 && HOSTDATA(SCpnt->host)->SCint[mbo] == NULL) |
host | 557 | drivers/scsi/aha1542.c | } while (mbo != HOSTDATA(SCpnt->host)->aha1542_last_mbo_used); |
host | 559 | drivers/scsi/aha1542.c | if(mb[mbo].status || HOSTDATA(SCpnt->host)->SCint[mbo]) |
host | 562 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[mbo] = SCpnt; /* This will effectively prevent someone else from |
host | 565 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->aha1542_last_mbo_used = mbo; |
host | 647 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); /* start scsi command */ |
host | 1090 | drivers/scsi/aha1542.c | inb(STATUS(SCpnt->host->io_port)), |
host | 1091 | drivers/scsi/aha1542.c | inb(INTRFLAGS(SCpnt->host->io_port))); |
host | 1094 | drivers/scsi/aha1542.c | mb = HOSTDATA(SCpnt->host)->mb; |
host | 1095 | drivers/scsi/aha1542.c | mbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1; |
host | 1102 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used); |
host | 1107 | drivers/scsi/aha1542.c | SCpnt->host->irq); |
host | 1108 | drivers/scsi/aha1542.c | intval[0] = SCpnt->host->irq; |
host | 1117 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i]) |
host | 1119 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) { |
host | 1121 | drivers/scsi/aha1542.c | if (HOSTDATA(SCpnt->host)->mb[i].status) { |
host | 1123 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); |
host | 1135 | drivers/scsi/aha1542.c | if (SCpnt == HOSTDATA(SCpnt->host)->SCint[mbo]){ |
host | 1137 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); /* start scsi command */ |
host | 1159 | drivers/scsi/aha1542.c | outb(SCRST, CONTROL(SCpnt->host->io_port)); |
host | 1164 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) |
host | 1166 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
host | 1168 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); |
host | 1181 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] && |
host | 1182 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target) |
host | 1185 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
host | 1191 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
host | 1192 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
host | 1214 | drivers/scsi/aha1542.c | translation_algorithm = HOSTDATA(disk->device->host)->bios_translation; |
host | 863 | drivers/scsi/aha274x.c | struct Scsi_Host *host; |
host | 935 | drivers/scsi/aha274x.c | host = scsi_register(template, sizeof(struct aha274x_host)); |
host | 936 | drivers/scsi/aha274x.c | host->this_id = scsi_id; |
host | 937 | drivers/scsi/aha274x.c | host->irq = irq; |
host | 939 | drivers/scsi/aha274x.c | aha274x_boards[irq] = host; |
host | 941 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)host->hostdata; |
host | 1163 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
host | 1270 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
host | 1393 | drivers/scsi/aha274x.c | p = (struct aha274x_host *)cmd->host->hostdata; |
host | 172 | drivers/scsi/buslogic.c | #define HOSTDATA(host) ((struct hostdata *)&(host)->hostdata) |
host | 175 | drivers/scsi/buslogic.c | static struct Scsi_Host *host[7] = { NULL, }; |
host | 432 | drivers/scsi/buslogic.c | shpnt = host[irqno - 9]; |
host | 598 | drivers/scsi/buslogic.c | struct Scsi_Host *shpnt = scpnt->host; |
host | 1266 | drivers/scsi/buslogic.c | host[irq - 9] = shpnt; |
host | 1357 | drivers/scsi/buslogic.c | buslogic_out(shpnt->host->io_port, buscmd, sizeof buscmd); |
host | 1375 | drivers/scsi/buslogic.c | inb(STATUS(scpnt->host->io_port)), |
host | 1376 | drivers/scsi/buslogic.c | inb(INTERRUPT(scpnt->host->io_port))); |
host | 1379 | drivers/scsi/buslogic.c | mb = HOSTDATA(scpnt->host)->mb; |
host | 1380 | drivers/scsi/buslogic.c | mbi = HOSTDATA(scpnt->host)->last_mbi_used + 1; |
host | 1390 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(scpnt->host)->last_mbi_used); |
host | 1396 | drivers/scsi/buslogic.c | scpnt->host->irq); |
host | 1400 | drivers/scsi/buslogic.c | intval[0] = scpnt->host->irq; |
host | 1409 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i]) { |
host | 1410 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
host | 1413 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->mb[i].status != MBX_NOT_IN_USE) { |
host | 1415 | drivers/scsi/buslogic.c | buslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd); |
host | 1432 | drivers/scsi/buslogic.c | if (scpnt == HOSTDATA(scpnt->host)->sc[mbo]) { |
host | 1434 | drivers/scsi/buslogic.c | buslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd); |
host | 1458 | drivers/scsi/buslogic.c | outb(RSBUS, CONTROL(scpnt->host->io_port)); |
host | 1463 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
host | 1464 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->ccbs[i].op = CCB_OP_BUS_RESET; |
host | 1468 | drivers/scsi/buslogic.c | buslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd); |
host | 1482 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] |
host | 1483 | drivers/scsi/buslogic.c | && HOSTDATA(scpnt->host)->sc[i]->target == scpnt->target) { |
host | 1484 | drivers/scsi/buslogic.c | Scsi_Cmnd *sctmp = HOSTDATA(scpnt->host)->sc[i]; |
host | 1493 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->sc[i] = NULL; |
host | 1494 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->mb[i].status = MBX_NOT_IN_USE; |
host | 1518 | drivers/scsi/buslogic.c | if (HOSTDATA(disk->device->host)->bios_translation == BIOS_TRANSLATION_BIG |
host | 552 | drivers/scsi/constants.c | cmd->host->host_no, |
host | 490 | drivers/scsi/eata.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
host | 590 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 650 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 1391 | drivers/scsi/fdomain.c | print_banner(SCpnt->host); |
host | 463 | drivers/scsi/qlogic.c | int qlogic_detect(Scsi_Host_Template * host) |
host | 494 | drivers/scsi/qlogic.c | qinitid = host->this_id; |
host | 528 | drivers/scsi/qlogic.c | host->can_queue = 1; |
host | 533 | drivers/scsi/qlogic.c | hreg = scsi_register( host , 0 ); /* no host data */ |
host | 540 | drivers/scsi/qlogic.c | host->name = qinfo; |
host | 583 | drivers/scsi/qlogic.c | const char *qlogic_info(struct Scsi_Host * host) |
host | 219 | drivers/scsi/scsi.c | printk ("scan_scsis_done(%d, %06x)\n", SCpnt->host, SCpnt->result); |
host | 275 | drivers/scsi/scsi.c | SDpnt->host = shpnt; |
host | 292 | drivers/scsi/scsi.c | SCmd.host = shpnt; |
host | 569 | drivers/scsi/scsi.c | SCpnt->host->host_no); |
host | 577 | drivers/scsi/scsi.c | printk("Unable to reset scsi host %d - ",SCpnt->host->host_no); |
host | 606 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 616 | drivers/scsi/scsi.c | if (device->host->can_queue && |
host | 617 | drivers/scsi/scsi.c | ((device->host->block && host_active && device->host != host_active) || |
host | 618 | drivers/scsi/scsi.c | (device->host->block && host_next && device->host != host_next) || |
host | 619 | drivers/scsi/scsi.c | device->host->host_busy >= device->host->can_queue)) { |
host | 621 | drivers/scsi/scsi.c | if (device->host->block && !host_next && host_active |
host | 622 | drivers/scsi/scsi.c | && device->host != host_active) |
host | 623 | drivers/scsi/scsi.c | host_next = device->host; |
host | 630 | drivers/scsi/scsi.c | tablesize = device->host->sg_tablesize; |
host | 687 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 699 | drivers/scsi/scsi.c | host = device->host; |
host | 701 | drivers/scsi/scsi.c | if (intr_count && host->can_queue && |
host | 702 | drivers/scsi/scsi.c | ((host->block && host_active && host != host_active) || |
host | 703 | drivers/scsi/scsi.c | (host->block && host_next && host != host_next) || |
host | 704 | drivers/scsi/scsi.c | host->host_busy >= host->can_queue)) { |
host | 708 | drivers/scsi/scsi.c | if (host->block && !host_next && host_active && host != host_active) |
host | 709 | drivers/scsi/scsi.c | host_next = host; |
host | 715 | drivers/scsi/scsi.c | SCpnt = host->host_queue; |
host | 744 | drivers/scsi/scsi.c | tablesize = device->host->sg_tablesize; |
host | 798 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 806 | drivers/scsi/scsi.c | host = SCpnt->host; |
host | 812 | drivers/scsi/scsi.c | temp = host->last_reset; |
host | 823 | drivers/scsi/scsi.c | "bufflen = %d, done = %08x)\n", SCpnt->host->host_no, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done); |
host | 826 | drivers/scsi/scsi.c | if (host->can_queue) |
host | 830 | drivers/scsi/scsi.c | host->hostt->queuecommand); |
host | 840 | drivers/scsi/scsi.c | if(!intr_count && SCpnt->host->irq) |
host | 841 | drivers/scsi/scsi.c | disable_irq(SCpnt->host->irq); |
host | 843 | drivers/scsi/scsi.c | host->hostt->queuecommand (SCpnt, scsi_done); |
host | 845 | drivers/scsi/scsi.c | if(!intr_count && SCpnt->host->irq) |
host | 846 | drivers/scsi/scsi.c | enable_irq(SCpnt->host->irq); |
host | 852 | drivers/scsi/scsi.c | printk("command() : routine at %08x\n", host->hostt->command); |
host | 854 | drivers/scsi/scsi.c | temp=host->hostt->command (SCpnt); |
host | 859 | drivers/scsi/scsi.c | printk("done(host = %d, result = %04x) : routine at %08x\n", host->host_no, temp, done); |
host | 903 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 911 | drivers/scsi/scsi.c | "command : " , host->host_no, target, buffer, bufflen, done, timeout, retries); |
host | 918 | drivers/scsi/scsi.c | if (!host) |
host | 938 | drivers/scsi/scsi.c | if (host->can_queue && |
host | 939 | drivers/scsi/scsi.c | ((host->block && host_active && host != host_active) || |
host | 940 | drivers/scsi/scsi.c | (host->block && host_next && host != host_next) || |
host | 941 | drivers/scsi/scsi.c | host->host_busy >= host->can_queue)) { |
host | 946 | drivers/scsi/scsi.c | if (host->block && !host_next && host_active |
host | 947 | drivers/scsi/scsi.c | && host != host_active) |
host | 948 | drivers/scsi/scsi.c | host_next = host; |
host | 951 | drivers/scsi/scsi.c | SCSI_SLEEP(&host->host_wait, |
host | 952 | drivers/scsi/scsi.c | ((host->block && host_active && host != host_active) || |
host | 953 | drivers/scsi/scsi.c | (host->block && host_next && host != host_next) || |
host | 954 | drivers/scsi/scsi.c | host->host_busy >= host->can_queue)); |
host | 958 | drivers/scsi/scsi.c | host->host_busy++; |
host | 960 | drivers/scsi/scsi.c | if (host->block) { |
host | 964 | drivers/scsi/scsi.c | host_active = host; |
host | 968 | drivers/scsi/scsi.c | host_next = host->block; |
host | 987 | drivers/scsi/scsi.c | SCpnt->host = host; |
host | 1032 | drivers/scsi/scsi.c | printk("scsi: reset(%d)\n", SCpnt->host->host_no); |
host | 1067 | drivers/scsi/scsi.c | printk("scsi%d : ", SCpnt->host->host_no); |
host | 1133 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1155 | drivers/scsi/scsi.c | printk("In scsi_done(host = %d, result = %06x)\n", host->host_no, result); |
host | 1176 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->target, SCpnt->lun); |
host | 1282 | drivers/scsi/scsi.c | SCpnt->host->host_no); |
host | 1397 | drivers/scsi/scsi.c | SCpnt->host->host_no); |
host | 1412 | drivers/scsi/scsi.c | if (host->block) scsi_maybe_deadlocked = 1; |
host | 1437 | drivers/scsi/scsi.c | host->host_busy--; /* Indicate that we are free */ |
host | 1439 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
host | 1447 | drivers/scsi/scsi.c | for (block = host->block; block != host; block = block->block) |
host | 1459 | drivers/scsi/scsi.c | wake_up(&host->host_wait); |
host | 1491 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1525 | drivers/scsi/scsi.c | if (!host->host_busy) { |
host | 1531 | drivers/scsi/scsi.c | SCpnt->pid, SCpnt->host->host_no, (int) SCpnt->target, (int) |
host | 1537 | drivers/scsi/scsi.c | switch(host->hostt->abort(SCpnt)) { |
host | 1588 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1591 | drivers/scsi/scsi.c | printk("Danger Will Robinson! - SCSI bus for host %d is being reset.\n",host->host_no); |
host | 1605 | drivers/scsi/scsi.c | if (host->host_busy) |
host | 1608 | drivers/scsi/scsi.c | SCpnt1 = host->host_queue; |
host | 1621 | drivers/scsi/scsi.c | temp = host->hostt->reset(SCpnt); |
host | 1625 | drivers/scsi/scsi.c | host->host_busy++; |
host | 1627 | drivers/scsi/scsi.c | if (host->block) { |
host | 1628 | drivers/scsi/scsi.c | host_active = host; |
host | 1633 | drivers/scsi/scsi.c | temp = host->hostt->reset(SCpnt); |
host | 1634 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1635 | drivers/scsi/scsi.c | host->host_busy--; |
host | 1639 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
host | 1691 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 1704 | drivers/scsi/scsi.c | for(host = scsi_hostlist; host; host = host->next) { |
host | 1705 | drivers/scsi/scsi.c | for(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 1732 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 1758 | drivers/scsi/scsi.c | for(host = scsi_hostlist; host; host = host->next) |
host | 1759 | drivers/scsi/scsi.c | for(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 1897 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 1930 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->cmd_per_lun;j++){ |
host | 1932 | drivers/scsi/scsi.c | SCpnt->host = SDpnt->host; |
host | 1944 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 1945 | drivers/scsi/scsi.c | if(host->host_queue) |
host | 1946 | drivers/scsi/scsi.c | host->host_queue->prev = SCpnt; |
host | 1947 | drivers/scsi/scsi.c | SCpnt->next = host->host_queue; |
host | 1949 | drivers/scsi/scsi.c | host->host_queue = SCpnt; |
host | 1958 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 1961 | drivers/scsi/scsi.c | dma_sectors += ((host->sg_tablesize * |
host | 1963 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 1965 | drivers/scsi/scsi.c | if(host->unchecked_isa_dma && |
host | 1968 | drivers/scsi/scsi.c | dma_sectors += (PAGE_SIZE >> 9) * host->sg_tablesize * |
host | 1969 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2051 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 2098 | drivers/scsi/scsi.c | if(SDpnt->host->hostt == tpnt) |
host | 2103 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->cmd_per_lun;j++){ |
host | 2105 | drivers/scsi/scsi.c | SCpnt->host = SDpnt->host; |
host | 2117 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2118 | drivers/scsi/scsi.c | SCpnt->next = host->host_queue; |
host | 2120 | drivers/scsi/scsi.c | host->host_queue = SCpnt; |
host | 2121 | drivers/scsi/scsi.c | if(host->host_queue) |
host | 2122 | drivers/scsi/scsi.c | host->host_queue->prev = SCpnt; |
host | 2137 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2140 | drivers/scsi/scsi.c | new_dma_sectors += ((host->sg_tablesize * |
host | 2142 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2144 | drivers/scsi/scsi.c | if(host->unchecked_isa_dma && |
host | 2147 | drivers/scsi/scsi.c | new_dma_sectors += (PAGE_SIZE >> 9) * host->sg_tablesize * |
host | 2148 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2209 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt && *sdpnt->host->hostt->usage_count) return; |
host | 2230 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt) |
host | 2244 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt) |
host | 2245 | drivers/scsi/scsi.c | while (sdpnt->host->host_queue) { |
host | 2246 | drivers/scsi/scsi.c | SCpnt = sdpnt->host->host_queue->next; |
host | 2247 | drivers/scsi/scsi.c | scsi_init_free((char *) sdpnt->host->host_queue, sizeof(Scsi_Cmnd)); |
host | 2248 | drivers/scsi/scsi.c | sdpnt->host->host_queue = SCpnt; |
host | 2258 | drivers/scsi/scsi.c | if (sdpnt->host->hostt == tpnt) { |
host | 2362 | drivers/scsi/scsi.c | i++, SCpnt->host->host_no, |
host | 284 | drivers/scsi/scsi.h | struct Scsi_Host * host; |
host | 430 | drivers/scsi/scsi.h | struct Scsi_Host * host; |
host | 28 | drivers/scsi/scsi_ioctl.c | static int ioctl_probe(struct Scsi_Host * host, void *buffer) |
host | 34 | drivers/scsi/scsi_ioctl.c | if ((temp = host->hostt->present) && buffer) { |
host | 36 | drivers/scsi/scsi_ioctl.c | if(host->hostt->info) |
host | 37 | drivers/scsi/scsi_ioctl.c | string = host->hostt->info(host); |
host | 39 | drivers/scsi/scsi_ioctl.c | string = host->hostt->name; |
host | 128 | drivers/scsi/scsi_ioctl.c | dev->host->host_no, |
host | 252 | drivers/scsi/scsi_ioctl.c | (dev->host->host_no << 16), (unsigned long *) arg); |
host | 267 | drivers/scsi/scsi_ioctl.c | return ioctl_probe(dev->host, arg); |
host | 44 | drivers/scsi/sd.c | #define CLUSTERABLE_DEVICE(SC) (SC->host->hostt->use_clustering && \ |
host | 165 | drivers/scsi/sd.c | printk("sd%c : rw_intr(%d, %d)\n", 'a' + MINOR(SCpnt->request.dev), SCpnt->host->host_no, result); |
host | 314 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
host | 498 | drivers/scsi/sd.c | ISA_DMA_THRESHOLD && SCpnt->host->unchecked_isa_dma) { |
host | 520 | drivers/scsi/sd.c | } else if (SCpnt->host->sg_tablesize == 0 || |
host | 531 | drivers/scsi/sd.c | if (SCpnt->host->sg_tablesize != 0 && |
host | 556 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma && |
host | 558 | drivers/scsi/sd.c | if (count < SCpnt->host->sg_tablesize) count++; |
host | 566 | drivers/scsi/sd.c | if(SCpnt->host->unchecked_isa_dma && |
host | 575 | drivers/scsi/sd.c | if(SCpnt->host->sg_tablesize < max_sg) max_sg = SCpnt->host->sg_tablesize; |
host | 597 | drivers/scsi/sd.c | ISA_DMA_THRESHOLD && (SCpnt->host->unchecked_isa_dma) && |
host | 641 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma) && |
host | 667 | drivers/scsi/sd.c | if(count < SCpnt->use_sg || SCpnt->use_sg > SCpnt->host->sg_tablesize){ |
host | 696 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma)) { |
host | 1092 | drivers/scsi/sd.c | if(rscsi_disks[0].device->host->sg_tablesize) |
host | 1110 | drivers/scsi/sd.c | SDp->host->host_no , SDp->id, SDp->lun); |
host | 21 | drivers/scsi/sd_ioctl.c | struct Scsi_Host * host; |
host | 31 | drivers/scsi/sd_ioctl.c | host = rscsi_disks[MINOR(dev) >> 4].device->host; |
host | 35 | drivers/scsi/sd_ioctl.c | if(host->hostt->bios_param != NULL) |
host | 36 | drivers/scsi/sd_ioctl.c | host->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4], |
host | 262 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
host | 572 | drivers/scsi/sr.c | if (SCpnt->host->sg_tablesize > 0 && |
host | 586 | drivers/scsi/sr.c | while(bh && count < SCpnt->host->sg_tablesize) { |
host | 595 | drivers/scsi/sr.c | if (count < SCpnt->host->sg_tablesize) { |
host | 640 | drivers/scsi/sr.c | ISA_DMA_THRESHOLD & (SCpnt->host->unchecked_isa_dma)) { |
host | 704 | drivers/scsi/sr.c | (SCpnt->host->unchecked_isa_dma)) |
host | 788 | drivers/scsi/sr.c | SDp->host->host_no , SDp->id, SDp->lun); |
host | 949 | drivers/scsi/sr.c | if(scsi_CDs[0].device->host->sg_tablesize) |
host | 73 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->host->host_no, |
host | 1852 | drivers/scsi/st.c | SDp->host->host_no , SDp->id, SDp->lun); |
host | 448 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
host | 539 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 599 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 342 | drivers/scsi/wd7000.c | Adapter *host; /* host adapter */ |
host | 529 | drivers/scsi/wd7000.c | static inline void wd7000_enable_intr(Adapter *host) |
host | 531 | drivers/scsi/wd7000.c | host->control |= INT_EN; |
host | 532 | drivers/scsi/wd7000.c | outb(host->control, host->iobase+ASC_CONTROL); |
host | 536 | drivers/scsi/wd7000.c | static inline void wd7000_enable_dma(Adapter *host) |
host | 538 | drivers/scsi/wd7000.c | host->control |= DMA_EN; |
host | 539 | drivers/scsi/wd7000.c | outb(host->control,host->iobase+ASC_CONTROL); |
host | 540 | drivers/scsi/wd7000.c | set_dma_mode(host->dma, DMA_MODE_CASCADE); |
host | 541 | drivers/scsi/wd7000.c | enable_dma(host->dma); |
host | 567 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
host | 569 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT,ASC_STATMASK,CMD_RDY,0); |
host | 572 | drivers/scsi/wd7000.c | outb(*cmd, host->iobase+ASC_COMMAND); |
host | 573 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0); |
host | 574 | drivers/scsi/wd7000.c | } while (inb(host->iobase+ASC_STAT) & CMD_REJ); |
host | 680 | drivers/scsi/wd7000.c | static int mail_out( Adapter *host, Scb *scbptr ) |
host | 688 | drivers/scsi/wd7000.c | Mailbox *ogmbs = host->mb.ogmb; |
host | 689 | drivers/scsi/wd7000.c | int *next_ogmb = &(host->next_ogmb); |
host | 729 | drivers/scsi/wd7000.c | wd7000_enable_intr(host); |
host | 732 | drivers/scsi/wd7000.c | command_out( host, &start_ogmb, 1 ); |
host | 798 | drivers/scsi/wd7000.c | #define wd7000_intr_ack(host) outb(0,host->iobase+ASC_INTR_ACK) |
host | 814 | drivers/scsi/wd7000.c | Adapter *host = irq2host[irq]; /* This MUST be set!!! */ |
host | 815 | drivers/scsi/wd7000.c | Mailbox *icmbs = host->mb.icmb; |
host | 818 | drivers/scsi/wd7000.c | printk("wd7000_intr_handle: irq = %d, host = %06x\n", irq, host); |
host | 821 | drivers/scsi/wd7000.c | flag = inb(host->iobase+ASC_INTR_STAT); |
host | 826 | drivers/scsi/wd7000.c | if (!(inb(host->iobase+ASC_STAT) & INT_IM)) { |
host | 838 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 853 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 864 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 889 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 901 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |
host | 914 | drivers/scsi/wd7000.c | scb->host = host; |
host | 920 | drivers/scsi/wd7000.c | if (SCpnt->host->sg_tablesize == SG_NONE) { |
host | 941 | drivers/scsi/wd7000.c | while (!mail_out(host, scb)) /* keep trying */; |
host | 957 | drivers/scsi/wd7000.c | int wd7000_diagnostics( Adapter *host, int code ) |
host | 972 | drivers/scsi/wd7000.c | mail_out(host, (struct scb *) &icb); |
host | 990 | drivers/scsi/wd7000.c | int wd7000_init( Adapter *host ) |
host | 1001 | drivers/scsi/wd7000.c | outb(ASC_RES, host->iobase+ASC_CONTROL); |
host | 1003 | drivers/scsi/wd7000.c | outb(0,host->iobase+ASC_CONTROL); |
host | 1004 | drivers/scsi/wd7000.c | host->control = 0; /* this must always shadow ASC_CONTROL */ |
host | 1005 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0); |
host | 1007 | drivers/scsi/wd7000.c | if ((diag = inb(host->iobase+ASC_INTR_STAT)) != 1) { |
host | 1036 | drivers/scsi/wd7000.c | memset(&(host->mb), 0, sizeof(host->mb)); |
host | 1039 | drivers/scsi/wd7000.c | any2scsi((unchar *) &(init_cmd.mailboxes), (int) &(host->mb)); |
host | 1040 | drivers/scsi/wd7000.c | if (!command_out(host, (unchar *) &init_cmd, sizeof(init_cmd))) { |
host | 1044 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, ASC_INIT, 0); |
host | 1046 | drivers/scsi/wd7000.c | if (request_irq(host->irq, wd7000_intr_handle, SA_INTERRUPT, "wd7000")) { |
host | 1047 | drivers/scsi/wd7000.c | printk("wd7000_init: can't get IRQ %d.\n", host->irq); |
host | 1050 | drivers/scsi/wd7000.c | if (request_dma(host->dma,"wd7000")) { |
host | 1051 | drivers/scsi/wd7000.c | printk("wd7000_init: can't get DMA channel %d.\n", host->dma); |
host | 1052 | drivers/scsi/wd7000.c | free_irq(host->irq); |
host | 1055 | drivers/scsi/wd7000.c | wd7000_enable_dma(host); |
host | 1056 | drivers/scsi/wd7000.c | wd7000_enable_intr(host); |
host | 1058 | drivers/scsi/wd7000.c | if (!wd7000_diagnostics(host,ICB_DIAG_FULL)) { |
host | 1059 | drivers/scsi/wd7000.c | free_dma(host->dma); |
host | 1060 | drivers/scsi/wd7000.c | free_irq(host->irq); |
host | 1072 | drivers/scsi/wd7000.c | void wd7000_revision(Adapter *host) |
host | 1083 | drivers/scsi/wd7000.c | mail_out(host, (struct scb *) &icb); |
host | 1085 | drivers/scsi/wd7000.c | host->rev1 = icb.primary; |
host | 1086 | drivers/scsi/wd7000.c | host->rev2 = icb.secondary; |
host | 1105 | drivers/scsi/wd7000.c | Adapter *host = NULL; |
host | 1127 | drivers/scsi/wd7000.c | printk("IO %xh already in use.\n", host->iobase); |
host | 1138 | drivers/scsi/wd7000.c | host = (Adapter *) sh->hostdata; |
host | 1141 | drivers/scsi/wd7000.c | (int)host); |
host | 1143 | drivers/scsi/wd7000.c | memset( host, 0, sizeof(Adapter) ); |
host | 1144 | drivers/scsi/wd7000.c | host->sh = sh; |
host | 1145 | drivers/scsi/wd7000.c | host->irq = cfg->irq; |
host | 1146 | drivers/scsi/wd7000.c | host->iobase = cfg->iobase; |
host | 1147 | drivers/scsi/wd7000.c | host->dma = cfg->dma; |
host | 1148 | drivers/scsi/wd7000.c | irq2host[host->irq] = host; |
host | 1150 | drivers/scsi/wd7000.c | if (!wd7000_init(host)) { /* Initialization failed */ |
host | 1158 | drivers/scsi/wd7000.c | wd7000_revision(host); /* important for scatter/gather */ |
host | 1161 | drivers/scsi/wd7000.c | host->rev1, host->rev2); |
host | 1163 | drivers/scsi/wd7000.c | host->iobase, host->irq, host->dma); |
host | 1165 | drivers/scsi/wd7000.c | snarf_region(host->iobase, 4); /* Register our ports */ |
host | 1169 | drivers/scsi/wd7000.c | if (host->rev1 < 6) sh->sg_tablesize = SG_NONE; |
host | 1188 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |
host | 1190 | drivers/scsi/wd7000.c | if (inb(host->iobase+ASC_STAT) & INT_IM) { |
host | 1192 | drivers/scsi/wd7000.c | wd7000_intr_handle(host->irq); |