tag | line | file | source code |
host | 183 | drivers/scsi/53c7,8xx.c | static int NCR53c8xx_run_tests (struct Scsi_Host *host); |
host | 187 | drivers/scsi/53c7,8xx.c | static int ncr_halt (struct Scsi_Host *host); |
host | 188 | drivers/scsi/53c7,8xx.c | static void intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd |
host | 190 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
host | 191 | drivers/scsi/53c7,8xx.c | static void print_dsa (struct Scsi_Host *host, u32 *dsa); |
host | 192 | drivers/scsi/53c7,8xx.c | static int print_insn (struct Scsi_Host *host, u32 *insn, |
host | 196 | drivers/scsi/53c7,8xx.c | static void NCR53c8x0_init_fixup (struct Scsi_Host *host); |
host | 197 | drivers/scsi/53c7,8xx.c | static int NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct |
host | 199 | drivers/scsi/53c7,8xx.c | static void NCR53c8x0_soft_reset (struct Scsi_Host *host); |
host | 402 | drivers/scsi/53c7,8xx.c | NCR53c7x0_init (struct Scsi_Host *host) { |
host | 407 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 409 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 427 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->chip); |
host | 428 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 444 | drivers/scsi/53c7,8xx.c | (search->irq != host->irq)); search=search->next); |
host | 447 | drivers/scsi/53c7,8xx.c | if (request_irq(host->irq, NCR53c7x0_intr, SA_INTERRUPT, "53c7,8xx")) { |
host | 449 | drivers/scsi/53c7,8xx.c | host->host_no, host->irq); |
host | 450 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 455 | drivers/scsi/53c7,8xx.c | host->host_no, search->host_no); |
host | 458 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %s mapped access\n", host->host_no, |
host | 469 | drivers/scsi/53c7,8xx.c | ncr_halt(host); |
host | 481 | drivers/scsi/53c7,8xx.c | for (host->this_id = 0; tmp != 1; tmp >>=1, ++host->this_id); |
host | 483 | drivers/scsi/53c7,8xx.c | host->this_id = NCR53c7x0_read8(SCID_REG) & 7; |
host | 484 | drivers/scsi/53c7,8xx.c | hostdata->this_id_mask = 1 << host->this_id; |
host | 487 | drivers/scsi/53c7,8xx.c | printk("scsi%d : using initiator ID %d\n", host->host_no, |
host | 488 | drivers/scsi/53c7,8xx.c | host->this_id); |
host | 515 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %s interrupts\n", host->host_no, |
host | 532 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst mode disabled\n", host->host_no); |
host | 541 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst length %d\n", host->host_no, i); |
host | 572 | drivers/scsi/53c7,8xx.c | host->host_no, ccf); |
host | 577 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %dMHz SCSI clock\n", host->host_no, |
host | 618 | drivers/scsi/53c7,8xx.c | hostdata->init_save_regs (host); |
host | 620 | drivers/scsi/53c7,8xx.c | hostdata->init_fixup (host); |
host | 623 | drivers/scsi/53c7,8xx.c | the_template = host->hostt; |
host | 624 | drivers/scsi/53c7,8xx.c | first_host = host; |
host | 639 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
host | 646 | drivers/scsi/53c7,8xx.c | if ((hostdata->run_tests && hostdata->run_tests(host) == -1) || |
host | 649 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 1043 | drivers/scsi/53c7,8xx.c | NCR53c8x0_init_fixup (struct Scsi_Host *host) { |
host | 1046 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1050 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1097 | drivers/scsi/53c7,8xx.c | base = (u32) host->io_port; |
host | 1102 | drivers/scsi/53c7,8xx.c | base = virt_to_phys(host->base); |
host | 1189 | drivers/scsi/53c7,8xx.c | host->host_no, A_dsa_fields_start, Ent_dsa_code_template_end - |
host | 1192 | drivers/scsi/53c7,8xx.c | printk("scsi%d : NCR code relocated to 0x%p\n", host->host_no, |
host | 1211 | drivers/scsi/53c7,8xx.c | static int NCR53c8xx_run_tests (struct Scsi_Host *host) { |
host | 1214 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1219 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1226 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : chip not idle, aborting tests\n", host->host_no); |
host | 1238 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1250 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 1", host->host_no); |
host | 1262 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : driver test 1 timed out%s\n",host->host_no , |
host | 1273 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 1 bad interrupt value (%d)\n", host->host_no, |
host | 1282 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->test_dest); |
host | 1287 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read32(DSP_REG), |
host | 1289 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSPS = 0x%x\n", host->host_no, |
host | 1299 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1329 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : chip not idle, aborting tests\n", host->host_no); |
host | 1355 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
host | 1356 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : status ", host->host_no); |
host | 1358 | drivers/scsi/53c7,8xx.c | printk ("\nscsi%d : message ", host->host_no); |
host | 1363 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
host | 1365 | drivers/scsi/53c7,8xx.c | printk("scsi%d : not idle\n", host->host_no); |
host | 1370 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 2 timed out\n", host->host_no); |
host | 1377 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
host | 1399 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = c->host; |
host | 1401 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1437 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = c->host; |
host | 1439 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1489 | drivers/scsi/53c7,8xx.c | static void intr_break (struct Scsi_Host *host, struct |
host | 1498 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1500 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1515 | drivers/scsi/53c7,8xx.c | host->host_no, dsp); |
host | 1546 | drivers/scsi/53c7,8xx.c | static int asynchronous (struct Scsi_Host *host, int target) { |
host | 1549 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1550 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1615 | drivers/scsi/53c7,8xx.c | static void synchronous (struct Scsi_Host *host, int target, char *msg) { |
host | 1617 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1629 | drivers/scsi/53c7,8xx.c | printk("scsi%d : optimal synchronous divisor of %d.%01d\n", host->host_no, |
host | 1635 | drivers/scsi/53c7,8xx.c | printk("scsi%d : selected synchronous divisor of %d.%01d\n", host->host_no, |
host | 1684 | drivers/scsi/53c7,8xx.c | static int NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct |
host | 1689 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1691 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1696 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSPS = 0x%x\n", host->host_no, dsps); |
host | 1700 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : message", host->host_no); |
host | 1717 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1726 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, (cmd->flags & CMD_FLAG_SDTR) ? "accepting" : |
host | 1738 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, (unsigned char *) |
host | 1747 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, (unsigned char *) |
host | 1765 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, Hz / 1000000, Hz % 1000000, |
host | 1773 | drivers/scsi/53c7,8xx.c | host->host_no, c->target); |
host | 1785 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : unexpected phase\n", host->host_no); |
host | 1788 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : selected by target %d\n", host->host_no, |
host | 1795 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : unexpected reselect by target %d\n", host->host_no, |
host | 1814 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : CHECK CONDITION\n", host->host_no); |
host | 1817 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 1826 | drivers/scsi/53c7,8xx.c | asynchronous (host, c->target); |
host | 1900 | drivers/scsi/53c7,8xx.c | printk("scsi%d : test %d complete\n", host->host_no, |
host | 1906 | drivers/scsi/53c7,8xx.c | printk("scsi%d : new I/O 0x%x scheduled\n", host->host_no, |
host | 1914 | drivers/scsi/53c7,8xx.c | printk("scsi%d : idle\n", host->host_no); |
host | 1928 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSA loaded with 0x%x\n", host->host_no, |
host | 1937 | drivers/scsi/53c7,8xx.c | host->host_no, (int) NCR53c7x0_read8(SSID_REG_800), |
host | 1946 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->issue_dsa_head); |
host | 1953 | drivers/scsi/53c7,8xx.c | host->host_no, dsps); |
host | 1958 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned) dsps); |
host | 2018 | drivers/scsi/53c7,8xx.c | static int debugger_fn_bc (struct Scsi_Host *host, struct debugger_token *token, |
host | 2050 | drivers/scsi/53c7,8xx.c | static int debugger_fn_bl (struct Scsi_Host *host, struct debugger_token *token, |
host | 2053 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2065 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2066 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
host | 2070 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) host->breakpoints; |
host | 2082 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
host | 2088 | drivers/scsi/53c7,8xx.c | static int debugger_fn_bs (struct Scsi_Host *host, struct debugger_token *token, |
host | 2091 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2101 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
host | 2102 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
host | 2109 | drivers/scsi/53c7,8xx.c | host->host_no, sizeof(struct NCR53c7x0_break)); |
host | 2142 | drivers/scsi/53c7,8xx.c | for (dev = MINOR(inode->rdev), host = first_host; |
host | 2143 | drivers/scsi/53c7,8xx.c | (host->hostt == the_template); --dev, host = host->next) |
host | 2144 | drivers/scsi/53c7,8xx.c | if (!dev) return host; |
host | 2151 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; /* This SCSI host */ |
host | 2158 | drivers/scsi/53c7,8xx.c | if (!(host = inode_to_host(inode))) |
host | 2161 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 2207 | drivers/scsi/53c7,8xx.c | static debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
host | 2210 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2246 | drivers/scsi/53c7,8xx.c | NCR53c8x0_soft_reset (struct Scsi_Host *host) { |
host | 2249 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2250 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2279 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE|SCID_800_SRE); |
host | 2281 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE); |
host | 2353 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 2355 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2369 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(cmd->host); |
host | 2382 | drivers/scsi/53c7,8xx.c | if (hostdata->num_commands < host->can_queue && |
host | 2385 | drivers/scsi/53c7,8xx.c | for (i = host->hostt->cmd_per_lun - 1; i >= 0 --i) { |
host | 2448 | drivers/scsi/53c7,8xx.c | printk("scsi%d : command is ", host->host_no); |
host | 2452 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : %d scatter/gather segments\n", host->host_no, |
host | 2614 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain, "dynamic ", 1); |
host | 2615 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain + 2, "dynamic ", 1); |
host | 2628 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout, "dynamic ", 1); |
host | 2629 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout + 2, "dynamic ", 1); |
host | 2646 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain, "dynamic jump ", 1); |
host | 2665 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout, "dynamic jump ", 1); |
host | 2695 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 2697 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2700 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2706 | drivers/scsi/53c7,8xx.c | printk("scsi%d : disabled target %d lun %d\n", host->host_no, |
host | 2715 | drivers/scsi/53c7,8xx.c | printk("scsi%d : maximum commands exceeded\n", host->host_no); |
host | 2728 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2788 | drivers/scsi/53c7,8xx.c | printk("scsi%d : new dsa is 0x%p\n", host->host_no, dsa); |
host | 2818 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : no issue queue\n", host->host_no); |
host | 2834 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : existing issue queue\n", host->host_no); |
host | 2857 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2883 | drivers/scsi/53c7,8xx.c | static void intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 2886 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 2891 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2906 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : SIST0 0x%0x, SIST1 0x%0x\n", host->host_no, |
host | 2914 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : Selection Timeout\n", host->host_no); |
host | 2917 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 2919 | drivers/scsi/53c7,8xx.c | printk("scsi%d : dsp = 0x%x\n", host->host_no, |
host | 2922 | drivers/scsi/53c7,8xx.c | printk("scsi%d : no command\n", host->host_no); |
host | 2951 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 2964 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 2967 | drivers/scsi/53c7,8xx.c | printk("scsi%d : parity error\n", host->host_no); |
host | 2979 | drivers/scsi/53c7,8xx.c | printk("scsi%d : gross error\n", host->host_no); |
host | 2990 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : SSTAT0_MA\n", host->host_no); |
host | 2991 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (host, cmd); |
host | 3008 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DMA FIFO not empty\n", host->host_no); |
host | 3044 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; /* Host we are looking at */ |
host | 3067 | drivers/scsi/53c7,8xx.c | for (host = first_host; host; host = hostdata->next) { |
host | 3068 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3070 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 3108 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : INTFLY\n", host->host_no); |
host | 3129 | drivers/scsi/53c7,8xx.c | printk("scsi%d : very weird.\n", host->host_no); |
host | 3135 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3140 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->result); |
host | 3170 | drivers/scsi/53c7,8xx.c | host->host_no, tmp->pid, tmp->target, tmp->lun, tmp->result); |
host | 3186 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3217 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->pid, (int) cmd->cmd->target, |
host | 3221 | drivers/scsi/53c7,8xx.c | printk("scsi%d : no active command\n", host->host_no); |
host | 3227 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : ISTAT_SIP\n", host->host_no); |
host | 3228 | drivers/scsi/53c7,8xx.c | intr_scsi (host, cmd); |
host | 3233 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : ISTAT_DIP\n", host->host_no); |
host | 3234 | drivers/scsi/53c7,8xx.c | intr_dma (host, cmd); |
host | 3245 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DMA FIFO not empty\n", host->host_no); |
host | 3270 | drivers/scsi/53c7,8xx.c | printk("scsi%d : too many interrupts, halting", host->host_no); |
host | 3283 | drivers/scsi/53c7,8xx.c | printk("scsi%d : new dsp is 0x%p\n", host->host_no, |
host | 3309 | drivers/scsi/53c7,8xx.c | abort_connected (struct Scsi_Host *host) { |
host | 3311 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3317 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3341 | drivers/scsi/53c7,8xx.c | static void intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd |
host | 3347 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3349 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3353 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3354 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 3429 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : new phase = STATIN\n", host->host_no); |
host | 3443 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : new phase = MSGIN\n", host->host_no); |
host | 3456 | drivers/scsi/53c7,8xx.c | host->host_no, dcmd); |
host | 3457 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3458 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp_next, "", 1); |
host | 3459 | drivers/scsi/53c7,8xx.c | abort_connected (host); |
host | 3474 | drivers/scsi/53c7,8xx.c | host->host_no, phase); |
host | 3475 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 3482 | drivers/scsi/53c7,8xx.c | host->host_no, phase, dsp); |
host | 3483 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3484 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp_next, "", 1); |
host | 3485 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 3500 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 3503 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3511 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3521 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSTAT=0x%x\n", host->host_no, (int) dstat); |
host | 3549 | drivers/scsi/53c7,8xx.c | " ", host->host_no); |
host | 3550 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "s ", 1); |
host | 3563 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "s ", 0); |
host | 3574 | drivers/scsi/53c7,8xx.c | " ", host->host_no); |
host | 3575 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3608 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3621 | drivers/scsi/53c7,8xx.c | printk("scsi%d : illegal instruction ", host->host_no); |
host | 3622 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3626 | drivers/scsi/53c7,8xx.c | host->host_no, dsp, dbc_dcmd, |
host | 3642 | drivers/scsi/53c7,8xx.c | host->host_no, dsp, NCR53c7x0_read32(DBC_REG), |
host | 3645 | drivers/scsi/53c7,8xx.c | print_dsa (host, dsa); |
host | 3646 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSP->\n", host->host_no); |
host | 3647 | drivers/scsi/53c7,8xx.c | print_insn(host, dsp, "", 1); |
host | 3648 | drivers/scsi/53c7,8xx.c | print_insn(host, next_dsp, "", 1); |
host | 3668 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSTAT_SIR\n", host->host_no); |
host | 3669 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
host | 3674 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 3677 | drivers/scsi/53c7,8xx.c | printk("scsi%d : failure at ", host->host_no); |
host | 3678 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3682 | drivers/scsi/53c7,8xx.c | intr_break (host, cmd); |
host | 3685 | drivers/scsi/53c7,8xx.c | printk("scsi%d : failure at ", host->host_no); |
host | 3686 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 3715 | drivers/scsi/53c7,8xx.c | static int print_insn (struct Scsi_Host *host, u32 *insn, |
host | 3739 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
host | 3758 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3760 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3809 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
host | 3825 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : did this command ever run?\n", host->host_no); |
host | 3828 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3853 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3854 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = host ? |
host | 3855 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata : NULL; |
host | 3856 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3859 | drivers/scsi/53c7,8xx.c | ncr_halt (host); |
host | 3894 | drivers/scsi/53c7,8xx.c | static void print_dsa (struct Scsi_Host *host, u32 *dsa) { |
host | 3896 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3902 | drivers/scsi/53c7,8xx.c | host->host_no, dsa, hostdata->dsa_msgout, |
host | 3926 | drivers/scsi/53c7,8xx.c | shutdown (struct Scsi_Host *host) { |
host | 3930 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3931 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3934 | drivers/scsi/53c7,8xx.c | ncr_halt (host); |
host | 3935 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset(host); |
host | 3965 | drivers/scsi/53c7,8xx.c | ncr_halt (struct Scsi_Host *host) { |
host | 3970 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3971 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3995 | drivers/scsi/53c7,8xx.c | panic("scsi%d: could not halt NCR chip\n", host->host_no); |
host | 4004 | drivers/scsi/53c7,8xx.c | int NCR53c7x0_release(struct Scsi_Host *host) { |
host | 4005 | drivers/scsi/53c7,8xx.c | shutdown (host); |
host | 4007 | drivers/scsi/53c7,8xx.c | if (host->irq != IRQ_NONE) |
host | 4012 | drivers/scsi/53c7,8xx.c | if (tmp->hostt == the_template && tmp->irq == host->irq) |
host | 4015 | drivers/scsi/53c7,8xx.c | free_irq(host->irq); |
host | 4017 | drivers/scsi/53c7,8xx.c | if (host->dma_channel != DMA_NONE) |
host | 4018 | drivers/scsi/53c7,8xx.c | free_dma(host->dma_channel); |
host | 1099 | drivers/scsi/53c7,8xx.h | void (* init_fixup)(struct Scsi_Host *host); |
host | 1100 | drivers/scsi/53c7,8xx.h | void (* init_save_regs)(struct Scsi_Host *host); |
host | 1102 | drivers/scsi/53c7,8xx.h | void (* soft_reset)(struct Scsi_Host *host); |
host | 1103 | drivers/scsi/53c7,8xx.h | int (* run_tests)(struct Scsi_Host *host); |
host | 1111 | drivers/scsi/53c7,8xx.h | int (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
host | 1322 | drivers/scsi/53c7,8xx.h | #define NCR53c7x0_local_setup(host) \ |
host | 1323 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_memory = (void *) (host)->base; \ |
host | 1324 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_io = (unsigned int) (host)->io_port; \ |
host | 1326 | drivers/scsi/53c7,8xx.h | host->hostdata)-> options & OPTION_MEMORY_MAPPED |
host | 1364 | drivers/scsi/53c7,8xx.h | host->host_no, #symbol, i, A_##symbol##_used[i] - \ |
host | 850 | drivers/scsi/NCR5380.c | cmd->host->hostdata; |
host | 2575 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
host | 2762 | drivers/scsi/NCR5380.c | NCR5380_setup(cmd->host); |
host | 2764 | drivers/scsi/NCR5380.c | NCR5380_print_status (cmd->host); |
host | 105 | drivers/scsi/aha1542.c | #define HOSTDATA(host) ((struct aha1542_hostdata *) &host->hostdata) |
host | 521 | drivers/scsi/aha1542.c | mb = HOSTDATA(SCpnt->host)->mb; |
host | 522 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
host | 562 | drivers/scsi/aha1542.c | mbo = HOSTDATA(SCpnt->host)->aha1542_last_mbo_used + 1; |
host | 566 | drivers/scsi/aha1542.c | if(mb[mbo].status == 0 && HOSTDATA(SCpnt->host)->SCint[mbo] == NULL) |
host | 570 | drivers/scsi/aha1542.c | } while (mbo != HOSTDATA(SCpnt->host)->aha1542_last_mbo_used); |
host | 572 | drivers/scsi/aha1542.c | if(mb[mbo].status || HOSTDATA(SCpnt->host)->SCint[mbo]) |
host | 575 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[mbo] = SCpnt; /* This will effectively prevent someone else from |
host | 578 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->aha1542_last_mbo_used = mbo; |
host | 660 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); /* start scsi command */ |
host | 1108 | drivers/scsi/aha1542.c | inb(STATUS(SCpnt->host->io_port)), |
host | 1109 | drivers/scsi/aha1542.c | inb(INTRFLAGS(SCpnt->host->io_port))); |
host | 1113 | drivers/scsi/aha1542.c | mb = HOSTDATA(SCpnt->host)->mb; |
host | 1114 | drivers/scsi/aha1542.c | mbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1; |
host | 1121 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used); |
host | 1126 | drivers/scsi/aha1542.c | SCpnt->host->irq); |
host | 1127 | drivers/scsi/aha1542.c | aha1542_intr_handle(SCpnt->host->irq, NULL); |
host | 1135 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i]) |
host | 1137 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) { |
host | 1139 | drivers/scsi/aha1542.c | if (HOSTDATA(SCpnt->host)->mb[i].status) { |
host | 1141 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); |
host | 1154 | drivers/scsi/aha1542.c | if (SCpnt == HOSTDATA(SCpnt->host)->SCint[mbo]){ |
host | 1156 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); /* start scsi command */ |
host | 1178 | drivers/scsi/aha1542.c | outb(SCRST, CONTROL(SCpnt->host->io_port)); |
host | 1183 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) |
host | 1185 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
host | 1187 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); |
host | 1200 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] && |
host | 1201 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target) |
host | 1204 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
host | 1210 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
host | 1211 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
host | 1233 | drivers/scsi/aha1542.c | translation_algorithm = HOSTDATA(disk->device->host)->bios_translation; |
host | 2641 | drivers/scsi/aic7xxx.c | struct Scsi_Host *host; |
host | 2935 | drivers/scsi/aic7xxx.c | host = scsi_register(template, sizeof(struct aic7xxx_host)); |
host | 2936 | drivers/scsi/aic7xxx.c | host->can_queue = config.maxscb; |
host | 2938 | drivers/scsi/aic7xxx.c | host->cmd_per_lun = 2; |
host | 2940 | drivers/scsi/aic7xxx.c | host->cmd_per_lun = 1; |
host | 2942 | drivers/scsi/aic7xxx.c | host->this_id = config.scsi_id; |
host | 2943 | drivers/scsi/aic7xxx.c | host->irq = config.irq; |
host | 2946 | drivers/scsi/aic7xxx.c | host->max_id = 16; |
host | 2950 | drivers/scsi/aic7xxx.c | host->max_channel = 1; |
host | 2953 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) host->hostdata; |
host | 2989 | drivers/scsi/aic7xxx.c | aic7xxx_boards[config.irq] = host; |
host | 3009 | drivers/scsi/aic7xxx.c | aic7xxx_boards[config.irq] = host; |
host | 3532 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
host | 3724 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
host | 3921 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
host | 4003 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) disk->device->host->hostdata; |
host | 181 | drivers/scsi/buslogic.c | #define HOSTDATA(host) ((struct hostdata *)&(host)->hostdata) |
host | 184 | drivers/scsi/buslogic.c | static struct Scsi_Host *host[7] = { NULL, }; |
host | 454 | drivers/scsi/buslogic.c | shpnt = host[irq - 9]; |
host | 579 | drivers/scsi/buslogic.c | struct Scsi_Host *shpnt = scpnt->host; |
host | 1252 | drivers/scsi/buslogic.c | host[irq - 9] = shpnt; |
host | 1343 | drivers/scsi/buslogic.c | buslogic_out(shpnt->host->io_port, buscmd, sizeof buscmd); |
host | 1362 | drivers/scsi/buslogic.c | inb(STATUS(scpnt->host->io_port)), |
host | 1363 | drivers/scsi/buslogic.c | inb(INTERRUPT(scpnt->host->io_port))); |
host | 1367 | drivers/scsi/buslogic.c | mb = HOSTDATA(scpnt->host)->mb; |
host | 1368 | drivers/scsi/buslogic.c | last_mbi = HOSTDATA(scpnt->host)->last_mbi_used; |
host | 1380 | drivers/scsi/buslogic.c | } while (mbi != HOSTDATA(scpnt->host)->last_mbi_used); |
host | 1385 | drivers/scsi/buslogic.c | scpnt->host->irq); |
host | 1386 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->last_mbi_used = last_mbi; |
host | 1387 | drivers/scsi/buslogic.c | buslogic_interrupt(scpnt->host->irq, NULL); |
host | 1396 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i]) { |
host | 1397 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
host | 1400 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->mb[i].status != MBX_NOT_IN_USE) { |
host | 1402 | drivers/scsi/buslogic.c | buslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd); |
host | 1420 | drivers/scsi/buslogic.c | if (scpnt == HOSTDATA(scpnt->host)->sc[mbo]) { |
host | 1422 | drivers/scsi/buslogic.c | buslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd); |
host | 1446 | drivers/scsi/buslogic.c | outb(RSBUS, CONTROL(scpnt->host->io_port)); |
host | 1451 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] == scpnt) { |
host | 1452 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->ccbs[i].op = CCB_OP_BUS_RESET; |
host | 1456 | drivers/scsi/buslogic.c | buslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd); |
host | 1470 | drivers/scsi/buslogic.c | if (HOSTDATA(scpnt->host)->sc[i] |
host | 1471 | drivers/scsi/buslogic.c | && HOSTDATA(scpnt->host)->sc[i]->target == scpnt->target) { |
host | 1472 | drivers/scsi/buslogic.c | Scsi_Cmnd *sctmp = HOSTDATA(scpnt->host)->sc[i]; |
host | 1481 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->sc[i] = NULL; |
host | 1482 | drivers/scsi/buslogic.c | HOSTDATA(scpnt->host)->mb[i].status = MBX_NOT_IN_USE; |
host | 1506 | drivers/scsi/buslogic.c | if (HOSTDATA(disk->device->host)->bios_translation == BIOS_TRANSLATION_BIG |
host | 567 | drivers/scsi/constants.c | cmd->host->host_no, |
host | 611 | drivers/scsi/eata.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
host | 713 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 774 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 177 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
host | 352 | drivers/scsi/eata_dma.c | sh = cmd->host; |
host | 515 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
host | 571 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
host | 586 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
host | 610 | drivers/scsi/eata_dma.c | inb((u32) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
host | 611 | drivers/scsi/eata_dma.c | eata_send_command(0, (u32) cmd->host->base, EATA_CMD_RESET); |
host | 629 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
host | 157 | drivers/scsi/eata_dma_proc.c | SDev.host = HBA_ptr; |
host | 175 | drivers/scsi/eata_dma_proc.c | scmd.host = HBA_ptr; |
host | 464 | drivers/scsi/eata_dma_proc.c | if (scd->host == HBA_ptr) { |
host | 76 | drivers/scsi/eata_generic.h | #define HD(cmd) ((hostdata *)&(cmd->host->hostdata)) |
host | 78 | drivers/scsi/eata_generic.h | #define SD(host) ((hostdata *)&(host->hostdata)) |
host | 150 | drivers/scsi/eata_pio.c | base = (uint) cmd->host->base; |
host | 290 | drivers/scsi/eata_pio.c | sh = cmd->host; |
host | 410 | drivers/scsi/eata_pio.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
host | 471 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
host | 487 | drivers/scsi/eata_pio.c | outb((uint) cmd->host->base+HA_WCOMMAND, EATA_CMD_RESET); |
host | 498 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
host | 107 | drivers/scsi/eata_pio_proc.c | if (scd->host == HBA_ptr) { |
host | 1622 | drivers/scsi/fdomain.c | if (!SCpnt || !SCpnt->host) { |
host | 1626 | drivers/scsi/fdomain.c | printk( "%s\n", fdomain_16x0_info( SCpnt->host ) ); |
host | 1627 | drivers/scsi/fdomain.c | print_banner( SCpnt->host ); |
host | 533 | drivers/scsi/qlogic.c | int qlogic_detect(Scsi_Host_Template * host) |
host | 564 | drivers/scsi/qlogic.c | qinitid = host->this_id; |
host | 608 | drivers/scsi/qlogic.c | host->can_queue = 1; |
host | 611 | drivers/scsi/qlogic.c | hreg = scsi_register( host , 0 ); /* no host data */ |
host | 620 | drivers/scsi/qlogic.c | host->name = qinfo; |
host | 663 | drivers/scsi/qlogic.c | const char *qlogic_info(struct Scsi_Host * host) |
host | 334 | drivers/scsi/scsi.c | printk ("scan_scsis_done(%p, %06x)\n", SCpnt->host, SCpnt->result); |
host | 421 | drivers/scsi/scsi.c | SDpnt->host = shpnt; |
host | 439 | drivers/scsi/scsi.c | SCpnt->host = SDpnt->host; |
host | 803 | drivers/scsi/scsi.c | SCpnt->host->host_no); |
host | 812 | drivers/scsi/scsi.c | printk("Unable to reset scsi host %d - ", SCpnt->host->host_no); |
host | 843 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 851 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 886 | drivers/scsi/scsi.c | if (SCSI_BLOCK(device->host)) return NULL; |
host | 890 | drivers/scsi/scsi.c | tablesize = device->host->sg_tablesize; |
host | 960 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 973 | drivers/scsi/scsi.c | host = device->host; |
host | 975 | drivers/scsi/scsi.c | if (intr_count && SCSI_BLOCK(host)) return NULL; |
host | 978 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 1036 | drivers/scsi/scsi.c | tablesize = device->host->sg_tablesize; |
host | 1102 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 1108 | drivers/scsi/scsi.c | host = SCpnt->host; |
host | 1116 | drivers/scsi/scsi.c | temp = host->last_reset + MIN_RESET_DELAY; |
host | 1129 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel, SCpnt->target, SCpnt->cmnd, |
host | 1133 | drivers/scsi/scsi.c | if (host->can_queue) |
host | 1137 | drivers/scsi/scsi.c | host->hostt->queuecommand); |
host | 1148 | drivers/scsi/scsi.c | if(!intr_count && SCpnt->host->irq) |
host | 1149 | drivers/scsi/scsi.c | disable_irq(SCpnt->host->irq); |
host | 1151 | drivers/scsi/scsi.c | host->hostt->queuecommand (SCpnt, scsi_done); |
host | 1153 | drivers/scsi/scsi.c | if(!intr_count && SCpnt->host->irq) |
host | 1154 | drivers/scsi/scsi.c | enable_irq(SCpnt->host->irq); |
host | 1160 | drivers/scsi/scsi.c | printk("command() : routine at %p\n", host->hostt->command); |
host | 1162 | drivers/scsi/scsi.c | temp=host->hostt->command (SCpnt); |
host | 1168 | drivers/scsi/scsi.c | host->host_no, temp); |
host | 1215 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1224 | drivers/scsi/scsi.c | "command : " , host->host_no, SCpnt->channel, target, buffer, |
host | 1232 | drivers/scsi/scsi.c | if (!host) |
host | 1250 | drivers/scsi/scsi.c | while (SCSI_BLOCK(host)) { |
host | 1252 | drivers/scsi/scsi.c | SCSI_SLEEP(&host->host_wait, SCSI_BLOCK(host)); |
host | 1256 | drivers/scsi/scsi.c | if (host->block) host_active = host; |
host | 1258 | drivers/scsi/scsi.c | host->host_busy++; |
host | 1270 | drivers/scsi/scsi.c | SCpnt->host = host; |
host | 1317 | drivers/scsi/scsi.c | printk("scsi: reset(%d, channel %d)\n", SCpnt->host->host_no, |
host | 1354 | drivers/scsi/scsi.c | printk("scsi%d, channel%d : ", SCpnt->host->host_no, SCpnt->channel); |
host | 1417 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1440 | drivers/scsi/scsi.c | printk("In scsi_done(host = %d, result = %06x)\n", host->host_no, result); |
host | 1462 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel, SCpnt->target, |
host | 1564 | drivers/scsi/scsi.c | " reset.\n", SCpnt->host->host_no, SCpnt->channel); |
host | 1675 | drivers/scsi/scsi.c | && !(jiffies < SCpnt->host->last_reset + MIN_RESET_PERIOD) |
host | 1679 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel); |
host | 1716 | drivers/scsi/scsi.c | host->host_busy--; /* Indicate that we are free */ |
host | 1718 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
host | 1726 | drivers/scsi/scsi.c | for (next = host->block; next != host; next = next->block) |
host | 1732 | drivers/scsi/scsi.c | wake_up(&host->host_wait); |
host | 1765 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1803 | drivers/scsi/scsi.c | if (!host->host_busy) { |
host | 1810 | drivers/scsi/scsi.c | SCpnt->pid, SCpnt->host->host_no, (int) SCpnt->channel, |
host | 1816 | drivers/scsi/scsi.c | switch(host->hostt->abort(SCpnt)) { |
host | 1873 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1877 | drivers/scsi/scsi.c | host->host_no); |
host | 1893 | drivers/scsi/scsi.c | if (host->host_busy) |
host | 1896 | drivers/scsi/scsi.c | SCpnt1 = host->host_queue; |
host | 1909 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1910 | drivers/scsi/scsi.c | temp = host->hostt->reset(SCpnt); |
host | 1911 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1915 | drivers/scsi/scsi.c | if (!host->block) host->host_busy++; |
host | 1917 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1918 | drivers/scsi/scsi.c | temp = host->hostt->reset(SCpnt); |
host | 1919 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1920 | drivers/scsi/scsi.c | if (!host->block) host->host_busy--; |
host | 1972 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 1986 | drivers/scsi/scsi.c | for(host = scsi_hostlist; host; host = host->next) { |
host | 1987 | drivers/scsi/scsi.c | for(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2016 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 2043 | drivers/scsi/scsi.c | for(host = scsi_hostlist; host; host = host->next) |
host | 2044 | drivers/scsi/scsi.c | for(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2235 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 2237 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->cmd_per_lun;j++){ |
host | 2239 | drivers/scsi/scsi.c | SCpnt->host = SDpnt->host; |
host | 2252 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2253 | drivers/scsi/scsi.c | if(host->host_queue) |
host | 2254 | drivers/scsi/scsi.c | host->host_queue->prev = SCpnt; |
host | 2255 | drivers/scsi/scsi.c | SCpnt->next = host->host_queue; |
host | 2257 | drivers/scsi/scsi.c | host->host_queue = SCpnt; |
host | 2270 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 2327 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2330 | drivers/scsi/scsi.c | dma_sectors += ((host->sg_tablesize * |
host | 2332 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2334 | drivers/scsi/scsi.c | if(host->unchecked_isa_dma && |
host | 2337 | drivers/scsi/scsi.c | dma_sectors += (PAGE_SIZE >> 9) * host->sg_tablesize * |
host | 2338 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2458 | drivers/scsi/scsi.c | if (scd->host == HBA_ptr) { |
host | 2494 | drivers/scsi/scsi.c | while(scd && scd->host->host_no != parameter[0] |
host | 2524 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 2585 | drivers/scsi/scsi.c | if(SDpnt->host->hostt == tpnt) |
host | 2605 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2608 | drivers/scsi/scsi.c | new_dma_sectors += ((host->sg_tablesize * |
host | 2610 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2612 | drivers/scsi/scsi.c | if(host->unchecked_isa_dma && |
host | 2615 | drivers/scsi/scsi.c | new_dma_sectors += (PAGE_SIZE >> 9) * host->sg_tablesize * |
host | 2616 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2711 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt && sdpnt->host->hostt->usage_count |
host | 2712 | drivers/scsi/scsi.c | && *sdpnt->host->hostt->usage_count) return; |
host | 2735 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt) |
host | 2749 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt) |
host | 2750 | drivers/scsi/scsi.c | while (sdpnt->host->host_queue) { |
host | 2751 | drivers/scsi/scsi.c | SCpnt = sdpnt->host->host_queue->next; |
host | 2752 | drivers/scsi/scsi.c | scsi_init_free((char *) sdpnt->host->host_queue, sizeof(Scsi_Cmnd)); |
host | 2753 | drivers/scsi/scsi.c | sdpnt->host->host_queue = SCpnt; |
host | 2764 | drivers/scsi/scsi.c | if (sdpnt->host->hostt == tpnt) { |
host | 2907 | drivers/scsi/scsi.c | for(SCpnt = SDpnt->host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2915 | drivers/scsi/scsi.c | if(SCpnt == SDpnt->host->host_queue) |
host | 2916 | drivers/scsi/scsi.c | SDpnt->host->host_queue = SCpnt->next; |
host | 3002 | drivers/scsi/scsi.c | i++, SCpnt->host->host_no, |
host | 296 | drivers/scsi/scsi.h | struct Scsi_Host * host; |
host | 453 | drivers/scsi/scsi.h | struct Scsi_Host * host; |
host | 604 | drivers/scsi/scsi.h | if (SCpnt->host->block) { |
host | 607 | drivers/scsi/scsi.h | for (next = SCpnt->host->block; next != SCpnt->host; |
host | 43 | drivers/scsi/scsi_ioctl.c | static int ioctl_probe(struct Scsi_Host * host, void *buffer) |
host | 49 | drivers/scsi/scsi_ioctl.c | if ((temp = host->hostt->present) && buffer) { |
host | 54 | drivers/scsi/scsi_ioctl.c | if(host->hostt->info) |
host | 55 | drivers/scsi/scsi_ioctl.c | string = host->hostt->info(host); |
host | 57 | drivers/scsi/scsi_ioctl.c | string = host->hostt->name; |
host | 148 | drivers/scsi/scsi_ioctl.c | dev->host->host_no, |
host | 324 | drivers/scsi/scsi_ioctl.c | put_user(dev->id + (dev->lun << 8) + (dev->host->host_no << 16) + |
host | 344 | drivers/scsi/scsi_ioctl.c | return ioctl_probe(dev->host, arg); |
host | 64 | drivers/scsi/sd.c | #define CLUSTERABLE_DEVICE(SC) (SC->host->use_clustering && \ |
host | 128 | drivers/scsi/sd.c | if (rscsi_disks[target].device->host->hostt->usage_count) |
host | 129 | drivers/scsi/sd.c | (*rscsi_disks[target].device->host->hostt->usage_count)++; |
host | 142 | drivers/scsi/sd.c | if (rscsi_disks[target].device->host->hostt->usage_count) |
host | 143 | drivers/scsi/sd.c | (*rscsi_disks[target].device->host->hostt->usage_count)--; |
host | 210 | drivers/scsi/sd.c | SCpnt->host->host_no, result); |
host | 364 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
host | 563 | drivers/scsi/sd.c | && SCpnt->host->unchecked_isa_dma) { |
host | 585 | drivers/scsi/sd.c | } else if (SCpnt->host->sg_tablesize == 0 || |
host | 595 | drivers/scsi/sd.c | if (SCpnt->host->sg_tablesize != 0 && |
host | 620 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma && |
host | 622 | drivers/scsi/sd.c | if (count < SCpnt->host->sg_tablesize) count++; |
host | 630 | drivers/scsi/sd.c | if(SCpnt->host->unchecked_isa_dma && |
host | 639 | drivers/scsi/sd.c | if(SCpnt->host->sg_tablesize < max_sg) |
host | 640 | drivers/scsi/sd.c | max_sg = SCpnt->host->sg_tablesize; |
host | 664 | drivers/scsi/sd.c | ISA_DMA_THRESHOLD && (SCpnt->host->unchecked_isa_dma) && |
host | 713 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma) && |
host | 743 | drivers/scsi/sd.c | > SCpnt->host->sg_tablesize){ |
host | 774 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma)) { |
host | 1204 | drivers/scsi/sd.c | if(rscsi_disks[0].device && rscsi_disks[0].device->host->sg_tablesize) |
host | 1217 | drivers/scsi/sd.c | SDp->host->host_no, SDp->channel, SDp->id, SDp->lun); |
host | 28 | drivers/scsi/sd_ioctl.c | struct Scsi_Host * host; |
host | 38 | drivers/scsi/sd_ioctl.c | host = rscsi_disks[MINOR(dev) >> 4].device->host; |
host | 42 | drivers/scsi/sd_ioctl.c | if(host->hostt->bios_param != NULL) |
host | 43 | drivers/scsi/sd_ioctl.c | host->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4], |
host | 147 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
host | 148 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)++; |
host | 158 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
host | 159 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)--; |
host | 81 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
host | 82 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--; |
host | 284 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
host | 527 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
host | 528 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++; |
host | 692 | drivers/scsi/sr.c | if (SCpnt->host->sg_tablesize > 0 && |
host | 706 | drivers/scsi/sr.c | while(bh && count < SCpnt->host->sg_tablesize) { |
host | 715 | drivers/scsi/sr.c | if (count < SCpnt->host->sg_tablesize) { |
host | 760 | drivers/scsi/sr.c | SCpnt->host->unchecked_isa_dma) { |
host | 824 | drivers/scsi/sr.c | SCpnt->host->unchecked_isa_dma) |
host | 906 | drivers/scsi/sr.c | SDp->host->host_no, SDp->channel, SDp->id, SDp->lun); |
host | 1081 | drivers/scsi/sr.c | if(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize) |
host | 79 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->host->host_no, |
host | 522 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
host | 523 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)++; |
host | 650 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
host | 651 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)++; |
host | 744 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
host | 745 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)--; |
host | 2039 | drivers/scsi/st.c | SDp->host->host_no, SDp->channel, SDp->id, SDp->lun); |
host | 565 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
host | 656 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 717 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 346 | drivers/scsi/wd7000.c | Adapter *host; /* host adapter */ |
host | 533 | drivers/scsi/wd7000.c | static inline void wd7000_enable_intr(Adapter *host) |
host | 535 | drivers/scsi/wd7000.c | host->control |= INT_EN; |
host | 536 | drivers/scsi/wd7000.c | outb(host->control, host->iobase+ASC_CONTROL); |
host | 540 | drivers/scsi/wd7000.c | static inline void wd7000_enable_dma(Adapter *host) |
host | 542 | drivers/scsi/wd7000.c | host->control |= DMA_EN; |
host | 543 | drivers/scsi/wd7000.c | outb(host->control,host->iobase+ASC_CONTROL); |
host | 544 | drivers/scsi/wd7000.c | set_dma_mode(host->dma, DMA_MODE_CASCADE); |
host | 545 | drivers/scsi/wd7000.c | enable_dma(host->dma); |
host | 571 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
host | 573 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT,ASC_STATMASK,CMD_RDY,0); |
host | 576 | drivers/scsi/wd7000.c | outb(*cmd, host->iobase+ASC_COMMAND); |
host | 577 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0); |
host | 578 | drivers/scsi/wd7000.c | } while (inb(host->iobase+ASC_STAT) & CMD_REJ); |
host | 684 | drivers/scsi/wd7000.c | static int mail_out( Adapter *host, Scb *scbptr ) |
host | 692 | drivers/scsi/wd7000.c | Mailbox *ogmbs = host->mb.ogmb; |
host | 693 | drivers/scsi/wd7000.c | int *next_ogmb = &(host->next_ogmb); |
host | 733 | drivers/scsi/wd7000.c | wd7000_enable_intr(host); |
host | 736 | drivers/scsi/wd7000.c | command_out( host, &start_ogmb, 1 ); |
host | 802 | drivers/scsi/wd7000.c | #define wd7000_intr_ack(host) outb(0,host->iobase+ASC_INTR_ACK) |
host | 811 | drivers/scsi/wd7000.c | Adapter *host = irq2host[irq]; /* This MUST be set!!! */ |
host | 812 | drivers/scsi/wd7000.c | Mailbox *icmbs = host->mb.icmb; |
host | 815 | drivers/scsi/wd7000.c | printk("wd7000_intr_handle: irq = %d, host = %06x\n", irq, host); |
host | 818 | drivers/scsi/wd7000.c | flag = inb(host->iobase+ASC_INTR_STAT); |
host | 823 | drivers/scsi/wd7000.c | if (!(inb(host->iobase+ASC_STAT) & INT_IM)) { |
host | 835 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 850 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 861 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 886 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 898 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |
host | 911 | drivers/scsi/wd7000.c | scb->host = host; |
host | 917 | drivers/scsi/wd7000.c | if (SCpnt->host->sg_tablesize == SG_NONE) { |
host | 938 | drivers/scsi/wd7000.c | while (!mail_out(host, scb)) /* keep trying */; |
host | 954 | drivers/scsi/wd7000.c | int wd7000_diagnostics( Adapter *host, int code ) |
host | 969 | drivers/scsi/wd7000.c | mail_out(host, (struct scb *) &icb); |
host | 988 | drivers/scsi/wd7000.c | int wd7000_init( Adapter *host ) |
host | 999 | drivers/scsi/wd7000.c | outb(ASC_RES, host->iobase+ASC_CONTROL); |
host | 1001 | drivers/scsi/wd7000.c | outb(0,host->iobase+ASC_CONTROL); |
host | 1002 | drivers/scsi/wd7000.c | host->control = 0; /* this must always shadow ASC_CONTROL */ |
host | 1003 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0); |
host | 1005 | drivers/scsi/wd7000.c | if ((diag = inb(host->iobase+ASC_INTR_STAT)) != 1) { |
host | 1034 | drivers/scsi/wd7000.c | memset(&(host->mb), 0, sizeof(host->mb)); |
host | 1037 | drivers/scsi/wd7000.c | any2scsi((unchar *) &(init_cmd.mailboxes), (int) &(host->mb)); |
host | 1038 | drivers/scsi/wd7000.c | if (!command_out(host, (unchar *) &init_cmd, sizeof(init_cmd))) { |
host | 1042 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, ASC_INIT, 0); |
host | 1044 | drivers/scsi/wd7000.c | if (request_irq(host->irq, wd7000_intr_handle, SA_INTERRUPT, "wd7000")) { |
host | 1045 | drivers/scsi/wd7000.c | printk("wd7000_init: can't get IRQ %d.\n", host->irq); |
host | 1048 | drivers/scsi/wd7000.c | if (request_dma(host->dma,"wd7000")) { |
host | 1049 | drivers/scsi/wd7000.c | printk("wd7000_init: can't get DMA channel %d.\n", host->dma); |
host | 1050 | drivers/scsi/wd7000.c | free_irq(host->irq); |
host | 1053 | drivers/scsi/wd7000.c | wd7000_enable_dma(host); |
host | 1054 | drivers/scsi/wd7000.c | wd7000_enable_intr(host); |
host | 1056 | drivers/scsi/wd7000.c | if (!wd7000_diagnostics(host,ICB_DIAG_FULL)) { |
host | 1057 | drivers/scsi/wd7000.c | free_dma(host->dma); |
host | 1058 | drivers/scsi/wd7000.c | free_irq(host->irq); |
host | 1070 | drivers/scsi/wd7000.c | void wd7000_revision(Adapter *host) |
host | 1081 | drivers/scsi/wd7000.c | mail_out(host, (struct scb *) &icb); |
host | 1084 | drivers/scsi/wd7000.c | host->rev1 = icb.primary; |
host | 1085 | drivers/scsi/wd7000.c | host->rev2 = icb.secondary; |
host | 1104 | drivers/scsi/wd7000.c | Adapter *host = NULL; |
host | 1126 | drivers/scsi/wd7000.c | printk("IO %xh already in use.\n", host->iobase); |
host | 1137 | drivers/scsi/wd7000.c | host = (Adapter *) sh->hostdata; |
host | 1140 | drivers/scsi/wd7000.c | (int)host); |
host | 1142 | drivers/scsi/wd7000.c | memset( host, 0, sizeof(Adapter) ); |
host | 1143 | drivers/scsi/wd7000.c | host->sh = sh; |
host | 1144 | drivers/scsi/wd7000.c | host->irq = cfg->irq; |
host | 1145 | drivers/scsi/wd7000.c | host->iobase = cfg->iobase; |
host | 1146 | drivers/scsi/wd7000.c | host->dma = cfg->dma; |
host | 1147 | drivers/scsi/wd7000.c | irq2host[host->irq] = host; |
host | 1149 | drivers/scsi/wd7000.c | if (!wd7000_init(host)) { /* Initialization failed */ |
host | 1157 | drivers/scsi/wd7000.c | wd7000_revision(host); /* important for scatter/gather */ |
host | 1160 | drivers/scsi/wd7000.c | host->rev1, host->rev2); |
host | 1162 | drivers/scsi/wd7000.c | host->iobase, host->irq, host->dma); |
host | 1164 | drivers/scsi/wd7000.c | request_region(host->iobase, 4,"wd7000"); /* Register our ports */ |
host | 1168 | drivers/scsi/wd7000.c | if (host->rev1 < 6) sh->sg_tablesize = SG_NONE; |
host | 1187 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |
host | 1189 | drivers/scsi/wd7000.c | if (inb(host->iobase+ASC_STAT) & INT_IM) { |
host | 1191 | drivers/scsi/wd7000.c | wd7000_intr_handle(host->irq, NULL); |