Home
last modified time | relevance | path

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

/linux-5.19.10/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.c115 u32 gotgctl; in dwc2_handle_otg_intr() local
119 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
127 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
139 if (gotgctl & GOTGCTL_DEVHNPEN) { in dwc2_handle_otg_intr()
153 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
154 gotgctl &= ~GOTGCTL_DEVHNPEN; in dwc2_handle_otg_intr()
155 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_handle_otg_intr()
161 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
162 if (gotgctl & GOTGCTL_SESREQSCS) { in dwc2_handle_otg_intr()
168 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
[all …]
Dplatform.c310 if (gr->gotgctl & GOTGCTL_CURMODE_HOST) in dwc2_driver_remove()
658 u32 ggpio, gotgctl; in dwc2_suspend() local
667 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend()
669 gotgctl |= GOTGCTL_DBNCE_FLTR_BYPASS; in dwc2_suspend()
670 gotgctl |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN; in dwc2_suspend()
672 if (gotgctl & GOTGCTL_ASESVLD) in dwc2_suspend()
673 gotgctl |= GOTGCTL_AVALOVAL; in dwc2_suspend()
674 if (gotgctl & GOTGCTL_BSESVLD) in dwc2_suspend()
675 gotgctl |= GOTGCTL_BVALOVAL; in dwc2_suspend()
676 dwc2_writel(dwc2, gotgctl, GOTGCTL); in dwc2_suspend()
[all …]
Dcore.c76 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers()
115 dwc2_writel(hsotg, gr->gotgctl, GOTGCTL); in dwc2_restore_global_registers()
149 if (gr->gotgctl & GOTGCTL_CURMODE_HOST) in dwc2_exit_partial_power_down()
375 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_iddig_filter_enabled() local
377 if (gotgctl & GOTGCTL_DBNCE_FLTR_BYPASS) in dwc2_iddig_filter_enabled()
441 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_core_reset() local
444 if (!(gotgctl & GOTGCTL_CONID_B) || in dwc2_core_reset()
Dhcd.c3165 u32 gotgctl; in dwc2_conn_id_status_change() local
3170 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change()
3171 dev_dbg(hsotg->dev, "gotgctl=%0x\n", gotgctl); in dwc2_conn_id_status_change()
3173 !!(gotgctl & GOTGCTL_CONID_B)); in dwc2_conn_id_status_change()
3176 if (gotgctl & GOTGCTL_CONID_B) { in dwc2_conn_id_status_change()
3196 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change()
3197 if (!(gotgctl & GOTGCTL_CONID_B)) in dwc2_conn_id_status_change()
3298 u32 gotgctl; in dwc2_port_suspend() local
3306 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_port_suspend()
3307 gotgctl |= GOTGCTL_HSTSETHNPEN; in dwc2_port_suspend()
[all …]
Dcore.h710 u32 gotgctl; member