Home
last modified time | relevance | path

Searched refs:otg_regs (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/cdns3/
H A Ddrd.c92 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 in cdns3_drd_gadget_off()
[all...]
H A Dcdns3-imx.c251 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()
H A Dcore.h59 * @otg_regs: pointer to base of otg registers
92 struct cdns3_otg_common_regs *otg_regs; member
/kernel/linux/linux-6.6/drivers/usb/cdns3/
H A Ddrd.c90 id = readl(&cdns->otg_regs->sts) & OTGSTS_ID_VALUE; in cdns_get_id()
100 vbus = !!(readl(&cdns->otg_regs->sts) & OTGSTS_VBUS_VALID); in cdns_get_vbus()
186 &cdns->otg_regs->cmd); in cdns_drd_host_on()
194 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns_drd_host_on()
215 &cdns->otg_regs->cmd); in cdns_drd_host_off()
218 readl_poll_timeout_atomic(&cdns->otg_regs->state, val, in cdns_drd_host_off()
238 writel(OTGCMD_DEV_BUS_REQ | reg, &cdns->otg_regs->cmd); in cdns_drd_gadget_on()
247 ret = readl_poll_timeout_atomic(&cdns->otg_regs->sts, val, in cdns_drd_gadget_on()
275 &cdns->otg_regs->cmd); in cdns_drd_gadget_off()
277 readl_poll_timeout_atomic(&cdns->otg_regs in cdns_drd_gadget_off()
[all...]
H A Dcdns3-imx.c254 void __iomem *otg_regs = (void __iomem *)(cdns->otg_regs); in cdns_imx_platform_suspend() local
335 value = readl(otg_regs + OTGSTS); in cdns_imx_platform_suspend()
336 ret = readl_poll_timeout(otg_regs + OTGSTS, value, in cdns_imx_platform_suspend()
H A Dcore.h59 * @otg_regs: pointer to base of otg registers
93 struct cdns_otg_common_regs __iomem *otg_regs; member

Completed in 4 milliseconds