Lines Matching refs:ehci

92  * ehci-timer.c) in parallel with this list.
270 static inline struct usb_hcd *ehci_to_hcd(struct ehci_hcd *ehci)
272 return container_of((void *) ehci, struct usb_hcd, hcd_priv);
281 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma)
310 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE)
311 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT)
312 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS)
325 #define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f)
332 #define Q_NEXT_TYPE(ehci, dma) ((dma) & cpu_to_hc32(ehci, 3 << 1))
348 #define QH_NEXT(ehci, dma) \
349 (cpu_to_hc32(ehci, (((u32) dma) & ~0x01f) | Q_TYPE_QH))
352 #define EHCI_LIST_END(ehci) cpu_to_hc32(ehci, 1) /* "null pointer" to hw */
523 #define ITD_ACTIVE(ehci) cpu_to_hc32(ehci, EHCI_ISOC_ACTIVE)
568 #define SITD_ACTIVE(ehci) cpu_to_hc32(ehci, SITD_STS_ACTIVE)
638 #define ehci_prepare_ports_for_controller_suspend(ehci, do_wakeup) \
639 ehci_adjust_port_wakeup_flags(ehci, true, do_wakeup)
641 #define ehci_prepare_ports_for_controller_resume(ehci) \
642 ehci_adjust_port_wakeup_flags(ehci, false, false)
659 ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc)
661 if (ehci_is_TDI(ehci)) {
662 switch ((portsc >> (ehci->has_hostpc ? 25 : 26)) & 3) {
679 #define ehci_port_speed(ehci, portsc) USB_PORT_STAT_HIGH_SPEED
751 static inline unsigned int ehci_readl(const struct ehci_hcd *ehci,
755 return ehci_big_endian_mmio(ehci) ?
775 static inline void ehci_writel(const struct ehci_hcd *ehci,
779 ehci_big_endian_mmio(ehci) ?
783 if (ehci->imx28_write_fix)
796 static inline void set_ohci_hcfs(struct ehci_hcd *ehci, int operational)
800 hc_control = (readl_be(ehci->ohci_hcctrl_reg) & ~OHCI_CTRL_HCFS);
806 writel_be(hc_control, ehci->ohci_hcctrl_reg);
807 (void) readl_be(ehci->ohci_hcctrl_reg);
810 static inline void set_ohci_hcfs(struct ehci_hcd *ehci, int operational)
826 /* cpu to ehci */
827 static inline __hc32 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x)
829 return ehci_big_endian_desc(ehci)
834 /* ehci to cpu */
835 static inline u32 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x)
837 return ehci_big_endian_desc(ehci)
842 static inline u32 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x)
844 return ehci_big_endian_desc(ehci)
851 /* cpu to ehci */
852 static inline __hc32 cpu_to_hc32(const struct ehci_hcd *ehci, const u32 x)
857 /* ehci to cpu */
858 static inline u32 hc32_to_cpu(const struct ehci_hcd *ehci, const __hc32 x)
863 static inline u32 hc32_to_cpup(const struct ehci_hcd *ehci, const __hc32 *x)
872 #define ehci_dbg(ehci, fmt, args...) \
873 dev_dbg(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
874 #define ehci_err(ehci, fmt, args...) \
875 dev_err(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
876 #define ehci_info(ehci, fmt, args...) \
877 dev_info(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
878 #define ehci_warn(ehci, fmt, args...) \
879 dev_warn(ehci_to_hcd(ehci)->self.controller, fmt, ## args)
883 /* Declarations of things exported for use by ehci platform drivers */
895 extern int ehci_handshake(struct ehci_hcd *ehci, void __iomem *ptr,
897 extern int ehci_reset(struct ehci_hcd *ehci);
901 extern void ehci_adjust_port_wakeup_flags(struct ehci_hcd *ehci,