Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/usb/dwc2/
Dcore.c76 hr->hcfg = dwc2_readl(hsotg->regs + HCFG); in dwc2_backup_host_registers()
77 hr->haintmsk = dwc2_readl(hsotg->regs + HAINTMSK); in dwc2_backup_host_registers()
79 hr->hcintmsk[i] = dwc2_readl(hsotg->regs + HCINTMSK(i)); in dwc2_backup_host_registers()
82 hr->hfir = dwc2_readl(hsotg->regs + HFIR); in dwc2_backup_host_registers()
150 dr->dcfg = dwc2_readl(hsotg->regs + DCFG); in dwc2_backup_device_registers()
151 dr->dctl = dwc2_readl(hsotg->regs + DCTL); in dwc2_backup_device_registers()
152 dr->daintmsk = dwc2_readl(hsotg->regs + DAINTMSK); in dwc2_backup_device_registers()
153 dr->diepmsk = dwc2_readl(hsotg->regs + DIEPMSK); in dwc2_backup_device_registers()
154 dr->doepmsk = dwc2_readl(hsotg->regs + DOEPMSK); in dwc2_backup_device_registers()
158 dr->diepctl[i] = dwc2_readl(hsotg->regs + DIEPCTL(i)); in dwc2_backup_device_registers()
[all …]
Dcore_intr.c83 u32 hprt0 = dwc2_readl(hsotg->regs + HPRT0); in dwc2_handle_usb_port_intr()
120 gotgint = dwc2_readl(hsotg->regs + GOTGINT); in dwc2_handle_otg_intr()
121 gotgctl = dwc2_readl(hsotg->regs + GOTGCTL); in dwc2_handle_otg_intr()
129 gotgctl = dwc2_readl(hsotg->regs + GOTGCTL); in dwc2_handle_otg_intr()
155 gotgctl = dwc2_readl(hsotg->regs + GOTGCTL); in dwc2_handle_otg_intr()
163 gotgctl = dwc2_readl(hsotg->regs + GOTGCTL); in dwc2_handle_otg_intr()
171 gotgctl = dwc2_readl(hsotg->regs + GOTGCTL); in dwc2_handle_otg_intr()
183 gotgctl = dwc2_readl(hsotg->regs + GOTGCTL); in dwc2_handle_otg_intr()
203 gintmsk = dwc2_readl(hsotg->regs + GINTMSK); in dwc2_handle_otg_intr()
219 gotgctl = dwc2_readl(hsotg->regs + GOTGCTL); in dwc2_handle_otg_intr()
[all …]
Ddebugfs.c79 dctl = dwc2_readl(hsotg->regs + DCTL); in testmode_show()
140 dwc2_readl(regs + DCFG), in state_show()
141 dwc2_readl(regs + DCTL), in state_show()
142 dwc2_readl(regs + DSTS)); in state_show()
145 dwc2_readl(regs + DIEPMSK), dwc2_readl(regs + DOEPMSK)); in state_show()
148 dwc2_readl(regs + GINTMSK), in state_show()
149 dwc2_readl(regs + GINTSTS)); in state_show()
152 dwc2_readl(regs + DAINTMSK), in state_show()
153 dwc2_readl(regs + DAINT)); in state_show()
156 dwc2_readl(regs + GNPTXSTS), in state_show()
[all …]
Dgadget.c55 dwc2_writel(dwc2_readl(ptr) | val, ptr); in __orr32()
60 dwc2_writel(dwc2_readl(ptr) & ~val, ptr); in __bic32()
106 u32 gsintmsk = dwc2_readl(hsotg->regs + GINTMSK); in dwc2_hsotg_en_gsint()
124 u32 gsintmsk = dwc2_readl(hsotg->regs + GINTMSK); in dwc2_hsotg_disable_gsint()
155 daint = dwc2_readl(hsotg->regs + DAINTMSK); in dwc2_hsotg_ctrl_epint()
223 val = dwc2_readl(hsotg->regs + GRSTCTL); in dwc2_hsotg_init_fifo()
316 u32 gnptxsts = dwc2_readl(hsotg->regs + GNPTXSTS); in dwc2_hsotg_write_fifo()
331 u32 epsize = dwc2_readl(hsotg->regs + DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_write_fifo()
372 can_write = dwc2_readl(hsotg->regs + DTXFSTS(hs_ep->index)); in dwc2_hsotg_write_fifo()
549 __func__, dwc2_readl(hsotg->regs + epctrl_reg), index, in dwc2_hsotg_start_req()
[all …]
Dhcd_intr.c167 grxsts = dwc2_readl(hsotg->regs + GRXSTSP); in dwc2_rx_fifo_level_intr()
250 hfir = dwc2_readl(hsotg->regs + HFIR); in dwc2_hprt0_enable()
263 usbcfg = dwc2_readl(hsotg->regs + GUSBCFG); in dwc2_hprt0_enable()
275 hcfg = dwc2_readl(hsotg->regs + HCFG); in dwc2_hprt0_enable()
335 hprt0 = dwc2_readl(hsotg->regs + HPRT0); in dwc2_port_intr()
411 hctsiz = dwc2_readl(hsotg->regs + HCTSIZ(chnum)); in dwc2_get_actual_xfer_length()
494 hctsiz = dwc2_readl(hsotg->regs + HCTSIZ(chnum)); in dwc2_update_urb_state()
517 u32 hctsiz = dwc2_readl(hsotg->regs + HCTSIZ(chnum)); in dwc2_hcd_save_data_toggle()
774 haintmsk = dwc2_readl(hsotg->regs + HAINTMSK); in dwc2_release_channel()
823 gintmsk = dwc2_readl(hsotg->regs + GINTMSK); in dwc2_halt_channel()
[all …]
Dhcd.c83 hcchar = dwc2_readl(hsotg->regs + HCCHAR(chan->hc_num)); in dwc2_dump_channel_info()
84 hcsplt = dwc2_readl(hsotg->regs + HCSPLT(chan->hc_num)); in dwc2_dump_channel_info()
85 hctsiz = dwc2_readl(hsotg->regs + HCTSIZ(chan->hc_num)); in dwc2_dump_channel_info()
86 hc_dma = dwc2_readl(hsotg->regs + HCDMA(chan->hc_num)); in dwc2_dump_channel_info()
231 hcchar = dwc2_readl(hsotg->regs + HCCHAR(i)); in dwc2_hcd_cleanup_channels()
244 hcchar = dwc2_readl(hsotg->regs + HCCHAR(i)); in dwc2_hcd_cleanup_channels()
290 intr = dwc2_readl(hsotg->regs + GINTMSK); in dwc2_hcd_disconnect()
382 u32 hprt0 = dwc2_readl(hsotg->regs + HPRT0); in dwc2_hcd_urb_enqueue()
401 intr_mask = dwc2_readl(hsotg->regs + GINTMSK); in dwc2_hcd_urb_enqueue()
1074 tx_status = dwc2_readl(hsotg->regs + HPTXSTS); in dwc2_process_periodic_channels()
[all …]
Dhcd.h374 u32 mask = dwc2_readl(hsotg->regs + HCINTMSK(chnum)); in disable_hc_int()
385 return (dwc2_readl(hsotg->regs + GINTSTS) & GINTSTS_CURMODE_HOST) != 0; in dwc2_is_host_mode()
389 return (dwc2_readl(hsotg->regs + GINTSTS) & GINTSTS_CURMODE_HOST) == 0; in dwc2_is_device_mode()
398 u32 hprt0 = dwc2_readl(hsotg->regs + HPRT0); in dwc2_read_hprt0()
583 return dwc2_readl(hsotg->regs + GINTSTS) & in dwc2_read_core_intr()
584 dwc2_readl(hsotg->regs + GINTMSK); in dwc2_read_core_intr()
736 _hfnum_.d32 = dwc2_readl((_hcd_)->regs + HFNUM); \
Dhcd_queue.c121 hprt = dwc2_readl(hsotg->regs + HPRT0); in dwc2_qh_init()
609 intr_mask = dwc2_readl(hsotg->regs + GINTMSK); in dwc2_hcd_qh_add()
646 intr_mask = dwc2_readl(hsotg->regs + GINTMSK); in dwc2_hcd_qh_unlink()
Dhcd_ddma.c172 hcfg = dwc2_readl(hsotg->regs + HCFG); in dwc2_per_sched_enable()
196 hcfg = dwc2_readl(hsotg->regs + HCFG); in dwc2_per_sched_disable()
Dcore.h47 static inline u32 dwc2_readl(const void __iomem *addr) in dwc2_readl() function