Lines Matching refs:dwc2_readl

53 	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(hsotg, GNPTXSTS); in dwc2_hsotg_write_fifo()
523 u32 epsize = dwc2_readl(hsotg, DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_write_fifo()
564 can_write = dwc2_readl(hsotg, in dwc2_hsotg_write_fifo()
709 dsts = dwc2_readl(hsotg, DSTS); in dwc2_hsotg_read_frameno()
1027 ctrl = dwc2_readl(hsotg, depctl); in dwc2_gadget_start_isoc_ddma()
1083 __func__, dwc2_readl(hsotg, epctrl_reg), index, in dwc2_hsotg_start_req()
1087 ctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_start_req()
1239 if (!(dwc2_readl(hsotg, epctrl_reg) & DXEPCTL_EPENA)) in dwc2_hsotg_start_req()
1242 index, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_start_req()
1245 __func__, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_start_req()
1595 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_hsotg_set_test_mode()
1903 ctrl = dwc2_readl(hsotg, reg); in dwc2_hsotg_stall_ep0()
1910 ctrl, reg, dwc2_readl(hsotg, reg)); in dwc2_hsotg_stall_ep0()
1955 dcfg = dwc2_readl(hsotg, DCFG); in dwc2_hsotg_process_control()
2094 ctrl = dwc2_readl(hsotg, epctl_reg); in dwc2_hsotg_program_zlp()
2268 u32 epctl = dwc2_readl(hsotg, DOEPCTL(ep_idx)); in dwc2_hsotg_rx_data()
2277 (void)dwc2_readl(hsotg, EPFIFO(ep_idx)); in dwc2_hsotg_rx_data()
2388 u32 epsize = dwc2_readl(hsotg, DOEPTSIZ(epnum)); in dwc2_hsotg_handle_outdone()
2479 u32 grxstsr = dwc2_readl(hsotg, GRXSTSP); in dwc2_hsotg_handle_rx()
2510 dwc2_readl(hsotg, DOEPCTL(0))); in dwc2_hsotg_handle_rx()
2528 dwc2_readl(hsotg, DOEPCTL(0))); in dwc2_hsotg_handle_rx()
2607 reg = dwc2_readl(hsotg, DIEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
2612 reg = dwc2_readl(hsotg, DOEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
2685 u32 epsize = dwc2_readl(hsotg, DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_complete_in()
2797 mask = dwc2_readl(hsotg, epmsk_reg); in dwc2_gadget_read_ep_interrupts()
2798 diepempmsk = dwc2_readl(hsotg, DIEPEMPMSK); in dwc2_gadget_read_ep_interrupts()
2802 ints = dwc2_readl(hsotg, epint_reg); in dwc2_gadget_read_ep_interrupts()
2827 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_handle_ep_disabled()
2832 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()
2907 ctrl = dwc2_readl(hsotg, DOEPCTL(ep->index)); in dwc2_gadget_handle_out_token_ep_disabled()
2990 u32 ctrl = dwc2_readl(hsotg, in dwc2_gadget_handle_nak()
3004 ctrl = dwc2_readl(hsotg, DIEPCTL(hs_ep->index)); in dwc2_gadget_handle_nak()
3075 __func__, dwc2_readl(hsotg, epctl_reg), in dwc2_hsotg_epint()
3076 dwc2_readl(hsotg, epsiz_reg)); in dwc2_hsotg_epint()
3198 u32 dsts = dwc2_readl(hsotg, DSTS); in dwc2_hsotg_irq_enumdone()
3269 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_irq_enumdone()
3270 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_irq_enumdone()
3298 size = (dwc2_readl(hsotg, DTXFSTS(ep->fifo_index)) & 0xffff) * 4; in kill_all_requests()
3411 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hsotg_core_init_disconnected()
3518 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_core_init_disconnected()
3519 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_core_init_disconnected()
3542 dev_dbg(hsotg->dev, "DCTL=0x%08x\n", dwc2_readl(hsotg, DCTL)); in dwc2_hsotg_core_init_disconnected()
3583 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_core_init_disconnected()
3584 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_core_init_disconnected()
3596 if (!hsotg->role_sw || (dwc2_readl(hsotg, GOTGCTL) & GOTGCTL_BSESVLD)) in dwc2_hsotg_core_connect()
3622 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_gadget_handle_incomplete_isoc_in()
3630 epctrl = dwc2_readl(hsotg, DIEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_in()
3667 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_gadget_handle_incomplete_isoc_out()
3676 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_out()
3680 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_gadget_handle_incomplete_isoc_out()
3684 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_gadget_handle_incomplete_isoc_out()
3713 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_hsotg_irq()
3714 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_irq()
3734 u32 usb_status = dwc2_readl(hsotg, GOTGCTL); in dwc2_hsotg_irq()
3739 dwc2_readl(hsotg, GNPTXSTS)); in dwc2_hsotg_irq()
3760 u32 daint = dwc2_readl(hsotg, DAINT); in dwc2_hsotg_irq()
3761 u32 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_irq()
3836 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_irq()
3839 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_irq()
3850 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_hsotg_irq()
3940 if (!(dwc2_readl(hsotg, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_stop_xfr()
3954 dwc2_readl(hsotg, GRXSTSP); in dwc2_hsotg_ep_stop_xfr()
4062 epctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_ep_enable()
4115 mask = dwc2_readl(hsotg, DIEPMSK); in dwc2_hsotg_ep_enable()
4120 mask = dwc2_readl(hsotg, DOEPMSK); in dwc2_hsotg_ep_enable()
4158 val = dwc2_readl(hsotg, DPTXFSIZN(i)); in dwc2_hsotg_ep_enable()
4197 u32 gsnpsid = dwc2_readl(hsotg, GSNPSID); in dwc2_hsotg_ep_enable()
4211 __func__, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_ep_enable()
4257 ctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_ep_disable()
4407 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4424 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4430 if (!(dwc2_readl(hs, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_sethalt()
4503 dwc2_readl(hsotg, GRXFSIZ), in dwc2_hsotg_init()
4504 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_hsotg_init()
4922 dwc2_readl(hsotg, DCFG), dwc2_readl(hsotg, DCTL), in dwc2_hsotg_dump()
4923 dwc2_readl(hsotg, DIEPMSK)); in dwc2_hsotg_dump()
4926 dwc2_readl(hsotg, GAHBCFG), dwc2_readl(hsotg, GHWCFG1)); in dwc2_hsotg_dump()
4929 dwc2_readl(hsotg, GRXFSIZ), dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_hsotg_dump()
4934 val = dwc2_readl(hsotg, DPTXFSIZN(idx)); in dwc2_hsotg_dump()
4943 dwc2_readl(hsotg, DIEPCTL(idx)), in dwc2_hsotg_dump()
4944 dwc2_readl(hsotg, DIEPTSIZ(idx)), in dwc2_hsotg_dump()
4945 dwc2_readl(hsotg, DIEPDMA(idx))); in dwc2_hsotg_dump()
4947 val = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_hsotg_dump()
4950 idx, dwc2_readl(hsotg, DOEPCTL(idx)), in dwc2_hsotg_dump()
4951 dwc2_readl(hsotg, DOEPTSIZ(idx)), in dwc2_hsotg_dump()
4952 dwc2_readl(hsotg, DOEPDMA(idx))); in dwc2_hsotg_dump()
4956 dwc2_readl(hsotg, DVBUSDIS), dwc2_readl(hsotg, DVBUSPULSE)); in dwc2_hsotg_dump()
5151 dr->dcfg = dwc2_readl(hsotg, DCFG); in dwc2_backup_device_registers()
5152 dr->dctl = dwc2_readl(hsotg, DCTL); in dwc2_backup_device_registers()
5153 dr->daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_backup_device_registers()
5154 dr->diepmsk = dwc2_readl(hsotg, DIEPMSK); in dwc2_backup_device_registers()
5155 dr->doepmsk = dwc2_readl(hsotg, DOEPMSK); in dwc2_backup_device_registers()
5159 dr->diepctl[i] = dwc2_readl(hsotg, DIEPCTL(i)); in dwc2_backup_device_registers()
5167 dr->dieptsiz[i] = dwc2_readl(hsotg, DIEPTSIZ(i)); in dwc2_backup_device_registers()
5168 dr->diepdma[i] = dwc2_readl(hsotg, DIEPDMA(i)); in dwc2_backup_device_registers()
5171 dr->doepctl[i] = dwc2_readl(hsotg, DOEPCTL(i)); in dwc2_backup_device_registers()
5179 dr->doeptsiz[i] = dwc2_readl(hsotg, DOEPTSIZ(i)); in dwc2_backup_device_registers()
5180 dr->doepdma[i] = dwc2_readl(hsotg, DOEPDMA(i)); in dwc2_backup_device_registers()
5181 dr->dtxfsiz[i] = dwc2_readl(hsotg, DPTXFSIZN(i)); in dwc2_backup_device_registers()
5273 dev_dbg(hsotg->dev, "GLPMCFG=0x%08x\n", dwc2_readl(hsotg, GLPMCFG)); in dwc2_gadget_init_lpm()
5296 dev_dbg(hsotg->dev, "GREFCLK=0x%08x\n", dwc2_readl(hsotg, GREFCLK)); in dwc2_gadget_program_ref_clk()
5336 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5342 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5350 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5356 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5362 hsotg->gr_backup.gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5408 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_exit_hibernation()
5414 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_hibernation()
5429 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_exit_hibernation()
5440 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_hibernation()
5467 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_hibernation()
5518 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_enter_partial_power_down()
5563 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_partial_power_down()
5567 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_partial_power_down()
5571 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_partial_power_down()
5595 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_partial_power_down()
5623 pcgctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_enter_clock_gating()
5629 pcgctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_enter_clock_gating()
5654 pcgctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_clock_gating()
5660 pcgctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_clock_gating()
5667 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_clock_gating()