Lines Matching refs:dwc2_readl

55 	dwc2_writel(hsotg, dwc2_readl(hsotg, offset) | val, offset);  in dwc2_set_bit()
60 dwc2_writel(hsotg, dwc2_readl(hsotg, offset) & ~val, offset); in dwc2_clear_bit()
120 dsts = dwc2_readl(hsotg, DSTS); in dwc2_hsotg_read_frameno()
183 u32 gsintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_en_gsint()
201 u32 gsintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_disable_gsint()
232 daint = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_ctrl_epint()
292 gintsts2 = dwc2_readl(hsotg, GINTSTS2); in dwc2_gadget_wkup_alert_handler()
293 gintmsk2 = dwc2_readl(hsotg, GINTMSK2); in dwc2_gadget_wkup_alert_handler()
373 val = dwc2_readl(hsotg, DPTXFSIZN(ep)); in dwc2_hsotg_init_fifo()
390 val = dwc2_readl(hsotg, GRSTCTL); in dwc2_hsotg_init_fifo()
528 u32 gnptxsts = dwc2_readl(hsotg, GNPTXSTS); in dwc2_hsotg_write_fifo()
543 u32 epsize = dwc2_readl(hsotg, DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_write_fifo()
584 can_write = dwc2_readl(hsotg, in dwc2_hsotg_write_fifo()
1030 ctrl = dwc2_readl(hsotg, depctl); in dwc2_gadget_start_isoc_ddma()
1086 __func__, dwc2_readl(hsotg, epctrl_reg), index, in dwc2_hsotg_start_req()
1090 ctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_start_req()
1242 if (!(dwc2_readl(hsotg, epctrl_reg) & DXEPCTL_EPENA)) in dwc2_hsotg_start_req()
1245 index, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_start_req()
1248 __func__, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_start_req()
1524 !(dwc2_readl(hs, GHWCFG2) & GHWCFG2_MULTI_PROC_INT)) { in dwc2_hsotg_ep_queue()
1614 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_hsotg_set_test_mode()
1921 ctrl = dwc2_readl(hsotg, reg); in dwc2_hsotg_stall_ep0()
1928 ctrl, reg, dwc2_readl(hsotg, reg)); in dwc2_hsotg_stall_ep0()
1973 dcfg = dwc2_readl(hsotg, DCFG); in dwc2_hsotg_process_control()
2112 ctrl = dwc2_readl(hsotg, epctl_reg); in dwc2_hsotg_program_zlp()
2286 u32 epctl = dwc2_readl(hsotg, DOEPCTL(ep_idx)); in dwc2_hsotg_rx_data()
2295 (void)dwc2_readl(hsotg, EPFIFO(ep_idx)); in dwc2_hsotg_rx_data()
2406 u32 epsize = dwc2_readl(hsotg, DOEPTSIZ(epnum)); in dwc2_hsotg_handle_outdone()
2497 u32 grxstsr = dwc2_readl(hsotg, GRXSTSP); in dwc2_hsotg_handle_rx()
2528 dwc2_readl(hsotg, DOEPCTL(0))); in dwc2_hsotg_handle_rx()
2546 dwc2_readl(hsotg, DOEPCTL(0))); in dwc2_hsotg_handle_rx()
2625 reg = dwc2_readl(hsotg, DIEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
2630 reg = dwc2_readl(hsotg, DOEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
2703 u32 epsize = dwc2_readl(hsotg, DIEPTSIZ(hs_ep->index)); in dwc2_hsotg_complete_in()
2815 mask = dwc2_readl(hsotg, epmsk_reg); in dwc2_gadget_read_ep_interrupts()
2816 diepempmsk = dwc2_readl(hsotg, DIEPEMPMSK); in dwc2_gadget_read_ep_interrupts()
2820 ints = dwc2_readl(hsotg, epint_reg); in dwc2_gadget_read_ep_interrupts()
2845 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_handle_ep_disabled()
2850 int epctl = dwc2_readl(hsotg, epctl_reg); in dwc2_gadget_handle_ep_disabled()
2855 int dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_handle_ep_disabled()
2925 ctrl = dwc2_readl(hsotg, DOEPCTL(ep->index)); in dwc2_gadget_handle_out_token_ep_disabled()
3018 if (!(dwc2_readl(hsotg, GHWCFG2) & in dwc2_gadget_handle_nak()
3020 mask = dwc2_readl(hsotg, DIEPMSK); in dwc2_gadget_handle_nak()
3025 ctrl = dwc2_readl(hsotg, in dwc2_gadget_handle_nak()
3039 ctrl = dwc2_readl(hsotg, DIEPCTL(hs_ep->index)); in dwc2_gadget_handle_nak()
3110 __func__, dwc2_readl(hsotg, epctl_reg), in dwc2_hsotg_epint()
3111 dwc2_readl(hsotg, epsiz_reg)); in dwc2_hsotg_epint()
3233 u32 dsts = dwc2_readl(hsotg, DSTS); in dwc2_hsotg_irq_enumdone()
3304 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_irq_enumdone()
3305 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_irq_enumdone()
3333 size = (dwc2_readl(hsotg, DTXFSTS(ep->fifo_index)) & 0xffff) * 4; in kill_all_requests()
3446 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hsotg_core_init_disconnected()
3553 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_core_init_disconnected()
3554 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_core_init_disconnected()
3577 dev_dbg(hsotg->dev, "DCTL=0x%08x\n", dwc2_readl(hsotg, DCTL)); in dwc2_hsotg_core_init_disconnected()
3618 dwc2_readl(hsotg, DIEPCTL0), in dwc2_hsotg_core_init_disconnected()
3619 dwc2_readl(hsotg, DOEPCTL0)); in dwc2_hsotg_core_init_disconnected()
3631 if (!hsotg->role_sw || (dwc2_readl(hsotg, GOTGCTL) & GOTGCTL_BSESVLD)) in dwc2_hsotg_core_connect()
3657 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_gadget_handle_incomplete_isoc_in()
3665 epctrl = dwc2_readl(hsotg, DIEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_in()
3702 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_gadget_handle_incomplete_isoc_out()
3711 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_out()
3715 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_gadget_handle_incomplete_isoc_out()
3719 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_gadget_handle_incomplete_isoc_out()
3748 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_hsotg_irq()
3749 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_irq()
3769 u32 usb_status = dwc2_readl(hsotg, GOTGCTL); in dwc2_hsotg_irq()
3774 dwc2_readl(hsotg, GNPTXSTS)); in dwc2_hsotg_irq()
3795 u32 daint = dwc2_readl(hsotg, DAINT); in dwc2_hsotg_irq()
3796 u32 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_irq()
3871 daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_hsotg_irq()
3874 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_hsotg_irq()
3885 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_hsotg_irq()
3975 if (!(dwc2_readl(hsotg, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_stop_xfr()
3989 dwc2_readl(hsotg, GRXSTSP); in dwc2_hsotg_ep_stop_xfr()
4097 epctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_ep_enable()
4149 mask = dwc2_readl(hsotg, DIEPMSK); in dwc2_hsotg_ep_enable()
4154 mask = dwc2_readl(hsotg, DOEPMSK); in dwc2_hsotg_ep_enable()
4192 val = dwc2_readl(hsotg, DPTXFSIZN(i)); in dwc2_hsotg_ep_enable()
4231 u32 gsnpsid = dwc2_readl(hsotg, GSNPSID); in dwc2_hsotg_ep_enable()
4245 __func__, dwc2_readl(hsotg, epctrl_reg)); in dwc2_hsotg_ep_enable()
4291 ctrl = dwc2_readl(hsotg, epctrl_reg); in dwc2_hsotg_ep_disable()
4420 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4436 epctl = dwc2_readl(hs, epreg); in dwc2_hsotg_ep_sethalt()
4442 if (!(dwc2_readl(hs, GINTSTS) & GINTSTS_GOUTNAKEFF)) in dwc2_hsotg_ep_sethalt()
4513 dwc2_readl(hsotg, GRXFSIZ), in dwc2_hsotg_init()
4514 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_hsotg_init()
4918 dwc2_readl(hsotg, DCFG), dwc2_readl(hsotg, DCTL), in dwc2_hsotg_dump()
4919 dwc2_readl(hsotg, DIEPMSK)); in dwc2_hsotg_dump()
4922 dwc2_readl(hsotg, GAHBCFG), dwc2_readl(hsotg, GHWCFG1)); in dwc2_hsotg_dump()
4925 dwc2_readl(hsotg, GRXFSIZ), dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_hsotg_dump()
4930 val = dwc2_readl(hsotg, DPTXFSIZN(idx)); in dwc2_hsotg_dump()
4939 dwc2_readl(hsotg, DIEPCTL(idx)), in dwc2_hsotg_dump()
4940 dwc2_readl(hsotg, DIEPTSIZ(idx)), in dwc2_hsotg_dump()
4941 dwc2_readl(hsotg, DIEPDMA(idx))); in dwc2_hsotg_dump()
4943 val = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_hsotg_dump()
4946 idx, dwc2_readl(hsotg, DOEPCTL(idx)), in dwc2_hsotg_dump()
4947 dwc2_readl(hsotg, DOEPTSIZ(idx)), in dwc2_hsotg_dump()
4948 dwc2_readl(hsotg, DOEPDMA(idx))); in dwc2_hsotg_dump()
4952 dwc2_readl(hsotg, DVBUSDIS), dwc2_readl(hsotg, DVBUSPULSE)); in dwc2_hsotg_dump()
5135 dr->dcfg = dwc2_readl(hsotg, DCFG); in dwc2_backup_device_registers()
5136 dr->dctl = dwc2_readl(hsotg, DCTL); in dwc2_backup_device_registers()
5137 dr->daintmsk = dwc2_readl(hsotg, DAINTMSK); in dwc2_backup_device_registers()
5138 dr->diepmsk = dwc2_readl(hsotg, DIEPMSK); in dwc2_backup_device_registers()
5139 dr->doepmsk = dwc2_readl(hsotg, DOEPMSK); in dwc2_backup_device_registers()
5143 dr->diepctl[i] = dwc2_readl(hsotg, DIEPCTL(i)); in dwc2_backup_device_registers()
5151 dr->dieptsiz[i] = dwc2_readl(hsotg, DIEPTSIZ(i)); in dwc2_backup_device_registers()
5152 dr->diepdma[i] = dwc2_readl(hsotg, DIEPDMA(i)); in dwc2_backup_device_registers()
5155 dr->doepctl[i] = dwc2_readl(hsotg, DOEPCTL(i)); in dwc2_backup_device_registers()
5163 dr->doeptsiz[i] = dwc2_readl(hsotg, DOEPTSIZ(i)); in dwc2_backup_device_registers()
5164 dr->doepdma[i] = dwc2_readl(hsotg, DOEPDMA(i)); in dwc2_backup_device_registers()
5165 dr->dtxfsiz[i] = dwc2_readl(hsotg, DPTXFSIZN(i)); in dwc2_backup_device_registers()
5257 dev_dbg(hsotg->dev, "GLPMCFG=0x%08x\n", dwc2_readl(hsotg, GLPMCFG)); in dwc2_gadget_init_lpm()
5280 dev_dbg(hsotg->dev, "GREFCLK=0x%08x\n", dwc2_readl(hsotg, GREFCLK)); in dwc2_gadget_program_ref_clk()
5320 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5326 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5334 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5340 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5346 hsotg->gr_backup.gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_enter_hibernation()
5392 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_exit_hibernation()
5398 pcgcctl = dwc2_readl(hsotg, PCGCTL); in dwc2_gadget_exit_hibernation()
5409 gpwrdn = dwc2_readl(hsotg, GPWRDN); in dwc2_gadget_exit_hibernation()
5420 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_hibernation()
5447 dctl = dwc2_readl(hsotg, DCTL); in dwc2_gadget_exit_hibernation()