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()
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()
524 u32 epsize = dwc2_readl(hsotg, DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_write_fifo()
565 can_write = dwc2_readl(hsotg, in dwc2_hsotg_write_fifo()
710 dsts = dwc2_readl(hsotg, DSTS); in dwc2_hsotg_read_frameno()
1028 ctrl = dwc2_readl(hsotg, depctl); in dwc2_gadget_start_isoc_ddma()
1084 __func__, dwc2_readl(hsotg, epctrl_reg), index, in dwc2_hsotg_start_req()
1088 ctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_start_req()
1240 if (!(dwc2_readl(hsotg, epctrl_reg) & DXEPCTL_EPENA)) in dwc2_hsotg_start_req()
1243 index, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_start_req()
1246 __func__, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_start_req()
1596 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_hsotg_set_test_mode()
1904 ctrl = dwc2_readl(hsotg, reg); in dwc2_hsotg_stall_ep0()
1911 ctrl, reg, dwc2_readl(hsotg, reg)); in dwc2_hsotg_stall_ep0()
1956 dcfg = dwc2_readl(hsotg, DCFG); in dwc2_hsotg_process_control()
2095 ctrl = dwc2_readl(hsotg, epctl_reg); in dwc2_hsotg_program_zlp()
2269 u32 epctl = dwc2_readl(hsotg, DOEPCTL(ep_idx)); in dwc2_hsotg_rx_data()
2278 (void)dwc2_readl(hsotg, EPFIFO(ep_idx)); in dwc2_hsotg_rx_data()
2389 u32 epsize = dwc2_readl(hsotg, DOEPTSIZ(epnum)); in dwc2_hsotg_handle_outdone()
2480 u32 grxstsr = dwc2_readl(hsotg, GRXSTSP); in dwc2_hsotg_handle_rx()
2511 dwc2_readl(hsotg, DOEPCTL(0))); in dwc2_hsotg_handle_rx()
2529 dwc2_readl(hsotg, DOEPCTL(0))); in dwc2_hsotg_handle_rx()
2608 reg = dwc2_readl(hsotg, DIEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
2613 reg = dwc2_readl(hsotg, DOEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
2686 u32 epsize = dwc2_readl(hsotg, DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_complete_in()
2798 mask = dwc2_readl(hsotg, epmsk_reg); in dwc2_gadget_read_ep_interrupts()
2799 diepempmsk = dwc2_readl(hsotg, DIEPEMPMSK); in dwc2_gadget_read_ep_interrupts()
2803 ints = dwc2_readl(hsotg, epint_reg); in dwc2_gadget_read_ep_interrupts()
2828 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_handle_ep_disabled()
2833 int epctl = dwc2_readl(hsotg, epctl_reg); in dwc2_gadget_handle_ep_disabled()
2838 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()
2991 u32 ctrl = dwc2_readl(hsotg, in dwc2_gadget_handle_nak()
3005 ctrl = dwc2_readl(hsotg, DIEPCTL(hs_ep->index)); in dwc2_gadget_handle_nak()
3076 __func__, dwc2_readl(hsotg, epctl_reg), in dwc2_hsotg_epint()
3077 dwc2_readl(hsotg, epsiz_reg)); in dwc2_hsotg_epint()
3199 u32 dsts = dwc2_readl(hsotg, DSTS); in dwc2_hsotg_irq_enumdone()
3270 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_irq_enumdone()
3271 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_irq_enumdone()
3299 size = (dwc2_readl(hsotg, DTXFSTS(ep->fifo_index)) & 0xffff) * 4; in kill_all_requests()
3412 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hsotg_core_init_disconnected()
3519 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_core_init_disconnected()
3520 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_core_init_disconnected()
3543 dev_dbg(hsotg->dev, "DCTL=0x%08x\n", dwc2_readl(hsotg, DCTL)); in dwc2_hsotg_core_init_disconnected()
3584 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_core_init_disconnected()
3585 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_core_init_disconnected()
3597 if (!hsotg->role_sw || (dwc2_readl(hsotg, GOTGCTL) & GOTGCTL_BSESVLD)) in dwc2_hsotg_core_connect()
3623 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_gadget_handle_incomplete_isoc_in()
3631 epctrl = dwc2_readl(hsotg, DIEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_in()
3668 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_gadget_handle_incomplete_isoc_out()
3677 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_out()
3681 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_gadget_handle_incomplete_isoc_out()
3685 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_gadget_handle_incomplete_isoc_out()
3714 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_hsotg_irq()
3715 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_irq()
3735 u32 usb_status = dwc2_readl(hsotg, GOTGCTL); in dwc2_hsotg_irq()
3740 dwc2_readl(hsotg, GNPTXSTS)); in dwc2_hsotg_irq()
3761 u32 daint = dwc2_readl(hsotg, DAINT); in dwc2_hsotg_irq()
3762 u32 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_irq()
3837 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_irq()
3840 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_irq()
3851 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_hsotg_irq()
3941 if (!(dwc2_readl(hsotg, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_stop_xfr()
3955 dwc2_readl(hsotg, GRXSTSP); in dwc2_hsotg_ep_stop_xfr()
4063 epctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_ep_enable()
4116 mask = dwc2_readl(hsotg, DIEPMSK); in dwc2_hsotg_ep_enable()
4121 mask = dwc2_readl(hsotg, DOEPMSK); in dwc2_hsotg_ep_enable()
4159 val = dwc2_readl(hsotg, DPTXFSIZN(i)); in dwc2_hsotg_ep_enable()
4198 u32 gsnpsid = dwc2_readl(hsotg, GSNPSID); in dwc2_hsotg_ep_enable()
4212 __func__, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_ep_enable()
4258 ctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_ep_disable()
4408 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4425 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4431 if (!(dwc2_readl(hs, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_sethalt()
4504 dwc2_readl(hsotg, GRXFSIZ), in dwc2_hsotg_init()
4505 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_hsotg_init()
4923 dwc2_readl(hsotg, DCFG), dwc2_readl(hsotg, DCTL), in dwc2_hsotg_dump()
4924 dwc2_readl(hsotg, DIEPMSK)); in dwc2_hsotg_dump()
4927 dwc2_readl(hsotg, GAHBCFG), dwc2_readl(hsotg, GHWCFG1)); in dwc2_hsotg_dump()
4930 dwc2_readl(hsotg, GRXFSIZ), dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_hsotg_dump()
4935 val = dwc2_readl(hsotg, DPTXFSIZN(idx)); in dwc2_hsotg_dump()
4944 dwc2_readl(hsotg, DIEPCTL(idx)), in dwc2_hsotg_dump()
4945 dwc2_readl(hsotg, DIEPTSIZ(idx)), in dwc2_hsotg_dump()
4946 dwc2_readl(hsotg, DIEPDMA(idx))); in dwc2_hsotg_dump()
4948 val = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_hsotg_dump()
4951 idx, dwc2_readl(hsotg, DOEPCTL(idx)), in dwc2_hsotg_dump()
4952 dwc2_readl(hsotg, DOEPTSIZ(idx)), in dwc2_hsotg_dump()
4953 dwc2_readl(hsotg, DOEPDMA(idx))); in dwc2_hsotg_dump()
4957 dwc2_readl(hsotg, DVBUSDIS), dwc2_readl(hsotg, DVBUSPULSE)); in dwc2_hsotg_dump()
5152 dr->dcfg = dwc2_readl(hsotg, DCFG); in dwc2_backup_device_registers()
5153 dr->dctl = dwc2_readl(hsotg, DCTL); in dwc2_backup_device_registers()
5154 dr->daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_backup_device_registers()
5155 dr->diepmsk = dwc2_readl(hsotg, DIEPMSK); in dwc2_backup_device_registers()
5156 dr->doepmsk = dwc2_readl(hsotg, DOEPMSK); in dwc2_backup_device_registers()
5160 dr->diepctl[i] = dwc2_readl(hsotg, DIEPCTL(i)); in dwc2_backup_device_registers()
5168 dr->dieptsiz[i] = dwc2_readl(hsotg, DIEPTSIZ(i)); in dwc2_backup_device_registers()
5169 dr->diepdma[i] = dwc2_readl(hsotg, DIEPDMA(i)); in dwc2_backup_device_registers()
5172 dr->doepctl[i] = dwc2_readl(hsotg, DOEPCTL(i)); in dwc2_backup_device_registers()
5180 dr->doeptsiz[i] = dwc2_readl(hsotg, DOEPTSIZ(i)); in dwc2_backup_device_registers()
5181 dr->doepdma[i] = dwc2_readl(hsotg, DOEPDMA(i)); in dwc2_backup_device_registers()
5182 dr->dtxfsiz[i] = dwc2_readl(hsotg, DPTXFSIZN(i)); in dwc2_backup_device_registers()
5274 dev_dbg(hsotg->dev, "GLPMCFG=0x%08x\n", dwc2_readl(hsotg, GLPMCFG)); in dwc2_gadget_init_lpm()
5297 dev_dbg(hsotg->dev, "GREFCLK=0x%08x\n", dwc2_readl(hsotg, GREFCLK)); in dwc2_gadget_program_ref_clk()
5337 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5343 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5351 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5357 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5363 hsotg->gr_backup.gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5409 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_exit_hibernation()
5415 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_hibernation()
5430 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_exit_hibernation()
5441 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_hibernation()
5468 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_hibernation()
5519 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_enter_partial_power_down()
5564 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_partial_power_down()
5568 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_partial_power_down()
5572 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_partial_power_down()
5596 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_partial_power_down()
5624 pcgctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_enter_clock_gating()
5630 pcgctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_enter_clock_gating()
5655 pcgctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_clock_gating()
5661 pcgctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_clock_gating()
5668 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_clock_gating()