tag | line | file | source code |
host | 261 | drivers/scsi/53c7,8xx.c | static void dump_events (struct Scsi_Host *host, int count); |
host | 262 | drivers/scsi/53c7,8xx.c | static Scsi_Cmnd * return_outstanding_commands (struct Scsi_Host *host, |
host | 264 | drivers/scsi/53c7,8xx.c | static void hard_reset (struct Scsi_Host *host); |
host | 265 | drivers/scsi/53c7,8xx.c | static void ncr_scsi_reset (struct Scsi_Host *host); |
host | 266 | drivers/scsi/53c7,8xx.c | static void print_lots (struct Scsi_Host *host); |
host | 267 | drivers/scsi/53c7,8xx.c | static void set_synchronous (struct Scsi_Host *host, int target, int sxfer, |
host | 269 | drivers/scsi/53c7,8xx.c | static int datapath_residual (struct Scsi_Host *host); |
host | 272 | drivers/scsi/53c7,8xx.c | static void print_queues (struct Scsi_Host *host); |
host | 274 | drivers/scsi/53c7,8xx.c | static int shutdown (struct Scsi_Host *host); |
host | 276 | drivers/scsi/53c7,8xx.c | static int disable (struct Scsi_Host *host); |
host | 277 | drivers/scsi/53c7,8xx.c | static int NCR53c8xx_run_tests (struct Scsi_Host *host); |
host | 281 | drivers/scsi/53c7,8xx.c | static int ncr_halt (struct Scsi_Host *host); |
host | 282 | drivers/scsi/53c7,8xx.c | static void intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd |
host | 284 | drivers/scsi/53c7,8xx.c | static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
host | 285 | drivers/scsi/53c7,8xx.c | static void print_dsa (struct Scsi_Host *host, u32 *dsa, |
host | 287 | drivers/scsi/53c7,8xx.c | static int print_insn (struct Scsi_Host *host, const u32 *insn, |
host | 291 | drivers/scsi/53c7,8xx.c | static void NCR53c8x0_init_fixup (struct Scsi_Host *host); |
host | 292 | drivers/scsi/53c7,8xx.c | static int NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct |
host | 294 | drivers/scsi/53c7,8xx.c | static void NCR53c8x0_soft_reset (struct Scsi_Host *host); |
host | 534 | drivers/scsi/53c7,8xx.c | issue_to_cmd (struct Scsi_Host *host, struct NCR53c7x0_hostdata *hostdata, |
host | 665 | drivers/scsi/53c7,8xx.c | find_host (int host) { |
host | 667 | drivers/scsi/53c7,8xx.c | for (h = first_host; h && h->host_no != host; h = h->next); |
host | 669 | drivers/scsi/53c7,8xx.c | printk (KERN_ALERT "scsi%d not found\n", host); |
host | 672 | drivers/scsi/53c7,8xx.c | printk (KERN_ALERT "scsi%d is not a NCR board\n", host); |
host | 693 | drivers/scsi/53c7,8xx.c | request_synchronous (int host, int target) { |
host | 701 | drivers/scsi/53c7,8xx.c | if (!(h = find_host (host))) |
host | 741 | drivers/scsi/53c7,8xx.c | request_disconnect (int host, int on_or_off) { |
host | 744 | drivers/scsi/53c7,8xx.c | if (!(h = find_host (host))) |
host | 764 | drivers/scsi/53c7,8xx.c | NCR53c7x0_driver_init (struct Scsi_Host *host) { |
host | 766 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 773 | drivers/scsi/53c7,8xx.c | set_synchronous (host, i, /* sxfer */ 0, hostdata->saved_scntl3, 0); |
host | 779 | drivers/scsi/53c7,8xx.c | i < host->can_queue; ++i, current += 2) { |
host | 864 | drivers/scsi/53c7,8xx.c | NCR53c7x0_init (struct Scsi_Host *host) { |
host | 868 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 885 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 891 | drivers/scsi/53c7,8xx.c | host->max_id = 15; |
host | 908 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->chip); |
host | 909 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 923 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %s mapped access\n", host->host_no, |
host | 934 | drivers/scsi/53c7,8xx.c | ncr_halt(host); |
host | 946 | drivers/scsi/53c7,8xx.c | for (host->this_id = 0; tmp != 1; tmp >>=1, ++host->this_id); |
host | 948 | drivers/scsi/53c7,8xx.c | host->this_id = NCR53c7x0_read8(SCID_REG) & 15; |
host | 949 | drivers/scsi/53c7,8xx.c | hostdata->this_id_mask = 1 << host->this_id; |
host | 957 | drivers/scsi/53c7,8xx.c | if (!host->this_id) { |
host | 959 | drivers/scsi/53c7,8xx.c | host->host_no, host->this_id); |
host | 960 | drivers/scsi/53c7,8xx.c | host->this_id = 7; |
host | 965 | drivers/scsi/53c7,8xx.c | if (expected_id == -1 || host->this_id != expected_id) |
host | 966 | drivers/scsi/53c7,8xx.c | printk("scsi%d : using initiator ID %d\n", host->host_no, |
host | 967 | drivers/scsi/53c7,8xx.c | host->this_id); |
host | 1016 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst mode disabled\n", host->host_no); |
host | 1025 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst length %d\n", host->host_no, i); |
host | 1042 | drivers/scsi/53c7,8xx.c | host->host_no, expected_ccf, ccf); |
host | 1060 | drivers/scsi/53c7,8xx.c | host->host_no, ccf); |
host | 1066 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %dMHz SCSI clock\n", host->host_no, |
host | 1073 | drivers/scsi/53c7,8xx.c | hostdata->init_save_regs (host); |
host | 1075 | drivers/scsi/53c7,8xx.c | hostdata->init_fixup (host); |
host | 1078 | drivers/scsi/53c7,8xx.c | the_template = host->hostt; |
host | 1079 | drivers/scsi/53c7,8xx.c | first_host = host; |
host | 1092 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
host | 1104 | drivers/scsi/53c7,8xx.c | NCR53c7x0_driver_init (host); |
host | 1112 | drivers/scsi/53c7,8xx.c | search->irq == host->irq && search != host); search=search->next); |
host | 1115 | drivers/scsi/53c7,8xx.c | if (request_irq(host->irq, NCR53c7x0_intr, SA_INTERRUPT, "53c7,8xx")) { |
host | 1121 | drivers/scsi/53c7,8xx.c | host->host_no, host->irq); |
host | 1122 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 1127 | drivers/scsi/53c7,8xx.c | host->host_no, search->host_no); |
host | 1131 | drivers/scsi/53c7,8xx.c | if ((hostdata->run_tests && hostdata->run_tests(host) == -1) || |
host | 1134 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 1137 | drivers/scsi/53c7,8xx.c | if (host->io_port) { |
host | 1138 | drivers/scsi/53c7,8xx.c | host->n_io_port = 128; |
host | 1139 | drivers/scsi/53c7,8xx.c | request_region (host->io_port, host->n_io_port, "ncr53c7,8xx"); |
host | 1144 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : bus wedge, doing SCSI reset\n", host->host_no); |
host | 1145 | drivers/scsi/53c7,8xx.c | hard_reset (host); |
host | 1590 | drivers/scsi/53c7,8xx.c | NCR53c8x0_init_fixup (struct Scsi_Host *host) { |
host | 1593 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1597 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1654 | drivers/scsi/53c7,8xx.c | base = (u32) host->io_port; |
host | 1658 | drivers/scsi/53c7,8xx.c | base = virt_to_bus(host->base); |
host | 1783 | drivers/scsi/53c7,8xx.c | host->host_no, A_dsa_fields_start, Ent_dsa_code_template_end - |
host | 1786 | drivers/scsi/53c7,8xx.c | printk("scsi%d : NCR code relocated to 0x%lx (virt 0x%p)\n", host->host_no, |
host | 1806 | drivers/scsi/53c7,8xx.c | NCR53c8xx_run_tests (struct Scsi_Host *host) { |
host | 1809 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1814 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1821 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : chip not idle, aborting tests\n", host->host_no); |
host | 1840 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 1", host->host_no); |
host | 1858 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : driver test 1 timed out%s\n",host->host_no , |
host | 1870 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->test_completed); |
host | 1878 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->test_dest); |
host | 1883 | drivers/scsi/53c7,8xx.c | host->host_no, bus_to_virt(NCR53c7x0_read32(DSP_REG)), |
host | 1885 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSPS = 0x%x\n", host->host_no, |
host | 1920 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : chip not idle, aborting tests\n", host->host_no); |
host | 1944 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
host | 1945 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : status ", host->host_no); |
host | 1947 | drivers/scsi/53c7,8xx.c | printk ("\nscsi%d : message ", host->host_no); |
host | 1952 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
host | 1954 | drivers/scsi/53c7,8xx.c | printk("scsi%d : not idle\n", host->host_no); |
host | 1959 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 2 timed out\n", host->host_no); |
host | 1984 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = c->host; |
host | 1986 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2080 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = c->host; |
host | 2082 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2090 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: abnormal finished\n", host->host_no); |
host | 2103 | drivers/scsi/53c7,8xx.c | for (found = 0, left = host->can_queue, current = hostdata->schedule; |
host | 2106 | drivers/scsi/53c7,8xx.c | if (issue_to_cmd (host, hostdata, (u32 *) current) == cmd) |
host | 2123 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, |
host | 2134 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2138 | drivers/scsi/53c7,8xx.c | host->host_no, c->pid); |
host | 2153 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, linux_search = hostdata->running_list, |
host | 2161 | drivers/scsi/53c7,8xx.c | host->host_no, c->pid); |
host | 2193 | drivers/scsi/53c7,8xx.c | intr_break (struct Scsi_Host *host, struct |
host | 2202 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2204 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2218 | drivers/scsi/53c7,8xx.c | host->host_no, dsp); |
host | 2275 | drivers/scsi/53c7,8xx.c | set_synchronous (struct Scsi_Host *host, int target, int sxfer, int scntl3, |
host | 2279 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2281 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2331 | drivers/scsi/53c7,8xx.c | host->host_no, target, sxfer, scntl3); |
host | 2353 | drivers/scsi/53c7,8xx.c | asynchronous (struct Scsi_Host *host, int target) { |
host | 2356 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2357 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2358 | drivers/scsi/53c7,8xx.c | set_synchronous (host, target, /* no offset */ 0, hostdata->saved_scntl3, |
host | 2361 | drivers/scsi/53c7,8xx.c | host->host_no, target); |
host | 2404 | drivers/scsi/53c7,8xx.c | synchronous (struct Scsi_Host *host, int target, char *msg) { |
host | 2406 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2423 | drivers/scsi/53c7,8xx.c | host->host_no, divisor / 10, divisor % 10); |
host | 2430 | drivers/scsi/53c7,8xx.c | host->host_no, syncs[i].div / 10, syncs[i].div % 10); |
host | 2435 | drivers/scsi/53c7,8xx.c | printk("scsi%d : selected synchronous period of %dns\n", host->host_no, |
host | 2443 | drivers/scsi/53c7,8xx.c | host->host_no, (int) sxfer, (int) scntl3); |
host | 2444 | drivers/scsi/53c7,8xx.c | set_synchronous (host, target, sxfer, scntl3, 1); |
host | 2445 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : setting target %d to ", host->host_no, target); |
host | 2463 | drivers/scsi/53c7,8xx.c | NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct |
host | 2469 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2471 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2476 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSPS = 0x%x\n", host->host_no, dsps); |
host | 2491 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : target %d rejected SDTR\n", host->host_no, |
host | 2494 | drivers/scsi/53c7,8xx.c | asynchronous (host, c->target); |
host | 2500 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2508 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2514 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : received message", host->host_no); |
host | 2536 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : target %d %s ", host->host_no, c->target, |
host | 2551 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, (unsigned char *) |
host | 2554 | drivers/scsi/53c7,8xx.c | asynchronous (host, c->target); |
host | 2562 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, (unsigned char *) |
host | 2566 | drivers/scsi/53c7,8xx.c | asynchronous (host, c->target); |
host | 2586 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : unexpected phase\n", host->host_no); |
host | 2589 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : selected by target %d\n", host->host_no, |
host | 2597 | drivers/scsi/53c7,8xx.c | host->host_no, (int) NCR53c7x0_read8(SDID_REG_800) & 7, |
host | 2616 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : CHECK CONDITION\n", host->host_no); |
host | 2619 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2697 | drivers/scsi/53c7,8xx.c | printk("scsi%d : test%d complete\n", host->host_no, |
host | 2713 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read32(DSA_REG), dsa); |
host | 2715 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
host | 2717 | drivers/scsi/53c7,8xx.c | print_insn (host, hostdata->script + Ent_reselected_ok / |
host | 2720 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read8(SXFER_REG), |
host | 2723 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) |
host | 2725 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) |
host | 2745 | drivers/scsi/53c7,8xx.c | host->host_no, virt_to_bus(dsa), dsa); |
host | 2748 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
host | 2751 | drivers/scsi/53c7,8xx.c | printk("scsi%d : template code :\n", host->host_no); |
host | 2754 | drivers/scsi/53c7,8xx.c | code += print_insn (host, code, "", 1)); |
host | 2757 | drivers/scsi/53c7,8xx.c | print_insn (host, hostdata->script + Ent_reselected_ok / |
host | 2773 | drivers/scsi/53c7,8xx.c | host->host_no, virt_to_bus(dsa), dsa); |
host | 2777 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
host | 2788 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read32(DSA_REG), |
host | 2796 | drivers/scsi/53c7,8xx.c | printk("scsi%d : idle\n", host->host_no); |
host | 2810 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSA loaded with 0x%x (virt 0x%p)\n", host->host_no, |
host | 2821 | drivers/scsi/53c7,8xx.c | host->host_no, (int) NCR53c7x0_read8(SDID_REG_800) & ~0x80, |
host | 2823 | drivers/scsi/53c7,8xx.c | print_queues(host); |
host | 2832 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, c->lun); |
host | 2835 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2844 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2845 | drivers/scsi/53c7,8xx.c | print_queues(host); |
host | 2848 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read8(SXFER_REG), |
host | 2852 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) |
host | 2854 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) |
host | 2862 | drivers/scsi/53c7,8xx.c | printk("scsi%d : int_debug_panic received\n", host->host_no); |
host | 2863 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 2871 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
host | 2884 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, bus_to_virt ( |
host | 2886 | drivers/scsi/53c7,8xx.c | size = print_insn (host, (u32 *) |
host | 2888 | drivers/scsi/53c7,8xx.c | size = print_insn (host, (u32 *) |
host | 2894 | drivers/scsi/53c7,8xx.c | host->host_no, datapath_residual (host)) ; |
host | 2909 | drivers/scsi/53c7,8xx.c | host->host_no, sxfer, scntl3); |
host | 2915 | drivers/scsi/53c7,8xx.c | host->host_no, (int) sxfer, (int) scntl3); |
host | 2926 | drivers/scsi/53c7,8xx.c | host->host_no, sbcl_to_phase (NCR53c7x0_read8 (SBCL_REG)), |
host | 2929 | drivers/scsi/53c7,8xx.c | datapath_residual (host)) ; |
host | 2930 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 2931 | drivers/scsi/53c7,8xx.c | size = print_insn (host, (u32 *) bus_to_virt(dsp[1]), "", 1); |
host | 2932 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) bus_to_virt(dsp[1]) + size, "", 1); |
host | 2950 | drivers/scsi/53c7,8xx.c | host->host_no, sdid, c->target, where); |
host | 2951 | drivers/scsi/53c7,8xx.c | print_lots(host); |
host | 2952 | drivers/scsi/53c7,8xx.c | dump_events (host, 20); |
host | 2961 | drivers/scsi/53c7,8xx.c | host->host_no, dsps); |
host | 2998 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned) dsps); |
host | 3058 | drivers/scsi/53c7,8xx.c | static int debugger_fn_bc (struct Scsi_Host *host, struct debugger_token *token, |
host | 3091 | drivers/scsi/53c7,8xx.c | debugger_fn_bl (struct Scsi_Host *host, struct debugger_token *token, |
host | 3094 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3106 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3107 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
host | 3111 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) host->breakpoints; |
host | 3123 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
host | 3130 | drivers/scsi/53c7,8xx.c | debugger_fn_bs (struct Scsi_Host *host, struct debugger_token *token, |
host | 3133 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3142 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
host | 3143 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
host | 3150 | drivers/scsi/53c7,8xx.c | host->host_no, sizeof(struct NCR53c7x0_break)); |
host | 3183 | drivers/scsi/53c7,8xx.c | for (dev = MINOR(inode->rdev), host = first_host; |
host | 3184 | drivers/scsi/53c7,8xx.c | (host->hostt == the_template); --dev, host = host->next) |
host | 3185 | drivers/scsi/53c7,8xx.c | if (!dev) return host; |
host | 3193 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; /* This SCSI host */ |
host | 3200 | drivers/scsi/53c7,8xx.c | if (!(host = inode_to_host(inode))) |
host | 3203 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 3251 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
host | 3254 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3289 | drivers/scsi/53c7,8xx.c | NCR53c8x0_soft_reset (struct Scsi_Host *host) { |
host | 3292 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3293 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3320 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE|SCID_800_SRE); |
host | 3322 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE); |
host | 3396 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3398 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 3407 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->num_cmds, host->can_queue, |
host | 3424 | drivers/scsi/53c7,8xx.c | if ((hostdata->extra_allocate + hostdata->num_cmds) < host->can_queue) |
host | 3425 | drivers/scsi/53c7,8xx.c | hostdata->extra_allocate += host->cmd_per_lun; |
host | 3439 | drivers/scsi/53c7,8xx.c | host->host_no, size); |
host | 3465 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->target, cmd->lun); |
host | 3486 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3488 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3501 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(cmd->host); |
host | 3528 | drivers/scsi/53c7,8xx.c | printk("scsi%d : command is ", host->host_no); |
host | 3532 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : %d scatter/gather segments\n", host->host_no, |
host | 3643 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->sync[cmd->target].select_indirect); |
host | 3644 | drivers/scsi/53c7,8xx.c | FATAL(host); |
host | 3773 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain, "dynamic ", 1); |
host | 3774 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain + 2, "dynamic ", 1); |
host | 3788 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout, "dynamic ", 1); |
host | 3789 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout + 2, "dynamic ", 1); |
host | 3806 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain, "dynamic jump ", 1); |
host | 3823 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout, "dynamic jump ", 1); |
host | 3853 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3855 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 3872 | drivers/scsi/53c7,8xx.c | || cmd->target > host->max_id |
host | 3874 | drivers/scsi/53c7,8xx.c | || cmd->target == host->this_id |
host | 3876 | drivers/scsi/53c7,8xx.c | printk("scsi%d : disabled or bad target %d lun %d\n", host->host_no, |
host | 3881 | drivers/scsi/53c7,8xx.c | printk("scsi%d : maximum commands exceeded\n", host->host_no); |
host | 3889 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3941 | drivers/scsi/53c7,8xx.c | to_schedule_list (struct Scsi_Host *host, struct NCR53c7x0_hostdata *hostdata, |
host | 3950 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3952 | drivers/scsi/53c7,8xx.c | printk("scsi%d : new dsa is 0x%lx (virt 0x%p)\n", host->host_no, |
host | 3965 | drivers/scsi/53c7,8xx.c | printk("scsi%d : driver disabled\n", host->host_no); |
host | 3974 | drivers/scsi/53c7,8xx.c | for (i = host->can_queue, current = hostdata->schedule; |
host | 3994 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: no free slot\n", host->host_no); |
host | 3995 | drivers/scsi/53c7,8xx.c | disable(host); |
host | 4031 | drivers/scsi/53c7,8xx.c | busyp (struct Scsi_Host *host, struct NCR53c7x0_hostdata *hostdata, |
host | 4059 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; |
host | 4077 | drivers/scsi/53c7,8xx.c | for (host = first_host; host && host->hostt == the_template; |
host | 4078 | drivers/scsi/53c7,8xx.c | host = host->next) { |
host | 4079 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 4100 | drivers/scsi/53c7,8xx.c | !busyp (host, hostdata, tmp)) { |
host | 4110 | drivers/scsi/53c7,8xx.c | host->host_no, tmp->target, tmp->lun); |
host | 4113 | drivers/scsi/53c7,8xx.c | to_schedule_list (host, hostdata, |
host | 4120 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4122 | drivers/scsi/53c7,8xx.c | disable (host); |
host | 4148 | drivers/scsi/53c7,8xx.c | intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 4151 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 4157 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4172 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : SIST0 0x%0x, SIST1 0x%0x\n", host->host_no, |
host | 4180 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : Selection Timeout\n", host->host_no); |
host | 4183 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 4185 | drivers/scsi/53c7,8xx.c | printk("scsi%d : dsp = 0x%x (virt 0x%p)\n", host->host_no, |
host | 4189 | drivers/scsi/53c7,8xx.c | printk("scsi%d : no command\n", host->host_no); |
host | 4221 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 4222 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 4226 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4237 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 4240 | drivers/scsi/53c7,8xx.c | printk("scsi%d : parity error\n", host->host_no); |
host | 4252 | drivers/scsi/53c7,8xx.c | printk("scsi%d : gross error\n", host->host_no); |
host | 4283 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : SSTAT0_MA\n", host->host_no); |
host | 4284 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (host, cmd); |
host | 4289 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : Oh no Mr. Bill!\n", host->host_no); |
host | 4305 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DMA FIFO not empty\n", host->host_no); |
host | 4308 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4335 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; /* Host we are looking at */ |
host | 4357 | drivers/scsi/53c7,8xx.c | for (host = first_host; host; host = host->next) |
host | 4358 | drivers/scsi/53c7,8xx.c | if (host->hostt == the_template && host->irq == irq) { |
host | 4359 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4361 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 4399 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : INTFLY\n", host->host_no); |
host | 4420 | drivers/scsi/53c7,8xx.c | printk("scsi%d : very weird.\n", host->host_no); |
host | 4426 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4431 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->result); |
host | 4452 | drivers/scsi/53c7,8xx.c | host->host_no, tmp->pid, tmp->target, tmp->lun, tmp->result); |
host | 4474 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4489 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4514 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->pid, (int) cmd->cmd->target, |
host | 4518 | drivers/scsi/53c7,8xx.c | printk("scsi%d : no active command\n", host->host_no); |
host | 4524 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : ISTAT_SIP\n", host->host_no); |
host | 4525 | drivers/scsi/53c7,8xx.c | intr_scsi (host, cmd); |
host | 4530 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : ISTAT_DIP\n", host->host_no); |
host | 4531 | drivers/scsi/53c7,8xx.c | intr_dma (host, cmd); |
host | 4541 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DMA FIFO not empty\n", host->host_no); |
host | 4544 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4564 | drivers/scsi/53c7,8xx.c | printk("scsi%d : too many interrupts, halting", host->host_no); |
host | 4565 | drivers/scsi/53c7,8xx.c | disable(host); |
host | 4577 | drivers/scsi/53c7,8xx.c | host->host_no, virt_to_bus(hostdata->dsp), hostdata->dsp); |
host | 4601 | drivers/scsi/53c7,8xx.c | abort_connected (struct Scsi_Host *host) { |
host | 4606 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 4613 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4617 | drivers/scsi/53c7,8xx.c | disable(host); |
host | 4622 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4673 | drivers/scsi/53c7,8xx.c | datapath_residual (struct Scsi_Host *host) { |
host | 4676 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 4678 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4779 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 4784 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 4789 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4844 | drivers/scsi/53c7,8xx.c | residual = datapath_residual (host); |
host | 4847 | drivers/scsi/53c7,8xx.c | host->host_no, residual); |
host | 4907 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target); |
host | 4951 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4966 | drivers/scsi/53c7,8xx.c | host->host_no, where ? where : "unknown location", |
host | 4968 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 4971 | drivers/scsi/53c7,8xx.c | abort_connected (host); |
host | 4979 | drivers/scsi/53c7,8xx.c | printk("scsi%d: new dsp 0x%p\n", host->host_no, hostdata->dsp); |
host | 4980 | drivers/scsi/53c7,8xx.c | print_insn (host, hostdata->dsp, "", 1); |
host | 4997 | drivers/scsi/53c7,8xx.c | intr_bf (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 5000 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 5013 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5053 | drivers/scsi/53c7,8xx.c | host->host_no, pcibios_strerror (tmp)); |
host | 5063 | drivers/scsi/53c7,8xx.c | host->host_no, reason ? reason : "unknown"); |
host | 5064 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 5082 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5098 | drivers/scsi/53c7,8xx.c | intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 5101 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 5109 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5119 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSTAT=0x%x\n", host->host_no, (int) dstat); |
host | 5147 | drivers/scsi/53c7,8xx.c | " ", host->host_no); |
host | 5148 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, KERN_ALERT "s ", 1); |
host | 5149 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5161 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "s ", 0); |
host | 5171 | drivers/scsi/53c7,8xx.c | " ", host->host_no); |
host | 5172 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, KERN_ALERT "", 1); |
host | 5174 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5206 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5238 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5242 | drivers/scsi/53c7,8xx.c | printk(KERN_ALERT "scsi%d : illegal instruction\n", host->host_no); |
host | 5243 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 5246 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5255 | drivers/scsi/53c7,8xx.c | intr_bf (host, cmd); |
host | 5269 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSTAT_SIR\n", host->host_no); |
host | 5270 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
host | 5275 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 5278 | drivers/scsi/53c7,8xx.c | printk(KERN_ALERT "scsi%d : failure at ", host->host_no); |
host | 5279 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, KERN_ALERT "", 1); |
host | 5281 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5284 | drivers/scsi/53c7,8xx.c | intr_break (host, cmd); |
host | 5287 | drivers/scsi/53c7,8xx.c | printk(KERN_ALERT "scsi%d : failure at ", host->host_no); |
host | 5288 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, KERN_ALERT "", 1); |
host | 5291 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5297 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5298 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5326 | drivers/scsi/53c7,8xx.c | print_insn (struct Scsi_Host *host, const u32 *insn, |
host | 5377 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
host | 5420 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 5421 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = host ? (struct NCR53c7x0_hostdata *) |
host | 5422 | drivers/scsi/53c7,8xx.c | host->hostdata : NULL; |
host | 5431 | drivers/scsi/53c7,8xx.c | if (!host) { |
host | 5436 | drivers/scsi/53c7,8xx.c | printk ("Bogus SCSI host %d; no hostdata\n", host->host_no); |
host | 5439 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5457 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : dropped interrupt for command %ld\n", host->host_no, |
host | 5459 | drivers/scsi/53c7,8xx.c | NCR53c7x0_intr (host->irq, NULL); |
host | 5467 | drivers/scsi/53c7,8xx.c | panic ("scsi%d : bloody fetus %d\n", host->host_no, cmd->pid); |
host | 5498 | drivers/scsi/53c7,8xx.c | host->host_no, me->pid); |
host | 5523 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid); |
host | 5528 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
host | 5548 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : did this command ever run?\n", host->host_no); |
host | 5552 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5603 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 5605 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 5607 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5610 | drivers/scsi/53c7,8xx.c | ncr_halt (host); |
host | 5611 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 5612 | drivers/scsi/53c7,8xx.c | dump_events (host, 30); |
host | 5613 | drivers/scsi/53c7,8xx.c | ncr_scsi_reset (host); |
host | 5614 | drivers/scsi/53c7,8xx.c | for (tmp = nuke_list = return_outstanding_commands (host, 1 /* free */, |
host | 5632 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: lost command %ld\n", host->host_no, cmd->pid); |
host | 5637 | drivers/scsi/53c7,8xx.c | NCR53c7x0_driver_init (host); |
host | 5638 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
host | 5640 | drivers/scsi/53c7,8xx.c | disable(host); |
host | 5674 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) cmd->host->hostdata; |
host | 5704 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, saved, segment->address); |
host | 5742 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup (cmd->host); |
host | 5760 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, where, offset); |
host | 5764 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, where); |
host | 5766 | drivers/scsi/53c7,8xx.c | size = print_insn (cmd->host, |
host | 5768 | drivers/scsi/53c7,8xx.c | print_insn (cmd->host, |
host | 5778 | drivers/scsi/53c7,8xx.c | print_dsa (struct Scsi_Host *host, u32 *dsa, const char *prefix) { |
host | 5780 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 5787 | drivers/scsi/53c7,8xx.c | printk("scsi%d : bad dsa virt 0x%p\n", host->host_no, dsa); |
host | 5793 | drivers/scsi/53c7,8xx.c | host->host_no, virt_to_bus (dsa), dsa, hostdata->dsa_msgout, |
host | 5833 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->target, |
host | 5852 | drivers/scsi/53c7,8xx.c | print_queues (struct Scsi_Host *host) { |
host | 5854 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 5861 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : issue queue\n", host->host_no); |
host | 5863 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, cmd = (Scsi_Cmnd *) hostdata->issue_queue; |
host | 5873 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid); |
host | 5876 | drivers/scsi/53c7,8xx.c | print_dsa (host, ((struct NCR53c7x0_cmd *) cmd->host_scribble) |
host | 5880 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid, cmd->target, cmd->lun); |
host | 5886 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5897 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : schedule dsa array :\n", host->host_no); |
host | 5898 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, current = hostdata->schedule; |
host | 5902 | drivers/scsi/53c7,8xx.c | print_dsa (host, bus_to_virt (current[1] - |
host | 5905 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : end schedule dsa array\n", host->host_no); |
host | 5907 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : reconnect_dsa_head :\n", host->host_no); |
host | 5909 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, |
host | 5916 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: bad DSA pointer 0x%p", host->host_no, |
host | 5923 | drivers/scsi/53c7,8xx.c | print_dsa (host, dsa, ""); |
host | 5927 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : end reconnect_dsa_head\n", host->host_no); |
host | 5930 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5934 | drivers/scsi/53c7,8xx.c | print_lots (struct Scsi_Host *host) { |
host | 5937 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 5941 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5957 | drivers/scsi/53c7,8xx.c | host->host_no, dbc_dcmd, NCR53c7x0_read32(DNAD_REG), |
host | 5973 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSP 0x%lx (virt 0x%p) ->\n", host->host_no, |
host | 5976 | drivers/scsi/53c7,8xx.c | size = print_insn (host, dsp, "", 1); |
host | 5979 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read8 (SDID_REG_800), |
host | 5981 | drivers/scsi/53c7,8xx.c | print_dsa (host, dsa, ""); |
host | 5985 | drivers/scsi/53c7,8xx.c | print_queues (host); |
host | 5999 | drivers/scsi/53c7,8xx.c | shutdown (struct Scsi_Host *host) { |
host | 6003 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6004 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 6008 | drivers/scsi/53c7,8xx.c | ncr_halt (host); |
host | 6009 | drivers/scsi/53c7,8xx.c | ncr_scsi_reset (host); |
host | 6010 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset(host); |
host | 6012 | drivers/scsi/53c7,8xx.c | disable (host); |
host | 6024 | drivers/scsi/53c7,8xx.c | ncr_scsi_reset (struct Scsi_Host *host) { |
host | 6027 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6030 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 6052 | drivers/scsi/53c7,8xx.c | hard_reset (struct Scsi_Host *host) { |
host | 6054 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6058 | drivers/scsi/53c7,8xx.c | ncr_scsi_reset(host); |
host | 6059 | drivers/scsi/53c7,8xx.c | NCR53c7x0_driver_init (host); |
host | 6061 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
host | 6087 | drivers/scsi/53c7,8xx.c | return_outstanding_commands (struct Scsi_Host *host, int free, int issue) { |
host | 6089 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6097 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : loop detected in running list!\n", host->host_no); |
host | 6114 | drivers/scsi/53c7,8xx.c | i < host->can_queue; ++i, current += 2) { |
host | 6125 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 6153 | drivers/scsi/53c7,8xx.c | disable (struct Scsi_Host *host) { |
host | 6155 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6161 | drivers/scsi/53c7,8xx.c | ncr_halt (host); |
host | 6162 | drivers/scsi/53c7,8xx.c | nuke_list = return_outstanding_commands (host, 1 /* free */, 1 /* issue */); |
host | 6163 | drivers/scsi/53c7,8xx.c | hard_reset (host); |
host | 6166 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : nuking commands\n", host->host_no); |
host | 6172 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : done. \n", host->host_no); |
host | 6174 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 6189 | drivers/scsi/53c7,8xx.c | ncr_halt (struct Scsi_Host *host) { |
host | 6194 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6196 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 6227 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 6228 | drivers/scsi/53c7,8xx.c | disable (host); |
host | 6241 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 6276 | drivers/scsi/53c7,8xx.c | dump_events (struct Scsi_Host *host, int count) { |
host | 6278 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6304 | drivers/scsi/53c7,8xx.c | host->host_no, event_name (event.event), count, |
host | 6340 | drivers/scsi/53c7,8xx.c | NCR53c7x0_release(struct Scsi_Host *host) { |
host | 6342 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 6344 | drivers/scsi/53c7,8xx.c | shutdown (host); |
host | 6345 | drivers/scsi/53c7,8xx.c | if (host->irq != IRQ_NONE) |
host | 6350 | drivers/scsi/53c7,8xx.c | if (tmp->hostt == the_template && tmp->irq == host->irq) |
host | 6353 | drivers/scsi/53c7,8xx.c | free_irq(host->irq); |
host | 6355 | drivers/scsi/53c7,8xx.c | if (host->dma_channel != DMA_NONE) |
host | 6356 | drivers/scsi/53c7,8xx.c | free_dma(host->dma_channel); |
host | 6357 | drivers/scsi/53c7,8xx.c | if (host->io_port) |
host | 6358 | drivers/scsi/53c7,8xx.c | release_region(host->io_port, host->n_io_port); |
host | 6373 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->num_cmds); |
host | 1248 | drivers/scsi/53c7,8xx.h | void (* init_fixup)(struct Scsi_Host *host); |
host | 1249 | drivers/scsi/53c7,8xx.h | void (* init_save_regs)(struct Scsi_Host *host); |
host | 1251 | drivers/scsi/53c7,8xx.h | void (* soft_reset)(struct Scsi_Host *host); |
host | 1252 | drivers/scsi/53c7,8xx.h | int (* run_tests)(struct Scsi_Host *host); |
host | 1260 | drivers/scsi/53c7,8xx.h | int (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd); |
host | 1501 | drivers/scsi/53c7,8xx.h | #define NCR53c7x0_local_setup(host) \ |
host | 1502 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_memory = (void *) (host)->base; \ |
host | 1503 | drivers/scsi/53c7,8xx.h | NCR53c7x0_address_io = (unsigned int) (host)->io_port; \ |
host | 1505 | drivers/scsi/53c7,8xx.h | host->hostdata)-> options & OPTION_MEMORY_MAPPED |
host | 1544 | drivers/scsi/53c7,8xx.h | host->host_no, #symbol, i, A_##symbol##_used[i] - \ |
host | 1581 | drivers/scsi/53c7,8xx.h | #define FATAL(host) shutdown((host)); |
host | 814 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
host | 2099 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
host | 2202 | drivers/scsi/AM53C974.c | struct Scsi_Host *instance = cmd->host; |
host | 2027 | drivers/scsi/BusLogic.c | (BusLogic_HostAdapter_T *) Command->host->hostdata; |
host | 2194 | drivers/scsi/BusLogic.c | (BusLogic_HostAdapter_T *) Command->host->hostdata; |
host | 2430 | drivers/scsi/BusLogic.c | (BusLogic_HostAdapter_T *) Command->host->hostdata; |
host | 2435 | drivers/scsi/BusLogic.c | if (Command->host->suggest_bus_reset) |
host | 2477 | drivers/scsi/BusLogic.c | (BusLogic_HostAdapter_T *) Disk->device->host->hostdata; |
host | 299 | drivers/scsi/NCR5380.c | static int do_abort (struct Scsi_Host *host); |
host | 300 | drivers/scsi/NCR5380.c | static void do_reset (struct Scsi_Host *host); |
host | 909 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
host | 1202 | drivers/scsi/NCR5380.c | host->host_no, __LINE__); |
host | 1713 | drivers/scsi/NCR5380.c | static void do_reset (struct Scsi_Host *host) { |
host | 1715 | drivers/scsi/NCR5380.c | NCR5380_setup(host); |
host | 1735 | drivers/scsi/NCR5380.c | static int do_abort (struct Scsi_Host *host) { |
host | 1739 | drivers/scsi/NCR5380.c | NCR5380_setup(host); |
host | 1770 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (host, &phase, &len, &msgptr); |
host | 2825 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
host | 3020 | drivers/scsi/NCR5380.c | NCR5380_setup(cmd->host); |
host | 3022 | drivers/scsi/NCR5380.c | NCR5380_print_status (cmd->host); |
host | 3023 | drivers/scsi/NCR5380.c | do_reset (cmd->host); |
host | 2128 | drivers/scsi/advansys.c | #define ASC_BOARD(host) ((struct asc_board *) &(host)->hostdata) |
host | 2666 | drivers/scsi/advansys.c | if (scd->host == shp) { |
host | 3228 | drivers/scsi/advansys.c | shp = scp->host; |
host | 3303 | drivers/scsi/advansys.c | if (scp->host == NULL) { |
host | 3306 | drivers/scsi/advansys.c | } else if (asc_rmqueue(scp->host, scp, scp->target) == ASC_TRUE) { |
host | 3309 | drivers/scsi/advansys.c | (void) AscResetDevice(&ASC_BOARD(scp->host)->board, scp->target); |
host | 3313 | drivers/scsi/advansys.c | boardp = &ASC_BOARD(scp->host)->board; |
host | 3358 | drivers/scsi/advansys.c | if (scp->host == NULL) { |
host | 3364 | drivers/scsi/advansys.c | while ((tscp = asc_dequeue(scp->host, i)) != NULL) { |
host | 3371 | drivers/scsi/advansys.c | boardp = &ASC_BOARD(scp->host)->board; |
host | 3410 | drivers/scsi/advansys.c | if ((ASC_BOARD(dp->device->host)->board.dvc_cntl & ASC_CNTL_BIOS_GT_1GB) && |
host | 3658 | drivers/scsi/advansys.c | boardp = &ASC_BOARD(scp->host)->board; |
host | 3664 | drivers/scsi/advansys.c | if ((ASC_BOARD(scp->host)->init_tidmask & |
host | 3671 | drivers/scsi/advansys.c | ASC_BOARD(scp->host)->init_tidmask |= ASC_TIX_TO_TARGET_ID(scp->target); |
host | 3798 | drivers/scsi/advansys.c | shp = scp->host; |
host | 3966 | drivers/scsi/advansys.c | scsireqq = &ASC_BOARD(scp->host)->scsireqq; |
host | 3968 | drivers/scsi/advansys.c | cap_info = &ASC_BOARD(scp->host)->cap_info; |
host | 3970 | drivers/scsi/advansys.c | inquiry = &ASC_BOARD(scp->host)->inquiry; |
host | 4048 | drivers/scsi/advansys.c | if (boardp->max_dvc_qng[i] < scp->host->cmd_per_lun) { |
host | 4049 | drivers/scsi/advansys.c | scp->host->cmd_per_lun = boardp->max_dvc_qng[i]; |
host | 870 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
host | 967 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
host | 1124 | drivers/scsi/aha152x.c | struct Scsi_Host *shpnt = SCpnt->host; |
host | 2923 | drivers/scsi/aha152x.c | if (scd->host == shpnt) { |
host | 110 | drivers/scsi/aha1542.c | #define HOSTDATA(host) ((struct aha1542_hostdata *) &host->hostdata) |
host | 526 | drivers/scsi/aha1542.c | mb = HOSTDATA(SCpnt->host)->mb; |
host | 527 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
host | 567 | drivers/scsi/aha1542.c | mbo = HOSTDATA(SCpnt->host)->aha1542_last_mbo_used + 1; |
host | 571 | drivers/scsi/aha1542.c | if(mb[mbo].status == 0 && HOSTDATA(SCpnt->host)->SCint[mbo] == NULL) |
host | 575 | drivers/scsi/aha1542.c | } while (mbo != HOSTDATA(SCpnt->host)->aha1542_last_mbo_used); |
host | 577 | drivers/scsi/aha1542.c | if(mb[mbo].status || HOSTDATA(SCpnt->host)->SCint[mbo]) |
host | 580 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[mbo] = SCpnt; /* This will effectively prevent someone else from |
host | 583 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->aha1542_last_mbo_used = mbo; |
host | 665 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); /* start scsi command */ |
host | 1118 | drivers/scsi/aha1542.c | inb(STATUS(SCpnt->host->io_port)), |
host | 1119 | drivers/scsi/aha1542.c | inb(INTRFLAGS(SCpnt->host->io_port))); |
host | 1123 | drivers/scsi/aha1542.c | mb = HOSTDATA(SCpnt->host)->mb; |
host | 1124 | drivers/scsi/aha1542.c | mbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1; |
host | 1131 | drivers/scsi/aha1542.c | } while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used); |
host | 1136 | drivers/scsi/aha1542.c | SCpnt->host->irq); |
host | 1137 | drivers/scsi/aha1542.c | aha1542_intr_handle(SCpnt->host->irq, NULL); |
host | 1145 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i]) |
host | 1147 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) { |
host | 1150 | drivers/scsi/aha1542.c | if (HOSTDATA(SCpnt->host)->mb[i].status) { |
host | 1152 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); |
host | 1166 | drivers/scsi/aha1542.c | if (SCpnt == HOSTDATA(SCpnt->host)->SCint[mbo]){ |
host | 1168 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); /* start scsi command */ |
host | 1190 | drivers/scsi/aha1542.c | if( SCpnt->host->suggest_bus_reset ) |
host | 1198 | drivers/scsi/aha1542.c | outb(HRST | SCRST, CONTROL(SCpnt->host->io_port)); |
host | 1207 | drivers/scsi/aha1542.c | WAIT(STATUS(SCpnt->host->io_port), |
host | 1214 | drivers/scsi/aha1542.c | setup_mailboxes(SCpnt->host->io_port, SCpnt->host); |
host | 1222 | drivers/scsi/aha1542.c | printk("Sent BUS RESET to scsi host %d\n", SCpnt->host->host_no); |
host | 1225 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] != NULL) |
host | 1228 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
host | 1234 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
host | 1235 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
host | 1255 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) |
host | 1257 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
host | 1259 | drivers/scsi/aha1542.c | aha1542_out(SCpnt->host->io_port, &ahacmd, 1); |
host | 1271 | drivers/scsi/aha1542.c | if(HOSTDATA(SCpnt->host)->SCint[i] && |
host | 1272 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target) |
host | 1275 | drivers/scsi/aha1542.c | SCtmp = HOSTDATA(SCpnt->host)->SCint[i]; |
host | 1281 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->SCint[i] = NULL; |
host | 1282 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->mb[i].status = 0; |
host | 1300 | drivers/scsi/aha1542.c | translation_algorithm = HOSTDATA(disk->device->host)->bios_translation; |
host | 3547 | drivers/scsi/aic7xxx.c | struct Scsi_Host *host; |
host | 3854 | drivers/scsi/aic7xxx.c | host = scsi_register(template, sizeof(struct aic7xxx_host)); |
host | 3855 | drivers/scsi/aic7xxx.c | host->can_queue = config->maxscb; |
host | 3856 | drivers/scsi/aic7xxx.c | host->cmd_per_lun = AIC7XXX_CMDS_PER_LUN; |
host | 3857 | drivers/scsi/aic7xxx.c | host->this_id = config->scsi_id; |
host | 3858 | drivers/scsi/aic7xxx.c | host->irq = config->irq; |
host | 3861 | drivers/scsi/aic7xxx.c | host->max_id = 16; |
host | 3865 | drivers/scsi/aic7xxx.c | host->max_channel = 1; |
host | 3868 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) host->hostdata; |
host | 3909 | drivers/scsi/aic7xxx.c | aic7xxx_boards[config->irq] = host; |
host | 3929 | drivers/scsi/aic7xxx.c | aic7xxx_boards[config->irq] = host; |
host | 4557 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
host | 4881 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
host | 5011 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) disk->device->host->hostdata; |
host | 567 | drivers/scsi/constants.c | cmd->host->host_no, |
host | 619 | drivers/scsi/eata.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
host | 721 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 782 | drivers/scsi/eata.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 187 | drivers/scsi/eata_dma.c | base = (uint) cmd->host->base; |
host | 361 | drivers/scsi/eata_dma.c | sh = cmd->host; |
host | 542 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) { |
host | 599 | drivers/scsi/eata_dma.c | while (inb((u32)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
host | 614 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
host | 638 | drivers/scsi/eata_dma.c | inb((u32) (cmd->host->base) + HA_RSTATUS); /* This might cause trouble */ |
host | 639 | drivers/scsi/eata_dma.c | eata_send_command(0, (u32) cmd->host->base, EATA_CMD_RESET); |
host | 657 | drivers/scsi/eata_dma.c | for (x = 0; x < cmd->host->can_queue; x++) { |
host | 159 | drivers/scsi/eata_dma_proc.c | SDev.host = HBA_ptr; |
host | 177 | drivers/scsi/eata_dma_proc.c | scmd.host = HBA_ptr; |
host | 445 | drivers/scsi/eata_dma_proc.c | if (scd->host == HBA_ptr) { |
host | 92 | drivers/scsi/eata_generic.h | #define HD(cmd) ((hostdata *)&(cmd->host->hostdata)) |
host | 94 | drivers/scsi/eata_generic.h | #define SD(host) ((hostdata *)&(host->hostdata)) |
host | 155 | drivers/scsi/eata_pio.c | base = (uint) cmd->host->base; |
host | 295 | drivers/scsi/eata_pio.c | sh = cmd->host; |
host | 416 | drivers/scsi/eata_pio.c | while (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY) |
host | 477 | drivers/scsi/eata_pio.c | for (x = 0; x < cmd->host->can_queue; x++) { |
host | 493 | drivers/scsi/eata_pio.c | outb((uint) cmd->host->base+HA_WCOMMAND, EATA_CMD_RESET); |
host | 504 | 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 | 1726 | drivers/scsi/fdomain.c | if (!SCpnt || !SCpnt->host) { |
host | 1730 | drivers/scsi/fdomain.c | printk( "%s\n", fdomain_16x0_info( SCpnt->host ) ); |
host | 1731 | drivers/scsi/fdomain.c | print_banner( SCpnt->host ); |
host | 536 | drivers/scsi/qlogic.c | int qlogic_detect(Scsi_Host_Template * host) |
host | 543 | drivers/scsi/qlogic.c | host->proc_dir = &proc_scsi_qlogic; |
host | 569 | drivers/scsi/qlogic.c | qinitid = host->this_id; |
host | 613 | drivers/scsi/qlogic.c | host->can_queue = 1; |
host | 616 | drivers/scsi/qlogic.c | hreg = scsi_register( host , 0 ); /* no host data */ |
host | 625 | drivers/scsi/qlogic.c | host->name = qinfo; |
host | 668 | drivers/scsi/qlogic.c | const char *qlogic_info(struct Scsi_Host * host) |
host | 357 | drivers/scsi/scsi.c | printk ("scan_scsis_done(%p, %06x)\n", SCpnt->host, SCpnt->result); |
host | 519 | drivers/scsi/scsi.c | SDpnt->host = shpnt; |
host | 539 | drivers/scsi/scsi.c | SCpnt->host = SDpnt->host; |
host | 809 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->pid); |
host | 818 | drivers/scsi/scsi.c | printk("Unable to reset scsi host %d - ", SCpnt->host->host_no); |
host | 851 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 859 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 894 | drivers/scsi/scsi.c | if (SCSI_BLOCK(device->host)) return NULL; |
host | 898 | drivers/scsi/scsi.c | tablesize = device->host->sg_tablesize; |
host | 968 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 985 | drivers/scsi/scsi.c | host = device->host; |
host | 987 | drivers/scsi/scsi.c | if (intr_count && SCSI_BLOCK(host)) return NULL; |
host | 990 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 1048 | drivers/scsi/scsi.c | tablesize = device->host->sg_tablesize; |
host | 1114 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 1120 | drivers/scsi/scsi.c | host = SCpnt->host; |
host | 1128 | drivers/scsi/scsi.c | temp = host->last_reset + MIN_RESET_DELAY; |
host | 1141 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel, SCpnt->target, SCpnt->cmnd, |
host | 1145 | drivers/scsi/scsi.c | if (host->can_queue) |
host | 1149 | drivers/scsi/scsi.c | host->hostt->queuecommand); |
host | 1160 | drivers/scsi/scsi.c | if(!intr_count && SCpnt->host->irq) |
host | 1161 | drivers/scsi/scsi.c | disable_irq(SCpnt->host->irq); |
host | 1163 | drivers/scsi/scsi.c | host->hostt->queuecommand (SCpnt, scsi_done); |
host | 1165 | drivers/scsi/scsi.c | if(!intr_count && SCpnt->host->irq) |
host | 1166 | drivers/scsi/scsi.c | enable_irq(SCpnt->host->irq); |
host | 1172 | drivers/scsi/scsi.c | printk("command() : routine at %p\n", host->hostt->command); |
host | 1174 | drivers/scsi/scsi.c | temp=host->hostt->command (SCpnt); |
host | 1180 | drivers/scsi/scsi.c | host->host_no, temp, host->hostt->command); |
host | 1227 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1236 | drivers/scsi/scsi.c | "command : " , host->host_no, SCpnt->channel, target, buffer, |
host | 1244 | drivers/scsi/scsi.c | if (!host) |
host | 1262 | drivers/scsi/scsi.c | while (SCSI_BLOCK(host)) { |
host | 1264 | drivers/scsi/scsi.c | SCSI_SLEEP(&host->host_wait, SCSI_BLOCK(host)); |
host | 1268 | drivers/scsi/scsi.c | if (host->block) host_active = host; |
host | 1270 | drivers/scsi/scsi.c | host->host_busy++; |
host | 1282 | drivers/scsi/scsi.c | SCpnt->host = host; |
host | 1334 | drivers/scsi/scsi.c | printk("scsi%d, channel%d : ", SCpnt->host->host_no, SCpnt->channel); |
host | 1408 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1431 | drivers/scsi/scsi.c | printk("In scsi_done(host = %d, result = %06x)\n", host->host_no, result); |
host | 1453 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel, SCpnt->target, |
host | 1555 | drivers/scsi/scsi.c | " reset.\n", SCpnt->host->host_no, SCpnt->channel); |
host | 1673 | drivers/scsi/scsi.c | && !(jiffies < SCpnt->host->last_reset + MIN_RESET_PERIOD) |
host | 1677 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel); |
host | 1714 | drivers/scsi/scsi.c | host->host_busy--; /* Indicate that we are free */ |
host | 1716 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
host | 1724 | drivers/scsi/scsi.c | for (next = host->block; next != host; next = next->block) |
host | 1730 | drivers/scsi/scsi.c | wake_up(&host->host_wait); |
host | 1763 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1800 | drivers/scsi/scsi.c | if (!host->host_busy) { |
host | 1807 | drivers/scsi/scsi.c | SCpnt->pid, SCpnt->host->host_no, (int) SCpnt->channel, |
host | 1813 | drivers/scsi/scsi.c | switch(host->hostt->abort(SCpnt)) { |
host | 1892 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1895 | drivers/scsi/scsi.c | host->host_no); |
host | 1904 | drivers/scsi/scsi.c | SCpnt->host->suggest_bus_reset = FALSE; |
host | 1914 | drivers/scsi/scsi.c | SCpnt1 = host->host_queue; |
host | 1922 | drivers/scsi/scsi.c | SCpnt->host->suggest_bus_reset = TRUE; |
host | 1932 | drivers/scsi/scsi.c | SCpnt->host->suggest_bus_reset = TRUE; |
host | 1949 | drivers/scsi/scsi.c | if (host->host_busy) |
host | 1952 | drivers/scsi/scsi.c | SCpnt1 = host->host_queue; |
host | 1965 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1966 | drivers/scsi/scsi.c | temp = host->hostt->reset(SCpnt); |
host | 1967 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1971 | drivers/scsi/scsi.c | if (!host->block) host->host_busy++; |
host | 1973 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1975 | drivers/scsi/scsi.c | temp = host->hostt->reset(SCpnt); |
host | 1976 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1977 | drivers/scsi/scsi.c | if (!host->block) host->host_busy--; |
host | 1996 | drivers/scsi/scsi.c | scsi_mark_host_bus_reset(host); |
host | 2006 | drivers/scsi/scsi.c | scsi_mark_host_bus_reset(host); |
host | 2015 | drivers/scsi/scsi.c | scsi_mark_host_bus_reset(host); |
host | 2026 | drivers/scsi/scsi.c | SCpnt1 = host->host_queue; |
host | 2066 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 2080 | drivers/scsi/scsi.c | for(host = scsi_hostlist; host; host = host->next) { |
host | 2081 | drivers/scsi/scsi.c | for(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2110 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 2137 | drivers/scsi/scsi.c | for(host = scsi_hostlist; host; host = host->next) |
host | 2138 | drivers/scsi/scsi.c | for(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2285 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 2287 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->cmd_per_lun;j++){ |
host | 2289 | drivers/scsi/scsi.c | SCpnt->host = SDpnt->host; |
host | 2302 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2303 | drivers/scsi/scsi.c | if(host->host_queue) |
host | 2304 | drivers/scsi/scsi.c | host->host_queue->prev = SCpnt; |
host | 2305 | drivers/scsi/scsi.c | SCpnt->next = host->host_queue; |
host | 2307 | drivers/scsi/scsi.c | host->host_queue = SCpnt; |
host | 2461 | drivers/scsi/scsi.c | if (scd->host == HBA_ptr) { |
host | 2510 | drivers/scsi/scsi.c | while(scd && (scd->host->host_no != parameter[0] |
host | 2540 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 2584 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2587 | drivers/scsi/scsi.c | new_dma_sectors += ((host->sg_tablesize * |
host | 2589 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2591 | drivers/scsi/scsi.c | if(host->unchecked_isa_dma && |
host | 2594 | drivers/scsi/scsi.c | new_dma_sectors += (PAGE_SIZE >> 9) * host->sg_tablesize * |
host | 2595 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2726 | drivers/scsi/scsi.c | if(SDpnt->host->hostt == tpnt) |
host | 2774 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt && sdpnt->host->hostt->usage_count |
host | 2775 | drivers/scsi/scsi.c | && *sdpnt->host->hostt->usage_count) return; |
host | 2799 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt) |
host | 2813 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt) |
host | 2814 | drivers/scsi/scsi.c | while (sdpnt->host->host_queue) { |
host | 2815 | drivers/scsi/scsi.c | SCpnt = sdpnt->host->host_queue->next; |
host | 2816 | drivers/scsi/scsi.c | scsi_init_free((char *) sdpnt->host->host_queue, sizeof(Scsi_Cmnd)); |
host | 2817 | drivers/scsi/scsi.c | sdpnt->host->host_queue = SCpnt; |
host | 2828 | drivers/scsi/scsi.c | if (sdpnt->host->hostt == tpnt) { |
host | 2985 | drivers/scsi/scsi.c | for(SCpnt = SDpnt->host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2993 | drivers/scsi/scsi.c | if(SCpnt == SDpnt->host->host_queue) |
host | 2994 | drivers/scsi/scsi.c | SDpnt->host->host_queue = SCpnt->next; |
host | 3082 | drivers/scsi/scsi.c | i++, SCpnt->host->host_no, |
host | 163 | drivers/scsi/scsi.h | struct Scsi_Host * host; |
host | 345 | drivers/scsi/scsi.h | struct Scsi_Host * host; |
host | 497 | drivers/scsi/scsi.h | if (SCpnt->host->block) { |
host | 500 | drivers/scsi/scsi.h | for (next = SCpnt->host->block; next != SCpnt->host; |
host | 603 | drivers/scsi/scsi_debug.c | printk("Bus unlocked by reset(%d)\n", SCpnt->host->suggest_bus_reset); |
host | 37 | drivers/scsi/scsi_ioctl.c | static int ioctl_probe(struct Scsi_Host * host, void *buffer) |
host | 43 | drivers/scsi/scsi_ioctl.c | if ((temp = host->hostt->present) && buffer) { |
host | 48 | drivers/scsi/scsi_ioctl.c | if(host->hostt->info) |
host | 49 | drivers/scsi/scsi_ioctl.c | string = host->hostt->info(host); |
host | 51 | drivers/scsi/scsi_ioctl.c | string = host->hostt->name; |
host | 139 | drivers/scsi/scsi_ioctl.c | dev->host->host_no, |
host | 316 | drivers/scsi/scsi_ioctl.c | + ((dev->host->hostt->proc_dir->low_ino & 0xff) << 24), |
host | 318 | drivers/scsi/scsi_ioctl.c | put_user( dev->host->unique_id, (unsigned long *) arg+1); |
host | 333 | drivers/scsi/scsi_ioctl.c | return ioctl_probe(dev->host, arg); |
host | 263 | drivers/scsi/scsi_proc.c | scd->host->host_no, scd->channel, scd->id, scd->lun); |
host | 62 | drivers/scsi/sd.c | #define CLUSTERABLE_DEVICE(SC) (SC->host->use_clustering && \ |
host | 141 | drivers/scsi/sd.c | if (rscsi_disks[target].device->host->hostt->usage_count) |
host | 142 | drivers/scsi/sd.c | (*rscsi_disks[target].device->host->hostt->usage_count)++; |
host | 155 | drivers/scsi/sd.c | if (rscsi_disks[target].device->host->hostt->usage_count) |
host | 156 | drivers/scsi/sd.c | (*rscsi_disks[target].device->host->hostt->usage_count)--; |
host | 223 | drivers/scsi/sd.c | SCpnt->host->host_no, result); |
host | 387 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->host->host_no, |
host | 609 | drivers/scsi/sd.c | && SCpnt->host->unchecked_isa_dma) { |
host | 631 | drivers/scsi/sd.c | } else if (SCpnt->host->sg_tablesize == 0 || |
host | 641 | drivers/scsi/sd.c | if (SCpnt->host->sg_tablesize != 0 && |
host | 666 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma && |
host | 668 | drivers/scsi/sd.c | if (count < SCpnt->host->sg_tablesize) count++; |
host | 676 | drivers/scsi/sd.c | if(SCpnt->host->unchecked_isa_dma && |
host | 685 | drivers/scsi/sd.c | if(SCpnt->host->sg_tablesize < max_sg) |
host | 686 | drivers/scsi/sd.c | max_sg = SCpnt->host->sg_tablesize; |
host | 710 | drivers/scsi/sd.c | ISA_DMA_THRESHOLD && (SCpnt->host->unchecked_isa_dma) && |
host | 759 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma) && |
host | 789 | drivers/scsi/sd.c | > SCpnt->host->sg_tablesize){ |
host | 820 | drivers/scsi/sd.c | (SCpnt->host->unchecked_isa_dma)) { |
host | 1322 | drivers/scsi/sd.c | if(rscsi_disks[0].device && rscsi_disks[0].device->host->sg_tablesize) |
host | 1335 | drivers/scsi/sd.c | SDp->host->host_no, SDp->channel, SDp->id, SDp->lun); |
host | 26 | drivers/scsi/sd_ioctl.c | struct Scsi_Host * host; |
host | 36 | drivers/scsi/sd_ioctl.c | host = rscsi_disks[MINOR(dev) >> 4].device->host; |
host | 40 | drivers/scsi/sd_ioctl.c | if(host->hostt->bios_param != NULL) |
host | 41 | drivers/scsi/sd_ioctl.c | host->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4], |
host | 143 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
host | 144 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)++; |
host | 154 | drivers/scsi/sg.c | if (scsi_generics[dev].device->host->hostt->usage_count) |
host | 155 | drivers/scsi/sg.c | (*scsi_generics[dev].device->host->hostt->usage_count)--; |
host | 511 | drivers/scsi/sg.c | SDp->host->host_no, SDp->channel, SDp->id, SDp->lun); |
host | 77 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
host | 78 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--; |
host | 280 | drivers/scsi/sr.c | scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->host->host_no, |
host | 531 | drivers/scsi/sr.c | if (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count) |
host | 532 | drivers/scsi/sr.c | (*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++; |
host | 718 | drivers/scsi/sr.c | if (SCpnt->host->sg_tablesize > 0 && |
host | 732 | drivers/scsi/sr.c | while(bh && count < SCpnt->host->sg_tablesize) { |
host | 741 | drivers/scsi/sr.c | if (count < SCpnt->host->sg_tablesize) { |
host | 786 | drivers/scsi/sr.c | SCpnt->host->unchecked_isa_dma) { |
host | 850 | drivers/scsi/sr.c | SCpnt->host->unchecked_isa_dma) |
host | 932 | drivers/scsi/sr.c | SDp->host->host_no, SDp->channel, SDp->id, SDp->lun); |
host | 1104 | drivers/scsi/sr.c | if(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize) |
host | 69 | drivers/scsi/sr_ioctl.c | scsi_CDs[target].device->host->host_no, |
host | 541 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
host | 542 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)++; |
host | 649 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
host | 650 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)++; |
host | 734 | drivers/scsi/st.c | if (scsi_tapes[dev].device->host->hostt->usage_count) |
host | 735 | drivers/scsi/st.c | (*scsi_tapes[dev].device->host->hostt->usage_count)--; |
host | 2148 | drivers/scsi/st.c | SDp->host->host_no, SDp->channel, SDp->id, SDp->lun); |
host | 573 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCpnt->host->hostdata)->board_number; |
host | 664 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 725 | drivers/scsi/u14-34f.c | j = ((struct hostdata *) SCarg->host->hostdata)->board_number; |
host | 353 | drivers/scsi/wd7000.c | Adapter *host; /* host adapter */ |
host | 540 | drivers/scsi/wd7000.c | static inline void wd7000_enable_intr(Adapter *host) |
host | 542 | drivers/scsi/wd7000.c | host->control |= INT_EN; |
host | 543 | drivers/scsi/wd7000.c | outb(host->control, host->iobase+ASC_CONTROL); |
host | 547 | drivers/scsi/wd7000.c | static inline void wd7000_enable_dma(Adapter *host) |
host | 549 | drivers/scsi/wd7000.c | host->control |= DMA_EN; |
host | 550 | drivers/scsi/wd7000.c | outb(host->control,host->iobase+ASC_CONTROL); |
host | 551 | drivers/scsi/wd7000.c | set_dma_mode(host->dma, DMA_MODE_CASCADE); |
host | 552 | drivers/scsi/wd7000.c | enable_dma(host->dma); |
host | 578 | drivers/scsi/wd7000.c | static inline int command_out(Adapter *host, unchar *cmd, int len) |
host | 580 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT,ASC_STATMASK,CMD_RDY,0); |
host | 583 | drivers/scsi/wd7000.c | outb(*cmd, host->iobase+ASC_COMMAND); |
host | 584 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0); |
host | 585 | drivers/scsi/wd7000.c | } while (inb(host->iobase+ASC_STAT) & CMD_REJ); |
host | 691 | drivers/scsi/wd7000.c | static int mail_out( Adapter *host, Scb *scbptr ) |
host | 699 | drivers/scsi/wd7000.c | Mailbox *ogmbs = host->mb.ogmb; |
host | 700 | drivers/scsi/wd7000.c | int *next_ogmb = &(host->next_ogmb); |
host | 740 | drivers/scsi/wd7000.c | wd7000_enable_intr(host); |
host | 743 | drivers/scsi/wd7000.c | command_out( host, &start_ogmb, 1 ); |
host | 809 | drivers/scsi/wd7000.c | #define wd7000_intr_ack(host) outb(0,host->iobase+ASC_INTR_ACK) |
host | 818 | drivers/scsi/wd7000.c | Adapter *host = irq2host[irq]; /* This MUST be set!!! */ |
host | 819 | drivers/scsi/wd7000.c | Mailbox *icmbs = host->mb.icmb; |
host | 822 | drivers/scsi/wd7000.c | printk("wd7000_intr_handle: irq = %d, host = %06x\n", irq, host); |
host | 825 | drivers/scsi/wd7000.c | flag = inb(host->iobase+ASC_INTR_STAT); |
host | 830 | drivers/scsi/wd7000.c | if (!(inb(host->iobase+ASC_STAT) & INT_IM)) { |
host | 842 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 857 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 868 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 893 | drivers/scsi/wd7000.c | wd7000_intr_ack(host); |
host | 905 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |
host | 918 | drivers/scsi/wd7000.c | scb->host = host; |
host | 924 | drivers/scsi/wd7000.c | if (SCpnt->host->sg_tablesize == SG_NONE) { |
host | 945 | drivers/scsi/wd7000.c | while (!mail_out(host, scb)) /* keep trying */; |
host | 961 | drivers/scsi/wd7000.c | int wd7000_diagnostics( Adapter *host, int code ) |
host | 976 | drivers/scsi/wd7000.c | mail_out(host, (struct scb *) &icb); |
host | 995 | drivers/scsi/wd7000.c | int wd7000_init( Adapter *host ) |
host | 1006 | drivers/scsi/wd7000.c | outb(ASC_RES, host->iobase+ASC_CONTROL); |
host | 1008 | drivers/scsi/wd7000.c | outb(0,host->iobase+ASC_CONTROL); |
host | 1009 | drivers/scsi/wd7000.c | host->control = 0; /* this must always shadow ASC_CONTROL */ |
host | 1010 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0); |
host | 1012 | drivers/scsi/wd7000.c | if ((diag = inb(host->iobase+ASC_INTR_STAT)) != 1) { |
host | 1041 | drivers/scsi/wd7000.c | memset(&(host->mb), 0, sizeof(host->mb)); |
host | 1044 | drivers/scsi/wd7000.c | any2scsi((unchar *) &(init_cmd.mailboxes), (int) &(host->mb)); |
host | 1045 | drivers/scsi/wd7000.c | if (!command_out(host, (unchar *) &init_cmd, sizeof(init_cmd))) { |
host | 1049 | drivers/scsi/wd7000.c | WAIT(host->iobase+ASC_STAT, ASC_STATMASK, ASC_INIT, 0); |
host | 1051 | drivers/scsi/wd7000.c | if (request_irq(host->irq, wd7000_intr_handle, SA_INTERRUPT, "wd7000")) { |
host | 1052 | drivers/scsi/wd7000.c | printk("wd7000_init: can't get IRQ %d.\n", host->irq); |
host | 1055 | drivers/scsi/wd7000.c | if (request_dma(host->dma,"wd7000")) { |
host | 1056 | drivers/scsi/wd7000.c | printk("wd7000_init: can't get DMA channel %d.\n", host->dma); |
host | 1057 | drivers/scsi/wd7000.c | free_irq(host->irq); |
host | 1060 | drivers/scsi/wd7000.c | wd7000_enable_dma(host); |
host | 1061 | drivers/scsi/wd7000.c | wd7000_enable_intr(host); |
host | 1063 | drivers/scsi/wd7000.c | if (!wd7000_diagnostics(host,ICB_DIAG_FULL)) { |
host | 1064 | drivers/scsi/wd7000.c | free_dma(host->dma); |
host | 1065 | drivers/scsi/wd7000.c | free_irq(host->irq); |
host | 1077 | drivers/scsi/wd7000.c | void wd7000_revision(Adapter *host) |
host | 1088 | drivers/scsi/wd7000.c | mail_out(host, (struct scb *) &icb); |
host | 1091 | drivers/scsi/wd7000.c | host->rev1 = icb.primary; |
host | 1092 | drivers/scsi/wd7000.c | host->rev2 = icb.secondary; |
host | 1111 | drivers/scsi/wd7000.c | Adapter *host = NULL; |
host | 1135 | drivers/scsi/wd7000.c | printk("IO %xh already in use.\n", host->iobase); |
host | 1146 | drivers/scsi/wd7000.c | host = (Adapter *) sh->hostdata; |
host | 1149 | drivers/scsi/wd7000.c | (int)host); |
host | 1151 | drivers/scsi/wd7000.c | memset( host, 0, sizeof(Adapter) ); |
host | 1152 | drivers/scsi/wd7000.c | host->sh = sh; |
host | 1153 | drivers/scsi/wd7000.c | host->irq = cfg->irq; |
host | 1154 | drivers/scsi/wd7000.c | host->iobase = cfg->iobase; |
host | 1155 | drivers/scsi/wd7000.c | host->dma = cfg->dma; |
host | 1156 | drivers/scsi/wd7000.c | irq2host[host->irq] = host; |
host | 1158 | drivers/scsi/wd7000.c | if (!wd7000_init(host)) { /* Initialization failed */ |
host | 1166 | drivers/scsi/wd7000.c | wd7000_revision(host); /* important for scatter/gather */ |
host | 1169 | drivers/scsi/wd7000.c | host->rev1, host->rev2); |
host | 1171 | drivers/scsi/wd7000.c | host->iobase, host->irq, host->dma); |
host | 1173 | drivers/scsi/wd7000.c | request_region(host->iobase, 4,"wd7000"); /* Register our ports */ |
host | 1177 | drivers/scsi/wd7000.c | if (host->rev1 < 6) sh->sg_tablesize = SG_NONE; |
host | 1196 | drivers/scsi/wd7000.c | Adapter *host = (Adapter *) SCpnt->host->hostdata; |
host | 1198 | drivers/scsi/wd7000.c | if (inb(host->iobase+ASC_STAT) & INT_IM) { |
host | 1200 | drivers/scsi/wd7000.c | wd7000_intr_handle(host->irq, NULL); |