Lines Matching refs:host

171 		host->host_no, cmd->result)); \
272 static int full_reset(struct Scsi_Host * host);
284 ncr_dump (struct Scsi_Host *host) in ncr_dump() argument
288 host->hostdata[0]; in ncr_dump()
292 printk("scsi%d: Chip register contents:\n", host->host_no); in ncr_dump()
435 ncr_halt (struct Scsi_Host *host) in ncr_halt() argument
440 host->hostdata[0]; in ncr_halt()
491 printk(KERN_ALERT "scsi%d: could not halt NCR chip\n", host->host_no); in ncr_halt()
513 sim710_soft_reset (struct Scsi_Host *host) in sim710_soft_reset() argument
547 NCR_write8(SCID_REG, 1 << host->this_id); in sim710_soft_reset()
574 sim710_driver_init (struct Scsi_Host *host) in sim710_driver_init() argument
577 host->hostdata[0]; in sim710_driver_init()
613 handle_sdtr (struct Scsi_Host * host, Scsi_Cmnd * cmd, u32 resa, u32 resb) in handle_sdtr() argument
615 struct sim710_hostdata *hostdata = (struct sim710_hostdata *)host->hostdata[0]; in handle_sdtr()
621 host->host_no, hostdata->msgin_buf[3], hostdata->msgin_buf[4])); in handle_sdtr()
630 host->host_no, hostdata->msgin_buf[3], hostdata->msgin_buf[4])); in handle_sdtr()
651 datapath_residual (struct Scsi_Host *host) { in datapath_residual() argument
680 handle_idd (struct Scsi_Host * host, Scsi_Cmnd * cmd) in handle_idd() argument
683 (struct sim710_hostdata *)host->hostdata[0]; in handle_idd()
713 host->host_no, index); in handle_idd()
725 handle_phase_mismatch (struct Scsi_Host * host, Scsi_Cmnd * cmd) in handle_phase_mismatch() argument
728 (struct sim710_hostdata *)host->hostdata[0]; in handle_phase_mismatch()
737 host->host_no, sbcl_to_phase(sbcl), sbcl, index)); in handle_phase_mismatch()
753 host->host_no); in handle_phase_mismatch()
759 host->host_no); in handle_phase_mismatch()
764 host->host_no, sbcl_to_phase(sbcl)); in handle_phase_mismatch()
780 residual = datapath_residual (host); in handle_phase_mismatch()
783 host->host_no, residual); in handle_phase_mismatch()
787 host->host_no, sg_id, oaddr, olen, naddr, nlen, residual)); in handle_phase_mismatch()
790 host->host_no, oaddr, olen, naddr, nlen); in handle_phase_mismatch()
809 residual = datapath_residual (host); in handle_phase_mismatch()
813 host->host_no, sg_id, oaddr, olen, naddr, nlen, residual)); in handle_phase_mismatch()
816 host->host_no, oaddr, olen, naddr, nlen); in handle_phase_mismatch()
829 host->host_no, index); in handle_phase_mismatch()
834 host->host_no, sbcl_to_phase(sbcl), index); in handle_phase_mismatch()
846 handle_script_int(struct Scsi_Host * host, Scsi_Cmnd * cmd) in handle_script_int() argument
849 (struct sim710_hostdata *)host->hostdata[0]; in handle_script_int()
864 resume_offset = handle_sdtr(host, cmd, in handle_script_int()
868 resume_offset = handle_sdtr(host, cmd, 0, Ent_resume_msgin2b); in handle_script_int()
871 resume_offset = handle_sdtr(host, cmd, 0, Ent_resume_msgin3b); in handle_script_int()
897 host->host_no, sbcl_to_phase(sbcl), sbcl); in handle_script_int()
916 host->host_no, dsps, sbcl_to_phase(sbcl)); in handle_script_int()
927 struct Scsi_Host *host = cmd->host; in run_command() local
932 DEB(DEB_CMND, printk("scsi%d: id%d starting ", host->host_no, in run_command()
975 host->host_no, cmd->target)); in run_command()
1139 struct Scsi_Host * host = (struct Scsi_Host *)dev_id; in sim710_intr_handle() local
1140 struct sim710_hostdata *hostdata = (struct sim710_hostdata *)host->hostdata[0]; in sim710_intr_handle()
1165 host->host_no, sim710_intrs, istat, sstat0, dstat, in sim710_intr_handle()
1185 host->host_no, lcrc); in sim710_intr_handle()
1194 host->host_no, id)); in sim710_intr_handle()
1201 host->host_no, hostdata->running->target, in sim710_intr_handle()
1215 printk("scsi%d: No active command!\n", host->host_no); in sim710_intr_handle()
1218 host->host_no, sim710_intrs, istat, sstat0, dstat, in sim710_intr_handle()
1224 DEB(DEB_TOUT, printk("scsi%d: Selection timeout\n", host->host_no)); in sim710_intr_handle()
1231 printk("scsi%d: Serious error, sstat0 = %02x\n", host->host_no, in sim710_intr_handle()
1237 printk("scsi%d: Serious error, dstat = %02x\n", host->host_no, in sim710_intr_handle()
1243 resume_offset = handle_script_int(host, cmd); in sim710_intr_handle()
1245 resume_offset = handle_phase_mismatch(host, cmd); in sim710_intr_handle()
1250 resume_offset = handle_idd(host, cmd); in sim710_intr_handle()
1254 printk("scsi%d: Spurious interrupt!\n", host->host_no); in sim710_intr_handle()
1267 host->host_no, resume_offset/4)); in sim710_intr_handle()
1280 "and resetting SCSI bus and chip\n", host->host_no); in sim710_intr_handle()
1282 full_reset(host); in sim710_intr_handle()
1290 struct Scsi_Host *host = cmd->host; in sim710_queuecommand() local
1291 struct sim710_hostdata *hostdata = (struct sim710_hostdata *)host->hostdata[0]; in sim710_queuecommand()
1302 DEB(DEB_CMND, printk("scsi%d: id%d queuing ", host->host_no, in sim710_queuecommand()
1315 printk("scsi%d: ignoring target %d\n", host->host_no, cmd->target); in sim710_queuecommand()
1351 struct Scsi_Host * host = NULL; in sim710_detect() local
1536 host = scsi_register(tpnt, 4); in sim710_detect()
1537 if(host == NULL) { in sim710_detect()
1538 free_pages(host->hostdata[0], hostdata_order); in sim710_detect()
1541 our_hosts[chips] = host; in sim710_detect()
1542 host->hostdata[0] = page; in sim710_detect()
1543 hostdata = (struct sim710_hostdata *)host->hostdata[0]; in sim710_detect()
1549 host->host_no, scsi_id, base_addr, requested_irq); in sim710_detect()
1554 host->irq = requested_irq; in sim710_detect()
1555 host->this_id = scsi_id; in sim710_detect()
1556 host->unique_id = base_addr; in sim710_detect()
1557 host->base = base_addr; in sim710_detect()
1560 if (ncr_halt(host)) { in sim710_detect()
1561 free_pages(host->hostdata[0], hostdata_order); in sim710_detect()
1562 scsi_unregister (host); in sim710_detect()
1564 host->host_no, base_addr); in sim710_detect()
1567 DEB(DEB_ANY,ncr_dump(host)); in sim710_detect()
1569 printk("scsi%d: Revision 0x%x\n",host->host_no,revision); in sim710_detect()
1570 sim710_soft_reset(host); in sim710_detect()
1572 sim710_driver_init(host); in sim710_detect()
1574 request_region((u32)host->base, 64, "sim710"); in sim710_detect()
1591 printk("scsi%d: Chip is using IRQ %d\n", host->host_no, in sim710_detect()
1593 requested_irq = host->irq = probed_irq; in sim710_detect()
1597 host->host_no, probed_irq); in sim710_detect()
1598 ncr_halt(host); in sim710_detect()
1599 free_pages(host->hostdata[0], hostdata_order); in sim710_detect()
1600 scsi_unregister (host); in sim710_detect()
1601 release_region((u32)host->base, 64); in sim710_detect()
1607 host->host_no, requested_irq, probed_irq); in sim710_detect()
1610 host->host_no, probed_irq); in sim710_detect()
1616 host->host_no, hostdata->test1_dst); in sim710_detect()
1619 host->host_no, A_int_test1, dsps); in sim710_detect()
1620 ncr_dump(host); in sim710_detect()
1621 ncr_halt(host); in sim710_detect()
1622 free_pages(host->hostdata[0], hostdata_order); in sim710_detect()
1623 scsi_unregister (host); in sim710_detect()
1624 release_region((u32)host->base, 64); in sim710_detect()
1627 printk("scsi%d: test 1 completed ok.\n", host->host_no); in sim710_detect()
1637 host = our_hosts[indx]; in sim710_detect()
1638 if (request_irq(host->irq, do_sim710_intr_handle, in sim710_detect()
1639 SA_INTERRUPT | SA_SHIRQ, "sim710", host)) in sim710_detect()
1642 host->host_no, host->irq); in sim710_detect()
1643 ncr_halt(host); in sim710_detect()
1644 free_pages(host->hostdata[0], hostdata_order); in sim710_detect()
1645 scsi_unregister (host); in sim710_detect()
1656 struct Scsi_Host * host = cmd->host; in sim710_abort() local
1659 host->host_no, cmd->target); in sim710_abort()
1670 struct Scsi_Host * host = SCpnt->host; in sim710_dev_reset() local
1673 host->host_no, SCpnt->target); in sim710_dev_reset()
1684 struct Scsi_Host * host = SCpnt->host; in sim710_bus_reset() local
1686 printk("scsi%d: Unable to do SCSI bus reset\n", host->host_no); in sim710_bus_reset()
1691 full_reset(struct Scsi_Host * host) in full_reset() argument
1694 host->hostdata[0]; in full_reset()
1712 if (ncr_halt(host)) { in full_reset()
1721 host->host_no, istat, sstat0, sstat1, dstat); in full_reset()
1723 host->host_no, dsp, in full_reset()
1729 host->host_no, target); in full_reset()
1736 sim710_soft_reset(host); in full_reset()
1737 sim710_driver_init(host); in full_reset()
1754 struct Scsi_Host * host = SCpnt->host; in sim710_host_reset() local
1756 printk("scsi%d: >>>>>>>>>>>> Host reset <<<<<<<<<<<<\n", host->host_no); in sim710_host_reset()
1758 return full_reset(host); in sim710_host_reset()
1764 sim710_release(struct Scsi_Host *host) in sim710_release() argument
1766 ncr_halt(host); in sim710_release()
1767 free_pages(host->hostdata[0], hostdata_order); in sim710_release()
1768 free_irq(host->irq, host); in sim710_release()
1769 release_region((u32)host->base, 64); in sim710_release()