/openbmc/linux/drivers/usb/dwc2/ |
H A D | core.c | 46 gr->gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_backup_global_registers() 47 gr->gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_backup_global_registers() 48 gr->gahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_backup_global_registers() 49 gr->gusbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_backup_global_registers() 50 gr->grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_backup_global_registers() 51 gr->gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_backup_global_registers() 52 gr->gdfifocfg = dwc2_readl(hsotg, GDFIFOCFG); in dwc2_backup_global_registers() 53 gr->pcgcctl1 = dwc2_readl(hsotg, PCGCCTL1); in dwc2_backup_global_registers() 54 gr->glpmcfg = dwc2_readl(hsotg, GLPMCFG); in dwc2_backup_global_registers() 55 gr->gi2cctl = dwc2_readl(hsotg, GI2CCTL); in dwc2_backup_global_registers() [all …]
|
H A D | core_intr.c | 54 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_handle_usb_port_intr() 88 gotgint = dwc2_readl(hsotg, GOTGINT); in dwc2_handle_otg_intr() 89 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 97 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 123 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 131 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 138 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 150 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() 170 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_handle_otg_intr() 186 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_handle_otg_intr() [all …]
|
H A D | gadget.c | 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() [all …]
|
H A D | debugfs.c | 72 dctl = dwc2_readl(hsotg, DCTL); in testmode_show() 132 dwc2_readl(hsotg, DCFG), in state_show() 133 dwc2_readl(hsotg, DCTL), in state_show() 134 dwc2_readl(hsotg, DSTS)); in state_show() 137 dwc2_readl(hsotg, DIEPMSK), dwc2_readl(hsotg, DOEPMSK)); in state_show() 140 dwc2_readl(hsotg, GINTMSK), in state_show() 141 dwc2_readl(hsotg, GINTSTS)); in state_show() 144 dwc2_readl(hsotg, DAINTMSK), in state_show() 145 dwc2_readl(hsotg, DAINT)); in state_show() 148 dwc2_readl(hsotg, GNPTXSTS), in state_show() [all …]
|
H A D | hcd.c | 71 u32 ahbcfg = dwc2_readl(hsotg, GAHBCFG); in dwc2_gahbcfg_init() 107 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_gusbcfg_init() 169 intmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_enable_host_interrupts() 181 u32 intmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_disable_host_interrupts() 266 grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_config_fifos() 273 dwc2_readl(hsotg, GRXFSIZ)); in dwc2_config_fifos() 277 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_config_fifos() 284 dwc2_readl(hsotg, GNPTXFSIZ)); in dwc2_config_fifos() 288 dwc2_readl(hsotg, HPTXFSIZ)); in dwc2_config_fifos() 296 dwc2_readl(hsotg, HPTXFSIZ)); in dwc2_config_fifos() [all …]
|
H A D | drd.c | 27 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_init() 44 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_avalid() 66 u32 gotgctl = dwc2_readl(hsotg, GOTGCTL); in dwc2_ovr_bvalid() 209 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_drd_suspend() 212 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_drd_suspend() 247 gintsts = dwc2_readl(hsotg, GINTSTS); in dwc2_drd_resume() 249 gintmsk = dwc2_readl(hsotg, GINTMSK); in dwc2_drd_resume()
|
H A D | hcd_intr.c | 164 grxsts = dwc2_readl(hsotg, GRXSTSP); in dwc2_rx_fifo_level_intr() 247 hfir = dwc2_readl(hsotg, HFIR); in dwc2_hprt0_enable() 260 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hprt0_enable() 272 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_hprt0_enable() 332 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_port_intr() 379 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_port_intr() 414 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_get_actual_xfer_length() 491 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_update_urb_state() 514 u32 hctsiz = dwc2_readl(hsotg, HCTSIZ(chnum)); in dwc2_hcd_save_data_toggle() 753 haintmsk = dwc2_readl(hsotg, HAINTMSK); in dwc2_release_channel() [all …]
|
H A D | platform.c | 409 hw->snpsid = dwc2_readl(hsotg, GSNPSID); in dwc2_check_core_version() 555 ggpio = dwc2_readl(hsotg, GGPIO); in dwc2_driver_probe() 668 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_suspend() 680 ggpio = dwc2_readl(dwc2, GGPIO); in dwc2_suspend() 717 ggpio = dwc2_readl(dwc2, GGPIO); in dwc2_resume() 726 gotgctl = dwc2_readl(dwc2, GOTGCTL); in dwc2_resume()
|
H A D | params.c | 839 gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_get_host_hwparams() 840 hptxfsiz = dwc2_readl(hsotg, HPTXFSIZ); in dwc2_get_host_hwparams() 864 gnptxfsiz = dwc2_readl(hsotg, GNPTXFSIZ); in dwc2_get_dev_hwparams() 870 (dwc2_readl(hsotg, DPTXFSIZN(fifo)) & in dwc2_get_dev_hwparams() 892 hwcfg1 = dwc2_readl(hsotg, GHWCFG1); in dwc2_get_hwparams() 893 hwcfg2 = dwc2_readl(hsotg, GHWCFG2); in dwc2_get_hwparams() 894 hwcfg3 = dwc2_readl(hsotg, GHWCFG3); in dwc2_get_hwparams() 895 hwcfg4 = dwc2_readl(hsotg, GHWCFG4); in dwc2_get_hwparams() 896 grxfsiz = dwc2_readl(hsotg, GRXFSIZ); in dwc2_get_hwparams()
|
H A D | hcd.h | 446 u32 mask = dwc2_readl(hsotg, HCINTMSK(chnum)); in disable_hc_int() 464 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_read_hprt0() 665 return dwc2_readl(hsotg, GINTSTS) & in dwc2_read_core_intr() 666 dwc2_readl(hsotg, GINTMSK); in dwc2_read_core_intr()
|
H A D | core.h | 1218 static inline u32 dwc2_readl(struct dwc2_hsotg *hsotg, u32 offset) in dwc2_readl() function 1248 u32 x = dwc2_readl(hsotg, offset); in dwc2_readl_rep() 1379 return (dwc2_readl(hsotg, GINTSTS) & GINTSTS_CURMODE_HOST) != 0; in dwc2_is_host_mode() 1384 return (dwc2_readl(hsotg, GINTSTS) & GINTSTS_CURMODE_HOST) == 0; in dwc2_is_device_mode()
|
H A D | hcd_queue.c | 1486 u32 hprt = dwc2_readl(hsotg, HPRT0); in dwc2_qh_init() 1727 intr_mask = dwc2_readl(hsotg, GINTMSK); in dwc2_hcd_qh_add() 1768 intr_mask = dwc2_readl(hsotg, GINTMSK); in dwc2_hcd_qh_unlink()
|
H A D | hcd_ddma.c | 158 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_per_sched_enable() 182 hcfg = dwc2_readl(hsotg, HCFG); in dwc2_per_sched_disable()
|