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