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 | if (host->this_id == 0) |
host | 950 | drivers/scsi/53c7,8xx.c | host->this_id = 7; /* sanitize hostid---0 doesn't make sense */ |
host | 951 | drivers/scsi/53c7,8xx.c | hostdata->this_id_mask = 1 << host->this_id; |
host | 959 | drivers/scsi/53c7,8xx.c | if (!host->this_id) { |
host | 961 | drivers/scsi/53c7,8xx.c | host->host_no, host->this_id); |
host | 962 | drivers/scsi/53c7,8xx.c | host->this_id = 7; |
host | 967 | drivers/scsi/53c7,8xx.c | if (expected_id == -1 || host->this_id != expected_id) |
host | 968 | drivers/scsi/53c7,8xx.c | printk("scsi%d : using initiator ID %d\n", host->host_no, |
host | 969 | drivers/scsi/53c7,8xx.c | host->this_id); |
host | 1018 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst mode disabled\n", host->host_no); |
host | 1027 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : burst length %d\n", host->host_no, i); |
host | 1044 | drivers/scsi/53c7,8xx.c | host->host_no, expected_ccf, ccf); |
host | 1062 | drivers/scsi/53c7,8xx.c | host->host_no, ccf); |
host | 1068 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : using %dMHz SCSI clock\n", host->host_no, |
host | 1075 | drivers/scsi/53c7,8xx.c | hostdata->init_save_regs (host); |
host | 1077 | drivers/scsi/53c7,8xx.c | hostdata->init_fixup (host); |
host | 1080 | drivers/scsi/53c7,8xx.c | the_template = host->hostt; |
host | 1081 | drivers/scsi/53c7,8xx.c | first_host = host; |
host | 1094 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
host | 1106 | drivers/scsi/53c7,8xx.c | NCR53c7x0_driver_init (host); |
host | 1114 | drivers/scsi/53c7,8xx.c | search->irq == host->irq && search != host); search=search->next); |
host | 1117 | drivers/scsi/53c7,8xx.c | if (request_irq(host->irq, NCR53c7x0_intr, SA_INTERRUPT, "53c7,8xx")) { |
host | 1123 | drivers/scsi/53c7,8xx.c | host->host_no, host->irq); |
host | 1124 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 1129 | drivers/scsi/53c7,8xx.c | host->host_no, search->host_no); |
host | 1133 | drivers/scsi/53c7,8xx.c | if ((hostdata->run_tests && hostdata->run_tests(host) == -1) || |
host | 1136 | drivers/scsi/53c7,8xx.c | scsi_unregister (host); |
host | 1139 | drivers/scsi/53c7,8xx.c | if (host->io_port) { |
host | 1140 | drivers/scsi/53c7,8xx.c | host->n_io_port = 128; |
host | 1141 | drivers/scsi/53c7,8xx.c | request_region (host->io_port, host->n_io_port, "ncr53c7,8xx"); |
host | 1146 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : bus wedge, doing SCSI reset\n", host->host_no); |
host | 1147 | drivers/scsi/53c7,8xx.c | hard_reset (host); |
host | 1592 | drivers/scsi/53c7,8xx.c | NCR53c8x0_init_fixup (struct Scsi_Host *host) { |
host | 1595 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1599 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1656 | drivers/scsi/53c7,8xx.c | base = (u32) host->io_port; |
host | 1660 | drivers/scsi/53c7,8xx.c | base = virt_to_bus(host->base); |
host | 1785 | drivers/scsi/53c7,8xx.c | host->host_no, A_dsa_fields_start, Ent_dsa_code_template_end - |
host | 1788 | drivers/scsi/53c7,8xx.c | printk("scsi%d : NCR code relocated to 0x%lx (virt 0x%p)\n", host->host_no, |
host | 1808 | drivers/scsi/53c7,8xx.c | NCR53c8xx_run_tests (struct Scsi_Host *host) { |
host | 1811 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 1816 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 1823 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : chip not idle, aborting tests\n", host->host_no); |
host | 1842 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 1", host->host_no); |
host | 1860 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : driver test 1 timed out%s\n",host->host_no , |
host | 1872 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->test_completed); |
host | 1880 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->test_dest); |
host | 1885 | drivers/scsi/53c7,8xx.c | host->host_no, bus_to_virt(NCR53c7x0_read32(DSP_REG)), |
host | 1887 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSPS = 0x%x\n", host->host_no, |
host | 1922 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : chip not idle, aborting tests\n", host->host_no); |
host | 1946 | drivers/scsi/53c7,8xx.c | host->host_no, i, data + 8); |
host | 1947 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : status ", host->host_no); |
host | 1949 | drivers/scsi/53c7,8xx.c | printk ("\nscsi%d : message ", host->host_no); |
host | 1954 | drivers/scsi/53c7,8xx.c | host->host_no, i); |
host | 1956 | drivers/scsi/53c7,8xx.c | printk("scsi%d : not idle\n", host->host_no); |
host | 1961 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : test 2 timed out\n", host->host_no); |
host | 1986 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = c->host; |
host | 1988 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2082 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = c->host; |
host | 2084 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2092 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: abnormal finished\n", host->host_no); |
host | 2105 | drivers/scsi/53c7,8xx.c | for (found = 0, left = host->can_queue, current = hostdata->schedule; |
host | 2108 | drivers/scsi/53c7,8xx.c | if (issue_to_cmd (host, hostdata, (u32 *) current) == cmd) |
host | 2125 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, |
host | 2136 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2140 | drivers/scsi/53c7,8xx.c | host->host_no, c->pid); |
host | 2155 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, linux_search = hostdata->running_list, |
host | 2163 | drivers/scsi/53c7,8xx.c | host->host_no, c->pid); |
host | 2195 | drivers/scsi/53c7,8xx.c | intr_break (struct Scsi_Host *host, struct |
host | 2204 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2206 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2220 | drivers/scsi/53c7,8xx.c | host->host_no, dsp); |
host | 2277 | drivers/scsi/53c7,8xx.c | set_synchronous (struct Scsi_Host *host, int target, int sxfer, int scntl3, |
host | 2281 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2283 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2333 | drivers/scsi/53c7,8xx.c | host->host_no, target, sxfer, scntl3); |
host | 2355 | drivers/scsi/53c7,8xx.c | asynchronous (struct Scsi_Host *host, int target) { |
host | 2358 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2359 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2360 | drivers/scsi/53c7,8xx.c | set_synchronous (host, target, /* no offset */ 0, hostdata->saved_scntl3, |
host | 2363 | drivers/scsi/53c7,8xx.c | host->host_no, target); |
host | 2406 | drivers/scsi/53c7,8xx.c | synchronous (struct Scsi_Host *host, int target, char *msg) { |
host | 2408 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2425 | drivers/scsi/53c7,8xx.c | host->host_no, divisor / 10, divisor % 10); |
host | 2432 | drivers/scsi/53c7,8xx.c | host->host_no, syncs[i].div / 10, syncs[i].div % 10); |
host | 2437 | drivers/scsi/53c7,8xx.c | printk("scsi%d : selected synchronous period of %dns\n", host->host_no, |
host | 2445 | drivers/scsi/53c7,8xx.c | host->host_no, (int) sxfer, (int) scntl3); |
host | 2446 | drivers/scsi/53c7,8xx.c | set_synchronous (host, target, sxfer, scntl3, 1); |
host | 2447 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : setting target %d to ", host->host_no, target); |
host | 2465 | drivers/scsi/53c7,8xx.c | NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct |
host | 2471 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 2473 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 2478 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSPS = 0x%x\n", host->host_no, dsps); |
host | 2493 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : target %d rejected SDTR\n", host->host_no, |
host | 2496 | drivers/scsi/53c7,8xx.c | asynchronous (host, c->target); |
host | 2502 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2510 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2516 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : received message", host->host_no); |
host | 2538 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : target %d %s ", host->host_no, c->target, |
host | 2553 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, (unsigned char *) |
host | 2556 | drivers/scsi/53c7,8xx.c | asynchronous (host, c->target); |
host | 2564 | drivers/scsi/53c7,8xx.c | synchronous (host, c->target, (unsigned char *) |
host | 2568 | drivers/scsi/53c7,8xx.c | asynchronous (host, c->target); |
host | 2588 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : unexpected phase\n", host->host_no); |
host | 2591 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : selected by target %d\n", host->host_no, |
host | 2599 | drivers/scsi/53c7,8xx.c | host->host_no, (int) NCR53c7x0_read8(SDID_REG_800) & 7, |
host | 2618 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : CHECK CONDITION\n", host->host_no); |
host | 2621 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2699 | drivers/scsi/53c7,8xx.c | printk("scsi%d : test%d complete\n", host->host_no, |
host | 2715 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read32(DSA_REG), dsa); |
host | 2717 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
host | 2719 | drivers/scsi/53c7,8xx.c | print_insn (host, hostdata->script + Ent_reselected_ok / |
host | 2722 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read8(SXFER_REG), |
host | 2725 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) |
host | 2727 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) |
host | 2747 | drivers/scsi/53c7,8xx.c | host->host_no, virt_to_bus(dsa), dsa); |
host | 2750 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
host | 2753 | drivers/scsi/53c7,8xx.c | printk("scsi%d : template code :\n", host->host_no); |
host | 2756 | drivers/scsi/53c7,8xx.c | code += print_insn (host, code, "", 1)); |
host | 2759 | drivers/scsi/53c7,8xx.c | print_insn (host, hostdata->script + Ent_reselected_ok / |
host | 2775 | drivers/scsi/53c7,8xx.c | host->host_no, virt_to_bus(dsa), dsa); |
host | 2779 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
host | 2790 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read32(DSA_REG), |
host | 2798 | drivers/scsi/53c7,8xx.c | printk("scsi%d : idle\n", host->host_no); |
host | 2812 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSA loaded with 0x%x (virt 0x%p)\n", host->host_no, |
host | 2823 | drivers/scsi/53c7,8xx.c | host->host_no, (int) NCR53c7x0_read8(SDID_REG_800) & ~0x80, |
host | 2825 | drivers/scsi/53c7,8xx.c | print_queues(host); |
host | 2834 | drivers/scsi/53c7,8xx.c | host->host_no, c->target, c->lun); |
host | 2837 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2846 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 2847 | drivers/scsi/53c7,8xx.c | print_queues(host); |
host | 2850 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read8(SXFER_REG), |
host | 2854 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) |
host | 2856 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) |
host | 2864 | drivers/scsi/53c7,8xx.c | printk("scsi%d : int_debug_panic received\n", host->host_no); |
host | 2865 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 2873 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, |
host | 2886 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->saved_data_pointer, bus_to_virt ( |
host | 2888 | drivers/scsi/53c7,8xx.c | size = print_insn (host, (u32 *) |
host | 2890 | drivers/scsi/53c7,8xx.c | size = print_insn (host, (u32 *) |
host | 2896 | drivers/scsi/53c7,8xx.c | host->host_no, datapath_residual (host)) ; |
host | 2911 | drivers/scsi/53c7,8xx.c | host->host_no, sxfer, scntl3); |
host | 2917 | drivers/scsi/53c7,8xx.c | host->host_no, (int) sxfer, (int) scntl3); |
host | 2928 | drivers/scsi/53c7,8xx.c | host->host_no, sbcl_to_phase (NCR53c7x0_read8 (SBCL_REG)), |
host | 2931 | drivers/scsi/53c7,8xx.c | datapath_residual (host)) ; |
host | 2932 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "", 1); |
host | 2933 | drivers/scsi/53c7,8xx.c | size = print_insn (host, (u32 *) bus_to_virt(dsp[1]), "", 1); |
host | 2934 | drivers/scsi/53c7,8xx.c | print_insn (host, (u32 *) bus_to_virt(dsp[1]) + size, "", 1); |
host | 2952 | drivers/scsi/53c7,8xx.c | host->host_no, sdid, c->target, where); |
host | 2953 | drivers/scsi/53c7,8xx.c | print_lots(host); |
host | 2954 | drivers/scsi/53c7,8xx.c | dump_events (host, 20); |
host | 2963 | drivers/scsi/53c7,8xx.c | host->host_no, dsps); |
host | 3000 | drivers/scsi/53c7,8xx.c | host->host_no, (unsigned) dsps); |
host | 3060 | drivers/scsi/53c7,8xx.c | static int debugger_fn_bc (struct Scsi_Host *host, struct debugger_token *token, |
host | 3093 | drivers/scsi/53c7,8xx.c | debugger_fn_bl (struct Scsi_Host *host, struct debugger_token *token, |
host | 3096 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3108 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3109 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
host | 3113 | drivers/scsi/53c7,8xx.c | for (bp = (struct NCR53c7x0_break *) host->breakpoints; |
host | 3125 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, len); |
host | 3132 | drivers/scsi/53c7,8xx.c | debugger_fn_bs (struct Scsi_Host *host, struct debugger_token *token, |
host | 3135 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3144 | drivers/scsi/53c7,8xx.c | sprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no); |
host | 3145 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (host, buf, strlen(buf)); |
host | 3152 | drivers/scsi/53c7,8xx.c | host->host_no, sizeof(struct NCR53c7x0_break)); |
host | 3185 | drivers/scsi/53c7,8xx.c | for (dev = MINOR(inode->rdev), host = first_host; |
host | 3186 | drivers/scsi/53c7,8xx.c | (host->hostt == the_template); --dev, host = host->next) |
host | 3187 | drivers/scsi/53c7,8xx.c | if (!dev) return host; |
host | 3195 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; /* This SCSI host */ |
host | 3202 | drivers/scsi/53c7,8xx.c | if (!(host = inode_to_host(inode))) |
host | 3205 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 3253 | drivers/scsi/53c7,8xx.c | debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t |
host | 3256 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3291 | drivers/scsi/53c7,8xx.c | NCR53c8x0_soft_reset (struct Scsi_Host *host) { |
host | 3294 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3295 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3322 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE|SCID_800_SRE); |
host | 3324 | drivers/scsi/53c7,8xx.c | NCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE); |
host | 3398 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3400 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 3409 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->num_cmds, host->can_queue, |
host | 3426 | drivers/scsi/53c7,8xx.c | if ((hostdata->extra_allocate + hostdata->num_cmds) < host->can_queue) |
host | 3427 | drivers/scsi/53c7,8xx.c | hostdata->extra_allocate += host->cmd_per_lun; |
host | 3441 | drivers/scsi/53c7,8xx.c | host->host_no, size); |
host | 3467 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->target, cmd->lun); |
host | 3488 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3490 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 3503 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(cmd->host); |
host | 3530 | drivers/scsi/53c7,8xx.c | printk("scsi%d : command is ", host->host_no); |
host | 3534 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : %d scatter/gather segments\n", host->host_no, |
host | 3645 | drivers/scsi/53c7,8xx.c | host->host_no, hostdata->sync[cmd->target].select_indirect); |
host | 3646 | drivers/scsi/53c7,8xx.c | FATAL(host); |
host | 3775 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain, "dynamic ", 1); |
host | 3776 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain + 2, "dynamic ", 1); |
host | 3790 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout, "dynamic ", 1); |
host | 3791 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout + 2, "dynamic ", 1); |
host | 3808 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_datain, "dynamic jump ", 1); |
host | 3825 | drivers/scsi/53c7,8xx.c | print_insn (host, cmd_dataout, "dynamic jump ", 1); |
host | 3855 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 3857 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 3874 | drivers/scsi/53c7,8xx.c | || cmd->target > host->max_id |
host | 3876 | drivers/scsi/53c7,8xx.c | || cmd->target == host->this_id |
host | 3878 | drivers/scsi/53c7,8xx.c | printk("scsi%d : disabled or bad target %d lun %d\n", host->host_no, |
host | 3883 | drivers/scsi/53c7,8xx.c | printk("scsi%d : maximum commands exceeded\n", host->host_no); |
host | 3891 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 3943 | drivers/scsi/53c7,8xx.c | to_schedule_list (struct Scsi_Host *host, struct NCR53c7x0_hostdata *hostdata, |
host | 3952 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 3954 | drivers/scsi/53c7,8xx.c | printk("scsi%d : new dsa is 0x%lx (virt 0x%p)\n", host->host_no, |
host | 3967 | drivers/scsi/53c7,8xx.c | printk("scsi%d : driver disabled\n", host->host_no); |
host | 3976 | drivers/scsi/53c7,8xx.c | for (i = host->can_queue, current = hostdata->schedule; |
host | 3996 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: no free slot\n", host->host_no); |
host | 3997 | drivers/scsi/53c7,8xx.c | disable(host); |
host | 4033 | drivers/scsi/53c7,8xx.c | busyp (struct Scsi_Host *host, struct NCR53c7x0_hostdata *hostdata, |
host | 4061 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; |
host | 4079 | drivers/scsi/53c7,8xx.c | for (host = first_host; host && host->hostt == the_template; |
host | 4080 | drivers/scsi/53c7,8xx.c | host = host->next) { |
host | 4081 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 4102 | drivers/scsi/53c7,8xx.c | !busyp (host, hostdata, tmp)) { |
host | 4112 | drivers/scsi/53c7,8xx.c | host->host_no, tmp->target, tmp->lun); |
host | 4115 | drivers/scsi/53c7,8xx.c | to_schedule_list (host, hostdata, |
host | 4122 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4124 | drivers/scsi/53c7,8xx.c | disable (host); |
host | 4150 | drivers/scsi/53c7,8xx.c | intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 4153 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 4159 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4174 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : SIST0 0x%0x, SIST1 0x%0x\n", host->host_no, |
host | 4182 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : Selection Timeout\n", host->host_no); |
host | 4185 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 4187 | drivers/scsi/53c7,8xx.c | printk("scsi%d : dsp = 0x%x (virt 0x%p)\n", host->host_no, |
host | 4191 | drivers/scsi/53c7,8xx.c | printk("scsi%d : no command\n", host->host_no); |
host | 4223 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 4224 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 4228 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4239 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target, cmd->cmd->lun); |
host | 4242 | drivers/scsi/53c7,8xx.c | printk("scsi%d : parity error\n", host->host_no); |
host | 4254 | drivers/scsi/53c7,8xx.c | printk("scsi%d : gross error\n", host->host_no); |
host | 4285 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : SSTAT0_MA\n", host->host_no); |
host | 4286 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (host, cmd); |
host | 4291 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : Oh no Mr. Bill!\n", host->host_no); |
host | 4307 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DMA FIFO not empty\n", host->host_no); |
host | 4310 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4337 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host; /* Host we are looking at */ |
host | 4359 | drivers/scsi/53c7,8xx.c | for (host = first_host; host; host = host->next) |
host | 4360 | drivers/scsi/53c7,8xx.c | if (host->hostt == the_template && host->irq == irq) { |
host | 4361 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4363 | drivers/scsi/53c7,8xx.c | hostdata = (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 4401 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : INTFLY\n", host->host_no); |
host | 4422 | drivers/scsi/53c7,8xx.c | printk("scsi%d : very weird.\n", host->host_no); |
host | 4428 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4433 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->result); |
host | 4454 | drivers/scsi/53c7,8xx.c | host->host_no, tmp->pid, tmp->target, tmp->lun, tmp->result); |
host | 4476 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4491 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4516 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->pid, (int) cmd->cmd->target, |
host | 4520 | drivers/scsi/53c7,8xx.c | printk("scsi%d : no active command\n", host->host_no); |
host | 4526 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : ISTAT_SIP\n", host->host_no); |
host | 4527 | drivers/scsi/53c7,8xx.c | intr_scsi (host, cmd); |
host | 4532 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : ISTAT_DIP\n", host->host_no); |
host | 4533 | drivers/scsi/53c7,8xx.c | intr_dma (host, cmd); |
host | 4543 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DMA FIFO not empty\n", host->host_no); |
host | 4546 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4566 | drivers/scsi/53c7,8xx.c | printk("scsi%d : too many interrupts, halting", host->host_no); |
host | 4567 | drivers/scsi/53c7,8xx.c | disable(host); |
host | 4579 | drivers/scsi/53c7,8xx.c | host->host_no, virt_to_bus(hostdata->dsp), hostdata->dsp); |
host | 4603 | drivers/scsi/53c7,8xx.c | abort_connected (struct Scsi_Host *host) { |
host | 4608 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 4615 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4619 | drivers/scsi/53c7,8xx.c | disable(host); |
host | 4624 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4675 | drivers/scsi/53c7,8xx.c | datapath_residual (struct Scsi_Host *host) { |
host | 4678 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 4680 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4781 | drivers/scsi/53c7,8xx.c | intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 4786 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 4791 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 4846 | drivers/scsi/53c7,8xx.c | residual = datapath_residual (host); |
host | 4849 | drivers/scsi/53c7,8xx.c | host->host_no, residual); |
host | 4909 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->cmd->target); |
host | 4953 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 4968 | drivers/scsi/53c7,8xx.c | host->host_no, where ? where : "unknown location", |
host | 4970 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 4973 | drivers/scsi/53c7,8xx.c | abort_connected (host); |
host | 4981 | drivers/scsi/53c7,8xx.c | printk("scsi%d: new dsp 0x%p\n", host->host_no, hostdata->dsp); |
host | 4982 | drivers/scsi/53c7,8xx.c | print_insn (host, hostdata->dsp, "", 1); |
host | 4999 | drivers/scsi/53c7,8xx.c | intr_bf (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 5002 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 5015 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5055 | drivers/scsi/53c7,8xx.c | host->host_no, pcibios_strerror (tmp)); |
host | 5065 | drivers/scsi/53c7,8xx.c | host->host_no, reason ? reason : "unknown"); |
host | 5066 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 5084 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5100 | drivers/scsi/53c7,8xx.c | intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) { |
host | 5103 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 5111 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5121 | drivers/scsi/53c7,8xx.c | printk("scsi%d : DSTAT=0x%x\n", host->host_no, (int) dstat); |
host | 5149 | drivers/scsi/53c7,8xx.c | " ", host->host_no); |
host | 5150 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, KERN_ALERT "s ", 1); |
host | 5151 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5163 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, "s ", 0); |
host | 5173 | drivers/scsi/53c7,8xx.c | " ", host->host_no); |
host | 5174 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, KERN_ALERT "", 1); |
host | 5176 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5208 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5240 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5244 | drivers/scsi/53c7,8xx.c | printk(KERN_ALERT "scsi%d : illegal instruction\n", host->host_no); |
host | 5245 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 5248 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5257 | drivers/scsi/53c7,8xx.c | intr_bf (host, cmd); |
host | 5271 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSTAT_SIR\n", host->host_no); |
host | 5272 | drivers/scsi/53c7,8xx.c | switch ((tmp = hostdata->dstat_sir_intr (host, cmd))) { |
host | 5277 | drivers/scsi/53c7,8xx.c | abort_connected(host); |
host | 5280 | drivers/scsi/53c7,8xx.c | printk(KERN_ALERT "scsi%d : failure at ", host->host_no); |
host | 5281 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, KERN_ALERT "", 1); |
host | 5283 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5286 | drivers/scsi/53c7,8xx.c | intr_break (host, cmd); |
host | 5289 | drivers/scsi/53c7,8xx.c | printk(KERN_ALERT "scsi%d : failure at ", host->host_no); |
host | 5290 | drivers/scsi/53c7,8xx.c | print_insn (host, dsp, KERN_ALERT "", 1); |
host | 5293 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5299 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5300 | drivers/scsi/53c7,8xx.c | FATAL (host); |
host | 5328 | drivers/scsi/53c7,8xx.c | print_insn (struct Scsi_Host *host, const u32 *insn, |
host | 5378 | drivers/scsi/53c7,8xx.c | debugger_kernel_write(host, buf, len); |
host | 5421 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 5422 | drivers/scsi/53c7,8xx.c | struct NCR53c7x0_hostdata *hostdata = host ? (struct NCR53c7x0_hostdata *) |
host | 5423 | drivers/scsi/53c7,8xx.c | host->hostdata : NULL; |
host | 5432 | drivers/scsi/53c7,8xx.c | if (!host) { |
host | 5437 | drivers/scsi/53c7,8xx.c | printk ("Bogus SCSI host %d; no hostdata\n", host->host_no); |
host | 5440 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5458 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : dropped interrupt for command %ld\n", host->host_no, |
host | 5460 | drivers/scsi/53c7,8xx.c | NCR53c7x0_intr (host->irq, NULL); |
host | 5468 | drivers/scsi/53c7,8xx.c | panic ("scsi%d : bloody fetus %d\n", host->host_no, cmd->pid); |
host | 5499 | drivers/scsi/53c7,8xx.c | host->host_no, me->pid); |
host | 5524 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid); |
host | 5529 | drivers/scsi/53c7,8xx.c | cmd->host->host_no); |
host | 5549 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : did this command ever run?\n", host->host_no); |
host | 5553 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5604 | drivers/scsi/53c7,8xx.c | struct Scsi_Host *host = cmd->host; |
host | 5606 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 5608 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5611 | drivers/scsi/53c7,8xx.c | ncr_halt (host); |
host | 5612 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 5613 | drivers/scsi/53c7,8xx.c | dump_events (host, 30); |
host | 5614 | drivers/scsi/53c7,8xx.c | ncr_scsi_reset (host); |
host | 5615 | drivers/scsi/53c7,8xx.c | for (tmp = nuke_list = return_outstanding_commands (host, 1 /* free */, |
host | 5633 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: lost command %ld\n", host->host_no, cmd->pid); |
host | 5638 | drivers/scsi/53c7,8xx.c | NCR53c7x0_driver_init (host); |
host | 5639 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
host | 5641 | drivers/scsi/53c7,8xx.c | disable(host); |
host | 5675 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) cmd->host->hostdata; |
host | 5705 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, saved, segment->address); |
host | 5743 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup (cmd->host); |
host | 5761 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, where, offset); |
host | 5765 | drivers/scsi/53c7,8xx.c | cmd->host->host_no, where); |
host | 5767 | drivers/scsi/53c7,8xx.c | size = print_insn (cmd->host, |
host | 5769 | drivers/scsi/53c7,8xx.c | print_insn (cmd->host, |
host | 5779 | drivers/scsi/53c7,8xx.c | print_dsa (struct Scsi_Host *host, u32 *dsa, const char *prefix) { |
host | 5781 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 5788 | drivers/scsi/53c7,8xx.c | printk("scsi%d : bad dsa virt 0x%p\n", host->host_no, dsa); |
host | 5794 | drivers/scsi/53c7,8xx.c | host->host_no, virt_to_bus (dsa), dsa, hostdata->dsa_msgout, |
host | 5834 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->target, |
host | 5853 | drivers/scsi/53c7,8xx.c | print_queues (struct Scsi_Host *host) { |
host | 5855 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 5862 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : issue queue\n", host->host_no); |
host | 5864 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, cmd = (Scsi_Cmnd *) hostdata->issue_queue; |
host | 5874 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid); |
host | 5877 | drivers/scsi/53c7,8xx.c | print_dsa (host, ((struct NCR53c7x0_cmd *) cmd->host_scribble) |
host | 5881 | drivers/scsi/53c7,8xx.c | host->host_no, cmd->pid, cmd->target, cmd->lun); |
host | 5887 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5898 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : schedule dsa array :\n", host->host_no); |
host | 5899 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, current = hostdata->schedule; |
host | 5903 | drivers/scsi/53c7,8xx.c | print_dsa (host, bus_to_virt (current[1] - |
host | 5906 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : end schedule dsa array\n", host->host_no); |
host | 5908 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : reconnect_dsa_head :\n", host->host_no); |
host | 5910 | drivers/scsi/53c7,8xx.c | for (left = host->can_queue, |
host | 5917 | drivers/scsi/53c7,8xx.c | printk ("scsi%d: bad DSA pointer 0x%p", host->host_no, |
host | 5924 | drivers/scsi/53c7,8xx.c | print_dsa (host, dsa, ""); |
host | 5928 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : end reconnect_dsa_head\n", host->host_no); |
host | 5931 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 5935 | drivers/scsi/53c7,8xx.c | print_lots (struct Scsi_Host *host) { |
host | 5938 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 5942 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 5958 | drivers/scsi/53c7,8xx.c | host->host_no, dbc_dcmd, NCR53c7x0_read32(DNAD_REG), |
host | 5974 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : DSP 0x%lx (virt 0x%p) ->\n", host->host_no, |
host | 5977 | drivers/scsi/53c7,8xx.c | size = print_insn (host, dsp, "", 1); |
host | 5980 | drivers/scsi/53c7,8xx.c | host->host_no, NCR53c7x0_read8 (SDID_REG_800), |
host | 5982 | drivers/scsi/53c7,8xx.c | print_dsa (host, dsa, ""); |
host | 5986 | drivers/scsi/53c7,8xx.c | print_queues (host); |
host | 6000 | drivers/scsi/53c7,8xx.c | shutdown (struct Scsi_Host *host) { |
host | 6004 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6005 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 6009 | drivers/scsi/53c7,8xx.c | ncr_halt (host); |
host | 6010 | drivers/scsi/53c7,8xx.c | ncr_scsi_reset (host); |
host | 6011 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset(host); |
host | 6013 | drivers/scsi/53c7,8xx.c | disable (host); |
host | 6025 | drivers/scsi/53c7,8xx.c | ncr_scsi_reset (struct Scsi_Host *host) { |
host | 6028 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6031 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 6053 | drivers/scsi/53c7,8xx.c | hard_reset (struct Scsi_Host *host) { |
host | 6055 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6059 | drivers/scsi/53c7,8xx.c | ncr_scsi_reset(host); |
host | 6060 | drivers/scsi/53c7,8xx.c | NCR53c7x0_driver_init (host); |
host | 6062 | drivers/scsi/53c7,8xx.c | hostdata->soft_reset (host); |
host | 6088 | drivers/scsi/53c7,8xx.c | return_outstanding_commands (struct Scsi_Host *host, int free, int issue) { |
host | 6090 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6098 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : loop detected in running list!\n", host->host_no); |
host | 6115 | drivers/scsi/53c7,8xx.c | i < host->can_queue; ++i, current += 2) { |
host | 6126 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 6154 | drivers/scsi/53c7,8xx.c | disable (struct Scsi_Host *host) { |
host | 6156 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6162 | drivers/scsi/53c7,8xx.c | ncr_halt (host); |
host | 6163 | drivers/scsi/53c7,8xx.c | nuke_list = return_outstanding_commands (host, 1 /* free */, 1 /* issue */); |
host | 6164 | drivers/scsi/53c7,8xx.c | hard_reset (host); |
host | 6167 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : nuking commands\n", host->host_no); |
host | 6173 | drivers/scsi/53c7,8xx.c | printk ("scsi%d : done. \n", host->host_no); |
host | 6175 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 6190 | drivers/scsi/53c7,8xx.c | ncr_halt (struct Scsi_Host *host) { |
host | 6195 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6197 | drivers/scsi/53c7,8xx.c | NCR53c7x0_local_setup(host); |
host | 6228 | drivers/scsi/53c7,8xx.c | host->host_no); |
host | 6229 | drivers/scsi/53c7,8xx.c | disable (host); |
host | 6242 | drivers/scsi/53c7,8xx.c | print_lots (host); |
host | 6277 | drivers/scsi/53c7,8xx.c | dump_events (struct Scsi_Host *host, int count) { |
host | 6279 | drivers/scsi/53c7,8xx.c | host->hostdata; |
host | 6305 | drivers/scsi/53c7,8xx.c | host->host_no, event_name (event.event), count, |
host | 6341 | drivers/scsi/53c7,8xx.c | NCR53c7x0_release(struct Scsi_Host *host) { |
host | 6343 | drivers/scsi/53c7,8xx.c | (struct NCR53c7x0_hostdata *) host->hostdata; |
host | 6345 | drivers/scsi/53c7,8xx.c | shutdown (host); |
host | 6346 | drivers/scsi/53c7,8xx.c | if (host->irq != IRQ_NONE) |
host | 6351 | drivers/scsi/53c7,8xx.c | if (tmp->hostt == the_template && tmp->irq == host->irq) |
host | 6354 | drivers/scsi/53c7,8xx.c | free_irq(host->irq); |
host | 6356 | drivers/scsi/53c7,8xx.c | if (host->dma_channel != DMA_NONE) |
host | 6357 | drivers/scsi/53c7,8xx.c | free_dma(host->dma_channel); |
host | 6358 | drivers/scsi/53c7,8xx.c | if (host->io_port) |
host | 6359 | drivers/scsi/53c7,8xx.c | release_region(host->io_port, host->n_io_port); |
host | 6374 | 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 | 297 | drivers/scsi/NCR5380.c | static int do_abort (struct Scsi_Host *host); |
host | 298 | drivers/scsi/NCR5380.c | static void do_reset (struct Scsi_Host *host); |
host | 911 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
host | 1204 | drivers/scsi/NCR5380.c | host->host_no, __LINE__); |
host | 1715 | drivers/scsi/NCR5380.c | static void do_reset (struct Scsi_Host *host) { |
host | 1717 | drivers/scsi/NCR5380.c | NCR5380_setup(host); |
host | 1737 | drivers/scsi/NCR5380.c | static int do_abort (struct Scsi_Host *host) { |
host | 1741 | drivers/scsi/NCR5380.c | NCR5380_setup(host); |
host | 1772 | drivers/scsi/NCR5380.c | NCR5380_transfer_pio (host, &phase, &len, &msgptr); |
host | 2827 | drivers/scsi/NCR5380.c | struct Scsi_Host *instance = cmd->host; |
host | 3022 | drivers/scsi/NCR5380.c | NCR5380_setup(cmd->host); |
host | 3024 | drivers/scsi/NCR5380.c | NCR5380_print_status (cmd->host); |
host | 3025 | 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 | 3095 | drivers/scsi/aic7xxx.c | struct Scsi_Host *host; |
host | 3405 | drivers/scsi/aic7xxx.c | host = scsi_register(template, sizeof(struct aic7xxx_host)); |
host | 3406 | drivers/scsi/aic7xxx.c | host->can_queue = config->maxscb; |
host | 3407 | drivers/scsi/aic7xxx.c | host->cmd_per_lun = AIC7XXX_CMDS_PER_LUN; |
host | 3408 | drivers/scsi/aic7xxx.c | host->this_id = config->scsi_id; |
host | 3409 | drivers/scsi/aic7xxx.c | host->irq = config->irq; |
host | 3412 | drivers/scsi/aic7xxx.c | host->max_id = 16; |
host | 3416 | drivers/scsi/aic7xxx.c | host->max_channel = 1; |
host | 3419 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) host->hostdata; |
host | 3460 | drivers/scsi/aic7xxx.c | aic7xxx_boards[config->irq] = host; |
host | 3480 | drivers/scsi/aic7xxx.c | aic7xxx_boards[config->irq] = host; |
host | 4152 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
host | 4459 | drivers/scsi/aic7xxx.c | p = (struct aic7xxx_host *) cmd->host->hostdata; |
host | 4589 | 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 | 810 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->pid); |
host | 819 | drivers/scsi/scsi.c | printk("Unable to reset scsi host %d - ", SCpnt->host->host_no); |
host | 852 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 860 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 895 | drivers/scsi/scsi.c | if (SCSI_BLOCK(device->host)) return NULL; |
host | 899 | drivers/scsi/scsi.c | tablesize = device->host->sg_tablesize; |
host | 969 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 986 | drivers/scsi/scsi.c | host = device->host; |
host | 988 | drivers/scsi/scsi.c | if (intr_count && SCSI_BLOCK(host)) return NULL; |
host | 991 | drivers/scsi/scsi.c | SCpnt = device->host->host_queue; |
host | 1049 | drivers/scsi/scsi.c | tablesize = device->host->sg_tablesize; |
host | 1115 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 1121 | drivers/scsi/scsi.c | host = SCpnt->host; |
host | 1129 | drivers/scsi/scsi.c | temp = host->last_reset + MIN_RESET_DELAY; |
host | 1142 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel, SCpnt->target, SCpnt->cmnd, |
host | 1146 | drivers/scsi/scsi.c | if (host->can_queue) |
host | 1150 | drivers/scsi/scsi.c | host->hostt->queuecommand); |
host | 1161 | drivers/scsi/scsi.c | if(!intr_count && SCpnt->host->irq) |
host | 1162 | drivers/scsi/scsi.c | disable_irq(SCpnt->host->irq); |
host | 1164 | drivers/scsi/scsi.c | host->hostt->queuecommand (SCpnt, scsi_done); |
host | 1166 | drivers/scsi/scsi.c | if(!intr_count && SCpnt->host->irq) |
host | 1167 | drivers/scsi/scsi.c | enable_irq(SCpnt->host->irq); |
host | 1173 | drivers/scsi/scsi.c | printk("command() : routine at %p\n", host->hostt->command); |
host | 1175 | drivers/scsi/scsi.c | temp=host->hostt->command (SCpnt); |
host | 1181 | drivers/scsi/scsi.c | host->host_no, temp, host->hostt->command); |
host | 1228 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1237 | drivers/scsi/scsi.c | "command : " , host->host_no, SCpnt->channel, target, buffer, |
host | 1245 | drivers/scsi/scsi.c | if (!host) |
host | 1263 | drivers/scsi/scsi.c | while (SCSI_BLOCK(host)) { |
host | 1265 | drivers/scsi/scsi.c | SCSI_SLEEP(&host->host_wait, SCSI_BLOCK(host)); |
host | 1269 | drivers/scsi/scsi.c | if (host->block) host_active = host; |
host | 1271 | drivers/scsi/scsi.c | host->host_busy++; |
host | 1283 | drivers/scsi/scsi.c | SCpnt->host = host; |
host | 1335 | drivers/scsi/scsi.c | printk("scsi%d, channel%d : ", SCpnt->host->host_no, SCpnt->channel); |
host | 1409 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1432 | drivers/scsi/scsi.c | printk("In scsi_done(host = %d, result = %06x)\n", host->host_no, result); |
host | 1454 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel, SCpnt->target, |
host | 1556 | drivers/scsi/scsi.c | " reset.\n", SCpnt->host->host_no, SCpnt->channel); |
host | 1674 | drivers/scsi/scsi.c | && !(jiffies < SCpnt->host->last_reset + MIN_RESET_PERIOD) |
host | 1678 | drivers/scsi/scsi.c | SCpnt->host->host_no, SCpnt->channel); |
host | 1715 | drivers/scsi/scsi.c | host->host_busy--; /* Indicate that we are free */ |
host | 1717 | drivers/scsi/scsi.c | if (host->block && host->host_busy == 0) { |
host | 1725 | drivers/scsi/scsi.c | for (next = host->block; next != host; next = next->block) |
host | 1731 | drivers/scsi/scsi.c | wake_up(&host->host_wait); |
host | 1764 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1801 | drivers/scsi/scsi.c | if (!host->host_busy) { |
host | 1808 | drivers/scsi/scsi.c | SCpnt->pid, SCpnt->host->host_no, (int) SCpnt->channel, |
host | 1814 | drivers/scsi/scsi.c | switch(host->hostt->abort(SCpnt)) { |
host | 1893 | drivers/scsi/scsi.c | struct Scsi_Host * host = SCpnt->host; |
host | 1896 | drivers/scsi/scsi.c | host->host_no); |
host | 1905 | drivers/scsi/scsi.c | SCpnt->host->suggest_bus_reset = FALSE; |
host | 1915 | drivers/scsi/scsi.c | SCpnt1 = host->host_queue; |
host | 1923 | drivers/scsi/scsi.c | SCpnt->host->suggest_bus_reset = TRUE; |
host | 1933 | drivers/scsi/scsi.c | SCpnt->host->suggest_bus_reset = TRUE; |
host | 1950 | drivers/scsi/scsi.c | if (host->host_busy) |
host | 1953 | drivers/scsi/scsi.c | SCpnt1 = host->host_queue; |
host | 1966 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1967 | drivers/scsi/scsi.c | temp = host->hostt->reset(SCpnt); |
host | 1968 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1972 | drivers/scsi/scsi.c | if (!host->block) host->host_busy++; |
host | 1974 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1976 | drivers/scsi/scsi.c | temp = host->hostt->reset(SCpnt); |
host | 1977 | drivers/scsi/scsi.c | host->last_reset = jiffies; |
host | 1978 | drivers/scsi/scsi.c | if (!host->block) host->host_busy--; |
host | 1997 | drivers/scsi/scsi.c | scsi_mark_host_bus_reset(host); |
host | 2007 | drivers/scsi/scsi.c | scsi_mark_host_bus_reset(host); |
host | 2016 | drivers/scsi/scsi.c | scsi_mark_host_bus_reset(host); |
host | 2027 | drivers/scsi/scsi.c | SCpnt1 = host->host_queue; |
host | 2067 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 2081 | drivers/scsi/scsi.c | for(host = scsi_hostlist; host; host = host->next) { |
host | 2082 | drivers/scsi/scsi.c | for(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2111 | drivers/scsi/scsi.c | struct Scsi_Host * host; |
host | 2138 | drivers/scsi/scsi.c | for(host = scsi_hostlist; host; host = host->next) |
host | 2139 | drivers/scsi/scsi.c | for(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2286 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 2288 | drivers/scsi/scsi.c | for(j=0;j<SDpnt->host->cmd_per_lun;j++){ |
host | 2290 | drivers/scsi/scsi.c | SCpnt->host = SDpnt->host; |
host | 2303 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2304 | drivers/scsi/scsi.c | if(host->host_queue) |
host | 2305 | drivers/scsi/scsi.c | host->host_queue->prev = SCpnt; |
host | 2306 | drivers/scsi/scsi.c | SCpnt->next = host->host_queue; |
host | 2308 | drivers/scsi/scsi.c | host->host_queue = SCpnt; |
host | 2462 | drivers/scsi/scsi.c | if (scd->host == HBA_ptr) { |
host | 2511 | drivers/scsi/scsi.c | while(scd && (scd->host->host_no != parameter[0] |
host | 2541 | drivers/scsi/scsi.c | struct Scsi_Host * host = NULL; |
host | 2585 | drivers/scsi/scsi.c | host = SDpnt->host; |
host | 2588 | drivers/scsi/scsi.c | new_dma_sectors += ((host->sg_tablesize * |
host | 2590 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2592 | drivers/scsi/scsi.c | if(host->unchecked_isa_dma && |
host | 2595 | drivers/scsi/scsi.c | new_dma_sectors += (PAGE_SIZE >> 9) * host->sg_tablesize * |
host | 2596 | drivers/scsi/scsi.c | host->cmd_per_lun; |
host | 2727 | drivers/scsi/scsi.c | if(SDpnt->host->hostt == tpnt) |
host | 2775 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt && sdpnt->host->hostt->usage_count |
host | 2776 | drivers/scsi/scsi.c | && *sdpnt->host->hostt->usage_count) return; |
host | 2800 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt) |
host | 2814 | drivers/scsi/scsi.c | if(sdpnt->host->hostt == tpnt) |
host | 2815 | drivers/scsi/scsi.c | while (sdpnt->host->host_queue) { |
host | 2816 | drivers/scsi/scsi.c | SCpnt = sdpnt->host->host_queue->next; |
host | 2817 | drivers/scsi/scsi.c | scsi_init_free((char *) sdpnt->host->host_queue, sizeof(Scsi_Cmnd)); |
host | 2818 | drivers/scsi/scsi.c | sdpnt->host->host_queue = SCpnt; |
host | 2829 | drivers/scsi/scsi.c | if (sdpnt->host->hostt == tpnt) { |
host | 2986 | drivers/scsi/scsi.c | for(SCpnt = SDpnt->host->host_queue; SCpnt; SCpnt = SCpnt->next) |
host | 2994 | drivers/scsi/scsi.c | if(SCpnt == SDpnt->host->host_queue) |
host | 2995 | drivers/scsi/scsi.c | SDpnt->host->host_queue = SCpnt->next; |
host | 3083 | 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); |