Lines Matching refs:fotg210
194 static inline struct usb_hcd *fotg210_to_hcd(struct fotg210_hcd *fotg210) in fotg210_to_hcd() argument
196 return container_of((void *) fotg210, struct usb_hcd, hcd_priv); in fotg210_to_hcd()
212 #define HC_LENGTH(fotg210, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument
213 (fotg210_big_endian_capbase(fotg210) ? 24 : 0)))
214 #define HC_VERSION(fotg210, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument
215 (fotg210_big_endian_capbase(fotg210) ? 0 : 16)))
307 #define QTD_NEXT(fotg210, dma) cpu_to_hc32(fotg210, (u32)dma) argument
336 #define ACTIVE_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_ACTIVE) argument
337 #define HALT_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_HALT) argument
338 #define STATUS_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_STS) argument
351 #define QTD_MASK(fotg210) cpu_to_hc32(fotg210, ~0x1f) argument
358 #define Q_NEXT_TYPE(fotg210, dma) ((dma) & cpu_to_hc32(fotg210, 3 << 1)) argument
374 #define QH_NEXT(fotg210, dma) \ argument
375 (cpu_to_hc32(fotg210, (((u32)dma)&~0x01f)|Q_TYPE_QH))
378 #define FOTG210_LIST_END(fotg210) \ argument
379 cpu_to_hc32(fotg210, 1) /* "null pointer" to hw */
551 #define ITD_ACTIVE(fotg210) cpu_to_hc32(fotg210, FOTG210_ISOC_ACTIVE) argument
594 #define fotg210_prepare_ports_for_controller_suspend(fotg210, do_wakeup) \ argument
595 fotg210_adjust_port_wakeup_flags(fotg210, true, do_wakeup)
597 #define fotg210_prepare_ports_for_controller_resume(fotg210) \ argument
598 fotg210_adjust_port_wakeup_flags(fotg210, false, false)
610 fotg210_get_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_get_speed() argument
612 return (readl(&fotg210->regs->otgcsr) in fotg210_get_speed()
618 fotg210_port_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_port_speed() argument
620 switch (fotg210_get_speed(fotg210, portsc)) { in fotg210_port_speed()
649 static inline unsigned int fotg210_readl(const struct fotg210_hcd *fotg210, in fotg210_readl() argument
655 static inline void fotg210_writel(const struct fotg210_hcd *fotg210, in fotg210_writel() argument
662 static inline __hc32 cpu_to_hc32(const struct fotg210_hcd *fotg210, const u32 x) in cpu_to_hc32() argument
668 static inline u32 hc32_to_cpu(const struct fotg210_hcd *fotg210, const __hc32 x) in hc32_to_cpu() argument
673 static inline u32 hc32_to_cpup(const struct fotg210_hcd *fotg210, in hc32_to_cpup() argument
681 static inline unsigned fotg210_read_frame_index(struct fotg210_hcd *fotg210) in fotg210_read_frame_index() argument
683 return fotg210_readl(fotg210, &fotg210->regs->frame_index); in fotg210_read_frame_index()