Lines Matching refs:otg_regs
74 id = readl(&cdns->otg_regs->sts) & OTGSTS_ID_VALUE; in cdns3_get_id()
84 vbus = !!(readl(&cdns->otg_regs->sts) & OTGSTS_VBUS_VALID); in cdns3_get_vbus()
125 writel(OTGCMD_HOST_BUS_REQ | reg, &cdns->otg_regs->cmd); in cdns3_drd_switch_host()
128 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns3_drd_switch_host()
138 &cdns->otg_regs->cmd); in cdns3_drd_switch_host()
140 readl_poll_timeout_atomic(&cdns->otg_regs->state, val, in cdns3_drd_switch_host()
162 writel(OTGCMD_DEV_BUS_REQ | reg, &cdns->otg_regs->cmd); in cdns3_drd_switch_gadget()
166 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns3_drd_switch_gadget()
181 &cdns->otg_regs->cmd); in cdns3_drd_switch_gadget()
183 readl_poll_timeout_atomic(&cdns->otg_regs->state, val, in cdns3_drd_switch_gadget()
202 writel(~0, &cdns->otg_regs->ivect); in cdns3_init_otg_mode()
263 cdns->otg_regs = regs; in cdns3_drd_init()
270 cdns->otg_regs = (void *)&cdns->otg_v1_regs->cmd; in cdns3_drd_init()
278 state = OTGSTS_STRAP(readl(&cdns->otg_regs->sts)); in cdns3_drd_init()
290 state = readl(&cdns->otg_regs->sts); in cdns3_drd_init()