Searched refs:otg_regs (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
D | drd.c | 92 id = readl(&cdns->otg_regs->sts) & OTGSTS_ID_VALUE; in cdns3_get_id() 102 vbus = !!(readl(&cdns->otg_regs->sts) & OTGSTS_VBUS_VALID); in cdns3_get_vbus() 161 &cdns->otg_regs->cmd); in cdns3_drd_host_on() 169 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns3_drd_host_on() 189 &cdns->otg_regs->cmd); in cdns3_drd_host_off() 192 readl_poll_timeout_atomic(&cdns->otg_regs->state, val, in cdns3_drd_host_off() 211 writel(OTGCMD_DEV_BUS_REQ | reg, &cdns->otg_regs->cmd); in cdns3_drd_gadget_on() 220 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns3_drd_gadget_on() 246 &cdns->otg_regs->cmd); in cdns3_drd_gadget_off() 248 readl_poll_timeout_atomic(&cdns->otg_regs->state, val, in cdns3_drd_gadget_off() [all …]
|
D | cdns3-imx.c | 251 void __iomem *otg_regs = (void __iomem *)(cdns->otg_regs); in cdns_imx_platform_suspend() local 332 value = readl(otg_regs + OTGSTS); in cdns_imx_platform_suspend() 333 ret = readl_poll_timeout(otg_regs + OTGSTS, value, in cdns_imx_platform_suspend()
|
D | core.h | 92 struct cdns3_otg_common_regs *otg_regs; member
|