Home
last modified time | relevance | path

Searched refs:otg_dev (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/drivers/usb/phy/
Dphy-omap-otg.c49 static void omap_otg_ctrl(struct otg_device *otg_dev, u32 outputs) in omap_otg_ctrl() argument
53 l = readl(otg_dev->base + OMAP_OTG_CTRL); in omap_otg_ctrl()
56 writel(l, otg_dev->base + OMAP_OTG_CTRL); in omap_otg_ctrl()
59 static void omap_otg_set_mode(struct otg_device *otg_dev) in omap_otg_set_mode() argument
61 if (!otg_dev->id && otg_dev->vbus) in omap_otg_set_mode()
63 omap_otg_ctrl(otg_dev, OMAP_OTG_ID | OMAP_OTG_BSESSVLD); in omap_otg_set_mode()
64 else if (otg_dev->vbus) in omap_otg_set_mode()
66 omap_otg_ctrl(otg_dev, OMAP_OTG_ASESSVLD); in omap_otg_set_mode()
67 else if (!otg_dev->id) in omap_otg_set_mode()
69 omap_otg_ctrl(otg_dev, OMAP_OTG_ID | OMAP_OTG_BSESSEND); in omap_otg_set_mode()
[all …]
Dphy-fsl-usb.c467 struct fsl_otg *otg_dev = in fsl_otg_start_host() local
483 if (otg_dev->host_working) in fsl_otg_start_host()
504 otg_dev->host_working = 1; in fsl_otg_start_host()
508 if (!otg_dev->host_working) in fsl_otg_start_host()
519 otg_dev->host_working = 0; in fsl_otg_start_host()
558 struct fsl_otg *otg_dev; in fsl_otg_set_host() local
563 otg_dev = container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_set_host()
564 if (otg_dev != fsl_otg_dev) in fsl_otg_set_host()
569 otg_dev->fsm.a_bus_drop = 0; in fsl_otg_set_host()
570 otg_dev->fsm.a_bus_req = 1; in fsl_otg_set_host()
[all …]
Dphy-isp1301-omap.c821 static struct platform_device *otg_dev; variable
827 if (!otg_dev) in isp1301_otg_init()
867 otg_dev = dev; in otg_probe()
873 otg_dev = NULL; in otg_remove()
889 if (otg_dev) in otg_bind()
896 if (otg_dev) in otg_bind()
897 status = request_irq(otg_dev->resource[1].start, omap_otg_irq, in otg_bind()
909 if (!otg_dev) in otg_unbind()
911 free_irq(otg_dev->resource[1].start, isp); in otg_unbind()