Home
last modified time | relevance | path

Searched refs:gotgctl (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-6.6/drivers/usb/dwc2/
H A Ddrd.c16 #define dwc2_ovr_gotgctl(gotgctl) \
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()
44 u32 gotgctl in dwc2_ovr_avalid() local
66 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); dwc2_ovr_bvalid() local
[all...]
H A 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 in dwc2_handle_otg_intr()
[all...]
H A Dplatform.c314 if (gr->gotgctl & GOTGCTL_CURMODE_HOST) in dwc2_driver_remove()
657 u32 ggpio, gotgctl; in dwc2_suspend() local
666 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend()
668 gotgctl |= GOTGCTL_DBNCE_FLTR_BYPASS; in dwc2_suspend()
669 gotgctl |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN; in dwc2_suspend()
671 if (gotgctl & GOTGCTL_ASESVLD) in dwc2_suspend()
672 gotgctl |= GOTGCTL_AVALOVAL; in dwc2_suspend()
673 if (gotgctl & GOTGCTL_BSESVLD) in dwc2_suspend()
674 gotgctl |= GOTGCTL_BVALOVAL; in dwc2_suspend()
675 dwc2_writel(dwc2, gotgctl, GOTGCT in dwc2_suspend()
709 u32 ggpio, gotgctl; dwc2_resume() local
[all...]
H A 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()
117 * value of the "gotgctl" register. in dwc2_exit_partial_power_down()
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()
H A 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()
3143 dev_dbg(hsotg->dev, "gotgctl.b.conidsts=%d\n", 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
[all...]
H A Dcore.h664 * @gotgctl: Backup of GOTGCTL register
680 u32 gotgctl; member
/kernel/linux/linux-5.10/drivers/usb/dwc2/
H A Ddrd.c19 u32 gotgctl; in dwc2_ovr_init() local
23 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init()
24 gotgctl |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN | GOTGCTL_VBVALOEN; in dwc2_ovr_init()
25 gotgctl |= GOTGCTL_DBNCE_FLTR_BYPASS; in dwc2_ovr_init()
26 gotgctl &= ~(GOTGCTL_BVALOVAL | GOTGCTL_AVALOVAL | GOTGCTL_VBVALOVAL); in dwc2_ovr_init()
27 dwc2_writel(hsotg, gotgctl, GOTGCTL); in dwc2_ovr_init()
36 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid() local
39 if ((valid && (gotgctl & GOTGCTL_ASESVLD)) || in dwc2_ovr_avalid()
40 (!valid && !(gotgctl & GOTGCTL_ASESVLD))) in dwc2_ovr_avalid()
43 gotgctl in dwc2_ovr_avalid()
55 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); dwc2_ovr_bvalid() local
[all...]
H A Dplatform.c634 u32 ggpio, gotgctl; in dwc2_suspend() local
643 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend()
645 gotgctl |= GOTGCTL_DBNCE_FLTR_BYPASS; in dwc2_suspend()
646 gotgctl |= GOTGCTL_BVALOEN | GOTGCTL_AVALOEN; in dwc2_suspend()
648 if (gotgctl & GOTGCTL_ASESVLD) in dwc2_suspend()
649 gotgctl |= GOTGCTL_AVALOVAL; in dwc2_suspend()
650 if (gotgctl & GOTGCTL_BSESVLD) in dwc2_suspend()
651 gotgctl |= GOTGCTL_BVALOVAL; in dwc2_suspend()
652 dwc2_writel(dwc2, gotgctl, GOTGCTL); in dwc2_suspend()
686 u32 ggpio, gotgctl; in dwc2_resume() local
[all...]
H A 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 in dwc2_handle_otg_intr()
[all...]
H A 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()
444 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_iddig_filter_enabled() local
446 if (gotgctl & GOTGCTL_DBNCE_FLTR_BYPASS) in dwc2_iddig_filter_enabled()
513 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_core_reset() local
516 if (!(gotgctl & GOTGCTL_CONID_B) || in dwc2_core_reset()
H A Dhcd.c3171 u32 gotgctl; in dwc2_conn_id_status_change() local
3176 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change()
3177 dev_dbg(hsotg->dev, "gotgctl=%0x\n", gotgctl); in dwc2_conn_id_status_change()
3178 dev_dbg(hsotg->dev, "gotgctl.b.conidsts=%d\n", in dwc2_conn_id_status_change()
3179 !!(gotgctl & GOTGCTL_CONID_B)); in dwc2_conn_id_status_change()
3182 if (gotgctl & GOTGCTL_CONID_B) { in dwc2_conn_id_status_change()
3202 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_conn_id_status_change()
3203 if (!(gotgctl & GOTGCTL_CONID_B)) in dwc2_conn_id_status_change()
3286 u32 gotgctl; in dwc2_port_suspend() local
[all...]
H A Dcore.h683 * @gotgctl: Backup of GOTGCTL register
699 u32 gotgctl; member

Completed in 21 milliseconds