Home
last modified time | relevance | path

Searched defs:hsotg (Results 1 – 10 of 10) sorted by relevance

/openbsd-src/sys/dev/usb/dwc2/
H A Ddwc2_core.c74 STATIC int dwc2_backup_global_registers(struct dwc2_hsotg *hsotg) in dwc2_backup_global_registers()
106 STATIC int dwc2_restore_global_registers(struct dwc2_hsotg *hsotg) in dwc2_restore_global_registers()
144 int dwc2_exit_partial_power_down(struct dwc2_hsotg *hsotg, int rem_wakeup, in dwc2_exit_partial_power_down()
168 int dwc2_enter_partial_power_down(struct dwc2_hsotg *hsotg) in dwc2_enter_partial_power_down()
183 static void dwc2_restore_essential_regs(struct dwc2_hsotg *hsotg, int rmode, in dwc2_restore_essential_regs()
251 void dwc2_hib_restore_common(struct dwc2_hsotg *hsotg, int rem_wakeup, in dwc2_hib_restore_common()
323 static void dwc2_wait_for_mode(struct dwc2_hsotg *hsotg, in dwc2_wait_for_mode()
363 static bool dwc2_iddig_filter_enabled(struct dwc2_hsotg *hsotg) in dwc2_iddig_filter_enabled()
399 int dwc2_enter_hibernation(struct dwc2_hsotg *hsotg, int is_host) in dwc2_enter_hibernation()
417 int dwc2_exit_hibernation(struct dwc2_hsotg *hsotg, int rem_wakeup, in dwc2_exit_hibernation()
[all …]
H A Ddwc2_hcd.c77 STATIC void dwc2_enable_common_interrupts(struct dwc2_hsotg *hsotg) in dwc2_enable_common_interrupts()
104 STATIC int dwc2_gahbcfg_init(struct dwc2_hsotg *hsotg) in dwc2_gahbcfg_init()
149 STATIC void dwc2_gusbcfg_init(struct dwc2_hsotg *hsotg) in dwc2_gusbcfg_init()
180 static int dwc2_vbus_supply_init(struct dwc2_hsotg *hsotg) in dwc2_vbus_supply_init()
190 static int dwc2_vbus_supply_exit(struct dwc2_hsotg *hsotg) in dwc2_vbus_supply_exit()
205 void dwc2_enable_host_interrupts(struct dwc2_hsotg *hsotg) in dwc2_enable_host_interrupts()
229 void dwc2_disable_host_interrupts(struct dwc2_hsotg *hsotg) in dwc2_disable_host_interrupts()
246 STATIC void dwc2_calculate_dynamic_fifo(struct dwc2_hsotg *hsotg) in dwc2_calculate_dynamic_fifo()
305 STATIC void dwc2_config_fifos(struct dwc2_hsotg *hsotg) in dwc2_config_fifos()
376 u32 dwc2_calc_frame_interval(struct dwc2_hsotg *hsotg) in dwc2_calc_frame_interval()
[all …]
H A Ddwc2_coreintr.c65 STATIC const char *dwc2_op_state_str(struct dwc2_hsotg *hsotg) in dwc2_op_state_str()
90 STATIC void dwc2_handle_usb_port_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_usb_port_intr()
105 STATIC void dwc2_handle_mode_mismatch_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_mode_mismatch_intr()
120 STATIC void dwc2_handle_otg_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_otg_intr()
282 STATIC void dwc2_handle_conn_id_status_change_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_conn_id_status_change_intr()
315 STATIC void dwc2_handle_session_req_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_session_req_intr()
363 static void dwc2_wakeup_from_lpm_l1(struct dwc2_hsotg *hsotg) in dwc2_wakeup_from_lpm_l1()
415 STATIC void dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_wakeup_detected_intr()
492 STATIC void dwc2_handle_disconnect_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_disconnect_intr()
512 STATIC void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg) in dwc2_handle_usb_suspend_intr()
[all …]
H A Ddwc2_params.c58 STATIC void dwc2_set_dwctwo_params(struct dwc2_hsotg *hsotg) in dwc2_set_dwctwo_params()
360 STATIC void dwc2_set_param_otg_cap(struct dwc2_hsotg *hsotg) in dwc2_set_param_otg_cap()
380 STATIC void dwc2_set_param_phy_type(struct dwc2_hsotg *hsotg) in dwc2_set_param_phy_type()
400 STATIC void dwc2_set_param_speed(struct dwc2_hsotg *hsotg) in dwc2_set_param_speed()
416 void dwc2_set_param_phy_utmi_width(struct dwc2_hsotg *hsotg) in dwc2_set_param_phy_utmi_width()
438 static void dwc2_set_param_tx_fifo_sizes(struct dwc2_hsotg *hsotg) in dwc2_set_param_tx_fifo_sizes()
453 static void dwc2_set_param_power_down(struct dwc2_hsotg *hsotg) in dwc2_set_param_power_down()
467 static void dwc2_set_param_lpm(struct dwc2_hsotg *hsotg) in dwc2_set_param_lpm()
491 STATIC void dwc2_set_default_params(struct dwc2_hsotg *hsotg) in dwc2_set_default_params()
596 static void dwc2_check_param_otg_cap(struct dwc2_hsotg *hsotg) in dwc2_check_param_otg_cap()
[all …]
H A Ddwc2_hcdintr.c68 STATIC void dwc2_track_missed_sofs(struct dwc2_hsotg *hsotg) in dwc2_track_missed_sofs()
102 STATIC void dwc2_hc_handle_tt_clear(struct dwc2_hsotg *hsotg, in dwc2_hc_handle_tt_clear()
149 STATIC void dwc2_sof_intr(struct dwc2_hsotg *hsotg) in dwc2_sof_intr()
195 STATIC void dwc2_rx_fifo_level_intr(struct dwc2_hsotg *hsotg) in dwc2_rx_fifo_level_intr()
253 STATIC void dwc2_np_tx_fifo_empty_intr(struct dwc2_hsotg *hsotg) in dwc2_np_tx_fifo_empty_intr()
265 STATIC void dwc2_perio_tx_fifo_empty_intr(struct dwc2_hsotg *hsotg) in dwc2_perio_tx_fifo_empty_intr()
272 STATIC void dwc2_hprt0_enable(struct dwc2_hsotg *hsotg, u32 hprt0, in dwc2_hprt0_enable()
367 STATIC void dwc2_port_intr(struct dwc2_hsotg *hsotg) in dwc2_port_intr()
454 STATIC u32 dwc2_get_actual_xfer_length(struct dwc2_hsotg *hsotg, in dwc2_get_actual_xfer_length()
508 STATIC int dwc2_update_urb_state(struct dwc2_hsotg *hsotg, in dwc2_update_urb_state()
[all …]
H A Ddwc2_hcdqueue.c81 STATIC int dwc2_periodic_channel_available(struct dwc2_hsotg *hsotg) in dwc2_periodic_channel_available()
118 STATIC int dwc2_check_periodic_bandwidth(struct dwc2_hsotg *hsotg, in dwc2_check_periodic_bandwidth()
383 static unsigned long *dwc2_get_ls_map(struct dwc2_hsotg *hsotg, in dwc2_get_ls_map()
501 struct dwc2_hsotg *hsotg; member
524 static void dwc2_qh_schedule_print(struct dwc2_hsotg *hsotg, in dwc2_qh_schedule_print()
574 static inline void dwc2_qh_schedule_print(struct dwc2_hsotg *hsotg, in dwc2_qh_schedule_print()
593 static int dwc2_ls_pmap_schedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_ls_pmap_schedule()
632 static void dwc2_ls_pmap_unschedule(struct dwc2_hsotg *hsotg, in dwc2_ls_pmap_unschedule()
667 static int dwc2_hs_pmap_schedule(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_hs_pmap_schedule()
693 static void dwc2_hs_pmap_unschedule(struct dwc2_hsotg *hsotg, in dwc2_hs_pmap_unschedule()
[all …]
H A Ddwc2_hcdddma.c93 STATIC int dwc2_desc_list_alloc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_desc_list_alloc()
129 STATIC void dwc2_desc_list_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) in dwc2_desc_list_free()
150 STATIC int dwc2_frame_list_alloc(struct dwc2_hsotg *hsotg, gfp_t mem_flags) in dwc2_frame_list_alloc()
173 STATIC void dwc2_frame_list_free(struct dwc2_hsotg *hsotg) in dwc2_frame_list_free()
193 STATIC void dwc2_per_sched_enable(struct dwc2_hsotg *hsotg, u32 fr_list_en) in dwc2_per_sched_enable()
217 STATIC void dwc2_per_sched_disable(struct dwc2_hsotg *hsotg) in dwc2_per_sched_disable()
242 STATIC void dwc2_update_frame_list(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_update_frame_list()
304 STATIC void dwc2_release_channel_ddma(struct dwc2_hsotg *hsotg, in dwc2_release_channel_ddma()
352 int dwc2_hcd_qh_init_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh, in dwc2_hcd_qh_init_ddma()
398 void dwc2_hcd_qh_free_ddma(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh) in dwc2_hcd_qh_free_ddma()
[all …]
H A Ddwc2_core.h65 #define dwc2_sch_dbg(hsotg,fmt,...) do { \ argument
73 #define dwc2_sch_vdbg(hsotg,fmt,...) do { \ argument
1268 #define dwc2_readl(hsotg, reg) \ argument
1271 #define dwc2_writel(hsotg, data, reg) \ argument
1325 static inline bool dwc2_is_iot(struct dwc2_hsotg *hsotg) in dwc2_is_iot()
1330 static inline bool dwc2_is_fs_iot(struct dwc2_hsotg *hsotg) in dwc2_is_fs_iot()
1335 static inline bool dwc2_is_hs_iot(struct dwc2_hsotg *hsotg) in dwc2_is_hs_iot()
1417 static inline int dwc2_is_host_mode(struct dwc2_hsotg *hsotg) in dwc2_is_host_mode()
1422 static inline int dwc2_is_device_mode(struct dwc2_hsotg *hsotg) in dwc2_is_device_mode()
1452 #define dwc2_is_device_connected(hsotg) (hsotg->connected) argument
[all …]
H A Ddwc2.c295 struct dwc2_hsotg *hsotg = sc->sc_hsotg; in dwc2_softintr() local
446 struct dwc2_hsotg *hsotg = sc->sc_hsotg; in dwc2_abort_xfer() local
1023 struct dwc2_hsotg *hsotg = sc->sc_hsotg; in dwc2_device_start() local
1265 struct dwc2_hsotg *hsotg; in dwc2_intr() local
1320 struct dwc2_hsotg *hsotg; in dwc2_init() local
1421 int dwc2_check_core_version(struct dwc2_hsotg *hsotg) in dwc2_check_core_version()
H A Ddwc2_hcd.h347 struct dwc2_hsotg *hsotg; member
462 struct dwc2_hsotg *hsotg; member
484 static inline void disable_hc_int(struct dwc2_hsotg *hsotg, int chnum, u32 intr) in disable_hc_int()
502 static inline u32 dwc2_read_hprt0(struct dwc2_hsotg *hsotg) in dwc2_read_hprt0()
591 static inline void dwc2_hcd_qtd_unlink_and_free(struct dwc2_hsotg *hsotg, in dwc2_hcd_qtd_unlink_and_free()
708 static inline u32 dwc2_read_core_intr(struct dwc2_hsotg *hsotg) in dwc2_read_core_intr()
750 static inline int dwc2_hcd_is_bandwidth_allocated(struct dwc2_hsotg *hsotg, in dwc2_hcd_is_bandwidth_allocated()
762 static inline u16 dwc2_hcd_get_ep_bandwidth(struct dwc2_hsotg *hsotg, in dwc2_hcd_get_ep_bandwidth()