Lines Matching refs:fotg210
185 struct fotg210 *fotg; /* Overarching FOTG210 device */
195 static inline struct usb_hcd *fotg210_to_hcd(struct fotg210_hcd *fotg210) in fotg210_to_hcd() argument
197 return container_of((void *) fotg210, struct usb_hcd, hcd_priv); in fotg210_to_hcd()
213 #define HC_LENGTH(fotg210, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument
214 (fotg210_big_endian_capbase(fotg210) ? 24 : 0)))
215 #define HC_VERSION(fotg210, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument
216 (fotg210_big_endian_capbase(fotg210) ? 0 : 16)))
308 #define QTD_NEXT(fotg210, dma) cpu_to_hc32(fotg210, (u32)dma) argument
337 #define ACTIVE_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_ACTIVE) argument
338 #define HALT_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_HALT) argument
339 #define STATUS_BIT(fotg210) cpu_to_hc32(fotg210, QTD_STS_STS) argument
352 #define QTD_MASK(fotg210) cpu_to_hc32(fotg210, ~0x1f) argument
359 #define Q_NEXT_TYPE(fotg210, dma) ((dma) & cpu_to_hc32(fotg210, 3 << 1)) argument
375 #define QH_NEXT(fotg210, dma) \ argument
376 (cpu_to_hc32(fotg210, (((u32)dma)&~0x01f)|Q_TYPE_QH))
379 #define FOTG210_LIST_END(fotg210) \ argument
380 cpu_to_hc32(fotg210, 1) /* "null pointer" to hw */
552 #define ITD_ACTIVE(fotg210) cpu_to_hc32(fotg210, FOTG210_ISOC_ACTIVE) argument
595 #define fotg210_prepare_ports_for_controller_suspend(fotg210, do_wakeup) \ argument
596 fotg210_adjust_port_wakeup_flags(fotg210, true, do_wakeup)
598 #define fotg210_prepare_ports_for_controller_resume(fotg210) \ argument
599 fotg210_adjust_port_wakeup_flags(fotg210, false, false)
611 fotg210_get_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_get_speed() argument
613 return (readl(&fotg210->regs->otgcsr) in fotg210_get_speed()
619 fotg210_port_speed(struct fotg210_hcd *fotg210, unsigned int portsc) in fotg210_port_speed() argument
621 switch (fotg210_get_speed(fotg210, portsc)) { in fotg210_port_speed()
650 static inline unsigned int fotg210_readl(const struct fotg210_hcd *fotg210, in fotg210_readl() argument
656 static inline void fotg210_writel(const struct fotg210_hcd *fotg210, in fotg210_writel() argument
663 static inline __hc32 cpu_to_hc32(const struct fotg210_hcd *fotg210, const u32 x) in cpu_to_hc32() argument
669 static inline u32 hc32_to_cpu(const struct fotg210_hcd *fotg210, const __hc32 x) in hc32_to_cpu() argument
674 static inline u32 hc32_to_cpup(const struct fotg210_hcd *fotg210, in hc32_to_cpup() argument
682 static inline unsigned fotg210_read_frame_index(struct fotg210_hcd *fotg210) in fotg210_read_frame_index() argument
684 return fotg210_readl(fotg210, &fotg210->regs->frame_index); in fotg210_read_frame_index()