Lines Matching defs:hsotg

231  * @hsotg:              The HCD state structure for the DWC OTG controller
312 struct dwc2_hsotg *hsotg;
424 struct dwc2_hsotg *hsotg;
429 u32 dwc2_calc_frame_interval(struct dwc2_hsotg *hsotg);
432 static inline struct usb_hcd *dwc2_hsotg_to_hcd(struct dwc2_hsotg *hsotg)
434 return (struct usb_hcd *)hsotg->priv;
444 static inline void disable_hc_int(struct dwc2_hsotg *hsotg, int chnum, u32 intr)
446 u32 mask = dwc2_readl(hsotg, HCINTMSK(chnum));
449 dwc2_writel(hsotg, mask, HCINTMSK(chnum));
452 void dwc2_hc_cleanup(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan);
453 void dwc2_hc_halt(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan,
455 void dwc2_hc_start_transfer_ddma(struct dwc2_hsotg *hsotg,
462 static inline u32 dwc2_read_hprt0(struct dwc2_hsotg *hsotg)
464 u32 hprt0 = dwc2_readl(hsotg, HPRT0);
525 int dwc2_hcd_init(struct dwc2_hsotg *hsotg);
526 void dwc2_hcd_remove(struct dwc2_hsotg *hsotg);
530 struct dwc2_hsotg *hsotg);
531 void dwc2_hcd_queue_transactions(struct dwc2_hsotg *hsotg,
536 struct dwc2_qh *dwc2_hcd_qh_create(struct dwc2_hsotg *hsotg,
539 void dwc2_hcd_qh_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
540 int dwc2_hcd_qh_add(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
541 void dwc2_hcd_qh_unlink(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
542 void dwc2_hcd_qh_deactivate(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
546 int dwc2_hcd_qtd_add(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,
550 static inline void dwc2_hcd_qtd_unlink_and_free(struct dwc2_hsotg *hsotg,
559 void dwc2_hcd_start_xfer_ddma(struct dwc2_hsotg *hsotg,
561 void dwc2_hcd_complete_xfer_ddma(struct dwc2_hsotg *hsotg,
565 int dwc2_hcd_qh_init_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
567 void dwc2_hcd_qh_free_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh);
663 static inline u32 dwc2_read_core_intr(struct dwc2_hsotg *hsotg)
665 return dwc2_readl(hsotg, GINTSTS) &
666 dwc2_readl(hsotg, GINTMSK);
705 static inline int dwc2_hcd_is_bandwidth_allocated(struct dwc2_hsotg *hsotg,
716 static inline u16 dwc2_hcd_get_ep_bandwidth(struct dwc2_hsotg *hsotg,
729 void dwc2_hcd_save_data_toggle(struct dwc2_hsotg *hsotg,
738 * @hsotg: The DWC2 HCD
743 irqreturn_t dwc2_handle_hcd_intr(struct dwc2_hsotg *hsotg);
748 * @hsotg: The DWC2 HCD
750 void dwc2_hcd_stop(struct dwc2_hsotg *hsotg);
756 * @hsotg: The DWC2 HCD
758 int dwc2_hcd_is_b_host(struct dwc2_hsotg *hsotg);
761 * dwc2_hcd_dump_state() - Dumps hsotg state
763 * @hsotg: The DWC2 HCD
768 void dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg);
777 struct dwc2_tt *dwc2_host_get_tt_info(struct dwc2_hsotg *hsotg,
781 void dwc2_host_put_tt_info(struct dwc2_hsotg *hsotg,
783 int dwc2_host_get_speed(struct dwc2_hsotg *hsotg, void *context);
784 void dwc2_host_complete(struct dwc2_hsotg *hsotg, struct dwc2_qtd *qtd,