Home
last modified time | relevance | path

Searched refs:dwc2_readl (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/drivers/usb/dwc2/
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(hsotg, GI2CCTL); in dwc2_backup_global_registers()
[all …]
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(hsotg, GOTGCTL); in dwc2_handle_otg_intr()
[all …]
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(hsotg, GNPTXSTS); in dwc2_hsotg_write_fifo()
[all …]
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(hsotg, DAINT)); in state_show()
148 dwc2_readl(hsotg, GNPTXSTS), in state_show()
[all …]
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(hsotg, HPTXFSIZ)); in dwc2_config_fifos()
[all …]
Ddrd.c27 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init()
43 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid()
65 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_bvalid()
199 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_drd_suspend()
202 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_drd_suspend()
237 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_drd_resume()
239 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_drd_resume()
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(hsotg, HAINTMSK); in dwc2_release_channel()
[all …]
Dplatform.c380 hw->snpsid = dwc2_readl(hsotg, GSNPSID); in dwc2_check_core_version()
524 ggpio = dwc2_readl(hsotg, GGPIO); in dwc2_driver_probe()
637 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend()
649 ggpio = dwc2_readl(dwc2, GGPIO); in dwc2_suspend()
686 ggpio = dwc2_readl(dwc2, GGPIO); in dwc2_resume()
695 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_resume()
Dparams.c785 gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_get_host_hwparams()
786 hptxfsiz = dwc2_readl(hsotg, HPTXFSIZ); in dwc2_get_host_hwparams()
810 gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_get_dev_hwparams()
816 (dwc2_readl(hsotg, DPTXFSIZN(fifo)) & in dwc2_get_dev_hwparams()
838 hwcfg1 = dwc2_readl(hsotg, GHWCFG1); in dwc2_get_hwparams()
839 hwcfg2 = dwc2_readl(hsotg, GHWCFG2); in dwc2_get_hwparams()
840 hwcfg3 = dwc2_readl(hsotg, GHWCFG3); in dwc2_get_hwparams()
841 hwcfg4 = dwc2_readl(hsotg, GHWCFG4); in dwc2_get_hwparams()
842 grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_get_hwparams()
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()
Dcore.h1203 static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset) in dwc2_readl() function
1233 u32 x = dwc2_readl(hsotg, offset); in dwc2_readl_rep()
1362 return (dwc2_readl(hsotg, GINTSTS) & GINTSTS_CURMODE_HOST) != 0; in dwc2_is_host_mode()
1367 return (dwc2_readl(hsotg, GINTSTS) & GINTSTS_CURMODE_HOST) == 0; in dwc2_is_device_mode()
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()
Dhcd_ddma.c158 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_per_sched_enable()
182 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_per_sched_disable()