Home
last modified time | relevance | path

Searched refs:dwc2_readl (Results 1 - 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/usb/dwc2/
H A Dcore.c76 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers()
77 gr->gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_backup_global_registers()
78 gr->gahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_backup_global_registers()
79 gr->gusbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_backup_global_registers()
80 gr->grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_backup_global_registers()
81 gr->gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_backup_global_registers()
82 gr->gdfifocfg = dwc2_readl(hsotg, GDFIFOCFG); in dwc2_backup_global_registers()
83 gr->pcgcctl1 = dwc2_readl(hsotg, PCGCCTL1); in dwc2_backup_global_registers()
84 gr->glpmcfg = dwc2_readl(hsotg, GLPMCFG); in dwc2_backup_global_registers()
85 gr->gi2cctl = dwc2_readl(hsot in dwc2_backup_global_registers()
[all...]
H A Dcore_intr.c84 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_handle_usb_port_intr()
118 gotgint = dwc2_readl(hsotg, GOTGINT); in dwc2_handle_otg_intr()
119 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
127 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
153 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
161 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
168 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
180 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
200 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_handle_otg_intr()
216 gotgctl = dwc2_readl(hsot in dwc2_handle_otg_intr()
[all...]
H A Ddebugfs.c72 dctl = dwc2_readl(hsotg, DCTL); in testmode_show()
132 dwc2_readl(hsotg, DCFG), in state_show()
133 dwc2_readl(hsotg, DCTL), in state_show()
134 dwc2_readl(hsotg, DSTS)); in state_show()
137 dwc2_readl(hsotg, DIEPMSK), dwc2_readl(hsotg, DOEPMSK)); in state_show()
140 dwc2_readl(hsotg, GINTMSK), in state_show()
141 dwc2_readl(hsotg, GINTSTS)); in state_show()
144 dwc2_readl(hsotg, DAINTMSK), in state_show()
145 dwc2_readl(hsot in state_show()
[all...]
H A Ddrd.c23 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init()
36 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid()
55 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_bvalid()
177 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_drd_suspend()
180 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_drd_suspend()
190 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_drd_resume()
192 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_drd_resume()
H A Dgadget.c54 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) | val, offset); in dwc2_set_bit()
59 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) & ~val, offset); in dwc2_clear_bit()
164 u32 gsintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_en_gsint()
182 u32 gsintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_disable_gsint()
213 daint = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_ctrl_epint()
273 gintsts2 = dwc2_readl(hsotg, GINTSTS2); in dwc2_gadget_wkup_alert_handler()
274 gintmsk2 = dwc2_readl(hsotg, GINTMSK2); in dwc2_gadget_wkup_alert_handler()
354 val = dwc2_readl(hsotg, DPTXFSIZN(ep)); in dwc2_hsotg_init_fifo()
371 val = dwc2_readl(hsotg, GRSTCTL); in dwc2_hsotg_init_fifo()
509 u32 gnptxsts = dwc2_readl(hsot in dwc2_hsotg_write_fifo()
[all...]
H A Dhcd.c102 u32 ahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_gahbcfg_init()
138 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_gusbcfg_init()
204 intmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_enable_host_interrupts()
216 u32 intmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_disable_host_interrupts()
301 grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_config_fifos()
308 dwc2_readl(hsotg, GRXFSIZ)); in dwc2_config_fifos()
312 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_config_fifos()
319 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_config_fifos()
323 dwc2_readl(hsotg, HPTXFSIZ)); in dwc2_config_fifos()
331 dwc2_readl(hsot in dwc2_config_fifos()
[all...]
H A Dhcd_intr.c194 grxsts = dwc2_readl(hsotg, GRXSTSP); in dwc2_rx_fifo_level_intr()
277 hfir = dwc2_readl(hsotg, HFIR); in dwc2_hprt0_enable()
290 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hprt0_enable()
302 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_hprt0_enable()
362 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_port_intr()
409 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_port_intr()
444 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_get_actual_xfer_length()
521 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_update_urb_state()
544 u32 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_hcd_save_data_toggle()
783 haintmsk = dwc2_readl(hsot in dwc2_release_channel()
[all...]
H A Dplatform.c381 hw->snpsid = dwc2_readl(hsotg, GSNPSID); in dwc2_check_core_version()
529 ggpio = dwc2_readl(hsotg, GGPIO); in dwc2_driver_probe()
643 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend()
655 ggpio = dwc2_readl(dwc2, GGPIO); in dwc2_suspend()
692 ggpio = dwc2_readl(dwc2, GGPIO); in dwc2_resume()
701 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_resume()
H A Dparams.c733 gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_get_host_hwparams()
734 hptxfsiz = dwc2_readl(hsotg, HPTXFSIZ); in dwc2_get_host_hwparams()
758 gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_get_dev_hwparams()
764 (dwc2_readl(hsotg, DPTXFSIZN(fifo)) & in dwc2_get_dev_hwparams()
786 hwcfg1 = dwc2_readl(hsotg, GHWCFG1); in dwc2_get_hwparams()
787 hwcfg2 = dwc2_readl(hsotg, GHWCFG2); in dwc2_get_hwparams()
788 hwcfg3 = dwc2_readl(hsotg, GHWCFG3); in dwc2_get_hwparams()
789 hwcfg4 = dwc2_readl(hsotg, GHWCFG4); in dwc2_get_hwparams()
790 grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_get_hwparams()
H A Dhcd.h475 u32 mask = dwc2_readl(hsotg, HCINTMSK(chnum)); in disable_hc_int()
493 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_read_hprt0()
694 return dwc2_readl(hsotg, GINTSTS) & in dwc2_read_core_intr()
695 dwc2_readl(hsotg, GINTMSK); in dwc2_read_core_intr()
H A Dcore.h1218 static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset) in dwc2_readl() function
1248 u32 x = dwc2_readl(hsotg, offset); in dwc2_readl_rep()
1375 return (dwc2_readl(hsotg, GINTSTS) & GINTSTS_CURMODE_HOST) != 0; in dwc2_is_host_mode()
1380 return (dwc2_readl(hsotg, GINTSTS) & GINTSTS_CURMODE_HOST) == 0; in dwc2_is_device_mode()
H A Dhcd_queue.c1516 u32 hprt = dwc2_readl(hsotg, HPRT0); in dwc2_qh_init()
1757 intr_mask = dwc2_readl(hsotg, GINTMSK); in dwc2_hcd_qh_add()
1798 intr_mask = dwc2_readl(hsotg, GINTMSK); in dwc2_hcd_qh_unlink()
H A Dhcd_ddma.c188 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_per_sched_enable()
212 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_per_sched_disable()
/kernel/linux/linux-6.6/drivers/usb/dwc2/
H A Dcore.c46 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers()
47 gr->gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_backup_global_registers()
48 gr->gahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_backup_global_registers()
49 gr->gusbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_backup_global_registers()
50 gr->grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_backup_global_registers()
51 gr->gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_backup_global_registers()
52 gr->gdfifocfg = dwc2_readl(hsotg, GDFIFOCFG); in dwc2_backup_global_registers()
53 gr->pcgcctl1 = dwc2_readl(hsotg, PCGCCTL1); in dwc2_backup_global_registers()
54 gr->glpmcfg = dwc2_readl(hsotg, GLPMCFG); in dwc2_backup_global_registers()
55 gr->gi2cctl = dwc2_readl(hsot in dwc2_backup_global_registers()
[all...]
H A Dcore_intr.c54 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_handle_usb_port_intr()
88 gotgint = dwc2_readl(hsotg, GOTGINT); in dwc2_handle_otg_intr()
89 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
97 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
123 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
131 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
138 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
150 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
170 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_handle_otg_intr()
186 gotgctl = dwc2_readl(hsot in dwc2_handle_otg_intr()
[all...]
H A Ddebugfs.c72 dctl = dwc2_readl(hsotg, DCTL); in testmode_show()
132 dwc2_readl(hsotg, DCFG), in state_show()
133 dwc2_readl(hsotg, DCTL), in state_show()
134 dwc2_readl(hsotg, DSTS)); in state_show()
137 dwc2_readl(hsotg, DIEPMSK), dwc2_readl(hsotg, DOEPMSK)); in state_show()
140 dwc2_readl(hsotg, GINTMSK), in state_show()
141 dwc2_readl(hsotg, GINTSTS)); in state_show()
144 dwc2_readl(hsotg, DAINTMSK), in state_show()
145 dwc2_readl(hsot in state_show()
[all...]
H A Dgadget.c53 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) | val, offset); in dwc2_set_bit()
58 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) & ~val, offset); in dwc2_clear_bit()
163 u32 gsintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_en_gsint()
181 u32 gsintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_disable_gsint()
212 daint = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_ctrl_epint()
272 gintsts2 = dwc2_readl(hsotg, GINTSTS2); in dwc2_gadget_wkup_alert_handler()
273 gintmsk2 = dwc2_readl(hsotg, GINTMSK2); in dwc2_gadget_wkup_alert_handler()
353 val = dwc2_readl(hsotg, DPTXFSIZN(ep)); in dwc2_hsotg_init_fifo()
370 val = dwc2_readl(hsotg, GRSTCTL); in dwc2_hsotg_init_fifo()
508 u32 gnptxsts = dwc2_readl(hsot in dwc2_hsotg_write_fifo()
[all...]
H A Dhcd.c71 u32 ahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_gahbcfg_init()
107 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_gusbcfg_init()
169 intmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_enable_host_interrupts()
181 u32 intmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_disable_host_interrupts()
266 grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_config_fifos()
273 dwc2_readl(hsotg, GRXFSIZ)); in dwc2_config_fifos()
277 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_config_fifos()
284 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_config_fifos()
288 dwc2_readl(hsotg, HPTXFSIZ)); in dwc2_config_fifos()
296 dwc2_readl(hsot in dwc2_config_fifos()
[all...]
H A Ddrd.c27 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init()
44 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid()
66 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_bvalid()
200 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_drd_suspend()
203 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_drd_suspend()
238 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_drd_resume()
240 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_drd_resume()
H A Dhcd_intr.c164 grxsts = dwc2_readl(hsotg, GRXSTSP); in dwc2_rx_fifo_level_intr()
247 hfir = dwc2_readl(hsotg, HFIR); in dwc2_hprt0_enable()
260 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hprt0_enable()
272 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_hprt0_enable()
332 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_port_intr()
379 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_port_intr()
414 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_get_actual_xfer_length()
491 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_update_urb_state()
514 u32 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_hcd_save_data_toggle()
753 haintmsk = dwc2_readl(hsot in dwc2_release_channel()
[all...]
H A Dparams.c839 gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_get_host_hwparams()
840 hptxfsiz = dwc2_readl(hsotg, HPTXFSIZ); in dwc2_get_host_hwparams()
864 gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_get_dev_hwparams()
870 (dwc2_readl(hsotg, DPTXFSIZN(fifo)) & in dwc2_get_dev_hwparams()
892 hwcfg1 = dwc2_readl(hsotg, GHWCFG1); in dwc2_get_hwparams()
893 hwcfg2 = dwc2_readl(hsotg, GHWCFG2); in dwc2_get_hwparams()
894 hwcfg3 = dwc2_readl(hsotg, GHWCFG3); in dwc2_get_hwparams()
895 hwcfg4 = dwc2_readl(hsotg, GHWCFG4); in dwc2_get_hwparams()
896 grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_get_hwparams()
H A Dplatform.c409 hw->snpsid = dwc2_readl(hsotg, GSNPSID); in dwc2_check_core_version()
553 ggpio = dwc2_readl(hsotg, GGPIO); in dwc2_driver_probe()
666 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend()
678 ggpio = dwc2_readl(dwc2, GGPIO); in dwc2_suspend()
715 ggpio = dwc2_readl(dwc2, GGPIO); in dwc2_resume()
724 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_resume()
H A Dhcd.h446 u32 mask = dwc2_readl(hsotg, HCINTMSK(chnum)); in disable_hc_int()
464 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_read_hprt0()
665 return dwc2_readl(hsotg, GINTSTS) & in dwc2_read_core_intr()
666 dwc2_readl(hsotg, GINTMSK); in dwc2_read_core_intr()
H A Dcore.h1205 static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset) in dwc2_readl() function
1235 u32 x = dwc2_readl(hsotg, offset); in dwc2_readl_rep()
1365 return (dwc2_readl(hsotg, GINTSTS) & GINTSTS_CURMODE_HOST) != 0; in dwc2_is_host_mode()
1370 return (dwc2_readl(hsotg, GINTSTS) & GINTSTS_CURMODE_HOST) == 0; in dwc2_is_device_mode()
H A Dhcd_queue.c1486 u32 hprt = dwc2_readl(hsotg, HPRT0); in dwc2_qh_init()
1727 intr_mask = dwc2_readl(hsotg, GINTMSK); in dwc2_hcd_qh_add()
1768 intr_mask = dwc2_readl(hsotg, GINTMSK); in dwc2_hcd_qh_unlink()

Completed in 37 milliseconds

12