Lines Matching refs:dwc2_hsotg
103 struct dwc2_hsotg;
149 struct dwc2_hsotg *parent;
200 struct dwc2_hsotg;
701 struct dwc2_hsotg { struct
867 extern void dwc2_core_host_init(struct dwc2_hsotg *hsotg);
868 extern int dwc2_enter_hibernation(struct dwc2_hsotg *hsotg);
869 extern int dwc2_exit_hibernation(struct dwc2_hsotg *hsotg, bool restore);
876 extern void dwc2_hc_init(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan);
877 extern void dwc2_hc_halt(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan,
879 extern void dwc2_hc_cleanup(struct dwc2_hsotg *hsotg,
881 extern void dwc2_hc_start_transfer(struct dwc2_hsotg *hsotg,
883 extern void dwc2_hc_start_transfer_ddma(struct dwc2_hsotg *hsotg,
885 extern int dwc2_hc_continue_transfer(struct dwc2_hsotg *hsotg,
887 extern void dwc2_hc_do_ping(struct dwc2_hsotg *hsotg,
889 extern void dwc2_enable_host_interrupts(struct dwc2_hsotg *hsotg);
890 extern void dwc2_disable_host_interrupts(struct dwc2_hsotg *hsotg);
892 extern u32 dwc2_calc_frame_interval(struct dwc2_hsotg *hsotg);
893 extern bool dwc2_is_controller_alive(struct dwc2_hsotg *hsotg);
900 extern void dwc2_read_packet(struct dwc2_hsotg *hsotg, u8 *dest, u16 bytes);
901 extern void dwc2_flush_tx_fifo(struct dwc2_hsotg *hsotg, const int num);
902 extern void dwc2_flush_rx_fifo(struct dwc2_hsotg *hsotg);
904 extern int dwc2_core_init(struct dwc2_hsotg *hsotg, bool select_phy, int irq);
905 extern void dwc2_enable_global_interrupts(struct dwc2_hsotg *hcd);
906 extern void dwc2_disable_global_interrupts(struct dwc2_hsotg *hcd);
920 extern void dwc2_set_param_otg_cap(struct dwc2_hsotg *hsotg, int val);
932 extern void dwc2_set_param_dma_enable(struct dwc2_hsotg *hsotg, int val);
942 extern void dwc2_set_param_dma_desc_enable(struct dwc2_hsotg *hsotg, int val);
952 extern void dwc2_set_param_speed(struct dwc2_hsotg *hsotg, int val);
964 struct dwc2_hsotg *hsotg, int val);
975 extern void dwc2_set_param_host_ls_low_power_phy_clk(struct dwc2_hsotg *hsotg,
984 extern void dwc2_set_param_enable_dynamic_fifo(struct dwc2_hsotg *hsotg,
992 extern void dwc2_set_param_host_rx_fifo_size(struct dwc2_hsotg *hsotg, int val);
999 extern void dwc2_set_param_host_nperio_tx_fifo_size(struct dwc2_hsotg *hsotg,
1007 extern void dwc2_set_param_host_perio_tx_fifo_size(struct dwc2_hsotg *hsotg,
1014 extern void dwc2_set_param_max_transfer_size(struct dwc2_hsotg *hsotg, int val);
1020 extern void dwc2_set_param_max_packet_count(struct dwc2_hsotg *hsotg, int val);
1027 extern void dwc2_set_param_host_channels(struct dwc2_hsotg *hsotg, int val);
1037 extern void dwc2_set_param_phy_type(struct dwc2_hsotg *hsotg, int val);
1053 extern void dwc2_set_param_phy_utmi_width(struct dwc2_hsotg *hsotg, int val);
1065 extern void dwc2_set_param_phy_ulpi_ddr(struct dwc2_hsotg *hsotg, int val);
1071 extern void dwc2_set_param_phy_ulpi_ext_vbus(struct dwc2_hsotg *hsotg, int val);
1081 extern void dwc2_set_param_i2c_enable(struct dwc2_hsotg *hsotg, int val);
1083 extern void dwc2_set_param_ulpi_fs_ls(struct dwc2_hsotg *hsotg, int val);
1085 extern void dwc2_set_param_ts_dline(struct dwc2_hsotg *hsotg, int val);
1093 extern void dwc2_set_param_en_multiple_tx_fifo(struct dwc2_hsotg *hsotg,
1096 extern void dwc2_set_param_reload_ctl(struct dwc2_hsotg *hsotg, int val);
1098 extern void dwc2_set_param_ahbcfg(struct dwc2_hsotg *hsotg, int val);
1100 extern void dwc2_set_param_otg_ver(struct dwc2_hsotg *hsotg, int val);
1102 extern void dwc2_set_parameters(struct dwc2_hsotg *hsotg,
1107 extern int dwc2_get_hwparams(struct dwc2_hsotg *hsotg);
1109 extern int dwc2_lowlevel_hw_enable(struct dwc2_hsotg *hsotg);
1110 extern int dwc2_lowlevel_hw_disable(struct dwc2_hsotg *hsotg);
1115 extern void dwc2_dump_dev_registers(struct dwc2_hsotg *hsotg);
1116 extern void dwc2_dump_host_registers(struct dwc2_hsotg *hsotg);
1117 extern void dwc2_dump_global_registers(struct dwc2_hsotg *hsotg);
1122 extern u16 dwc2_get_otg_version(struct dwc2_hsotg *hsotg);
1126 extern int dwc2_hsotg_remove(struct dwc2_hsotg *hsotg);
1127 extern int dwc2_hsotg_suspend(struct dwc2_hsotg *dwc2);
1128 extern int dwc2_hsotg_resume(struct dwc2_hsotg *dwc2);
1129 extern int dwc2_gadget_init(struct dwc2_hsotg *hsotg, int irq);
1130 extern void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *dwc2,
1132 extern void dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg);
1133 extern void dwc2_hsotg_disconnect(struct dwc2_hsotg *dwc2);
1134 extern int dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, int testmode);
1137 static inline int dwc2_hsotg_remove(struct dwc2_hsotg *dwc2) in dwc2_hsotg_remove()
1139 static inline int dwc2_hsotg_suspend(struct dwc2_hsotg *dwc2) in dwc2_hsotg_suspend()
1141 static inline int dwc2_hsotg_resume(struct dwc2_hsotg *dwc2) in dwc2_hsotg_resume()
1143 static inline int dwc2_gadget_init(struct dwc2_hsotg *hsotg, int irq) in dwc2_gadget_init()
1145 static inline void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *dwc2, in dwc2_hsotg_core_init_disconnected()
1147 static inline void dwc2_hsotg_core_connect(struct dwc2_hsotg *hsotg) {} in dwc2_hsotg_core_connect()
1148 static inline void dwc2_hsotg_disconnect(struct dwc2_hsotg *dwc2) {} in dwc2_hsotg_disconnect()
1149 static inline int dwc2_hsotg_set_test_mode(struct dwc2_hsotg *hsotg, in dwc2_hsotg_set_test_mode()
1156 extern int dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg);
1157 extern void dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg);
1158 extern void dwc2_hcd_start(struct dwc2_hsotg *hsotg);
1160 static inline int dwc2_hcd_get_frame_number(struct dwc2_hsotg *hsotg) in dwc2_hcd_get_frame_number()
1162 static inline void dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_disconnect()
1163 static inline void dwc2_hcd_start(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_start()
1164 static inline void dwc2_hcd_remove(struct dwc2_hsotg *hsotg) {} in dwc2_hcd_remove()
1165 static inline int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq) in dwc2_hcd_init()