• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/

Lines Matching refs:host

76  * o  'debug:' should be per host really.
171 host->host_no, cmd->result)); \
272 static int full_reset(struct Scsi_Host * host);
276 * Function : static void ncr_dump (struct Scsi_Host *host)
280 * Inputs : host - pointer to this host adapter's structure
284 ncr_dump (struct Scsi_Host *host)
288 host->hostdata[0];
292 printk("scsi%d: Chip register contents:\n", host->host_no);
425 * Function : static int ncr_halt (struct Scsi_Host *host)
429 * Inputs : host - SCSI chip to halt
435 ncr_halt (struct Scsi_Host *host)
440 host->hostdata[0];
491 printk(KERN_ALERT "scsi%d: could not halt NCR chip\n", host->host_no);
501 * Function : static void sim710_soft_reset (struct Scsi_Host *host)
505 * Inputs : host - pointer to this host adapter's structure
508 * host.
513 sim710_soft_reset (struct Scsi_Host *host)
546 NCR_write8(SCID_REG, 1 << host->this_id);
564 * Function : static void sim710_driver_init (struct Scsi_Host *host)
569 * Inputs : host - pointer to this host adapter's structure
573 sim710_driver_init (struct Scsi_Host *host)
576 host->hostdata[0];
612 handle_sdtr (struct Scsi_Host * host, Scsi_Cmnd * cmd, u32 resa, u32 resb)
614 struct sim710_hostdata *hostdata = (struct sim710_hostdata *)host->hostdata[0];
619 DEB(DEB_SYNC, printk("scsi%d: Response to host SDTR = %02x %02x\n",
620 host->host_no, hostdata->msgin_buf[3], hostdata->msgin_buf[4]));
629 host->host_no, hostdata->msgin_buf[3], hostdata->msgin_buf[4]));
642 * Function : static int datapath_residual (Scsi_Host *host)
646 * Inputs : host - SCSI host
650 datapath_residual (struct Scsi_Host *host) {
679 handle_idd (struct Scsi_Host * host, Scsi_Cmnd * cmd)
682 (struct sim710_hostdata *)host->hostdata[0];
712 host->host_no, index);
714 /* resume_offset is zero, which will cause host reset */
724 handle_phase_mismatch (struct Scsi_Host * host, Scsi_Cmnd * cmd)
727 (struct sim710_hostdata *)host->hostdata[0];
736 host->host_no, sbcl_to_phase(sbcl), sbcl, index));
752 host->host_no);
758 host->host_no);
763 host->host_no, sbcl_to_phase(sbcl));
764 /* resume_offset is zero, which will cause a host reset */
779 residual = datapath_residual (host);
782 host->host_no, residual);
786 host->host_no, sg_id, oaddr, olen, naddr, nlen, residual));
789 host->host_no, oaddr, olen, naddr, nlen);
808 residual = datapath_residual (host);
812 host->host_no, sg_id, oaddr, olen, naddr, nlen, residual));
815 host->host_no, oaddr, olen, naddr, nlen);
828 host->host_no, index);
833 host->host_no, sbcl_to_phase(sbcl), index);
834 /* resume_offset is zero, which will cause a host reset */
845 handle_script_int(struct Scsi_Host * host, Scsi_Cmnd * cmd)
848 (struct sim710_hostdata *)host->hostdata[0];
863 resume_offset = handle_sdtr(host, cmd,
867 resume_offset = handle_sdtr(host, cmd, 0, Ent_resume_msgin2b);
870 resume_offset = handle_sdtr(host, cmd, 0, Ent_resume_msgin3b);
896 host->host_no, sbcl_to_phase(sbcl), sbcl);
915 host->host_no, dsps, sbcl_to_phase(sbcl));
917 /* resume_offset is zero, which will cause a host reset */
941 struct Scsi_Host * host = (struct Scsi_Host *)dev_id;
942 struct sim710_hostdata *hostdata = (struct sim710_hostdata *)host->hostdata[0];
967 host->host_no, sim710_intrs, istat, sstat0, dstat,
987 host->host_no, lcrc);
996 host->host_no, id));
1003 host->host_no, hostdata->running->target,
1017 printk("scsi%d: No active command!\n", host->host_no);
1020 host->host_no, sim710_intrs, istat, sstat0, dstat,
1023 /* resume_offset is zero, which will cause a host reset */
1026 DEB(DEB_TOUT, printk("scsi%d: Selection timeout\n", host->host_no));
1033 printk("scsi%d: Serious error, sstat0 = %02x\n", host->host_no,
1036 /* resume_offset is zero, which will cause a host reset */
1039 printk("scsi%d: Serious error, dstat = %02x\n", host->host_no,
1042 /* resume_offset is zero, which will cause a host reset */
1045 resume_offset = handle_script_int(host, cmd);
1047 resume_offset = handle_phase_mismatch(host, cmd);
1052 resume_offset = handle_idd(host, cmd);
1056 printk("scsi%d: Spurious interrupt!\n", host->host_no);
1057 /* resume_offset is zero, which will cause a host reset */
1069 host->host_no, resume_offset/4));
1082 "and resetting SCSI bus and chip\n", host->host_no);
1084 full_reset(host);
1092 struct Scsi_Host *host = cmd->host;
1097 DEB(DEB_CMND, printk("scsi%d: id%d starting ", host->host_no,
1140 host->host_no, cmd->target));
1244 * the host adapters have anything that can be done, at which point
1277 } /* host is idle */
1289 struct Scsi_Host *host = cmd->host;
1290 struct sim710_hostdata *hostdata = (struct sim710_hostdata *)host->hostdata[0];
1301 DEB(DEB_CMND, printk("scsi%d: id%d queuing ", host->host_no,
1314 printk("scsi%d: ignoring target %d\n", host->host_no, cmd->target);
1350 struct Scsi_Host * host = NULL;
1510 host = scsi_register(tpnt, 4);
1511 if(host == NULL) {
1512 free_pages(host->hostdata[0], hostdata_order);
1515 our_hosts[chips] = host;
1516 host->hostdata[0] = page;
1517 hostdata = (struct sim710_hostdata *)host->hostdata[0];
1523 host->host_no, scsi_id, base_addr, requested_irq);
1528 host->irq = requested_irq;
1529 host->this_id = scsi_id;
1530 host->unique_id = base_addr;
1531 host->base = base_addr;
1534 if (ncr_halt(host)) {
1535 free_pages(host->hostdata[0], hostdata_order);
1536 scsi_unregister (host);
1538 host->host_no, base_addr);
1541 DEB(DEB_ANY,ncr_dump(host));
1543 printk("scsi%d: Revision 0x%x\n",host->host_no,revision);
1544 sim710_soft_reset(host);
1546 sim710_driver_init(host);
1548 request_region((u32)host->base, 64, "sim710");
1565 printk("scsi%d: Chip is using IRQ %d\n", host->host_no,
1567 requested_irq = host->irq = probed_irq;
1571 host->host_no, probed_irq);
1572 ncr_halt(host);
1573 free_pages(host->hostdata[0], hostdata_order);
1574 scsi_unregister (host);
1575 release_region((u32)host->base, 64);
1581 host->host_no, requested_irq, probed_irq);
1584 host->host_no, probed_irq);
1590 host->host_no, hostdata->test1_dst);
1593 host->host_no, A_int_test1, dsps);
1594 ncr_dump(host);
1595 ncr_halt(host);
1596 free_pages(host->hostdata[0], hostdata_order);
1597 scsi_unregister (host);
1598 release_region((u32)host->base, 64);
1601 printk("scsi%d: test 1 completed ok.\n", host->host_no);
1611 host = our_hosts[indx];
1612 if (request_irq(host->irq, do_sim710_intr_handle,
1613 SA_INTERRUPT | SA_SHIRQ, "sim710", host))
1616 host->host_no, host->irq);
1617 ncr_halt(host);
1618 free_pages(host->hostdata[0], hostdata_order);
1619 scsi_unregister (host);
1630 struct Scsi_Host * host = cmd->host;
1633 host->host_no, cmd->target);
1644 struct Scsi_Host * host = SCpnt->host;
1647 host->host_no, SCpnt->target);
1658 struct Scsi_Host * host = SCpnt->host;
1660 printk("scsi%d: Unable to do SCSI bus reset\n", host->host_no);
1665 full_reset(struct Scsi_Host * host)
1668 host->hostdata[0];
1686 if (ncr_halt(host)) {
1695 host->host_no, istat, sstat0, sstat1, dstat);
1697 host->host_no, dsp,
1703 host->host_no, target);
1710 sim710_soft_reset(host);
1711 sim710_driver_init(host);
1722 * This is host reset. We need to reset the chip and the bus.
1728 struct Scsi_Host * host = SCpnt->host;
1730 printk("scsi%d: >>>>>>>>>>>> Host reset <<<<<<<<<<<<\n", host->host_no);
1732 return full_reset(host);
1738 sim710_release(struct Scsi_Host *host)
1740 ncr_halt(host);
1741 free_pages(host->hostdata[0], hostdata_order);
1742 free_irq(host->irq, host);
1743 release_region((u32)host->base, 64);