Searched defs:otg (Results 1 - 22 of 22) sorted by relevance

/drivers/usb/otg/
H A Dulpi_viewport.c18 #include <linux/usb/otg.h>
43 static int ulpi_viewport_read(struct usb_phy *otg, u32 reg) argument
46 void __iomem *view = otg->io_priv;
61 static int ulpi_viewport_write(struct usb_phy *otg, u32 val, u32 reg) argument
64 void __iomem *view = otg->io_priv;
H A Dnop-usb-xceiv.c2 * drivers/usb/otg/nop-usb-xceiv.c
32 #include <linux/usb/otg.h>
66 static int nop_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
68 if (!otg)
72 otg->gadget = NULL;
76 otg->gadget = gadget;
77 otg->phy->state = OTG_STATE_B_IDLE;
81 static int nop_set_host(struct usb_otg *otg, struct usb_bus *host) argument
83 if (!otg)
87 otg
[all...]
H A Dulpi.c30 #include <linux/usb/otg.h>
209 static int ulpi_set_host(struct usb_otg *otg, struct usb_bus *host) argument
211 struct usb_phy *phy = otg->phy;
215 otg->host = NULL;
219 otg->host = host;
235 static int ulpi_set_vbus(struct usb_otg *otg, bool on) argument
237 struct usb_phy *phy = otg->phy;
258 struct usb_otg *otg; local
264 otg = kzalloc(sizeof(*otg), GFP_KERNE
[all...]
H A Dgpio_vbus.c24 #include <linux/usb/otg.h>
101 if (!gpio_vbus->phy.otg->gadget)
114 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget);
124 status, gpio_vbus->phy.otg->gadget);
132 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget);
138 status, gpio_vbus->phy.otg->gadget);
148 struct usb_otg *otg = gpio_vbus->phy.otg; local
152 otg->gadget ? otg
163 gpio_vbus_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
[all...]
H A Dotg_fsm.h85 struct usb_otg *otg; member in struct:otg_fsm
H A Dmv_otg.c25 #include <linux/usb/otg.h>
39 static const char driver_name[] = "mv-otg";
58 static int mv_otg_set_vbus(struct usb_otg *otg, bool on) argument
60 struct mv_otg *mvotg = container_of(otg->phy, struct mv_otg, phy);
67 static int mv_otg_set_host(struct usb_otg *otg, argument
70 otg->host = host;
75 static int mv_otg_set_peripheral(struct usb_otg *otg, argument
78 otg->gadget = gadget;
206 struct usb_otg *otg = mvotg->phy.otg; local
225 struct usb_otg *otg = mvotg->phy.otg; local
420 struct usb_otg *otg; local
706 struct usb_otg *otg; local
[all...]
H A Dab8500-usb.c2 * drivers/usb/otg/ab8500_usb.c
27 #include <linux/usb/otg.h>
173 ab->phy.otg->default_a = false;
184 if (ab->phy.otg->gadget) {
187 v = ab->phy.otg->gadget;
193 if (ab->phy.otg->host) {
196 v = ab->phy.otg->host;
199 ab->phy.otg->default_a = true;
265 if (!ab->phy.otg->host)
268 if (!ab->phy.otg
299 ab8500_usb_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
332 ab8500_usb_set_host(struct usb_otg *otg, struct usb_bus *host) argument
474 struct usb_otg *otg; local
[all...]
H A Dtwl6030-usb.c28 #include <linux/usb/otg.h>
181 static int twl6030_start_srp(struct usb_otg *otg) argument
183 struct twl6030_usb *twl = phy_to_twl(otg->phy);
259 struct usb_otg *otg = twl->phy.otg; local
272 otg->default_a = false;
277 status, otg->gadget);
283 status, otg->gadget);
298 struct usb_otg *otg = twl->phy.otg; local
329 twl6030_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
378 twl6030_set_vbus(struct usb_otg *otg, bool enabled) argument
388 twl6030_set_host(struct usb_otg *otg, struct usb_bus *host) argument
404 struct usb_otg *otg; local
[all...]
H A Dfsl_otg.c53 static const char driver_name[] = "fsl-usb2-otg";
291 if (!fsl_otg_dev->phy.otg->host->b_hnp_enable)
455 struct usb_otg *otg = fsm->otg; local
457 struct fsl_otg *otg_dev = container_of(otg->phy, struct fsl_otg, phy);
460 if (!otg->host)
462 dev = otg->host->controller;
521 struct usb_otg *otg = fsm->otg; local
524 if (!otg
545 fsl_otg_set_host(struct usb_otg *otg, struct usb_bus *host) argument
590 fsl_otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
661 fsl_otg_start_srp(struct usb_otg *otg) argument
676 fsl_otg_start_hnp(struct usb_otg *otg) argument
701 struct usb_otg *otg = ((struct fsl_otg *)dev_id)->phy.otg; local
[all...]
H A Disp1301_omap.c32 #include <linux/usb/otg.h>
283 if (!isp->phy.otg->host)
289 dev = isp->phy.otg->host->controller;
301 if (!isp->phy.otg->host)
304 dev = isp->phy.otg->host->controller;
311 isp->phy.otg->gadget->b_hnp_enable = 0;
312 isp->phy.otg->gadget->a_hnp_support = 0;
313 isp->phy.otg->gadget->a_alt_hnp_support = 0;
314 return usb_gadget_vbus_disconnect(isp->phy.otg->gadget);
347 isp->phy.otg
663 struct usb_otg *otg = isp->phy.otg; local
952 struct usb_otg *otg = isp->phy.otg; local
1280 isp1301_set_host(struct usb_otg *otg, struct usb_bus *host) argument
1336 isp1301_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
1415 isp1301_start_srp(struct usb_otg *otg) argument
1442 isp1301_start_hnp(struct usb_otg *otg) argument
[all...]
H A Dmsm_otg.c35 #include <linux/usb/otg.h>
452 struct usb_bus *bus = phy->otg->host;
547 struct usb_bus *bus = phy->otg->host;
653 if (!phy->otg->host)
656 hcd = bus_to_hcd(phy->otg->host);
686 static int msm_otg_set_host(struct usb_otg *otg, struct usb_bus *host) argument
688 struct msm_otg *motg = container_of(otg->phy, struct msm_otg, phy);
696 dev_info(otg->phy->dev, "Host mode is not supported\n");
701 if (otg->phy->state == OTG_STATE_A_HOST) {
702 pm_runtime_get_sync(otg
759 msm_otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
1155 struct usb_otg *otg = motg->phy.otg; local
1286 struct usb_otg *otg = motg->phy.otg; local
1314 struct usb_otg *otg = motg->phy.otg; local
1675 struct usb_otg *otg = motg->phy.otg; local
[all...]
H A Dtwl4030-usb.c35 #include <linux/usb/otg.h>
253 struct usb_otg *otg = twl->phy.otg; local
294 otg->default_a = true;
297 otg->default_a = false;
525 twl->phy.otg->gadget);
547 twl->phy.otg->gadget);
564 static int twl4030_set_peripheral(struct usb_otg *otg, argument
567 if (!otg)
570 otg
577 twl4030_set_host(struct usb_otg *otg, struct usb_bus *host) argument
594 struct usb_otg *otg; local
[all...]
/drivers/usb/musb/
H A Dmusb_virthub.c50 struct usb_otg *otg = musb->xceiv->otg; local
85 && otg->host->b_hnp_enable;
95 && otg->host->b_hnp_enable;
183 struct usb_otg *otg = musb->xceiv->otg; local
194 && otg->host->b_hnp_enable) {
H A Ddavinci.c269 struct usb_otg *otg = musb->xceiv->otg; local
336 otg->default_a = 1;
343 otg->default_a = 0;
470 if (is_host_enabled(musb) && musb->xceiv->otg->default_a) {
H A Domap2430.c135 struct usb_otg *otg = musb->xceiv->otg; local
167 if (ret && otg->set_vbus)
168 otg_set_vbus(otg, 1);
171 otg->default_a = 1;
183 otg->default_a = 0;
192 /* otg %3x conf %08x prcm %08x */ "\n",
273 if (musb->xceiv->otg->set_vbus)
274 otg_set_vbus(musb->xceiv->otg, 0);
H A Dda8xx.c297 struct usb_otg *otg = musb->xceiv->otg; local
355 otg->default_a = 1;
362 otg->default_a = 0;
H A Dam35x.c229 struct usb_otg *otg = musb->xceiv->otg; local
293 otg->default_a = 1;
300 otg->default_a = 0;
H A Dmusb_gadget.c1646 otg_start_srp(musb->xceiv->otg);
1920 struct usb_otg *otg = musb->xceiv->otg; local
1937 otg_set_peripheral(otg, &musb->g);
1968 && otg->set_vbus)
1969 otg_set_vbus(otg, 1);
2051 otg_set_peripheral(musb->xceiv->otg, NULL);
H A Dtusb6010.c296 if (x->otg->default_a || mA < (musb->min_power << 1))
513 struct usb_otg *otg = musb->xceiv->otg; local
526 otg->default_a = 1;
552 otg->default_a = 1;
556 otg->default_a = 0;
571 dev_dbg(musb->controller, "VBUS %s, devctl %02x otg %3x conf %08x prcm %08x\n",
648 struct usb_otg *otg = musb->xceiv->otg; local
659 otg
[all...]
H A Dmusb_core.c434 struct usb_otg *otg = musb->xceiv->otg; local
647 && otg->gadget->b_hnp_enable;
664 && otg->host->b_hnp_enable;
811 * power cycle, which breaks otg compliance.
1691 else if (sysfs_streq(buf, "otg"))
1985 otg_set_host(musb->xceiv->otg, &hcd->self);
1989 musb->xceiv->otg->host = &hcd->self;
2008 musb->xceiv->otg->default_a = 1;
2023 musb->xceiv->otg
[all...]
/drivers/usb/host/
H A Dehci-mv.c16 #include <linux/usb/otg.h>
31 struct usb_phy *otg; member in struct:ehci_hcd_mv
256 ehci_mv->otg = usb_get_transceiver();
257 if (!ehci_mv->otg) {
264 retval = otg_set_host(ehci_mv->otg->otg, &hcd->self);
271 /* otg will enable clock before use as host */
305 if (ehci_mv->otg)
306 usb_put_transceiver(ehci_mv->otg);
334 if (ehci_mv->otg) {
[all...]
H A Doxu210hp-hcd.c3718 void *base, int irq, int otg)
3727 oxu_writel(base + (otg ? OXU_OTG_CORE_OFFSET : OXU_SPH_CORE_OFFSET),
3732 otg ? "oxu210hp_otg" : "oxu210hp_sph");
3743 oxu->is_otg = otg;
3716 oxu_create(struct platform_device *pdev, unsigned long memstart, unsigned long memlen, void *base, int irq, int otg) argument

Completed in 482 milliseconds