Lines Matching refs:hsotg

354 	struct dwc2_hsotg *hsotg;  member
360 static inline struct usb_hcd *dwc2_hsotg_to_hcd(struct dwc2_hsotg *hsotg) in dwc2_hsotg_to_hcd() argument
362 return (struct usb_hcd *)hsotg->priv; in dwc2_hsotg_to_hcd()
372 static inline void disable_hc_int(struct dwc2_hsotg *hsotg, int chnum, u32 intr) in disable_hc_int() argument
374 u32 mask = readl(hsotg->regs + HCINTMSK(chnum)); in disable_hc_int()
377 writel(mask, hsotg->regs + HCINTMSK(chnum)); in disable_hc_int()
383 static inline int dwc2_is_host_mode(struct dwc2_hsotg *hsotg) in dwc2_is_host_mode() argument
385 return (readl(hsotg->regs + GINTSTS) & GINTSTS_CURMODE_HOST) != 0; in dwc2_is_host_mode()
387 static inline int dwc2_is_device_mode(struct dwc2_hsotg *hsotg) in dwc2_is_device_mode() argument
389 return (readl(hsotg->regs + GINTSTS) & GINTSTS_CURMODE_HOST) == 0; in dwc2_is_device_mode()
396 static inline u32 dwc2_read_hprt0(struct dwc2_hsotg *hsotg) in dwc2_read_hprt0() argument
398 u32 hprt0 = readl(hsotg->regs + HPRT0); in dwc2_read_hprt0()
454 extern int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq,
456 extern void dwc2_hcd_remove(struct dwc2_hsotg *hsotg);
457 extern void dwc2_set_parameters(struct dwc2_hsotg *hsotg,
460 extern int dwc2_get_hwparams(struct dwc2_hsotg *hsotg);
464 struct dwc2_hsotg *hsotg);
465 extern void dwc2_hcd_queue_transactions(struct dwc2_hsotg *hsotg,
470 extern void dwc2_hcd_init_usecs(struct dwc2_hsotg *hsotg);
471 extern void dwc2_hcd_qh_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
472 extern int dwc2_hcd_qh_add(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
473 extern void dwc2_hcd_qh_unlink(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
474 extern void dwc2_hcd_qh_deactivate(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
478 extern int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
482 static inline void dwc2_hcd_qtd_unlink_and_free(struct dwc2_hsotg *hsotg, in dwc2_hcd_qtd_unlink_and_free() argument
491 extern void dwc2_hcd_start_xfer_ddma(struct dwc2_hsotg *hsotg,
493 extern void dwc2_hcd_complete_xfer_ddma(struct dwc2_hsotg *hsotg,
497 extern int dwc2_hcd_qh_init_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
499 extern void dwc2_hcd_qh_free_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
583 static inline u32 dwc2_read_core_intr(struct dwc2_hsotg *hsotg) in dwc2_read_core_intr() argument
585 return readl(hsotg->regs + GINTSTS) & readl(hsotg->regs + GINTMSK); in dwc2_read_core_intr()
624 static inline int dwc2_hcd_is_bandwidth_allocated(struct dwc2_hsotg *hsotg, in dwc2_hcd_is_bandwidth_allocated() argument
635 static inline u16 dwc2_hcd_get_ep_bandwidth(struct dwc2_hsotg *hsotg, in dwc2_hcd_get_ep_bandwidth() argument
648 extern void dwc2_hcd_save_data_toggle(struct dwc2_hsotg *hsotg,
662 extern irqreturn_t dwc2_handle_hcd_intr(struct dwc2_hsotg *hsotg);
669 extern void dwc2_hcd_stop(struct dwc2_hsotg *hsotg);
677 extern int dwc2_hcd_is_b_host(struct dwc2_hsotg *hsotg);
687 extern void dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg);
700 extern void dwc2_hcd_dump_frrem(struct dwc2_hsotg *hsotg);
710 extern void dwc2_host_start(struct dwc2_hsotg *hsotg);
711 extern void dwc2_host_disconnect(struct dwc2_hsotg *hsotg);
712 extern void dwc2_host_hub_info(struct dwc2_hsotg *hsotg, void *context,
714 extern int dwc2_host_get_speed(struct dwc2_hsotg *hsotg, void *context);
715 extern void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,