• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/host/

Lines Matching defs:isp1362_hcd

481 struct isp1362_hcd {
559 static inline void ALIGNSTAT(struct isp1362_hcd *isp1362_hcd, void *ptr)
563 isp1362_hcd->stat16++;
565 isp1362_hcd->stat8++;
567 isp1362_hcd->stat4++;
569 isp1362_hcd->stat2++;
571 isp1362_hcd->stat1++;
574 static inline struct isp1362_hcd *hcd_to_isp1362_hcd(struct usb_hcd *hcd)
576 return (struct isp1362_hcd *) (hcd->hcd_priv);
579 static inline struct usb_hcd *isp1362_hcd_to_hcd(struct isp1362_hcd *isp1362_hcd)
581 return container_of((void *)isp1362_hcd, struct usb_hcd, hcd_priv);
646 static void isp1362_write_addr(struct isp1362_hcd *isp1362_hcd, isp1362_reg_t reg)
652 writew(ISP1362_REG_NO(reg), isp1362_hcd->addr_reg);
654 isp1362_delay(isp1362_hcd, 1);
657 static void isp1362_write_data16(struct isp1362_hcd *isp1362_hcd, u16 val)
661 writew(val, isp1362_hcd->data_reg);
664 static u16 isp1362_read_data16(struct isp1362_hcd *isp1362_hcd)
670 val = readw(isp1362_hcd->data_reg);
675 static void isp1362_write_data32(struct isp1362_hcd *isp1362_hcd, u32 val)
680 writel(val, isp1362_hcd->data_reg);
683 writew((u16)val, isp1362_hcd->data_reg);
685 writew(val >> 16, isp1362_hcd->data_reg);
689 static u32 isp1362_read_data32(struct isp1362_hcd *isp1362_hcd)
696 val = readl(isp1362_hcd->data_reg);
699 val = (u32)readw(isp1362_hcd->data_reg);
701 val |= (u32)readw(isp1362_hcd->data_reg) << 16;
708 static void isp1362_read_fifo(struct isp1362_hcd *isp1362_hcd, void *buf, u16 len)
722 readsl(isp1362_hcd->data_reg, dp, len >> 2);
729 insw((unsigned long)isp1362_hcd->data_reg, dp, len >> 1);
736 data = isp1362_read_data16(isp1362_hcd);
743 static void isp1362_write_fifo(struct isp1362_hcd *isp1362_hcd, void *buf, u16 len)
756 isp1362_write_data16(isp1362_hcd, data);
759 isp1362_write_data16(isp1362_hcd, *dp);
769 writesl(isp1362_hcd->data_reg, dp, len >> 2);
776 outsw((unsigned long)isp1362_hcd->data_reg, dp, len >> 1);
789 isp1362_write_data16(isp1362_hcd, data);
870 static void __attribute__((__unused__)) isp1362_show_regs(struct isp1362_hcd *isp1362_hcd)
872 isp1362_show_reg(isp1362_hcd, HCREVISION);
873 isp1362_show_reg(isp1362_hcd, HCCONTROL);
874 isp1362_show_reg(isp1362_hcd, HCCMDSTAT);
875 isp1362_show_reg(isp1362_hcd, HCINTSTAT);
876 isp1362_show_reg(isp1362_hcd, HCINTENB);
877 isp1362_show_reg(isp1362_hcd, HCFMINTVL);
878 isp1362_show_reg(isp1362_hcd, HCFMREM);
879 isp1362_show_reg(isp1362_hcd, HCFMNUM);
880 isp1362_show_reg(isp1362_hcd, HCLSTHRESH);
881 isp1362_show_reg(isp1362_hcd, HCRHDESCA);
882 isp1362_show_reg(isp1362_hcd, HCRHDESCB);
883 isp1362_show_reg(isp1362_hcd, HCRHSTATUS);
884 isp1362_show_reg(isp1362_hcd, HCRHPORT1);
885 isp1362_show_reg(isp1362_hcd, HCRHPORT2);
887 isp1362_show_reg(isp1362_hcd, HCHWCFG);
888 isp1362_show_reg(isp1362_hcd, HCDMACFG);
889 isp1362_show_reg(isp1362_hcd, HCXFERCTR);
890 isp1362_show_reg(isp1362_hcd, HCuPINT);
894 ISP1362_REG_NO(ISP1362_REG_HCuPINTENB), isp1362_hcd->irqenb);
896 isp1362_show_reg(isp1362_hcd, HCuPINTENB);
897 isp1362_show_reg(isp1362_hcd, HCCHIPID);
898 isp1362_show_reg(isp1362_hcd, HCSCRATCH);
899 isp1362_show_reg(isp1362_hcd, HCBUFSTAT);
900 isp1362_show_reg(isp1362_hcd, HCDIRADDR);
902 * isp1362_show_reg(isp1362_hcd, HCDIRDATA);
904 isp1362_show_reg(isp1362_hcd, HCISTLBUFSZ);
905 isp1362_show_reg(isp1362_hcd, HCISTLRATE);
906 isp1362_show_reg(isp1362_hcd, HCINTLBUFSZ);
907 isp1362_show_reg(isp1362_hcd, HCINTLBLKSZ);
908 isp1362_show_reg(isp1362_hcd, HCINTLDONE);
909 isp1362_show_reg(isp1362_hcd, HCINTLSKIP);
910 isp1362_show_reg(isp1362_hcd, HCINTLLAST);
911 isp1362_show_reg(isp1362_hcd, HCINTLCURR);
912 isp1362_show_reg(isp1362_hcd, HCATLBUFSZ);
913 isp1362_show_reg(isp1362_hcd, HCATLBLKSZ);
915 * isp1362_show_reg(isp1362_hcd, HCATLDONE);
917 isp1362_show_reg(isp1362_hcd, HCATLSKIP);
918 isp1362_show_reg(isp1362_hcd, HCATLLAST);
919 isp1362_show_reg(isp1362_hcd, HCATLCURR);
920 isp1362_show_reg(isp1362_hcd, HCATLDTC);
921 isp1362_show_reg(isp1362_hcd, HCATLDTCTO);
924 static void isp1362_write_diraddr(struct isp1362_hcd *isp1362_hcd, u16 offset, u16 len)
932 isp1362_clr_mask16(isp1362_hcd, HCDMACFG, HCDMACFG_CTR_ENABLE);
933 isp1362_write_reg32(isp1362_hcd, HCDIRADDR,
937 static void isp1362_read_buffer(struct isp1362_hcd *isp1362_hcd, void *buf, u16 offset, int len)
941 isp1362_write_diraddr(isp1362_hcd, offset, len);
946 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT);
947 _WARN_ON((isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
949 isp1362_write_addr(isp1362_hcd, ISP1362_REG_HCDIRDATA);
951 isp1362_read_fifo(isp1362_hcd, buf, len);
952 _WARN_ON(!(isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
953 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT);
954 _WARN_ON((isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
957 static void isp1362_write_buffer(struct isp1362_hcd *isp1362_hcd, void *buf, u16 offset, int len)
961 isp1362_write_diraddr(isp1362_hcd, offset, len);
966 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT);
967 _WARN_ON((isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
969 isp1362_write_addr(isp1362_hcd, ISP1362_REG_HCDIRDATA | ISP1362_REG_WRITE_OFFSET);
970 isp1362_write_fifo(isp1362_hcd, buf, len);
972 _WARN_ON(!(isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));
973 isp1362_write_reg16(isp1362_hcd, HCuPINT, HCuPINT_EOT);
974 _WARN_ON((isp1362_read_reg16(isp1362_hcd, HCuPINT) & HCuPINT_EOT));