Home
last modified time | relevance | path

Searched refs:xceiv (Results 1 – 17 of 17) sorted by relevance

/drivers/usb/musb/
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()
88 switch (musb->xceiv->otg->state) { in musb_port_suspend()
90 musb->xceiv->otg->state = OTG_STATE_A_SUSPEND; in musb_port_suspend()
99 musb->xceiv->otg->state = OTG_STATE_B_WAIT_ACON; in musb_port_suspend()
105 usb_otg_state_string(musb->xceiv->otg->state)); in musb_port_suspend()
126 if (musb->xceiv->otg->state == OTG_STATE_B_IDLE) { in musb_port_reset()
199 struct usb_otg *otg = musb->xceiv->otg; in musb_root_disconnect()
207 switch (musb->xceiv->otg->state) { in musb_root_disconnect()
210 musb->xceiv->otg->state = OTG_STATE_A_PERIPHERAL; in musb_root_disconnect()
[all …]
Dam35x.c133 usb_otg_state_string(musb->xceiv->otg->state)); in otg_timer()
136 switch (musb->xceiv->otg->state) { in otg_timer()
143 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in otg_timer()
146 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer()
151 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in otg_timer()
160 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer()
177 musb->xceiv->otg->state == OTG_STATE_A_WAIT_BCON)) { in am35x_musb_try_idle()
179 usb_otg_state_string(musb->xceiv->otg->state)); in am35x_musb_try_idle()
192 usb_otg_state_string(musb->xceiv->otg->state), in am35x_musb_try_idle()
261 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in am35x_musb_interrupt()
[all …]
Dux500.c46 if (musb->xceiv->otg->state == OTG_STATE_A_IDLE) { in ux500_musb_set_vbus()
65 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in ux500_musb_set_vbus()
90 usb_otg_state_string(musb->xceiv->otg->state), in ux500_musb_set_vbus()
100 event, usb_otg_state_string(musb->xceiv->otg->state)); in musb_otg_notifications()
115 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in musb_otg_notifications()
148 musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2); in ux500_musb_init()
149 if (IS_ERR_OR_NULL(musb->xceiv)) { in ux500_musb_init()
155 status = usb_register_notifier(musb->xceiv, &musb->nb); in ux500_musb_init()
168 usb_unregister_notifier(musb->xceiv, &musb->nb); in ux500_musb_exit()
170 usb_put_phy(musb->xceiv); in ux500_musb_exit()
[all …]
Dda8xx.c135 usb_otg_state_string(musb->xceiv->otg->state)); in otg_timer()
138 switch (musb->xceiv->otg->state) { in otg_timer()
145 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in otg_timer()
148 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer()
163 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in otg_timer()
185 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer()
202 musb->xceiv->otg->state == OTG_STATE_A_WAIT_BCON)) { in da8xx_musb_try_idle()
204 usb_otg_state_string(musb->xceiv->otg->state)); in da8xx_musb_try_idle()
217 usb_otg_state_string(musb->xceiv->otg->state), in da8xx_musb_try_idle()
277 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in da8xx_musb_interrupt()
[all …]
Domap2430.c98 usb_otg_state_string(musb->xceiv->otg->state), in omap_musb_set_mailbox()
104 switch (musb->xceiv->otg->state) { in omap_musb_set_mailbox()
109 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in omap_musb_set_mailbox()
118 otg_set_vbus(musb->xceiv->otg, 1); in omap_musb_set_mailbox()
121 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in omap_musb_set_mailbox()
122 musb->xceiv->last_event = USB_EVENT_ID; in omap_musb_set_mailbox()
126 otg_set_vbus(musb->xceiv->otg, 1); in omap_musb_set_mailbox()
135 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in omap_musb_set_mailbox()
136 musb->xceiv->last_event = USB_EVENT_VBUS; in omap_musb_set_mailbox()
144 musb->xceiv->last_event = USB_EVENT_NONE; in omap_musb_set_mailbox()
[all …]
Ddavinci.c198 usb_otg_state_string(musb->xceiv->otg->state)); in otg_timer()
201 switch (musb->xceiv->otg->state) { in otg_timer()
212 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in otg_timer()
235 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer()
248 struct usb_otg *otg = musb->xceiv->otg; in davinci_musb_interrupt()
309 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in davinci_musb_interrupt()
314 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in davinci_musb_interrupt()
320 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in davinci_musb_interrupt()
330 usb_otg_state_string(musb->xceiv->otg->state), in davinci_musb_interrupt()
343 if (musb->xceiv->otg->state == OTG_STATE_B_IDLE) in davinci_musb_interrupt()
[all …]
Dtusb6010.c460 switch (musb->xceiv->otg->state) { in musb_do_idle()
466 usb_otg_state_string(musb->xceiv->otg->state)); in musb_do_idle()
520 && (musb->xceiv->otg->state == OTG_STATE_A_WAIT_BCON))) { in tusb_musb_try_idle()
522 usb_otg_state_string(musb->xceiv->otg->state)); in tusb_musb_try_idle()
539 usb_otg_state_string(musb->xceiv->otg->state), in tusb_musb_try_idle()
556 struct usb_otg *otg = musb->xceiv->otg; in tusb_musb_set_vbus()
570 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in tusb_musb_set_vbus()
583 switch (musb->xceiv->otg->state) { in tusb_musb_set_vbus()
586 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in tusb_musb_set_vbus()
589 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in tusb_musb_set_vbus()
[all …]
Dmusb_core.c505 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in musb_set_host()
552 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in musb_set_peripheral()
602 switch (musb->xceiv->otg->state) { in musb_otg_timer_func()
607 musb->xceiv->otg->state = OTG_STATE_B_PERIPHERAL; in musb_otg_timer_func()
613 usb_otg_state_string(musb->xceiv->otg->state)); in musb_otg_timer_func()
615 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in musb_otg_timer_func()
619 usb_otg_state_string(musb->xceiv->otg->state)); in musb_otg_timer_func()
634 usb_otg_state_string(musb->xceiv->otg->state)); in musb_hnp_stop()
636 switch (musb->xceiv->otg->state) { in musb_hnp_stop()
640 usb_otg_state_string(musb->xceiv->otg->state)); in musb_hnp_stop()
[all …]
Dmusb_dsps.c187 if (musb->xceiv->otg->state == OTG_STATE_B_IDLE) in dsps_musb_enable()
226 usb_otg_state_string(musb->xceiv->otg->state)); in dsps_check_status()
228 switch (musb->xceiv->otg->state) { in dsps_check_status()
231 musb->xceiv->otg->state = OTG_STATE_A_WAIT_BCON; in dsps_check_status()
251 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in dsps_check_status()
254 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in dsps_check_status()
268 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in dsps_check_status()
367 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in dsps_interrupt()
372 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in dsps_interrupt()
377 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in dsps_interrupt()
[all …]
Djz4740.c82 struct usb_phy *phy = glue->musb->xceiv; in jz4740_musb_role_switch_set()
113 musb->xceiv = devm_usb_get_phy_by_phandle(dev, "phys", 0); in jz4740_musb_init()
115 musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in jz4740_musb_init()
116 if (IS_ERR(musb->xceiv)) { in jz4740_musb_init()
117 err = PTR_ERR(musb->xceiv); in jz4740_musb_init()
Dmusb_gadget.c1526 switch (musb->xceiv->otg->state) { in musb_gadget_wakeup()
1556 otg_start_srp(musb->xceiv->otg); in musb_gadget_wakeup()
1567 usb_otg_state_string(musb->xceiv->otg->state)); in musb_gadget_wakeup()
1631 return usb_phy_set_power(musb->xceiv, mA); in musb_gadget_vbus_draw()
1788 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in musb_gadget_setup()
1835 struct usb_otg *otg = musb->xceiv->otg; in musb_gadget_start()
1853 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in musb_gadget_start()
1862 if (musb->xceiv->last_event == USB_EVENT_ID) in musb_gadget_start()
1898 musb->xceiv->otg->state = OTG_STATE_UNDEFINED; in musb_gadget_stop()
1900 otg_set_peripheral(musb->xceiv->otg, NULL); in musb_gadget_stop()
[all …]
Dmediatek.c45 struct usb_phy *xceiv; member
129 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in mtk_otg_switch_set()
140 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in mtk_otg_switch_set()
314 musb->xceiv = glue->xceiv; in mtk_musb_init()
520 glue->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in mtk_musb_probe()
521 if (IS_ERR(glue->xceiv)) { in mtk_musb_probe()
522 ret = PTR_ERR(glue->xceiv); in mtk_musb_probe()
Dsunxi.c81 struct usb_phy *xceiv; member
108 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in sunxi_musb_work()
113 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in sunxi_musb_work()
145 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in sunxi_musb_set_vbus()
222 musb->xceiv = glue->xceiv; in sunxi_musb_init()
289 devm_usb_put_phy(glue->dev, glue->xceiv); in sunxi_musb_exit()
771 glue->xceiv = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2); in sunxi_musb_probe()
772 if (IS_ERR(glue->xceiv)) { in sunxi_musb_probe()
773 ret = PTR_ERR(glue->xceiv); in sunxi_musb_probe()
Dmusb_debugfs.c238 switch (musb->xceiv->otg->state) { in musb_softconnect_show()
278 switch (musb->xceiv->otg->state) { in musb_softconnect_write()
289 switch (musb->xceiv->otg->state) { in musb_softconnect_write()
Dmusb_host.c2511 switch (musb->xceiv->otg->state) { in musb_bus_suspend()
2521 musb->xceiv->otg->state = OTG_STATE_A_WAIT_BCON; in musb_bus_suspend()
2529 usb_otg_state_string(musb->xceiv->otg->state)); in musb_bus_suspend()
2730 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in musb_host_setup()
2732 otg_set_host(musb->xceiv->otg, &hcd->self); in musb_host_setup()
2735 musb->xceiv->otg->host = &hcd->self; in musb_host_setup()
Dmusb_core.h339 struct usb_phy *xceiv; member
/drivers/usb/gadget/udc/
Domap_udc.c2616 omap_udc_setup(struct platform_device *odev, struct usb_phy *xceiv) in omap_udc_setup() argument
2645 udc->transceiver = xceiv; in omap_udc_setup()
2749 struct usb_phy *xceiv = NULL; in omap_udc_probe() local
2815 xceiv = usb_get_phy(USB_PHY_TYPE_USB2); in omap_udc_probe()
2816 if (!IS_ERR_OR_NULL(xceiv)) in omap_udc_probe()
2817 type = xceiv->label; in omap_udc_probe()
2840 if (IS_ERR_OR_NULL(xceiv)) { in omap_udc_probe()
2867 status = omap_udc_setup(pdev, xceiv); in omap_udc_probe()
2871 xceiv = NULL; in omap_udc_probe()
2926 if (!IS_ERR_OR_NULL(xceiv)) in omap_udc_probe()
[all …]