Home
last modified time | relevance | path

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

12345678910

/kernel/linux/linux-5.10/include/linux/usb/
H A Dotg.h28 int (*set_host)(struct usb_otg *otg, struct usb_bus *host);
31 int (*set_peripheral)(struct usb_otg *otg,
35 int (*set_vbus)(struct usb_otg *otg, bool enabled);
38 int (*start_srp)(struct usb_otg *otg);
41 int (*start_hnp)(struct usb_otg *otg);
46 * struct usb_otg_caps - describes the otg capabilities of the device
64 otg_start_hnp(struct usb_otg *otg) in otg_start_hnp() argument
66 if (otg && otg->start_hnp) in otg_start_hnp()
67 return otg in otg_start_hnp()
74 otg_set_vbus(struct usb_otg *otg, bool enabled) otg_set_vbus() argument
84 otg_set_host(struct usb_otg *otg, struct usb_bus *host) otg_set_host() argument
96 otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *periph) otg_set_peripheral() argument
105 otg_start_srp(struct usb_otg *otg) otg_start_srp() argument
[all...]
/kernel/linux/linux-6.6/include/linux/usb/
H A Dotg.h28 int (*set_host)(struct usb_otg *otg, struct usb_bus *host);
31 int (*set_peripheral)(struct usb_otg *otg,
35 int (*set_vbus)(struct usb_otg *otg, bool enabled);
38 int (*start_srp)(struct usb_otg *otg);
41 int (*start_hnp)(struct usb_otg *otg);
46 * struct usb_otg_caps - describes the otg capabilities of the device
64 otg_start_hnp(struct usb_otg *otg) in otg_start_hnp() argument
66 if (otg && otg->start_hnp) in otg_start_hnp()
67 return otg in otg_start_hnp()
74 otg_set_vbus(struct usb_otg *otg, bool enabled) otg_set_vbus() argument
84 otg_set_host(struct usb_otg *otg, struct usb_bus *host) otg_set_host() argument
96 otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *periph) otg_set_peripheral() argument
105 otg_start_srp(struct usb_otg *otg) otg_start_srp() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/phy/
H A Dphy-isp1301-omap.c19 #include <linux/usb/otg.h>
224 return usb_otg_state_string(isp->phy.otg->state); in state_name()
239 isp->phy.otg->state = OTG_STATE_UNDEFINED; in power_down()
268 if (!isp->phy.otg->host) in host_suspend()
274 dev = isp->phy.otg->host->controller; in host_suspend()
286 if (!isp->phy.otg->host) in host_resume()
289 dev = isp->phy.otg->host->controller; in host_resume()
296 isp->phy.otg->gadget->b_hnp_enable = 0; in gadget_suspend()
297 isp->phy.otg->gadget->a_hnp_support = 0; in gadget_suspend()
298 isp->phy.otg in gadget_suspend()
646 struct usb_otg *otg = isp->phy.otg; omap_otg_irq() local
934 struct usb_otg *otg = isp->phy.otg; isp_update_otg() local
1263 isp1301_set_host(struct usb_otg *otg, struct usb_bus *host) isp1301_set_host() argument
1319 isp1301_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) isp1301_set_peripheral() argument
1399 isp1301_start_srp(struct usb_otg *otg) isp1301_start_srp() argument
1425 isp1301_start_hnp(struct usb_otg *otg) isp1301_start_hnp() argument
[all...]
H A Dphy-ulpi.c17 #include <linux/usb/otg.h>
199 static int ulpi_set_host(struct usb_otg *otg, struct usb_bus *host) in ulpi_set_host() argument
201 struct usb_phy *phy = otg->usb_phy; in ulpi_set_host()
205 otg->host = NULL; in ulpi_set_host()
209 otg->host = host; in ulpi_set_host()
225 static int ulpi_set_vbus(struct usb_otg *otg, bool on) in ulpi_set_vbus() argument
227 struct usb_phy *phy = otg->usb_phy; in ulpi_set_vbus()
243 static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg, in otg_ulpi_init() argument
250 phy->otg = otg; in otg_ulpi_init()
263 struct usb_otg *otg; otg_ulpi_create() local
287 struct usb_otg *otg; devm_otg_ulpi_create() local
[all...]
H A Dphy-tahvo.c21 #include <linux/usb/otg.h>
77 switch (tu->phy.otg->state) { in check_vbus_state()
80 if (tu->phy.otg->gadget) in check_vbus_state()
81 usb_gadget_vbus_connect(tu->phy.otg->gadget); in check_vbus_state()
82 tu->phy.otg->state = OTG_STATE_B_PERIPHERAL; in check_vbus_state()
90 tu->phy.otg->state = OTG_STATE_A_HOST; in check_vbus_state()
97 switch (tu->phy.otg->state) { in check_vbus_state()
99 if (tu->phy.otg->gadget) in check_vbus_state()
100 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
101 tu->phy.otg in check_vbus_state()
192 tahvo_usb_set_host(struct usb_otg *otg, struct usb_bus *host) tahvo_usb_set_host() argument
221 tahvo_usb_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) tahvo_usb_set_peripheral() argument
[all...]
H A Dphy-generic.c18 #include <linux/usb/otg.h>
104 struct usb_otg *otg = nop->phy.otg; in nop_gpio_vbus_thread() local
114 otg->state = OTG_STATE_B_PERIPHERAL; in nop_gpio_vbus_thread()
121 otg->gadget); in nop_gpio_vbus_thread()
126 otg->state = OTG_STATE_B_IDLE; in nop_gpio_vbus_thread()
130 otg->gadget); in nop_gpio_vbus_thread()
173 static int nop_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) in nop_set_peripheral() argument
175 if (!otg) in nop_set_peripheral()
179 otg in nop_set_peripheral()
192 nop_set_host(struct usb_otg *otg, struct usb_bus *host) nop_set_host() argument
[all...]
H A Dphy-gpio-vbus-usb.c20 #include <linux/usb/otg.h>
98 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work()
114 gpio_vbus->phy.otg->state = OTG_STATE_B_PERIPHERAL; in gpio_vbus_work()
116 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
126 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
135 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
137 gpio_vbus->phy.otg->state = OTG_STATE_B_IDLE; in gpio_vbus_work()
141 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
151 struct usb_otg *otg = gpio_vbus->phy.otg; in gpio_vbus_irq() local
166 gpio_vbus_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) gpio_vbus_set_peripheral() argument
[all...]
H A Dphy-mv-usb.c21 #include <linux/usb/otg.h>
33 static const char driver_name[] = "mv-otg";
52 static int mv_otg_set_vbus(struct usb_otg *otg, bool on) in mv_otg_set_vbus() argument
54 struct mv_otg *mvotg = container_of(otg->usb_phy, struct mv_otg, phy); in mv_otg_set_vbus()
61 static int mv_otg_set_host(struct usb_otg *otg, in mv_otg_set_host() argument
64 otg->host = host; in mv_otg_set_host()
69 static int mv_otg_set_peripheral(struct usb_otg *otg, in mv_otg_set_peripheral() argument
72 otg->gadget = gadget; in mv_otg_set_peripheral()
194 struct usb_otg *otg = mvotg->phy.otg; in mv_otg_start_host() local
215 struct usb_otg *otg = mvotg->phy.otg; mv_otg_start_periphrals() local
402 struct usb_otg *otg; mv_otg_work() local
667 struct usb_otg *otg; mv_otg_probe() local
[all...]
H A Dphy-fsl-usb.c46 static const char driver_name[] = "fsl-usb2-otg";
258 if ((fsl_otg_dev->phy.otg->state == OTG_STATE_B_SRP_INIT) && in b_srp_end()
271 if (!fsl_otg_dev->phy.otg->host->b_hnp_enable) in a_wait_enum()
459 struct usb_otg *otg = fsm->otg; in fsl_otg_start_host() local
462 container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_start_host()
465 if (!otg->host) in fsl_otg_start_host()
467 dev = otg->host->controller; in fsl_otg_start_host()
526 struct usb_otg *otg = fsm->otg; in fsl_otg_start_gadget() local
550 fsl_otg_set_host(struct usb_otg *otg, struct usb_bus *host) fsl_otg_set_host() argument
599 fsl_otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) fsl_otg_set_peripheral() argument
662 fsl_otg_start_srp(struct usb_otg *otg) fsl_otg_start_srp() argument
680 fsl_otg_start_hnp(struct usb_otg *otg) fsl_otg_start_hnp() argument
709 struct usb_otg *otg = ((struct fsl_otg *)dev_id)->phy.otg; fsl_otg_isr() local
[all...]
H A Dphy-jz4770.c14 #include <linux/usb/otg.h>
107 struct usb_otg otg; member
114 static inline struct jz4770_phy *otg_to_jz4770_phy(struct usb_otg *otg) in otg_to_jz4770_phy() argument
116 return container_of(otg, struct jz4770_phy, otg); in otg_to_jz4770_phy()
124 static int ingenic_usb_phy_set_peripheral(struct usb_otg *otg, in ingenic_usb_phy_set_peripheral() argument
127 struct jz4770_phy *priv = otg_to_jz4770_phy(otg); in ingenic_usb_phy_set_peripheral()
144 static int ingenic_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in ingenic_usb_phy_set_host() argument
146 struct jz4770_phy *priv = otg_to_jz4770_phy(otg); in ingenic_usb_phy_set_host()
307 priv->phy.otg in jz4770_phy_probe()
[all...]
/kernel/linux/linux-6.6/drivers/usb/phy/
H A Dphy-ulpi.c17 #include <linux/usb/otg.h>
199 static int ulpi_set_host(struct usb_otg *otg, struct usb_bus *host) in ulpi_set_host() argument
201 struct usb_phy *phy = otg->usb_phy; in ulpi_set_host()
205 otg->host = NULL; in ulpi_set_host()
209 otg->host = host; in ulpi_set_host()
225 static int ulpi_set_vbus(struct usb_otg *otg, bool on) in ulpi_set_vbus() argument
227 struct usb_phy *phy = otg->usb_phy; in ulpi_set_vbus()
243 static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg, in otg_ulpi_init() argument
250 phy->otg = otg; in otg_ulpi_init()
263 struct usb_otg *otg; otg_ulpi_create() local
287 struct usb_otg *otg; devm_otg_ulpi_create() local
[all...]
H A Dphy-tahvo.c21 #include <linux/usb/otg.h>
77 switch (tu->phy.otg->state) { in check_vbus_state()
80 if (tu->phy.otg->gadget) in check_vbus_state()
81 usb_gadget_vbus_connect(tu->phy.otg->gadget); in check_vbus_state()
82 tu->phy.otg->state = OTG_STATE_B_PERIPHERAL; in check_vbus_state()
90 tu->phy.otg->state = OTG_STATE_A_HOST; in check_vbus_state()
97 switch (tu->phy.otg->state) { in check_vbus_state()
99 if (tu->phy.otg->gadget) in check_vbus_state()
100 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
101 tu->phy.otg in check_vbus_state()
192 tahvo_usb_set_host(struct usb_otg *otg, struct usb_bus *host) tahvo_usb_set_host() argument
219 tahvo_usb_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) tahvo_usb_set_peripheral() argument
[all...]
H A Dphy-generic.c18 #include <linux/usb/otg.h>
104 struct usb_otg *otg = nop->phy.otg; in nop_gpio_vbus_thread() local
114 otg->state = OTG_STATE_B_PERIPHERAL; in nop_gpio_vbus_thread()
121 otg->gadget); in nop_gpio_vbus_thread()
126 otg->state = OTG_STATE_B_IDLE; in nop_gpio_vbus_thread()
130 otg->gadget); in nop_gpio_vbus_thread()
173 static int nop_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) in nop_set_peripheral() argument
175 if (!otg) in nop_set_peripheral()
179 otg in nop_set_peripheral()
192 nop_set_host(struct usb_otg *otg, struct usb_bus *host) nop_set_host() argument
[all...]
H A Dphy-gpio-vbus-usb.c20 #include <linux/usb/otg.h>
98 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work()
114 gpio_vbus->phy.otg->state = OTG_STATE_B_PERIPHERAL; in gpio_vbus_work()
116 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
126 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
135 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
137 gpio_vbus->phy.otg->state = OTG_STATE_B_IDLE; in gpio_vbus_work()
141 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
151 struct usb_otg *otg = gpio_vbus->phy.otg; in gpio_vbus_irq() local
166 gpio_vbus_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) gpio_vbus_set_peripheral() argument
[all...]
H A Dphy-mv-usb.c21 #include <linux/usb/otg.h>
33 static const char driver_name[] = "mv-otg";
52 static int mv_otg_set_vbus(struct usb_otg *otg, bool on) in mv_otg_set_vbus() argument
54 struct mv_otg *mvotg = container_of(otg->usb_phy, struct mv_otg, phy); in mv_otg_set_vbus()
61 static int mv_otg_set_host(struct usb_otg *otg, in mv_otg_set_host() argument
64 otg->host = host; in mv_otg_set_host()
69 static int mv_otg_set_peripheral(struct usb_otg *otg, in mv_otg_set_peripheral() argument
72 otg->gadget = gadget; in mv_otg_set_peripheral()
194 struct usb_otg *otg = mvotg->phy.otg; in mv_otg_start_host() local
215 struct usb_otg *otg = mvotg->phy.otg; mv_otg_start_periphrals() local
402 struct usb_otg *otg; mv_otg_work() local
663 struct usb_otg *otg; mv_otg_probe() local
[all...]
H A Dphy-fsl-usb.c46 static const char driver_name[] = "fsl-usb2-otg";
258 if ((fsl_otg_dev->phy.otg->state == OTG_STATE_B_SRP_INIT) && in b_srp_end()
271 if (!fsl_otg_dev->phy.otg->host->b_hnp_enable) in a_wait_enum()
459 struct usb_otg *otg = fsm->otg; in fsl_otg_start_host() local
462 container_of(otg->usb_phy, struct fsl_otg, phy); in fsl_otg_start_host()
465 if (!otg->host) in fsl_otg_start_host()
467 dev = otg->host->controller; in fsl_otg_start_host()
526 struct usb_otg *otg = fsm->otg; in fsl_otg_start_gadget() local
550 fsl_otg_set_host(struct usb_otg *otg, struct usb_bus *host) fsl_otg_set_host() argument
599 fsl_otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget) fsl_otg_set_peripheral() argument
662 fsl_otg_start_srp(struct usb_otg *otg) fsl_otg_start_srp() argument
680 fsl_otg_start_hnp(struct usb_otg *otg) fsl_otg_start_hnp() argument
709 struct usb_otg *otg = ((struct fsl_otg *)dev_id)->phy.otg; fsl_otg_isr() local
[all...]
/kernel/linux/linux-5.10/drivers/phy/samsung/
H A Dphy-exynos5250-usb2.c201 u32 otg; in exynos5250_power_on() local
214 otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on()
216 otg &= ~EXYNOS_5250_USBOTGSYS_FSEL_MASK; in exynos5250_power_on()
217 otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT; in exynos5250_power_on()
219 otg &= ~(EXYNOS_5250_USBOTGSYS_FORCE_SUSPEND | in exynos5250_power_on()
222 otg |= EXYNOS_5250_USBOTGSYS_PHY_SW_RST | in exynos5250_power_on()
227 otg &= ~EXYNOS_5250_USBOTGSYS_REFCLKSEL_MASK; in exynos5250_power_on()
228 otg |= EXYNOS_5250_REFCLKSEL_CLKCORE << in exynos5250_power_on()
230 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on()
232 otg in exynos5250_power_on()
327 u32 otg; exynos5250_power_off() local
[all...]
/kernel/linux/linux-6.6/drivers/phy/samsung/
H A Dphy-exynos5250-usb2.c199 u32 otg; in exynos5250_power_on() local
212 otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on()
214 otg &= ~EXYNOS_5250_USBOTGSYS_FSEL_MASK; in exynos5250_power_on()
215 otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT; in exynos5250_power_on()
217 otg &= ~(EXYNOS_5250_USBOTGSYS_FORCE_SUSPEND | in exynos5250_power_on()
220 otg |= EXYNOS_5250_USBOTGSYS_PHY_SW_RST | in exynos5250_power_on()
225 otg &= ~EXYNOS_5250_USBOTGSYS_REFCLKSEL_MASK; in exynos5250_power_on()
226 otg |= EXYNOS_5250_REFCLKSEL_CLKCORE << in exynos5250_power_on()
228 writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); in exynos5250_power_on()
230 otg in exynos5250_power_on()
325 u32 otg; exynos5250_power_off() local
[all...]
/kernel/linux/linux-5.10/drivers/phy/ti/
H A Dphy-dm816x-usb.c62 static int dm816x_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in dm816x_usb_phy_set_host() argument
64 otg->host = host; in dm816x_usb_phy_set_host()
66 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_host()
71 static int dm816x_usb_phy_set_peripheral(struct usb_otg *otg, in dm816x_usb_phy_set_peripheral() argument
74 otg->gadget = gadget; in dm816x_usb_phy_set_peripheral()
76 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_peripheral()
189 struct usb_otg *otg; in dm816x_usb_phy_probe() local
221 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in dm816x_usb_phy_probe()
222 if (!otg) in dm816x_usb_phy_probe()
[all...]
H A Dphy-omap-usb2.c115 static int omap_usb_set_vbus(struct usb_otg *otg, bool enabled) in omap_usb_set_vbus() argument
117 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_set_vbus()
125 static int omap_usb_start_srp(struct usb_otg *otg) in omap_usb_start_srp() argument
127 struct omap_usb *phy = phy_to_omapusb(otg->usb_phy); in omap_usb_start_srp()
135 static int omap_usb_set_host(struct usb_otg *otg, struct usb_bus *host) in omap_usb_set_host() argument
137 otg->host = host; in omap_usb_set_host()
139 otg->state = OTG_STATE_UNDEFINED; in omap_usb_set_host()
144 static int omap_usb_set_peripheral(struct usb_otg *otg, in omap_usb_set_peripheral() argument
147 otg->gadget = gadget; in omap_usb_set_peripheral()
149 otg in omap_usb_set_peripheral()
371 struct usb_otg *otg; omap_usb2_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/phy/ti/
H A Dphy-dm816x-usb.c53 static int dm816x_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in dm816x_usb_phy_set_host() argument
55 otg->host = host; in dm816x_usb_phy_set_host()
57 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_host()
62 static int dm816x_usb_phy_set_peripheral(struct usb_otg *otg, in dm816x_usb_phy_set_peripheral() argument
65 otg->gadget = gadget; in dm816x_usb_phy_set_peripheral()
67 otg->state = OTG_STATE_UNDEFINED; in dm816x_usb_phy_set_peripheral()
180 struct usb_otg *otg; in dm816x_usb_phy_probe() local
212 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in dm816x_usb_phy_probe()
213 if (!otg) in dm816x_usb_phy_probe()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
H A Dpxa3xx-ulpi.c23 #include <linux/usb/otg.h>
33 struct usb_phy *otg; member
79 static int pxa310_ulpi_read(struct usb_phy *otg, u32 reg) in pxa310_ulpi_read() argument
98 static int pxa310_ulpi_write(struct usb_phy *otg, u32 val, u32 reg) in pxa310_ulpi_write() argument
139 err = usb_phy_init(u2d->otg); in pxa310_start_otg_host_transcvr()
145 err = otg_set_vbus(u2d->otg->otg, 1); in pxa310_start_otg_host_transcvr()
151 err = otg_set_host(u2d->otg->otg, host); in pxa310_start_otg_host_transcvr()
189 otg_set_host(u2d->otg in pxa310_stop_otg_hc()
[all...]
/kernel/linux/linux-5.10/drivers/usb/musb/
H A Dmusb_virthub.c46 musb->xceiv->otg->state = OTG_STATE_A_HOST; in musb_host_finish_resume()
53 struct usb_otg *otg = musb->xceiv->otg; in musb_port_suspend() local
88 switch (musb->xceiv->otg->state) { in musb_port_suspend()
90 musb->xceiv->otg->state = OTG_STATE_A_SUSPEND; in musb_port_suspend()
91 musb->is_active = otg->host->b_hnp_enable; in musb_port_suspend()
99 musb->xceiv->otg->state = OTG_STATE_B_WAIT_ACON; in musb_port_suspend()
100 musb->is_active = otg->host->b_hnp_enable; in musb_port_suspend()
105 usb_otg_state_string(musb->xceiv->otg->state)); in musb_port_suspend()
126 if (musb->xceiv->otg in musb_port_reset()
199 struct usb_otg *otg = musb->xceiv->otg; musb_root_disconnect() local
[all...]
/kernel/linux/linux-5.10/drivers/usb/common/
H A Dusb-otg-fsm.c18 #include <linux/usb/otg.h>
19 #include <linux/usb/otg-fsm.h>
74 if (fsm->otg->gadget) in otg_leave_state()
75 fsm->otg->gadget->host_request_flag = 0; in otg_leave_state()
105 if (fsm->otg->gadget) in otg_leave_state()
106 fsm->otg->gadget->host_request_flag = 0; in otg_leave_state()
125 enum usb_otg_state state = fsm->otg->state; in otg_hnp_polling_work()
132 udev = usb_hub_find_child(fsm->otg->host->root_hub, 1); in otg_hnp_polling_work()
134 dev_err(fsm->otg->host->controller, in otg_hnp_polling_work()
169 if (!fsm->otg in otg_hnp_polling_work()
[all...]
/kernel/linux/linux-6.6/drivers/usb/common/
H A Dusb-otg-fsm.c18 #include <linux/usb/otg.h>
19 #include <linux/usb/otg-fsm.h>
74 if (fsm->otg->gadget) in otg_leave_state()
75 fsm->otg->gadget->host_request_flag = 0; in otg_leave_state()
105 if (fsm->otg->gadget) in otg_leave_state()
106 fsm->otg->gadget->host_request_flag = 0; in otg_leave_state()
125 enum usb_otg_state state = fsm->otg->state; in otg_hnp_polling_work()
132 udev = usb_hub_find_child(fsm->otg->host->root_hub, 1); in otg_hnp_polling_work()
134 dev_err(fsm->otg->host->controller, in otg_hnp_polling_work()
169 if (!fsm->otg in otg_hnp_polling_work()
[all...]

Completed in 13 milliseconds

12345678910