Searched refs:otg (Results 1 - 25 of 79) sorted by relevance

1234

/drivers/usb/dwc3/
H A Dplatform_data.h21 #include <linux/usb/otg.h>
/drivers/usb/phy/
H A Dphy-ulpi-viewport.c19 #include <linux/usb/otg.h>
44 static int ulpi_viewport_read(struct usb_phy *otg, u32 reg) argument
47 void __iomem *view = otg->io_priv;
62 static int ulpi_viewport_write(struct usb_phy *otg, u32 val, u32 reg) argument
65 void __iomem *view = otg->io_priv;
H A Dphy-gpio-vbus-usb.c24 #include <linux/usb/otg.h>
107 if (!gpio_vbus->phy.otg->gadget)
126 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget);
136 status, gpio_vbus->phy.otg->gadget);
144 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget);
150 status, gpio_vbus->phy.otg->gadget);
160 struct usb_otg *otg = gpio_vbus->phy.otg; local
164 otg->gadget ? otg
175 gpio_vbus_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
[all...]
H A Dphy-generic.c2 * drivers/usb/otg/nop-usb-xceiv.c
32 #include <linux/usb/otg.h>
115 static int nop_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
117 if (!otg)
121 otg->gadget = NULL;
125 otg->gadget = gadget;
126 otg->phy->state = OTG_STATE_B_IDLE;
130 static int nop_set_host(struct usb_otg *otg, struct usb_bus *host) argument
132 if (!otg)
136 otg
[all...]
H A Dphy-ulpi.c30 #include <linux/usb/otg.h>
212 static int ulpi_set_host(struct usb_otg *otg, struct usb_bus *host) argument
214 struct usb_phy *phy = otg->phy;
218 otg->host = NULL;
222 otg->host = host;
238 static int ulpi_set_vbus(struct usb_otg *otg, bool on) argument
240 struct usb_phy *phy = otg->phy;
261 struct usb_otg *otg; local
267 otg = kzalloc(sizeof(*otg), GFP_KERNE
[all...]
H A Dphy-tahvo.c29 #include <linux/usb/otg.h>
87 if (tu->phy.otg->gadget)
88 usb_gadget_vbus_connect(tu->phy.otg->gadget);
105 if (tu->phy.otg->gadget)
106 usb_gadget_vbus_disconnect(tu->phy.otg->gadget);
161 if (tu->phy.otg->gadget)
162 usb_gadget_vbus_disconnect(tu->phy.otg->gadget);
171 if (tu->phy.otg->gadget)
172 usb_gadget_vbus_disconnect(tu->phy.otg->gadget);
197 static int tahvo_usb_set_host(struct usb_otg *otg, struc argument
225 tahvo_usb_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
[all...]
H A Dphy-fsl-usb.c52 static const char driver_name[] = "fsl-usb2-otg";
290 if (!fsl_otg_dev->phy.otg->host->b_hnp_enable)
500 struct usb_otg *otg = fsm->otg; local
502 struct fsl_otg *otg_dev = container_of(otg->phy, struct fsl_otg, phy);
505 if (!otg->host)
507 dev = otg->host->controller;
566 struct usb_otg *otg = fsm->otg; local
569 if (!otg
590 fsl_otg_set_host(struct usb_otg *otg, struct usb_bus *host) argument
639 fsl_otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
713 fsl_otg_start_srp(struct usb_otg *otg) argument
731 fsl_otg_start_hnp(struct usb_otg *otg) argument
760 struct usb_otg *otg = ((struct fsl_otg *)dev_id)->phy.otg; local
[all...]
H A Dphy-isp1301-omap.c32 #include <linux/usb/otg.h>
281 if (!isp->phy.otg->host)
287 dev = isp->phy.otg->host->controller;
299 if (!isp->phy.otg->host)
302 dev = isp->phy.otg->host->controller;
309 isp->phy.otg->gadget->b_hnp_enable = 0;
310 isp->phy.otg->gadget->a_hnp_support = 0;
311 isp->phy.otg->gadget->a_alt_hnp_support = 0;
312 return usb_gadget_vbus_disconnect(isp->phy.otg->gadget);
345 isp->phy.otg
659 struct usb_otg *otg = isp->phy.otg; local
948 struct usb_otg *otg = isp->phy.otg; local
1276 isp1301_set_host(struct usb_otg *otg, struct usb_bus *host) argument
1332 isp1301_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
1412 isp1301_start_srp(struct usb_otg *otg) argument
1438 isp1301_start_hnp(struct usb_otg *otg) argument
[all...]
H A Dphy-msm-usb.c38 #include <linux/usb/otg.h>
470 struct usb_bus *bus = phy->otg->host;
567 struct usb_bus *bus = phy->otg->host;
675 if (!phy->otg->host)
678 hcd = bus_to_hcd(phy->otg->host);
709 static int msm_otg_set_host(struct usb_otg *otg, struct usb_bus *host) argument
711 struct msm_otg *motg = container_of(otg->phy, struct msm_otg, phy);
719 dev_info(otg->phy->dev, "Host mode is not supported\n");
724 if (otg->phy->state == OTG_STATE_A_HOST) {
725 pm_runtime_get_sync(otg
782 msm_otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
1171 struct usb_otg *otg = motg->phy.otg; local
1304 struct usb_otg *otg = motg->phy.otg; local
1332 struct usb_otg *otg = motg->phy.otg; local
1768 struct usb_otg *otg = motg->phy.otg; local
[all...]
H A Dof.c14 #include <linux/usb/otg.h>
H A Dphy-mv-usb.c24 #include <linux/usb/otg.h>
38 static const char driver_name[] = "mv-otg";
57 static int mv_otg_set_vbus(struct usb_otg *otg, bool on) argument
59 struct mv_otg *mvotg = container_of(otg->phy, struct mv_otg, phy);
66 static int mv_otg_set_host(struct usb_otg *otg, argument
69 otg->host = host;
74 static int mv_otg_set_peripheral(struct usb_otg *otg, argument
77 otg->gadget = gadget;
205 struct usb_otg *otg = mvotg->phy.otg; local
226 struct usb_otg *otg = mvotg->phy.otg; local
415 struct usb_otg *otg; local
679 struct usb_otg *otg; local
[all...]
H A Dphy-ab8500-usb.c2 * drivers/usb/otg/ab8500_usb.c
29 #include <linux/usb/otg.h>
444 ab->phy.otg->default_a = false;
492 ab->phy.otg->default_a = true;
512 ab->phy.otg->default_a = false;
527 ab->phy.otg->default_a = false;
579 ab->phy.otg->default_a = false;
617 ab->phy.otg->default_a = true;
635 ab->phy.otg->default_a = false;
649 ab->phy.otg
1051 ab8500_usb_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) argument
1076 ab8500_usb_set_host(struct usb_otg *otg, struct usb_bus *host) argument
1356 struct usb_otg *otg; local
[all...]
H A DMakefile6 obj-$(CONFIG_USB_OTG_WAKELOCK) += otg-wakelock.o
18 obj-$(CONFIG_OMAP_OTG) += phy-omap-otg.o
/drivers/phy/
H A Dphy-exynos5250-usb2.c204 u32 otg; local
217 otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS);
219 otg &= ~EXYNOS_5250_USBOTGSYS_FSEL_MASK;
220 otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT;
222 otg &= ~(EXYNOS_5250_USBOTGSYS_FORCE_SUSPEND |
225 otg |= EXYNOS_5250_USBOTGSYS_PHY_SW_RST |
230 otg &= ~EXYNOS_5250_USBOTGSYS_REFCLKSEL_MASK;
231 otg |= EXYNOS_5250_REFCLKSEL_CLKCORE <<
233 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS);
235 otg
330 u32 otg; local
[all...]
H A Dphy-omap-usb2.c61 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled) argument
63 struct omap_usb *phy = phy_to_omapusb(otg->phy);
71 static int omap_usb_start_srp(struct usb_otg *otg) argument
73 struct omap_usb *phy = phy_to_omapusb(otg->phy);
81 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host) argument
83 struct usb_phy *phy = otg->phy;
85 otg->host = host;
92 static int omap_usb_set_peripheral(struct usb_otg *otg, argument
95 struct usb_phy *phy = otg->phy;
97 otg
200 struct usb_otg *otg; local
[all...]
H A Dphy-twl4030-usb.c34 #include <linux/usb/otg.h>
601 static int twl4030_set_peripheral(struct usb_otg *otg, argument
604 if (!otg)
607 otg->gadget = gadget;
609 otg->phy->state = OTG_STATE_UNDEFINED;
614 static int twl4030_set_host(struct usb_otg *otg, struct usb_bus *host) argument
616 if (!otg)
619 otg->host = host;
621 otg->phy->state = OTG_STATE_UNDEFINED;
644 struct usb_otg *otg; local
[all...]
/drivers/usb/common/
H A DMakefile9 obj-$(CONFIG_USB_OTG_FSM) += usb-otg-fsm.o
H A Dusb-otg-fsm.c30 #include <linux/usb/otg.h>
31 #include <linux/usb/otg-fsm.h>
127 if (fsm->otg->phy->state == new_state)
130 otg_leave_state(fsm, fsm->otg->phy->state);
170 usb_bus_start_enum(fsm->otg->host,
171 fsm->otg->host->otg_port);
239 fsm->otg->phy->state = new_state;
250 state = fsm->otg->phy->state;
265 else if (fsm->b_sess_vld && fsm->otg->gadget)
278 else if (fsm->b_bus_req && fsm->otg
[all...]
/drivers/usb/host/
H A Dehci-mv.c17 #include <linux/usb/otg.h>
32 struct usb_phy *otg; member in struct:ehci_hcd_mv
224 ehci_mv->otg = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2);
225 if (IS_ERR(ehci_mv->otg)) {
226 retval = PTR_ERR(ehci_mv->otg);
237 retval = otg_set_host(ehci_mv->otg->otg, &hcd->self);
244 /* otg will enable clock before use as host */
288 if (!IS_ERR_OR_NULL(ehci_mv->otg))
289 otg_set_host(ehci_mv->otg
[all...]
H A Dehci-mxc.c26 #include <linux/usb/otg.h>
137 if (pdata->otg) {
138 pdata->otg->io_priv = hcd->regs + ULPI_VIEWPORT_OFFSET;
139 ret = usb_phy_init(pdata->otg);
145 ret = otg_set_vbus(pdata->otg->otg, 1);
188 if (pdata && pdata->otg)
189 usb_phy_shutdown(pdata->otg);
H A Dohci-omap.c25 #include <linux/usb/otg.h>
183 otg_start_hnp(hcd->usb_phy->otg);
202 int need_transceiver = (config->otg != 0);
207 if (config->otg) {
208 hcd->self.otg_port = config->otg;
225 int status = otg_set_host(hcd->usb_phy->otg,
252 if (config->otg || config->rwc) {
403 (void) otg_set_host(hcd->usb_phy->otg, 0);
/drivers/usb/chipidea/
H A DMakefile5 ci_hdrc-y := core.o otg.o
H A Dhost.c89 struct usb_otg *otg = ci->transceiver->otg; local
92 if (otg) {
93 otg->host = &hcd->self;
H A Dotg_fsm.h14 #include <linux/usb/otg-fsm.h>
/drivers/usb/musb/
H A Dmusb_virthub.c79 struct usb_otg *otg = musb->xceiv->otg; local
113 musb->is_active = otg->host->b_hnp_enable;
122 musb->is_active = otg->host->b_hnp_enable;
219 struct usb_otg *otg = musb->xceiv->otg; local
229 if (otg->host->b_hnp_enable) {

Completed in 252 milliseconds

1234