Lines Matching refs:dwc2_readl

54 	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()
152 u32 gsintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_en_gsint()
170 u32 gsintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_disable_gsint()
201 daint = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_ctrl_epint()
261 gintsts2 = dwc2_readl(hsotg, GINTSTS2); in dwc2_gadget_wkup_alert_handler()
262 gintmsk2 = dwc2_readl(hsotg, GINTMSK2); in dwc2_gadget_wkup_alert_handler()
342 val = dwc2_readl(hsotg, DPTXFSIZN(ep)); in dwc2_hsotg_init_fifo()
359 val = dwc2_readl(hsotg, GRSTCTL); in dwc2_hsotg_init_fifo()
497 u32 gnptxsts = dwc2_readl(hsotg, GNPTXSTS); in dwc2_hsotg_write_fifo()
512 u32 epsize = dwc2_readl(hsotg, DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_write_fifo()
553 can_write = dwc2_readl(hsotg, in dwc2_hsotg_write_fifo()
698 dsts = dwc2_readl(hsotg, DSTS); in dwc2_hsotg_read_frameno()
1016 ctrl = dwc2_readl(hsotg, depctl); in dwc2_gadget_start_isoc_ddma()
1066 __func__, dwc2_readl(hsotg, epctrl_reg), index, in dwc2_hsotg_start_req()
1070 ctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_start_req()
1215 if (!(dwc2_readl(hsotg, epctrl_reg) & DXEPCTL_EPENA)) in dwc2_hsotg_start_req()
1218 index, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_start_req()
1221 __func__, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_start_req()
1572 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_hsotg_set_test_mode()
1741 mask = dwc2_readl(hsotg, epmsk_reg); in dwc2_gadget_start_next_request()
1884 ctrl = dwc2_readl(hsotg, reg); in dwc2_hsotg_stall_ep0()
1891 ctrl, reg, dwc2_readl(hsotg, reg)); in dwc2_hsotg_stall_ep0()
1936 dcfg = dwc2_readl(hsotg, DCFG); in dwc2_hsotg_process_control()
2075 ctrl = dwc2_readl(hsotg, epctl_reg); in dwc2_hsotg_program_zlp()
2249 u32 epctl = dwc2_readl(hsotg, DOEPCTL(ep_idx)); in dwc2_hsotg_rx_data()
2258 (void)dwc2_readl(hsotg, EPFIFO(ep_idx)); in dwc2_hsotg_rx_data()
2318 ctrl = dwc2_readl(hsotg, epctl_reg); in dwc2_hsotg_change_ep_iso_parity()
2382 u32 epsize = dwc2_readl(hsotg, DOEPTSIZ(epnum)); in dwc2_hsotg_handle_outdone()
2482 u32 grxstsr = dwc2_readl(hsotg, GRXSTSP); in dwc2_hsotg_handle_rx()
2513 dwc2_readl(hsotg, DOEPCTL(0))); in dwc2_hsotg_handle_rx()
2531 dwc2_readl(hsotg, DOEPCTL(0))); in dwc2_hsotg_handle_rx()
2610 reg = dwc2_readl(hsotg, DIEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
2615 reg = dwc2_readl(hsotg, DOEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
2688 u32 epsize = dwc2_readl(hsotg, DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_complete_in()
2792 mask = dwc2_readl(hsotg, epmsk_reg); in dwc2_gadget_read_ep_interrupts()
2793 diepempmsk = dwc2_readl(hsotg, DIEPEMPMSK); in dwc2_gadget_read_ep_interrupts()
2797 ints = dwc2_readl(hsotg, epint_reg); in dwc2_gadget_read_ep_interrupts()
2822 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_handle_ep_disabled()
2827 int epctl = dwc2_readl(hsotg, epctl_reg); in dwc2_gadget_handle_ep_disabled()
2837 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_handle_ep_disabled()
2908 ctrl = dwc2_readl(hsotg, DOEPCTL(ep->index)); in dwc2_gadget_handle_out_token_ep_disabled()
2918 doepmsk = dwc2_readl(hsotg, DOEPMSK); in dwc2_gadget_handle_out_token_ep_disabled()
2973 u32 ctrl = dwc2_readl(hsotg, in dwc2_gadget_handle_nak()
3039 __func__, dwc2_readl(hsotg, epctl_reg), in dwc2_hsotg_epint()
3040 dwc2_readl(hsotg, epsiz_reg)); in dwc2_hsotg_epint()
3170 u32 dsts = dwc2_readl(hsotg, DSTS); in dwc2_hsotg_irq_enumdone()
3241 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_irq_enumdone()
3242 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_irq_enumdone()
3270 size = (dwc2_readl(hsotg, DTXFSTS(ep->fifo_index)) & 0xffff) * 4; in kill_all_requests()
3383 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hsotg_core_init_disconnected()
3490 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_core_init_disconnected()
3491 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_core_init_disconnected()
3514 dev_dbg(hsotg->dev, "DCTL=0x%08x\n", dwc2_readl(hsotg, DCTL)); in dwc2_hsotg_core_init_disconnected()
3555 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_core_init_disconnected()
3556 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_core_init_disconnected()
3593 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_gadget_handle_incomplete_isoc_in()
3601 epctrl = dwc2_readl(hsotg, DIEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_in()
3638 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_gadget_handle_incomplete_isoc_out()
3647 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_out()
3651 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_gadget_handle_incomplete_isoc_out()
3655 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_gadget_handle_incomplete_isoc_out()
3684 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_hsotg_irq()
3685 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_irq()
3705 u32 usb_status = dwc2_readl(hsotg, GOTGCTL); in dwc2_hsotg_irq()
3710 dwc2_readl(hsotg, GNPTXSTS)); in dwc2_hsotg_irq()
3731 u32 daint = dwc2_readl(hsotg, DAINT); in dwc2_hsotg_irq()
3732 u32 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_irq()
3807 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_irq()
3810 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_irq()
3821 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_hsotg_irq()
3908 if (!(dwc2_readl(hsotg, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_stop_xfr()
4015 epctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_ep_enable()
4067 mask = dwc2_readl(hsotg, DIEPMSK); in dwc2_hsotg_ep_enable()
4071 mask = dwc2_readl(hsotg, DOEPMSK); in dwc2_hsotg_ep_enable()
4109 val = dwc2_readl(hsotg, DPTXFSIZN(i)); in dwc2_hsotg_ep_enable()
4148 u32 gsnpsid = dwc2_readl(hsotg, GSNPSID); in dwc2_hsotg_ep_enable()
4162 __func__, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_ep_enable()
4208 ctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_ep_disable()
4337 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4353 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4356 if (!(dwc2_readl(hs, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_sethalt()
4427 dwc2_readl(hsotg, GRXFSIZ), in dwc2_hsotg_init()
4428 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_hsotg_init()
4820 dwc2_readl(hsotg, DCFG), dwc2_readl(hsotg, DCTL), in dwc2_hsotg_dump()
4821 dwc2_readl(hsotg, DIEPMSK)); in dwc2_hsotg_dump()
4824 dwc2_readl(hsotg, GAHBCFG), dwc2_readl(hsotg, GHWCFG1)); in dwc2_hsotg_dump()
4827 dwc2_readl(hsotg, GRXFSIZ), dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_hsotg_dump()
4832 val = dwc2_readl(hsotg, DPTXFSIZN(idx)); in dwc2_hsotg_dump()
4841 dwc2_readl(hsotg, DIEPCTL(idx)), in dwc2_hsotg_dump()
4842 dwc2_readl(hsotg, DIEPTSIZ(idx)), in dwc2_hsotg_dump()
4843 dwc2_readl(hsotg, DIEPDMA(idx))); in dwc2_hsotg_dump()
4845 val = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_hsotg_dump()
4848 idx, dwc2_readl(hsotg, DOEPCTL(idx)), in dwc2_hsotg_dump()
4849 dwc2_readl(hsotg, DOEPTSIZ(idx)), in dwc2_hsotg_dump()
4850 dwc2_readl(hsotg, DOEPDMA(idx))); in dwc2_hsotg_dump()
4854 dwc2_readl(hsotg, DVBUSDIS), dwc2_readl(hsotg, DVBUSPULSE)); in dwc2_hsotg_dump()
5037 dr->dcfg = dwc2_readl(hsotg, DCFG); in dwc2_backup_device_registers()
5038 dr->dctl = dwc2_readl(hsotg, DCTL); in dwc2_backup_device_registers()
5039 dr->daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_backup_device_registers()
5040 dr->diepmsk = dwc2_readl(hsotg, DIEPMSK); in dwc2_backup_device_registers()
5041 dr->doepmsk = dwc2_readl(hsotg, DOEPMSK); in dwc2_backup_device_registers()
5045 dr->diepctl[i] = dwc2_readl(hsotg, DIEPCTL(i)); in dwc2_backup_device_registers()
5053 dr->dieptsiz[i] = dwc2_readl(hsotg, DIEPTSIZ(i)); in dwc2_backup_device_registers()
5054 dr->diepdma[i] = dwc2_readl(hsotg, DIEPDMA(i)); in dwc2_backup_device_registers()
5057 dr->doepctl[i] = dwc2_readl(hsotg, DOEPCTL(i)); in dwc2_backup_device_registers()
5065 dr->doeptsiz[i] = dwc2_readl(hsotg, DOEPTSIZ(i)); in dwc2_backup_device_registers()
5066 dr->doepdma[i] = dwc2_readl(hsotg, DOEPDMA(i)); in dwc2_backup_device_registers()
5067 dr->dtxfsiz[i] = dwc2_readl(hsotg, DPTXFSIZN(i)); in dwc2_backup_device_registers()
5159 dev_dbg(hsotg->dev, "GLPMCFG=0x%08x\n", dwc2_readl(hsotg, GLPMCFG)); in dwc2_gadget_init_lpm()
5182 dev_dbg(hsotg->dev, "GREFCLK=0x%08x\n", dwc2_readl(hsotg, GREFCLK)); in dwc2_gadget_program_ref_clk()
5222 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5228 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5236 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5242 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5248 hsotg->gr_backup.gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5294 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_exit_hibernation()
5300 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_hibernation()
5311 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_exit_hibernation()
5322 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_hibernation()
5349 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_hibernation()