Lines Matching refs:hsotg
260 * @hsotg: The HCD state structure for the DWC OTG controller
341 struct dwc2_hsotg *hsotg;
453 struct dwc2_hsotg *hsotg;
458 u32 dwc2_calc_frame_interval(struct dwc2_hsotg *hsotg);
461 static inline struct usb_hcd *dwc2_hsotg_to_hcd(struct dwc2_hsotg *hsotg)
463 return (struct usb_hcd *)hsotg->priv;
473 static inline void disable_hc_int(struct dwc2_hsotg *hsotg, int chnum, u32 intr)
475 u32 mask = dwc2_readl(hsotg, HCINTMSK(chnum));
478 dwc2_writel(hsotg, mask, HCINTMSK(chnum));
481 void dwc2_hc_cleanup(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan);
482 void dwc2_hc_halt(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan,
484 void dwc2_hc_start_transfer_ddma(struct dwc2_hsotg *hsotg,
491 static inline u32 dwc2_read_hprt0(struct dwc2_hsotg *hsotg)
493 u32 hprt0 = dwc2_readl(hsotg, HPRT0);
554 int dwc2_hcd_init(struct dwc2_hsotg *hsotg);
555 void dwc2_hcd_remove(struct dwc2_hsotg *hsotg);
559 struct dwc2_hsotg *hsotg);
560 void dwc2_hcd_queue_transactions(struct dwc2_hsotg *hsotg,
565 struct dwc2_qh *dwc2_hcd_qh_create(struct dwc2_hsotg *hsotg,
568 void dwc2_hcd_qh_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
569 int dwc2_hcd_qh_add(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
570 void dwc2_hcd_qh_unlink(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
571 void dwc2_hcd_qh_deactivate(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
575 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
579 static inline void dwc2_hcd_qtd_unlink_and_free(struct dwc2_hsotg *hsotg,
588 void dwc2_hcd_start_xfer_ddma(struct dwc2_hsotg *hsotg,
590 void dwc2_hcd_complete_xfer_ddma(struct dwc2_hsotg *hsotg,
594 int dwc2_hcd_qh_init_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
596 void dwc2_hcd_qh_free_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
692 static inline u32 dwc2_read_core_intr(struct dwc2_hsotg *hsotg)
694 return dwc2_readl(hsotg, GINTSTS) &
695 dwc2_readl(hsotg, GINTMSK);
734 static inline int dwc2_hcd_is_bandwidth_allocated(struct dwc2_hsotg *hsotg,
745 static inline u16 dwc2_hcd_get_ep_bandwidth(struct dwc2_hsotg *hsotg,
758 void dwc2_hcd_save_data_toggle(struct dwc2_hsotg *hsotg,
767 * @hsotg: The DWC2 HCD
772 irqreturn_t dwc2_handle_hcd_intr(struct dwc2_hsotg *hsotg);
777 * @hsotg: The DWC2 HCD
779 void dwc2_hcd_stop(struct dwc2_hsotg *hsotg);
785 * @hsotg: The DWC2 HCD
787 int dwc2_hcd_is_b_host(struct dwc2_hsotg *hsotg);
790 * dwc2_hcd_dump_state() - Dumps hsotg state
792 * @hsotg: The DWC2 HCD
797 void dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg);
806 struct dwc2_tt *dwc2_host_get_tt_info(struct dwc2_hsotg *hsotg,
810 void dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg,
812 int dwc2_host_get_speed(struct dwc2_hsotg *hsotg, void *context);
813 void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,