Lines Matching refs:fotg210

197 static inline struct usb_hcd *fotg210_to_hcd(struct fotg210_hcd *fotg210)  in fotg210_to_hcd()  argument
199 return container_of((void *) fotg210, struct usb_hcd, hcd_priv); in fotg210_to_hcd()
215 #define HC_LENGTH(fotg210, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument
216 (fotg210_big_endian_capbase(fotg210) ? 24 : 0)))
217 #define HC_VERSION(fotg210, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument
218 (fotg210_big_endian_capbase(fotg210) ? 0 : 16)))
310 #define QTD_NEXT(fotg210, dma) cpu_to_hc32(fotg210, (u32)dma) argument
339 #define ACTIVE_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_ACTIVE) argument
340 #define HALT_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_HALT) argument
341 #define STATUS_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_STS) argument
354 #define QTD_MASK(fotg210) cpu_to_hc32(fotg210, ~0x1f) argument
361 #define Q_NEXT_TYPE(fotg210, dma) ((dma) & cpu_to_hc32(fotg210, 3 << 1)) argument
377 #define QH_NEXT(fotg210, dma) \ argument
378 (cpu_to_hc32(fotg210, (((u32)dma)&~0x01f)|Q_TYPE_QH))
381 #define FOTG210_LIST_END(fotg210) \ argument
382 cpu_to_hc32(fotg210, 1) /* "null pointer" to hw */
554 #define ITD_ACTIVE(fotg210) cpu_to_hc32(fotg210, FOTG210_ISOC_ACTIVE) argument
597 #define fotg210_prepare_ports_for_controller_suspend(fotg210, do_wakeup) \ argument
598 fotg210_adjust_port_wakeup_flags(fotg210, true, do_wakeup)
600 #define fotg210_prepare_ports_for_controller_resume(fotg210) \ argument
601 fotg210_adjust_port_wakeup_flags(fotg210, false, false)
613 fotg210_get_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_get_speed() argument
615 return (readl(&fotg210->regs->otgcsr) in fotg210_get_speed()
621 fotg210_port_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_port_speed() argument
623 switch (fotg210_get_speed(fotg210, portsc)) { in fotg210_port_speed()
652 static inline unsigned int fotg210_readl(const struct fotg210_hcd *fotg210, in fotg210_readl() argument
658 static inline void fotg210_writel(const struct fotg210_hcd *fotg210, in fotg210_writel() argument
665 static inline __hc32 cpu_to_hc32(const struct fotg210_hcd *fotg210, const u32 x) in cpu_to_hc32() argument
671 static inline u32 hc32_to_cpu(const struct fotg210_hcd *fotg210, const __hc32 x) in hc32_to_cpu() argument
676 static inline u32 hc32_to_cpup(const struct fotg210_hcd *fotg210, in hc32_to_cpup() argument
684 static inline unsigned fotg210_read_frame_index(struct fotg210_hcd *fotg210) in fotg210_read_frame_index() argument
686 return fotg210_readl(fotg210, &fotg210->regs->frame_index); in fotg210_read_frame_index()