Lines Matching refs:ehci

92  * ehci-timer.c) in parallel with this list.
267 static inline struct usb_hcd *ehci_to_hcd(struct ehci_hcd *ehci)
269 return container_of((void *) ehci, struct usb_hcd, hcd_priv);
278 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma)
307 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE)
308 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT)
309 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS)
322 #define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f)
329 #define Q_NEXT_TYPE(ehci, dma) ((dma) & cpu_to_hc32(ehci, 3 << 1))
345 #define QH_NEXT(ehci, dma) \
346 (cpu_to_hc32(ehci, (((u32) dma) & ~0x01f) | Q_TYPE_QH))
349 #define EHCI_LIST_END(ehci) cpu_to_hc32(ehci, 1) /* "null pointer" to hw */
520 #define ITD_ACTIVE(ehci) cpu_to_hc32(ehci, EHCI_ISOC_ACTIVE)
565 #define SITD_ACTIVE(ehci) cpu_to_hc32(ehci, SITD_STS_ACTIVE)
635 #define ehci_prepare_ports_for_controller_suspend(ehci, do_wakeup) \
636 ehci_adjust_port_wakeup_flags(ehci, true, do_wakeup)
638 #define ehci_prepare_ports_for_controller_resume(ehci) \
639 ehci_adjust_port_wakeup_flags(ehci, false, false)
656 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc)
658 if (ehci_is_TDI(ehci)) {
659 switch ((portsc >> (ehci->has_hostpc ? 25 : 26)) & 3) {
676 #define ehci_port_speed(ehci, portsc) USB_PORT_STAT_HIGH_SPEED
739 static inline unsigned int ehci_readl(const struct ehci_hcd *ehci,
743 return ehci_big_endian_mmio(ehci) ?
763 static inline void ehci_writel(const struct ehci_hcd *ehci,
767 ehci_big_endian_mmio(ehci) ?
771 if (ehci->imx28_write_fix)
784 static inline void set_ohci_hcfs(struct ehci_hcd *ehci, int operational)
788 hc_control = (readl_be(ehci->ohci_hcctrl_reg) & ~OHCI_CTRL_HCFS);
794 writel_be(hc_control, ehci->ohci_hcctrl_reg);
795 (void) readl_be(ehci->ohci_hcctrl_reg);
798 static inline void set_ohci_hcfs(struct ehci_hcd *ehci, int operational)
814 /* cpu to ehci */
815 static inline __hc32 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x)
817 return ehci_big_endian_desc(ehci)
822 /* ehci to cpu */
823 static inline u32 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x)
825 return ehci_big_endian_desc(ehci)
830 static inline u32 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x)
832 return ehci_big_endian_desc(ehci)
839 /* cpu to ehci */
840 static inline __hc32 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x)
845 /* ehci to cpu */
846 static inline u32 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x)
851 static inline u32 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x)
860 #define ehci_dbg(ehci, fmt, args...) \
861 dev_dbg(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
862 #define ehci_err(ehci, fmt, args...) \
863 dev_err(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
864 #define ehci_info(ehci, fmt, args...) \
865 dev_info(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
866 #define ehci_warn(ehci, fmt, args...) \
867 dev_warn(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
871 /* Declarations of things exported for use by ehci platform drivers */
883 extern int ehci_handshake(struct ehci_hcd *ehci, void __iomem *ptr,
885 extern int ehci_reset(struct ehci_hcd *ehci);
889 extern void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci,