taglinefilesource code
host180drivers/scsi/53c7,8xx.cstatic int NCR53c8xx_run_tests (struct Scsi_Host *host);
host184drivers/scsi/53c7,8xx.cstatic int halt (struct Scsi_Host *host);
host185drivers/scsi/53c7,8xx.cstatic void intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd 
host187drivers/scsi/53c7,8xx.cstatic void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd);
host188drivers/scsi/53c7,8xx.cstatic void print_dsa (struct Scsi_Host *host, unsigned long *dsa);
host189drivers/scsi/53c7,8xx.cstatic int print_insn (struct Scsi_Host *host, unsigned long *insn,
host193drivers/scsi/53c7,8xx.cstatic void NCR53c8x0_init_fixup (struct Scsi_Host *host);
host194drivers/scsi/53c7,8xx.cstatic int NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct 
host196drivers/scsi/53c7,8xx.cstatic void NCR53c8x0_soft_reset (struct Scsi_Host *host);
host399drivers/scsi/53c7,8xx.cNCR53c7x0_init (struct Scsi_Host *host) {
host404drivers/scsi/53c7,8xx.chost->hostdata;
host406drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host424drivers/scsi/53c7,8xx.chost->host_no, hostdata->chip);
host425drivers/scsi/53c7,8xx.cscsi_unregister (host);
host441drivers/scsi/53c7,8xx.c(search->irq != host->irq)); search=search->next);
host444drivers/scsi/53c7,8xx.cif (request_irq(host->irq, NCR53c7x0_intr, SA_INTERRUPT, "53c7,8xx")) {
host446drivers/scsi/53c7,8xx.chost->host_no, host->irq);
host447drivers/scsi/53c7,8xx.cscsi_unregister (host);
host452drivers/scsi/53c7,8xx.chost->host_no, search->host_no);
host455drivers/scsi/53c7,8xx.cprintk ("scsi%d : using %s mapped access\n", host->host_no, 
host466drivers/scsi/53c7,8xx.chalt(host);
host478drivers/scsi/53c7,8xx.cfor (host->this_id = 0; tmp != 1; tmp >>=1, ++host->this_id);
host480drivers/scsi/53c7,8xx.chost->this_id = NCR53c7x0_read8(SCID_REG) & 7;
host481drivers/scsi/53c7,8xx.chostdata->this_id_mask = 1 << host->this_id;
host484drivers/scsi/53c7,8xx.cprintk("scsi%d : using initiator ID %d\n", host->host_no,
host485drivers/scsi/53c7,8xx.chost->this_id);
host512drivers/scsi/53c7,8xx.cprintk ("scsi%d : using %s interrupts\n", host->host_no,
host529drivers/scsi/53c7,8xx.cprintk ("scsi%d : burst mode disabled\n", host->host_no);
host538drivers/scsi/53c7,8xx.cprintk ("scsi%d : burst length %d\n", host->host_no, i);
host569drivers/scsi/53c7,8xx.chost->host_no, ccf);
host574drivers/scsi/53c7,8xx.cprintk ("scsi%d : using %dMHz SCSI clock\n", host->host_no, 
host615drivers/scsi/53c7,8xx.chostdata->init_save_regs (host);
host617drivers/scsi/53c7,8xx.chostdata->init_fixup (host);
host620drivers/scsi/53c7,8xx.cthe_template = host->hostt;
host621drivers/scsi/53c7,8xx.cfirst_host = host;
host636drivers/scsi/53c7,8xx.chostdata->soft_reset (host);
host643drivers/scsi/53c7,8xx.cif ((hostdata->run_tests && hostdata->run_tests(host) == -1) ||
host646drivers/scsi/53c7,8xx.cscsi_unregister (host);
host1039drivers/scsi/53c7,8xx.cNCR53c8x0_init_fixup (struct Scsi_Host *host) {
host1042drivers/scsi/53c7,8xx.chost->hostdata;
host1046drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host1088drivers/scsi/53c7,8xx.cbase = (long) host->io_port;
host1093drivers/scsi/53c7,8xx.cbase = (long) host->base;
host1178drivers/scsi/53c7,8xx.chost->host_no, A_dsa_fields_start, Ent_dsa_code_template_end - 
host1181drivers/scsi/53c7,8xx.cprintk("scsi%d : NCR code relocated to 0x%lx\n", host->host_no,
host1200drivers/scsi/53c7,8xx.cstatic int NCR53c8xx_run_tests (struct Scsi_Host *host) {
host1203drivers/scsi/53c7,8xx.chost->hostdata;
host1208drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host1215drivers/scsi/53c7,8xx.cprintk ("scsi%d : chip not idle, aborting tests\n", host->host_no);
host1227drivers/scsi/53c7,8xx.chost->host_no);
host1239drivers/scsi/53c7,8xx.cprintk ("scsi%d : test 1", host->host_no);
host1249drivers/scsi/53c7,8xx.cprintk ("scsi%d : driver test 1 timed out%s\n",host->host_no ,
host1260drivers/scsi/53c7,8xx.cprintk ("scsi%d : test 1 bad interrupt value (%ld)\n", host->host_no,
host1269drivers/scsi/53c7,8xx.chost->host_no, hostdata->test_dest);
host1274drivers/scsi/53c7,8xx.chost->host_no, (unsigned long) NCR53c7x0_read32(DSP_REG),
host1276drivers/scsi/53c7,8xx.cprintk ("scsi%d : DSPS = 0x%lx\n", host->host_no,
host1286drivers/scsi/53c7,8xx.chost->host_no);
host1316drivers/scsi/53c7,8xx.cprintk ("scsi%d : chip not idle, aborting tests\n", host->host_no);
host1339drivers/scsi/53c7,8xx.chost->host_no, i, data + 8);
host1340drivers/scsi/53c7,8xx.cprintk ("scsi%d : status ", host->host_no);
host1342drivers/scsi/53c7,8xx.cprintk ("\nscsi%d : message ", host->host_no);
host1347drivers/scsi/53c7,8xx.chost->host_no, i);
host1349drivers/scsi/53c7,8xx.cprintk("scsi%d : not idle\n", host->host_no);
host1354drivers/scsi/53c7,8xx.cprintk ("scsi%d : test 2 timed out\n", host->host_no);
host1361drivers/scsi/53c7,8xx.chost->host_no, i);
host1383drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = c->host;
host1385drivers/scsi/53c7,8xx.chost->hostdata;
host1421drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = c->host;
host1423drivers/scsi/53c7,8xx.chost->hostdata;
host1473drivers/scsi/53c7,8xx.cstatic void intr_break (struct Scsi_Host *host, struct 
host1482drivers/scsi/53c7,8xx.chost->hostdata;    
host1484drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host1498drivers/scsi/53c7,8xx.chost->host_no, dsp);
host1528drivers/scsi/53c7,8xx.cstatic int asynchronous (struct Scsi_Host *host, int target) {
host1531drivers/scsi/53c7,8xx.chost->hostdata;
host1532drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host1596drivers/scsi/53c7,8xx.cstatic void synchronous (struct Scsi_Host *host, int target, char *msg) {
host1598drivers/scsi/53c7,8xx.chost->hostdata;
host1610drivers/scsi/53c7,8xx.cprintk("scsi%d : optimal synchronous divisor of %d.%01d\n", host->host_no,
host1616drivers/scsi/53c7,8xx.cprintk("scsi%d : selected synchronous divisor of %d.%01d\n", host->host_no,
host1665drivers/scsi/53c7,8xx.cstatic int NCR53c8x0_dstat_sir_intr (struct Scsi_Host *host, struct 
host1670drivers/scsi/53c7,8xx.chost->hostdata;    
host1672drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host1677drivers/scsi/53c7,8xx.cprintk ("scsi%d : DSPS = 0x%lx\n", host->host_no, dsps);
host1681drivers/scsi/53c7,8xx.cprintk ("scsi%d : message", host->host_no);
host1698drivers/scsi/53c7,8xx.chost->host_no);
host1707drivers/scsi/53c7,8xx.chost->host_no, c->target, (cmd->flags & CMD_FLAG_SDTR) ? "accepting" :
host1719drivers/scsi/53c7,8xx.csynchronous (host, c->target, (unsigned char *) 
host1728drivers/scsi/53c7,8xx.csynchronous (host, c->target, (unsigned char *)
host1746drivers/scsi/53c7,8xx.chost->host_no, c->target, Hz / 1000000, Hz % 1000000,
host1754drivers/scsi/53c7,8xx.chost->host_no, c->target);
host1766drivers/scsi/53c7,8xx.cprintk ("scsi%d : unexpected phase\n", host->host_no);
host1769drivers/scsi/53c7,8xx.cprintk ("scsi%d : selected by target %d\n", host->host_no,
host1776drivers/scsi/53c7,8xx.cprintk ("scsi%d : unexpected reselect by target %d\n", host->host_no,
host1795drivers/scsi/53c7,8xx.cprintk ("scsi%d : CHECK CONDITION\n", host->host_no);
host1798drivers/scsi/53c7,8xx.chost->host_no);
host1807drivers/scsi/53c7,8xx.casynchronous (host, c->target);
host1881drivers/scsi/53c7,8xx.cprintk("scsi%d : test%ld complete\n", host->host_no,
host1887drivers/scsi/53c7,8xx.cprintk("scsi%d : new I/O 0x%lx scheduled\n", host->host_no,
host1895drivers/scsi/53c7,8xx.cprintk("scsi%d : idle\n", host->host_no);
host1909drivers/scsi/53c7,8xx.cprintk("scsi%d : DSA loaded with 0x%lx\n", host->host_no,
host1918drivers/scsi/53c7,8xx.chost->host_no, (int) NCR53c7x0_read8(SSID_REG_800), 
host1927drivers/scsi/53c7,8xx.chost->host_no, (unsigned long) hostdata->issue_dsa_head);
host1934drivers/scsi/53c7,8xx.chost->host_no, dsps);
host1939drivers/scsi/53c7,8xx.chost->host_no, (unsigned) dsps);
host1999drivers/scsi/53c7,8xx.cstatic int debugger_fn_bc (struct Scsi_Host *host, struct debugger_token *token,
host2031drivers/scsi/53c7,8xx.cstatic int debugger_fn_bl (struct Scsi_Host *host, struct debugger_token *token,
host2034drivers/scsi/53c7,8xx.chost->hostdata;
host2046drivers/scsi/53c7,8xx.chost->host_no);
host2047drivers/scsi/53c7,8xx.cdebugger_kernel_write (host, buf, strlen(buf));
host2051drivers/scsi/53c7,8xx.cfor (bp = (struct NCR53c7x0_break *) host->breakpoints;
host2063drivers/scsi/53c7,8xx.cdebugger_kernel_write (host, buf, len);
host2069drivers/scsi/53c7,8xx.cstatic int debugger_fn_bs (struct Scsi_Host *host, struct debugger_token *token,
host2072drivers/scsi/53c7,8xx.chost->hostdata;
host2081drivers/scsi/53c7,8xx.csprintf (buf, "scsi%d : bs : failure : NCR not halted\n", host->host_no);
host2082drivers/scsi/53c7,8xx.cdebugger_kernel_write (host, buf, strlen(buf));
host2089drivers/scsi/53c7,8xx.chost->host_no, sizeof(struct NCR53c7x0_break));
host2122drivers/scsi/53c7,8xx.cfor (dev = MINOR(inode->rdev), host = first_host;
host2123drivers/scsi/53c7,8xx.c(host->hostt == the_template); --dev, host = host->next)
host2124drivers/scsi/53c7,8xx.cif (!dev) return host;
host2131drivers/scsi/53c7,8xx.cstruct Scsi_Host *host;      /* This SCSI host */
host2138drivers/scsi/53c7,8xx.cif (!(host = inode_to_host(inode)))
host2141drivers/scsi/53c7,8xx.chostdata = (struct NCR53c7x0_hostdata *) host->hostdata;
host2187drivers/scsi/53c7,8xx.cstatic debugger_kernel_write (struct Scsi_Host *host, char *buf, size_t
host2190drivers/scsi/53c7,8xx.chost->hostdata;
host2225drivers/scsi/53c7,8xx.cNCR53c8x0_soft_reset (struct Scsi_Host *host) {
host2228drivers/scsi/53c7,8xx.chost->hostdata;
host2229drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host2256drivers/scsi/53c7,8xx.cNCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE|SCID_800_SRE);
host2258drivers/scsi/53c7,8xx.cNCR53c7x0_write8(SCID_REG, (host->this_id & 7)|SCID_800_RRE);
host2324drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
host2326drivers/scsi/53c7,8xx.chost->hostdata;  
host2340drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(cmd->host);
host2353drivers/scsi/53c7,8xx.cif (hostdata->num_commands < host->can_queue &&
host2356drivers/scsi/53c7,8xx.cfor (i = host->hostt->cmd_per_lun - 1; i >= 0  --i) {
host2420drivers/scsi/53c7,8xx.cprintk("scsi%d : command is ", host->host_no);
host2424drivers/scsi/53c7,8xx.cprintk ("scsi%d : %d scatter/gather segments\n", host->host_no,
host2589drivers/scsi/53c7,8xx.cprint_insn (host, cmd_datain, "dynamic ", 1);
host2590drivers/scsi/53c7,8xx.cprint_insn (host, cmd_datain + 2, "dynamic ", 1);
host2603drivers/scsi/53c7,8xx.cprint_insn (host, cmd_dataout, "dynamic ", 1);
host2604drivers/scsi/53c7,8xx.cprint_insn (host, cmd_dataout + 2, "dynamic ", 1);
host2621drivers/scsi/53c7,8xx.cprint_insn (host, cmd_datain, "dynamic jump ", 1);
host2640drivers/scsi/53c7,8xx.cprint_insn (host, cmd_dataout, "dynamic jump ", 1);
host2670drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
host2672drivers/scsi/53c7,8xx.chost->hostdata;
host2675drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host2681drivers/scsi/53c7,8xx.cprintk("scsi%d : disabled target %d lun %d\n", host->host_no,
host2690drivers/scsi/53c7,8xx.cprintk("scsi%d : maximum commands exceeded\n", host->host_no);
host2703drivers/scsi/53c7,8xx.chost->host_no);
host2763drivers/scsi/53c7,8xx.cprintk("scsi%d : new dsa is 0x%x\n", host->host_no, (unsigned) dsa);
host2792drivers/scsi/53c7,8xx.cprintk ("scsi%d : no issue queue\n", host->host_no);
host2806drivers/scsi/53c7,8xx.cprintk ("scsi%d : existing issue queue\n", host->host_no);
host2829drivers/scsi/53c7,8xx.chost->host_no);
host2855drivers/scsi/53c7,8xx.cstatic void intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
host2858drivers/scsi/53c7,8xx.c(struct NCR53c7x0_hostdata *) host->hostdata;
host2862drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host2876drivers/scsi/53c7,8xx.cprintk ("scsi%d : SIST0 0x%0x, SIST1 0x%0x\n", host->host_no,
host2884drivers/scsi/53c7,8xx.cprintk ("scsi%d : Selection Timeout\n", host->host_no);
host2887drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->target, cmd->cmd->lun);
host2889drivers/scsi/53c7,8xx.cprintk("scsi%d : dsp = 0x%x\n", host->host_no,
host2892drivers/scsi/53c7,8xx.cprintk("scsi%d : no command\n", host->host_no);
host2921drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->target, cmd->cmd->lun);
host2934drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->target, cmd->cmd->lun);
host2937drivers/scsi/53c7,8xx.cprintk("scsi%d : parity error\n", host->host_no);
host2949drivers/scsi/53c7,8xx.cprintk("scsi%d : gross error\n", host->host_no);
host2960drivers/scsi/53c7,8xx.cprintk ("scsi%d : SSTAT0_MA\n", host->host_no);
host2961drivers/scsi/53c7,8xx.cintr_phase_mismatch (host, cmd);
host2978drivers/scsi/53c7,8xx.cprintk ("scsi%d : DMA FIFO not empty\n", host->host_no);
host3011drivers/scsi/53c7,8xx.cstruct Scsi_Host *host;      /* Host we are looking at */
host3034drivers/scsi/53c7,8xx.cfor (host = first_host; host; host = hostdata->next ?
host3036drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host3038drivers/scsi/53c7,8xx.chostdata = (struct NCR53c7x0_hostdata *) host->hostdata;
host3072drivers/scsi/53c7,8xx.cprintk ("scsi%d : INTFLY\n", host->host_no); 
host3093drivers/scsi/53c7,8xx.cprintk("scsi%d : very weird.\n", host->host_no);
host3099drivers/scsi/53c7,8xx.chost->host_no);
host3104drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->result);
host3134drivers/scsi/53c7,8xx.chost->host_no, tmp->pid, tmp->target, tmp->lun, tmp->result);
host3150drivers/scsi/53c7,8xx.chost->host_no);
host3181drivers/scsi/53c7,8xx.chost->host_no, cmd->cmd->pid, (int) cmd->cmd->target,
host3185drivers/scsi/53c7,8xx.cprintk("scsi%d : no active command\n", host->host_no);
host3191drivers/scsi/53c7,8xx.cprintk ("scsi%d : ISTAT_SIP\n", host->host_no);
host3192drivers/scsi/53c7,8xx.cintr_scsi (host, cmd);
host3197drivers/scsi/53c7,8xx.cprintk ("scsi%d : ISTAT_DIP\n", host->host_no);
host3198drivers/scsi/53c7,8xx.cintr_dma (host, cmd);
host3209drivers/scsi/53c7,8xx.cprintk ("scsi%d : DMA FIFO not empty\n", host->host_no);
host3232drivers/scsi/53c7,8xx.cprintk("scsi%d : too many interrupts, halting", host->host_no);
host3245drivers/scsi/53c7,8xx.cprintk("scsi%d : new dsp is 0x%lx\n", host->host_no, 
host3270drivers/scsi/53c7,8xx.cabort_connected (struct Scsi_Host *host) {
host3272drivers/scsi/53c7,8xx.chost->hostdata;
host3278drivers/scsi/53c7,8xx.chost->host_no);
host3302drivers/scsi/53c7,8xx.cstatic void intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd
host3308drivers/scsi/53c7,8xx.chost->hostdata;
host3310drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host3314drivers/scsi/53c7,8xx.chost->host_no);
host3315drivers/scsi/53c7,8xx.cabort_connected(host);
host3390drivers/scsi/53c7,8xx.cprintk ("scsi%d : new phase = STATIN\n", host->host_no);
host3404drivers/scsi/53c7,8xx.cprintk ("scsi%d  : new phase = MSGIN\n", host->host_no);
host3416drivers/scsi/53c7,8xx.chost->host_no, dcmd);
host3417drivers/scsi/53c7,8xx.cprint_insn (host, dsp, "", 1);
host3418drivers/scsi/53c7,8xx.cprint_insn (host, dsp_next, "", 1);
host3419drivers/scsi/53c7,8xx.cabort_connected (host);
host3434drivers/scsi/53c7,8xx.chost->host_no, phase);
host3435drivers/scsi/53c7,8xx.cabort_connected(host);
host3442drivers/scsi/53c7,8xx.chost->host_no, phase, (unsigned) dsp);
host3443drivers/scsi/53c7,8xx.cprint_insn (host, dsp, "", 1);
host3444drivers/scsi/53c7,8xx.cprint_insn (host, dsp_next, "", 1);
host3445drivers/scsi/53c7,8xx.cabort_connected(host);
host3460drivers/scsi/53c7,8xx.cstatic void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
host3463drivers/scsi/53c7,8xx.chost->hostdata;
host3471drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host3481drivers/scsi/53c7,8xx.cprintk("scsi%d : DSTAT=0x%x\n", host->host_no, (int) dstat);
host3509drivers/scsi/53c7,8xx.c"         ", host->host_no);
host3510drivers/scsi/53c7,8xx.cprint_insn (host, dsp, "s ", 1);
host3523drivers/scsi/53c7,8xx.cprint_insn (host, dsp, "s ", 0);
host3533drivers/scsi/53c7,8xx.c"         ", host->host_no);
host3534drivers/scsi/53c7,8xx.cprint_insn (host, dsp, "", 1);
host3567drivers/scsi/53c7,8xx.chost->host_no);
host3580drivers/scsi/53c7,8xx.cprintk("scsi%d : illegal instruction ", host->host_no);
host3581drivers/scsi/53c7,8xx.cprint_insn (host, dsp, "", 1);
host3585drivers/scsi/53c7,8xx.chost->host_no, (unsigned long) dsp, dbc_dcmd,
host3601drivers/scsi/53c7,8xx.chost->host_no, (unsigned long) dsp, NCR53c7x0_read32(DBC_REG),
host3604drivers/scsi/53c7,8xx.cprint_dsa (host, dsa);
host3605drivers/scsi/53c7,8xx.cprintk("scsi%d : DSP->\n", host->host_no);
host3606drivers/scsi/53c7,8xx.cprint_insn(host, dsp, "", 1);
host3607drivers/scsi/53c7,8xx.cprint_insn(host, next_dsp, "", 1);
host3627drivers/scsi/53c7,8xx.cprintk ("scsi%d : DSTAT_SIR\n", host->host_no);
host3628drivers/scsi/53c7,8xx.cswitch ((tmp = hostdata->dstat_sir_intr (host, cmd))) {
host3633drivers/scsi/53c7,8xx.cabort_connected(host);
host3636drivers/scsi/53c7,8xx.cprintk("scsi%d : failure at ", host->host_no);
host3637drivers/scsi/53c7,8xx.cprint_insn (host, dsp, "", 1);
host3641drivers/scsi/53c7,8xx.cintr_break (host, cmd);
host3644drivers/scsi/53c7,8xx.cprintk("scsi%d : failure at ", host->host_no);
host3645drivers/scsi/53c7,8xx.cprint_insn (host, dsp, "", 1);
host3673drivers/scsi/53c7,8xx.cstatic int print_insn (struct Scsi_Host *host, unsigned long *insn,
host3697drivers/scsi/53c7,8xx.cdebugger_kernel_write(host, buf, len);
host3716drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
host3718drivers/scsi/53c7,8xx.chost->hostdata;
host3767drivers/scsi/53c7,8xx.ccmd->host->host_no);
host3783drivers/scsi/53c7,8xx.cprintk ("scsi%d : did this command ever run?\n", host->host_no);
host3786drivers/scsi/53c7,8xx.chost->host_no);
host3811drivers/scsi/53c7,8xx.cstruct Scsi_Host *host = cmd->host;
host3812drivers/scsi/53c7,8xx.cstruct NCR53c7x0_hostdata *hostdata = host ? 
host3813drivers/scsi/53c7,8xx.c(struct NCR53c7x0_hostdata *) host->hostdata : NULL;
host3814drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host3816drivers/scsi/53c7,8xx.chalt (host);
host3843drivers/scsi/53c7,8xx.ccmd->host->host_no);
host3852drivers/scsi/53c7,8xx.cstatic void print_dsa (struct Scsi_Host *host, unsigned long *dsa) {
host3854drivers/scsi/53c7,8xx.chost->hostdata;
host3860drivers/scsi/53c7,8xx.chost->host_no, (unsigned) dsa, hostdata->dsa_msgout,
host3884drivers/scsi/53c7,8xx.cshutdown (struct Scsi_Host *host) {
host3888drivers/scsi/53c7,8xx.chost->hostdata;
host3889drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host3892drivers/scsi/53c7,8xx.chalt (host);
host3893drivers/scsi/53c7,8xx.chostdata->soft_reset(host);
host3921drivers/scsi/53c7,8xx.chalt (struct Scsi_Host *host) {
host3926drivers/scsi/53c7,8xx.chost->hostdata;
host3927drivers/scsi/53c7,8xx.cNCR53c7x0_local_setup(host);
host3949drivers/scsi/53c7,8xx.cpanic("scsi%d: could not halt NCR chip\n", host->host_no);
host3958drivers/scsi/53c7,8xx.cint NCR53c7x0_release(struct Scsi_Host *host) {
host3959drivers/scsi/53c7,8xx.cshutdown (host);
host3961drivers/scsi/53c7,8xx.cif (host->irq != IRQ_NONE)
host3966drivers/scsi/53c7,8xx.cif (tmp->hostt == the_template && tmp->irq == host->irq)
host3969drivers/scsi/53c7,8xx.cfree_irq(host->irq);
host3971drivers/scsi/53c7,8xx.cif (host->dma_channel != DMA_NONE)
host3972drivers/scsi/53c7,8xx.cfree_dma(host->dma_channel);
host1077drivers/scsi/53c7,8xx.hvoid (* init_fixup)(struct Scsi_Host *host);
host1078drivers/scsi/53c7,8xx.hvoid (* init_save_regs)(struct Scsi_Host *host);
host1080drivers/scsi/53c7,8xx.hvoid (* soft_reset)(struct Scsi_Host *host);
host1081drivers/scsi/53c7,8xx.hint (* run_tests)(struct Scsi_Host *host);
host1089drivers/scsi/53c7,8xx.hint (* dstat_sir_intr)(struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd);
host1299drivers/scsi/53c7,8xx.h#define NCR53c7x0_local_setup(host)          \
host1300drivers/scsi/53c7,8xx.hNCR53c7x0_address_memory = (void *) (host)->base;      \
host1301drivers/scsi/53c7,8xx.hNCR53c7x0_address_io = (unsigned short) (host)->io_port;    \
host1303drivers/scsi/53c7,8xx.hhost->hostdata)-> options & OPTION_MEMORY_MAPPED 
host1344drivers/scsi/53c7,8xx.hhost->host_no, #symbol, i, A_##symbol##_used[i] -   \
host849drivers/scsi/NCR5380.ccmd->host->hostdata;
host2574drivers/scsi/NCR5380.cstruct Scsi_Host *instance = cmd->host;
host2761drivers/scsi/NCR5380.cNCR5380_setup(cmd->host);
host2763drivers/scsi/NCR5380.cNCR5380_print_status (cmd->host);
host105drivers/scsi/aha1542.c#define HOSTDATA(host) ((struct aha1542_hostdata *) &host->hostdata)
host522drivers/scsi/aha1542.cmb = HOSTDATA(SCpnt->host)->mb;
host523drivers/scsi/aha1542.cccb = HOSTDATA(SCpnt->host)->ccb;
host563drivers/scsi/aha1542.cmbo = HOSTDATA(SCpnt->host)->aha1542_last_mbo_used + 1;
host567drivers/scsi/aha1542.cif(mb[mbo].status == 0 && HOSTDATA(SCpnt->host)->SCint[mbo] == NULL)
host571drivers/scsi/aha1542.c} while (mbo != HOSTDATA(SCpnt->host)->aha1542_last_mbo_used);
host573drivers/scsi/aha1542.cif(mb[mbo].status || HOSTDATA(SCpnt->host)->SCint[mbo])
host576drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[mbo] = SCpnt;  /* This will effectively prevent someone else from
host579drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->aha1542_last_mbo_used = mbo;    
host661drivers/scsi/aha1542.caha1542_out(SCpnt->host->io_port, &ahacmd, 1);    /* start scsi command */
host1106drivers/scsi/aha1542.cinb(STATUS(SCpnt->host->io_port)),
host1107drivers/scsi/aha1542.cinb(INTRFLAGS(SCpnt->host->io_port)));
host1111drivers/scsi/aha1542.cmb = HOSTDATA(SCpnt->host)->mb;
host1112drivers/scsi/aha1542.cmbi = HOSTDATA(SCpnt->host)->aha1542_last_mbi_used + 1;
host1119drivers/scsi/aha1542.c} while (mbi != HOSTDATA(SCpnt->host)->aha1542_last_mbi_used);
host1124drivers/scsi/aha1542.cSCpnt->host->irq);
host1125drivers/scsi/aha1542.caha1542_intr_handle(SCpnt->host->irq, NULL);
host1133drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i])
host1135drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt) {
host1137drivers/scsi/aha1542.cif (HOSTDATA(SCpnt->host)->mb[i].status) {
host1139drivers/scsi/aha1542.caha1542_out(SCpnt->host->io_port, &ahacmd, 1);
host1152drivers/scsi/aha1542.cif (SCpnt == HOSTDATA(SCpnt->host)->SCint[mbo]){
host1154drivers/scsi/aha1542.caha1542_out(SCpnt->host->io_port, &ahacmd, 1); /* start scsi command */
host1176drivers/scsi/aha1542.coutb(SCRST, CONTROL(SCpnt->host->io_port));
host1181drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] == SCpnt)
host1183drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->ccb[i].op = 0x81;  /* BUS DEVICE RESET */
host1185drivers/scsi/aha1542.caha1542_out(SCpnt->host->io_port, &ahacmd, 1);
host1198drivers/scsi/aha1542.cif(HOSTDATA(SCpnt->host)->SCint[i] &&
host1199drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i]->target == SCpnt->target)
host1202drivers/scsi/aha1542.cSCtmp = HOSTDATA(SCpnt->host)->SCint[i];
host1208drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->SCint[i] = NULL;
host1209drivers/scsi/aha1542.cHOSTDATA(SCpnt->host)->mb[i].status = 0;
host1231drivers/scsi/aha1542.ctranslation_algorithm = HOSTDATA(disk->device->host)->bios_translation;
host863drivers/scsi/aha274x.cstruct Scsi_Host *host;
host935drivers/scsi/aha274x.chost = scsi_register(template, sizeof(struct aha274x_host));
host936drivers/scsi/aha274x.chost->this_id = scsi_id;
host937drivers/scsi/aha274x.chost->irq = irq;
host939drivers/scsi/aha274x.caha274x_boards[irq] = host;
host941drivers/scsi/aha274x.cp = (struct aha274x_host *)host->hostdata;
host1163drivers/scsi/aha274x.cp = (struct aha274x_host *)cmd->host->hostdata;
host1270drivers/scsi/aha274x.cp = (struct aha274x_host *)cmd->host->hostdata;
host1393drivers/scsi/aha274x.cp = (struct aha274x_host *)cmd->host->hostdata;
host181drivers/scsi/buslogic.c#define HOSTDATA(host) ((struct hostdata *)&(host)->hostdata)
host184drivers/scsi/buslogic.cstatic struct Scsi_Host *host[7] = { NULL, };
host454drivers/scsi/buslogic.cshpnt = host[irq - 9];
host579drivers/scsi/buslogic.cstruct Scsi_Host *shpnt = scpnt->host;
host1252drivers/scsi/buslogic.chost[irq - 9] = shpnt;
host1343drivers/scsi/buslogic.cbuslogic_out(shpnt->host->io_port, buscmd, sizeof buscmd);
host1362drivers/scsi/buslogic.cinb(STATUS(scpnt->host->io_port)),
host1363drivers/scsi/buslogic.cinb(INTERRUPT(scpnt->host->io_port)));
host1367drivers/scsi/buslogic.cmb = HOSTDATA(scpnt->host)->mb;
host1368drivers/scsi/buslogic.clast_mbi = HOSTDATA(scpnt->host)->last_mbi_used;
host1380drivers/scsi/buslogic.c} while (mbi != HOSTDATA(scpnt->host)->last_mbi_used);
host1385drivers/scsi/buslogic.cscpnt->host->irq);
host1386drivers/scsi/buslogic.cHOSTDATA(scpnt->host)->last_mbi_used = last_mbi;
host1387drivers/scsi/buslogic.cbuslogic_interrupt(scpnt->host->irq, NULL);
host1396drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->sc[i]) {
host1397drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->sc[i] == scpnt) {
host1400drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->mb[i].status != MBX_NOT_IN_USE) {
host1402drivers/scsi/buslogic.cbuslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd);
host1420drivers/scsi/buslogic.cif (scpnt == HOSTDATA(scpnt->host)->sc[mbo]) {
host1422drivers/scsi/buslogic.cbuslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd);
host1446drivers/scsi/buslogic.coutb(RSBUS, CONTROL(scpnt->host->io_port));
host1451drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->sc[i] == scpnt) {
host1452drivers/scsi/buslogic.cHOSTDATA(scpnt->host)->ccbs[i].op = CCB_OP_BUS_RESET;
host1456drivers/scsi/buslogic.cbuslogic_out(scpnt->host->io_port, buscmd, sizeof buscmd);
host1470drivers/scsi/buslogic.cif (HOSTDATA(scpnt->host)->sc[i]
host1471drivers/scsi/buslogic.c&& HOSTDATA(scpnt->host)->sc[i]->target == scpnt->target) {
host1472drivers/scsi/buslogic.cScsi_Cmnd *sctmp = HOSTDATA(scpnt->host)->sc[i];
host1481drivers/scsi/buslogic.cHOSTDATA(scpnt->host)->sc[i] = NULL;
host1482drivers/scsi/buslogic.cHOSTDATA(scpnt->host)->mb[i].status = MBX_NOT_IN_USE;
host1506drivers/scsi/buslogic.cif (HOSTDATA(disk->device->host)->bios_translation == BIOS_TRANSLATION_BIG
host552drivers/scsi/constants.ccmd->host->host_no, 
host607drivers/scsi/eata.cj = ((struct hostdata *) SCpnt->host->hostdata)->board_number;
host709drivers/scsi/eata.cj = ((struct hostdata *) SCarg->host->hostdata)->board_number;
host769drivers/scsi/eata.cj = ((struct hostdata *) SCarg->host->hostdata)->board_number;
host136drivers/scsi/eata_dma.cconst char *eata_info(struct Scsi_Host *host)
host169drivers/scsi/eata_dma.cbase = (uint) cmd->host->base;
host315drivers/scsi/eata_dma.csh = cmd->host;
host453drivers/scsi/eata_dma.cwhile (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY)
host507drivers/scsi/eata_dma.cwhile (inb((uint)(cmd->host->base) + HA_RAUXSTAT) & HA_ABUSY)
host519drivers/scsi/eata_dma.cfor (x = 0; x < cmd->host->can_queue; x++) {
host544drivers/scsi/eata_dma.cinb((uint) (cmd->host->base) + HA_RSTATUS);  /* This might cause trouble */
host545drivers/scsi/eata_dma.ceata_send_command(0, (uint) cmd->host->base, EATA_CMD_RESET);
host561drivers/scsi/eata_dma.cfor (x = 0; x < cmd->host->can_queue; x++) {
host158drivers/scsi/eata_dma.h#define HD(cmd)  ((hostdata *)&(cmd->host->hostdata))
host160drivers/scsi/eata_dma.h#define SD(host) ((hostdata *)&(host->hostdata))
host1415drivers/scsi/fdomain.cif (!SCpnt || !SCpnt->host) {
host1419drivers/scsi/fdomain.cprintk( "%s\n", fdomain_16x0_info( SCpnt->host ) );
host1420drivers/scsi/fdomain.cprint_banner( SCpnt->host );
host520drivers/scsi/qlogic.cint  qlogic_detect(Scsi_Host_Template * host)
host551drivers/scsi/qlogic.cqinitid = host->this_id;
host588drivers/scsi/qlogic.chost->can_queue = 1;
host595drivers/scsi/qlogic.chreg = scsi_register( host , 0 );  /* no host data */
host604drivers/scsi/qlogic.chost->name = qinfo;
host647drivers/scsi/qlogic.cconst char  *qlogic_info(struct Scsi_Host * host)
host274drivers/scsi/scsi.cprintk ("scan_scsis_done(%d, %06x)\n", SCpnt->host, SCpnt->result);
host338drivers/scsi/scsi.cSDpnt->host = shpnt;
host355drivers/scsi/scsi.cSCpnt->host = SDpnt->host;
host663drivers/scsi/scsi.cSCpnt->host->host_no);
host671drivers/scsi/scsi.cprintk("Unable to reset scsi host %d - ",SCpnt->host->host_no);
host700drivers/scsi/scsi.cSCpnt =  device->host->host_queue;
host710drivers/scsi/scsi.cif (SCSI_BLOCK(device->host)) return NULL;
host714drivers/scsi/scsi.ctablesize = device->host->sg_tablesize;
host772drivers/scsi/scsi.cstruct Scsi_Host * host;
host784drivers/scsi/scsi.chost = device->host;
host786drivers/scsi/scsi.cif (intr_count && SCSI_BLOCK(host)) return NULL;
host789drivers/scsi/scsi.cSCpnt = host->host_queue;
host819drivers/scsi/scsi.ctablesize = device->host->sg_tablesize;
host873drivers/scsi/scsi.cstruct Scsi_Host * host;
host882drivers/scsi/scsi.chost = SCpnt->host;
host890drivers/scsi/scsi.ctemp = host->last_reset + MIN_RESET_DELAY;
host902drivers/scsi/scsi.c"bufflen = %d, done = %08x)\n", SCpnt->host->host_no, SCpnt->target, SCpnt->cmnd, SCpnt->buffer, SCpnt->bufflen, SCpnt->done);
host905drivers/scsi/scsi.cif (host->can_queue)
host909drivers/scsi/scsi.chost->hostt->queuecommand);
host919drivers/scsi/scsi.cif(!intr_count && SCpnt->host->irq)
host920drivers/scsi/scsi.cdisable_irq(SCpnt->host->irq);
host922drivers/scsi/scsi.chost->hostt->queuecommand (SCpnt, scsi_done);
host924drivers/scsi/scsi.cif(!intr_count && SCpnt->host->irq)
host925drivers/scsi/scsi.cenable_irq(SCpnt->host->irq);
host931drivers/scsi/scsi.cprintk("command() :  routine at %08x\n", host->hostt->command);
host933drivers/scsi/scsi.ctemp=host->hostt->command (SCpnt);
host938drivers/scsi/scsi.cprintk("done(host = %d, result = %04x) : routine at %08x\n", host->host_no, temp);
host986drivers/scsi/scsi.cstruct Scsi_Host * host = SCpnt->host;
host994drivers/scsi/scsi.c"command : " , host->host_no, target, buffer, bufflen, done, timeout, retries);
host1001drivers/scsi/scsi.cif (!host)
host1019drivers/scsi/scsi.cwhile (SCSI_BLOCK(host)) {
host1021drivers/scsi/scsi.cSCSI_SLEEP(&host->host_wait, SCSI_BLOCK(host));
host1025drivers/scsi/scsi.cif (host->block) host_active = host;
host1027drivers/scsi/scsi.chost->host_busy++;
host1040drivers/scsi/scsi.cSCpnt->host = host;
host1085drivers/scsi/scsi.cprintk("scsi: reset(%d)\n", SCpnt->host->host_no);
host1120drivers/scsi/scsi.cprintk("scsi%d : ", SCpnt->host->host_no);
host1183drivers/scsi/scsi.cstruct Scsi_Host * host = SCpnt->host;
host1205drivers/scsi/scsi.cprintk("In scsi_done(host = %d, result = %06x)\n", host->host_no, result);
host1226drivers/scsi/scsi.cSCpnt->host->host_no, SCpnt->target, SCpnt->lun);
host1332drivers/scsi/scsi.cSCpnt->host->host_no);
host1444drivers/scsi/scsi.c&& !(jiffies < SCpnt->host->last_reset + MIN_RESET_PERIOD)
host1448drivers/scsi/scsi.cSCpnt->host->host_no);
host1486drivers/scsi/scsi.chost->host_busy--; /* Indicate that we are free */
host1488drivers/scsi/scsi.cif (host->block && host->host_busy == 0) {
host1496drivers/scsi/scsi.cfor (next = host->block; next != host; next = next->block)
host1502drivers/scsi/scsi.cwake_up(&host->host_wait);
host1535drivers/scsi/scsi.cstruct Scsi_Host * host = SCpnt->host;
host1570drivers/scsi/scsi.cif (!host->host_busy) {
host1576drivers/scsi/scsi.cSCpnt->pid, SCpnt->host->host_no, (int) SCpnt->target, (int)
host1582drivers/scsi/scsi.cswitch(host->hostt->abort(SCpnt)) {
host1636drivers/scsi/scsi.cstruct Scsi_Host * host = SCpnt->host;
host1639drivers/scsi/scsi.cprintk("Danger Will Robinson! - SCSI bus for host %d is being reset.\n",host->host_no);
host1654drivers/scsi/scsi.cif (host->host_busy)
host1657drivers/scsi/scsi.cSCpnt1 = host->host_queue;
host1670drivers/scsi/scsi.chost->last_reset = jiffies;
host1671drivers/scsi/scsi.ctemp = host->hostt->reset(SCpnt);
host1672drivers/scsi/scsi.chost->last_reset = jiffies;
host1676drivers/scsi/scsi.cif (!host->block) host->host_busy++;
host1678drivers/scsi/scsi.chost->last_reset = jiffies;
host1679drivers/scsi/scsi.ctemp = host->hostt->reset(SCpnt);
host1680drivers/scsi/scsi.chost->last_reset = jiffies;
host1681drivers/scsi/scsi.cif (!host->block) host->host_busy--;
host1732drivers/scsi/scsi.cstruct Scsi_Host * host;
host1746drivers/scsi/scsi.cfor(host = scsi_hostlist; host; host = host->next) {
host1747drivers/scsi/scsi.cfor(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next)
host1776drivers/scsi/scsi.cstruct Scsi_Host * host;
host1803drivers/scsi/scsi.cfor(host = scsi_hostlist; host; host = host->next)
host1804drivers/scsi/scsi.cfor(SCpnt = host->host_queue; SCpnt; SCpnt = SCpnt->next)
host1977drivers/scsi/scsi.cstruct Scsi_Host * host = NULL;
host2021drivers/scsi/scsi.cfor(j=0;j<SDpnt->host->cmd_per_lun;j++){
host2023drivers/scsi/scsi.cSCpnt->host = SDpnt->host;
host2035drivers/scsi/scsi.chost = SDpnt->host;
host2036drivers/scsi/scsi.cif(host->host_queue)
host2037drivers/scsi/scsi.chost->host_queue->prev = SCpnt;
host2038drivers/scsi/scsi.cSCpnt->next = host->host_queue;
host2040drivers/scsi/scsi.chost->host_queue = SCpnt;
host2054drivers/scsi/scsi.chost = SDpnt->host;
host2057drivers/scsi/scsi.cdma_sectors += ((host->sg_tablesize *
host2059drivers/scsi/scsi.chost->cmd_per_lun;
host2061drivers/scsi/scsi.cif(host->unchecked_isa_dma &&
host2064drivers/scsi/scsi.cdma_sectors += (PAGE_SIZE >> 9) * host->sg_tablesize *
host2065drivers/scsi/scsi.chost->cmd_per_lun;
host2162drivers/scsi/scsi.cstruct Scsi_Host * host = NULL;
host2216drivers/scsi/scsi.cif(SDpnt->host->hostt == tpnt)
host2221drivers/scsi/scsi.cfor(j=0;j<SDpnt->host->cmd_per_lun;j++){
host2223drivers/scsi/scsi.cSCpnt->host = SDpnt->host;
host2235drivers/scsi/scsi.chost = SDpnt->host;
host2236drivers/scsi/scsi.cSCpnt->next = host->host_queue;
host2238drivers/scsi/scsi.chost->host_queue = SCpnt;
host2239drivers/scsi/scsi.cif(host->host_queue)
host2240drivers/scsi/scsi.chost->host_queue->prev = SCpnt;
host2255drivers/scsi/scsi.chost = SDpnt->host;
host2258drivers/scsi/scsi.cnew_dma_sectors += ((host->sg_tablesize *
host2260drivers/scsi/scsi.chost->cmd_per_lun;
host2262drivers/scsi/scsi.cif(host->unchecked_isa_dma &&
host2265drivers/scsi/scsi.cnew_dma_sectors += (PAGE_SIZE >> 9) * host->sg_tablesize *
host2266drivers/scsi/scsi.chost->cmd_per_lun;
host2339drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt && sdpnt->host->hostt->usage_count
host2340drivers/scsi/scsi.c&& *sdpnt->host->hostt->usage_count) return;
host2363drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt)
host2377drivers/scsi/scsi.cif(sdpnt->host->hostt == tpnt)
host2378drivers/scsi/scsi.cwhile (sdpnt->host->host_queue) {
host2379drivers/scsi/scsi.cSCpnt = sdpnt->host->host_queue->next;
host2380drivers/scsi/scsi.cscsi_init_free((char *) sdpnt->host->host_queue, sizeof(Scsi_Cmnd));
host2381drivers/scsi/scsi.csdpnt->host->host_queue = SCpnt;
host2391drivers/scsi/scsi.cif (sdpnt->host->hostt == tpnt) {
host2506drivers/scsi/scsi.ci++, SCpnt->host->host_no,
host298drivers/scsi/scsi.hstruct Scsi_Host * host;
host444drivers/scsi/scsi.hstruct Scsi_Host * host;
host584drivers/scsi/scsi.hif (SCpnt->host->block) {
host587drivers/scsi/scsi.hfor (next = SCpnt->host->block; next != SCpnt->host;
host29drivers/scsi/scsi_ioctl.cstatic int ioctl_probe(struct Scsi_Host * host, void *buffer)
host35drivers/scsi/scsi_ioctl.cif ((temp = host->hostt->present) && buffer) {
host37drivers/scsi/scsi_ioctl.cif(host->hostt->info)
host38drivers/scsi/scsi_ioctl.cstring = host->hostt->info(host);
host40drivers/scsi/scsi_ioctl.cstring = host->hostt->name;
host129drivers/scsi/scsi_ioctl.cdev->host->host_no,
host253drivers/scsi/scsi_ioctl.c(dev->host->host_no << 16), (unsigned long *) arg);
host268drivers/scsi/scsi_ioctl.creturn ioctl_probe(dev->host, arg);
host50drivers/scsi/sd.c#define CLUSTERABLE_DEVICE(SC) (SC->host->hostt->use_clustering && \
host108drivers/scsi/sd.cif (rscsi_disks[target].device->host->hostt->usage_count)
host109drivers/scsi/sd.c(*rscsi_disks[target].device->host->hostt->usage_count)++;
host121drivers/scsi/sd.cif (rscsi_disks[target].device->host->hostt->usage_count)
host122drivers/scsi/sd.c(*rscsi_disks[target].device->host->hostt->usage_count)--;
host187drivers/scsi/sd.cprintk("sd%c : rw_intr(%d, %d)\n", 'a' + MINOR(SCpnt->request.dev), SCpnt->host->host_no, result);
host336drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no,
host529drivers/scsi/sd.cISA_DMA_THRESHOLD && SCpnt->host->unchecked_isa_dma) {
host551drivers/scsi/sd.c} else if (SCpnt->host->sg_tablesize == 0 ||
host562drivers/scsi/sd.cif (SCpnt->host->sg_tablesize != 0 &&
host587drivers/scsi/sd.c(SCpnt->host->unchecked_isa_dma &&
host589drivers/scsi/sd.cif (count < SCpnt->host->sg_tablesize) count++;
host597drivers/scsi/sd.cif(SCpnt->host->unchecked_isa_dma &&
host606drivers/scsi/sd.cif(SCpnt->host->sg_tablesize < max_sg) max_sg = SCpnt->host->sg_tablesize;
host628drivers/scsi/sd.cISA_DMA_THRESHOLD && (SCpnt->host->unchecked_isa_dma) &&
host672drivers/scsi/sd.c(SCpnt->host->unchecked_isa_dma) &&
host698drivers/scsi/sd.cif(count < SCpnt->use_sg || SCpnt->use_sg > SCpnt->host->sg_tablesize){
host727drivers/scsi/sd.c(SCpnt->host->unchecked_isa_dma)) {
host1139drivers/scsi/sd.cif(rscsi_disks[0].device && rscsi_disks[0].device->host->sg_tablesize)
host1153drivers/scsi/sd.cSDp->host->host_no , SDp->id, SDp->lun); 
host22drivers/scsi/sd_ioctl.cstruct Scsi_Host * host;
host32drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
host36drivers/scsi/sd_ioctl.cif(host->hostt->bios_param != NULL)
host37drivers/scsi/sd_ioctl.chost->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4],
host121drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
host122drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)++;
host131drivers/scsi/sg.cif (scsi_generics[dev].device->host->hostt->usage_count)
host132drivers/scsi/sg.c(*scsi_generics[dev].device->host->hostt->usage_count)--;
host69drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)
host70drivers/scsi/sr.c(*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--;
host271drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
host484drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)
host485drivers/scsi/sr.c(*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++;
host647drivers/scsi/sr.cif (SCpnt->host->sg_tablesize > 0 &&
host661drivers/scsi/sr.cwhile(bh && count < SCpnt->host->sg_tablesize) {
host670drivers/scsi/sr.cif (count < SCpnt->host->sg_tablesize) {
host715drivers/scsi/sr.cISA_DMA_THRESHOLD & (SCpnt->host->unchecked_isa_dma)) {
host779drivers/scsi/sr.c(SCpnt->host->unchecked_isa_dma))
host861drivers/scsi/sr.cSDp->host->host_no , SDp->id, SDp->lun); 
host1034drivers/scsi/sr.cif(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize)
host75drivers/scsi/sr_ioctl.cscsi_CDs[target].device->host->host_no, 
host522drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
host523drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
host645drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
host646drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)++;
host734drivers/scsi/st.cif (scsi_tapes[dev].device->host->hostt->usage_count)
host735drivers/scsi/st.c(*scsi_tapes[dev].device->host->hostt->usage_count)--;
host1971drivers/scsi/st.cSDp->host->host_no , SDp->id, SDp->lun); 
host551drivers/scsi/u14-34f.cj = ((struct hostdata *) SCpnt->host->hostdata)->board_number;
host642drivers/scsi/u14-34f.cj = ((struct hostdata *) SCarg->host->hostdata)->board_number;
host702drivers/scsi/u14-34f.cj = ((struct hostdata *) SCarg->host->hostdata)->board_number;
host342drivers/scsi/wd7000.cAdapter *host;                /* host adapter */
host529drivers/scsi/wd7000.cstatic inline void wd7000_enable_intr(Adapter *host)
host531drivers/scsi/wd7000.chost->control |= INT_EN;
host532drivers/scsi/wd7000.coutb(host->control, host->iobase+ASC_CONTROL);
host536drivers/scsi/wd7000.cstatic inline void wd7000_enable_dma(Adapter *host)
host538drivers/scsi/wd7000.chost->control |= DMA_EN;
host539drivers/scsi/wd7000.coutb(host->control,host->iobase+ASC_CONTROL);
host540drivers/scsi/wd7000.cset_dma_mode(host->dma, DMA_MODE_CASCADE);
host541drivers/scsi/wd7000.cenable_dma(host->dma);
host567drivers/scsi/wd7000.cstatic inline int command_out(Adapter *host, unchar *cmd, int len)
host569drivers/scsi/wd7000.cWAIT(host->iobase+ASC_STAT,ASC_STATMASK,CMD_RDY,0);
host572drivers/scsi/wd7000.coutb(*cmd, host->iobase+ASC_COMMAND);
host573drivers/scsi/wd7000.cWAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0);
host574drivers/scsi/wd7000.c}  while (inb(host->iobase+ASC_STAT) & CMD_REJ);
host680drivers/scsi/wd7000.cstatic int mail_out( Adapter *host, Scb *scbptr )
host688drivers/scsi/wd7000.cMailbox *ogmbs = host->mb.ogmb;
host689drivers/scsi/wd7000.cint *next_ogmb = &(host->next_ogmb);
host729drivers/scsi/wd7000.cwd7000_enable_intr(host); 
host732drivers/scsi/wd7000.ccommand_out( host, &start_ogmb, 1 );
host798drivers/scsi/wd7000.c#define wd7000_intr_ack(host)  outb(0,host->iobase+ASC_INTR_ACK)
host807drivers/scsi/wd7000.cAdapter *host = irq2host[irq];  /* This MUST be set!!! */
host808drivers/scsi/wd7000.cMailbox *icmbs = host->mb.icmb;
host811drivers/scsi/wd7000.cprintk("wd7000_intr_handle: irq = %d, host = %06x\n", irq, host);
host814drivers/scsi/wd7000.cflag = inb(host->iobase+ASC_INTR_STAT);
host819drivers/scsi/wd7000.cif (!(inb(host->iobase+ASC_STAT) & INT_IM))  {
host831drivers/scsi/wd7000.cwd7000_intr_ack(host);
host846drivers/scsi/wd7000.cwd7000_intr_ack(host);
host857drivers/scsi/wd7000.cwd7000_intr_ack(host);
host882drivers/scsi/wd7000.cwd7000_intr_ack(host);
host894drivers/scsi/wd7000.cAdapter *host = (Adapter *) SCpnt->host->hostdata;
host907drivers/scsi/wd7000.cscb->host = host;
host913drivers/scsi/wd7000.cif (SCpnt->host->sg_tablesize == SG_NONE)  {
host934drivers/scsi/wd7000.cwhile (!mail_out(host, scb)) /* keep trying */;
host950drivers/scsi/wd7000.cint wd7000_diagnostics( Adapter *host, int code )
host965drivers/scsi/wd7000.cmail_out(host, (struct scb *) &icb);
host983drivers/scsi/wd7000.cint wd7000_init( Adapter *host )
host994drivers/scsi/wd7000.coutb(ASC_RES, host->iobase+ASC_CONTROL);
host996drivers/scsi/wd7000.coutb(0,host->iobase+ASC_CONTROL);
host997drivers/scsi/wd7000.chost->control = 0;   /* this must always shadow ASC_CONTROL */
host998drivers/scsi/wd7000.cWAIT(host->iobase+ASC_STAT, ASC_STATMASK, CMD_RDY, 0);
host1000drivers/scsi/wd7000.cif ((diag = inb(host->iobase+ASC_INTR_STAT)) != 1)  {
host1029drivers/scsi/wd7000.cmemset(&(host->mb), 0, sizeof(host->mb));
host1032drivers/scsi/wd7000.cany2scsi((unchar *) &(init_cmd.mailboxes), (int) &(host->mb));
host1033drivers/scsi/wd7000.cif (!command_out(host, (unchar *) &init_cmd, sizeof(init_cmd)))  {
host1037drivers/scsi/wd7000.cWAIT(host->iobase+ASC_STAT, ASC_STATMASK, ASC_INIT, 0);
host1039drivers/scsi/wd7000.cif (request_irq(host->irq, wd7000_intr_handle, SA_INTERRUPT, "wd7000")) {
host1040drivers/scsi/wd7000.cprintk("wd7000_init: can't get IRQ %d.\n", host->irq);
host1043drivers/scsi/wd7000.cif (request_dma(host->dma,"wd7000"))  {
host1044drivers/scsi/wd7000.cprintk("wd7000_init: can't get DMA channel %d.\n", host->dma);
host1045drivers/scsi/wd7000.cfree_irq(host->irq);
host1048drivers/scsi/wd7000.cwd7000_enable_dma(host);
host1049drivers/scsi/wd7000.cwd7000_enable_intr(host);
host1051drivers/scsi/wd7000.cif (!wd7000_diagnostics(host,ICB_DIAG_FULL))  {
host1052drivers/scsi/wd7000.cfree_dma(host->dma);
host1053drivers/scsi/wd7000.cfree_irq(host->irq);
host1065drivers/scsi/wd7000.cvoid wd7000_revision(Adapter *host)
host1076drivers/scsi/wd7000.cmail_out(host, (struct scb *) &icb);
host1078drivers/scsi/wd7000.chost->rev1 = icb.primary;
host1079drivers/scsi/wd7000.chost->rev2 = icb.secondary;
host1098drivers/scsi/wd7000.cAdapter *host = NULL;
host1120drivers/scsi/wd7000.cprintk("IO %xh already in use.\n", host->iobase);
host1131drivers/scsi/wd7000.chost = (Adapter *) sh->hostdata;
host1134drivers/scsi/wd7000.c(int)host);
host1136drivers/scsi/wd7000.cmemset( host, 0, sizeof(Adapter) );
host1137drivers/scsi/wd7000.chost->sh = sh;
host1138drivers/scsi/wd7000.chost->irq = cfg->irq;
host1139drivers/scsi/wd7000.chost->iobase = cfg->iobase;
host1140drivers/scsi/wd7000.chost->dma = cfg->dma;
host1141drivers/scsi/wd7000.cirq2host[host->irq] = host;
host1143drivers/scsi/wd7000.cif (!wd7000_init(host))  {  /* Initialization failed */
host1151drivers/scsi/wd7000.cwd7000_revision(host);   /* important for scatter/gather */
host1154drivers/scsi/wd7000.chost->rev1, host->rev2);
host1156drivers/scsi/wd7000.chost->iobase, host->irq, host->dma);
host1158drivers/scsi/wd7000.crequest_region(host->iobase, 4,"wd7000"); /* Register our ports */
host1162drivers/scsi/wd7000.cif (host->rev1 < 6)  sh->sg_tablesize = SG_NONE;
host1181drivers/scsi/wd7000.cAdapter *host = (Adapter *) SCpnt->host->hostdata;
host1183drivers/scsi/wd7000.cif (inb(host->iobase+ASC_STAT) & INT_IM)  {
host1185drivers/scsi/wd7000.cwd7000_intr_handle(host->irq, NULL);