Home
last modified time | relevance | path

Searched refs:gotgctl (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/drivers/usb/dwc2/
Ddrd.c16 #define dwc2_ovr_gotgctl(gotgctl) \ argument
17 ((gotgctl) |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN | GOTGCTL_VBVALOEN | \
23 u32 gotgctl; in dwc2_ovr_init() local
27 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init()
28 dwc2_ovr_gotgctl(gotgctl); in dwc2_ovr_init()
29 gotgctl &= ~(GOTGCTL_BVALOVAL | GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL); in dwc2_ovr_init()
31 gotgctl |= GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL; in dwc2_ovr_init()
33 gotgctl |= GOTGCTL_BVALOVAL | GOTGCTL_VBVALOVAL; in dwc2_ovr_init()
34 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_init()
43 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid() local
[all …]
Dcore_intr.c85 u32 gotgctl; in dwc2_handle_otg_intr() local
89 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
97 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
109 if (gotgctl & GOTGCTL_DEVHNPEN) { in dwc2_handle_otg_intr()
123 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
124 gotgctl &= ~GOTGCTL_DEVHNPEN; in dwc2_handle_otg_intr()
125 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_handle_otg_intr()
131 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
132 if (gotgctl & GOTGCTL_SESREQSCS) { in dwc2_handle_otg_intr()
138 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
[all …]
Dplatform.c280 if (gr->gotgctl & GOTGCTL_CURMODE_HOST) in dwc2_driver_remove()
628 u32 ggpio, gotgctl; in dwc2_suspend() local
637 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend()
639 gotgctl |= GOTGCTL_DBNCE_FLTR_BYPASS; in dwc2_suspend()
640 gotgctl |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN; in dwc2_suspend()
642 if (gotgctl & GOTGCTL_ASESVLD) in dwc2_suspend()
643 gotgctl |= GOTGCTL_AVALOVAL; in dwc2_suspend()
644 if (gotgctl & GOTGCTL_BSESVLD) in dwc2_suspend()
645 gotgctl |= GOTGCTL_BVALOVAL; in dwc2_suspend()
646 dwc2_writel(dwc2, gotgctl, GOTGCTL); in dwc2_suspend()
[all …]
Dcore.c46 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers()
85 dwc2_writel(hsotg, gr->gotgctl, GOTGCTL); in dwc2_restore_global_registers()
119 if (gr->gotgctl & GOTGCTL_CURMODE_HOST) in dwc2_exit_partial_power_down()
345 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_iddig_filter_enabled() local
347 if (gotgctl & GOTGCTL_DBNCE_FLTR_BYPASS) in dwc2_iddig_filter_enabled()
411 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_core_reset() local
414 if (!(gotgctl & GOTGCTL_CONID_B) || in dwc2_core_reset()
Dhcd.c3136 u32 gotgctl; in dwc2_conn_id_status_change() local
3141 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change()
3142 dev_dbg(hsotg->dev, "gotgctl=%0x\n", gotgctl); in dwc2_conn_id_status_change()
3144 !!(gotgctl & GOTGCTL_CONID_B)); in dwc2_conn_id_status_change()
3147 if (gotgctl & GOTGCTL_CONID_B) { in dwc2_conn_id_status_change()
3167 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change()
3168 if (!(gotgctl & GOTGCTL_CONID_B)) in dwc2_conn_id_status_change()
3269 u32 gotgctl; in dwc2_port_suspend() local
3277 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_port_suspend()
3278 gotgctl |= GOTGCTL_HSTSETHNPEN; in dwc2_port_suspend()
[all …]
Dcore.h680 u32 gotgctl; member