Home
last modified time | relevance | path

Searched refs:xceiv (Results 1 - 25 of 32) sorted by relevance

12

/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()
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 in musb_root_disconnect()
[all...]
H A 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 in da8xx_musb_interrupt()
[all...]
H A 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 in am35x_musb_interrupt()
[all...]
H A 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...]
H A Domap2430.c95 usb_otg_state_string(musb->xceiv->otg->state), in omap_musb_set_mailbox()
101 switch (musb->xceiv->otg->state) { in omap_musb_set_mailbox()
106 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in omap_musb_set_mailbox()
115 otg_set_vbus(musb->xceiv->otg, 1); in omap_musb_set_mailbox()
118 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in omap_musb_set_mailbox()
119 musb->xceiv->last_event = USB_EVENT_ID; in omap_musb_set_mailbox()
123 otg_set_vbus(musb->xceiv->otg, 1); in omap_musb_set_mailbox()
132 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in omap_musb_set_mailbox()
133 musb->xceiv->last_event = USB_EVENT_VBUS; in omap_musb_set_mailbox()
141 musb->xceiv in omap_musb_set_mailbox()
[all...]
H A 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 in davinci_musb_interrupt()
[all...]
H A Dmusb_core.c504 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in musb_set_host()
551 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in musb_set_peripheral()
601 switch (musb->xceiv->otg->state) { in musb_otg_timer_func()
606 musb->xceiv->otg->state = OTG_STATE_B_PERIPHERAL; in musb_otg_timer_func()
612 usb_otg_state_string(musb->xceiv->otg->state)); in musb_otg_timer_func()
614 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in musb_otg_timer_func()
618 usb_otg_state_string(musb->xceiv->otg->state)); in musb_otg_timer_func()
633 usb_otg_state_string(musb->xceiv->otg->state)); in musb_hnp_stop()
635 switch (musb->xceiv->otg->state) { in musb_hnp_stop()
639 usb_otg_state_string(musb->xceiv in musb_hnp_stop()
[all...]
H A Dtusb6010.c460 switch (musb->xceiv->otg->state) { in musb_do_idle()
466 usb_otg_state_string(musb->xceiv->otg->state)); in musb_do_idle()
519 && (musb->xceiv->otg->state == OTG_STATE_A_WAIT_BCON))) { in tusb_musb_try_idle()
521 usb_otg_state_string(musb->xceiv->otg->state)); in tusb_musb_try_idle()
538 usb_otg_state_string(musb->xceiv->otg->state), in tusb_musb_try_idle()
555 struct usb_otg *otg = musb->xceiv->otg; in tusb_musb_set_vbus()
569 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in tusb_musb_set_vbus()
582 switch (musb->xceiv->otg->state) { in tusb_musb_set_vbus()
585 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in tusb_musb_set_vbus()
588 musb->xceiv in tusb_musb_set_vbus()
[all...]
H A 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 in dsps_interrupt()
[all...]
H A 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()
H A 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 in musb_gadget_stop()
[all...]
H A 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()
519 glue->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in mtk_musb_probe()
520 if (IS_ERR(glue->xceiv)) { in mtk_musb_probe()
521 ret = PTR_ERR(glue->xceiv); in mtk_musb_probe()
H A 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()
[all...]
H A 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()
/kernel/linux/linux-6.6/drivers/usb/musb/
H A 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 in da8xx_musb_interrupt()
[all...]
H A 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...]
H A Domap2430.c99 usb_otg_state_string(musb->xceiv->otg->state), in omap_musb_set_mailbox()
105 switch (musb->xceiv->otg->state) { in omap_musb_set_mailbox()
110 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in omap_musb_set_mailbox()
119 otg_set_vbus(musb->xceiv->otg, 1); in omap_musb_set_mailbox()
122 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in omap_musb_set_mailbox()
123 musb->xceiv->last_event = USB_EVENT_ID; in omap_musb_set_mailbox()
127 otg_set_vbus(musb->xceiv->otg, 1); in omap_musb_set_mailbox()
136 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in omap_musb_set_mailbox()
137 musb->xceiv->last_event = USB_EVENT_VBUS; in omap_musb_set_mailbox()
145 musb->xceiv in omap_musb_set_mailbox()
[all...]
H A Dtusb6010.c465 switch (musb->xceiv->otg->state) { in musb_do_idle()
471 usb_otg_state_string(musb->xceiv->otg->state)); in musb_do_idle()
525 && (musb->xceiv->otg->state == OTG_STATE_A_WAIT_BCON))) { in tusb_musb_try_idle()
527 usb_otg_state_string(musb->xceiv->otg->state)); in tusb_musb_try_idle()
544 usb_otg_state_string(musb->xceiv->otg->state), in tusb_musb_try_idle()
561 struct usb_otg *otg = musb->xceiv->otg; in tusb_musb_set_vbus()
575 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in tusb_musb_set_vbus()
588 switch (musb->xceiv->otg->state) { in tusb_musb_set_vbus()
591 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in tusb_musb_set_vbus()
594 musb->xceiv in tusb_musb_set_vbus()
[all...]
H A Dmpfs.c89 musb->xceiv->otg->default_a = 1; in mpfs_musb_set_vbus()
90 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in mpfs_musb_set_vbus()
100 musb->xceiv->otg->default_a = 0; in mpfs_musb_set_vbus()
101 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in mpfs_musb_set_vbus()
110 usb_otg_state_string(musb->xceiv->otg->state), in mpfs_musb_set_vbus()
118 musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in mpfs_musb_init()
119 if (IS_ERR(musb->xceiv)) { in mpfs_musb_init()
121 return PTR_ERR(musb->xceiv); in mpfs_musb_init()
H A Dmusb_dsps.c186 if (musb->xceiv->otg->state == OTG_STATE_B_IDLE) in dsps_musb_enable()
225 usb_otg_state_string(musb->xceiv->otg->state)); in dsps_check_status()
227 switch (musb->xceiv->otg->state) { in dsps_check_status()
230 musb->xceiv->otg->state = OTG_STATE_A_WAIT_BCON; in dsps_check_status()
250 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in dsps_check_status()
253 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in dsps_check_status()
267 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in dsps_check_status()
366 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in dsps_interrupt()
371 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in dsps_interrupt()
376 musb->xceiv in dsps_interrupt()
[all...]
H A Dmusb_virthub.c90 musb->is_active = musb->xceiv && in musb_port_suspend()
91 musb->xceiv->otg->host->b_hnp_enable; in musb_port_suspend()
100 musb->is_active = musb->xceiv && in musb_port_suspend()
101 musb->xceiv->otg->host->b_hnp_enable; in musb_port_suspend()
208 if (musb->xceiv && musb->xceiv->otg->host->b_hnp_enable) { in musb_root_disconnect()
H A Dmediatek.c48 struct usb_phy *xceiv; member
77 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in mtk_otg_switch_set()
88 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in mtk_otg_switch_set()
263 musb->xceiv = glue->xceiv; in mtk_musb_init()
469 glue->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in mtk_musb_probe()
470 if (IS_ERR(glue->xceiv)) { in mtk_musb_probe()
471 ret = PTR_ERR(glue->xceiv); in mtk_musb_probe()
H A Djz4740.c83 struct usb_phy *phy = glue->musb->xceiv; in jz4740_musb_role_switch_set()
143 musb->xceiv = devm_usb_get_phy_by_phandle(dev, "phys", 0); in jz4740_musb_init()
145 musb->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in jz4740_musb_init()
146 if (IS_ERR(musb->xceiv)) { in jz4740_musb_init()
148 return PTR_ERR(musb->xceiv); in jz4740_musb_init()
H A Dsunxi.c88 struct usb_phy *xceiv; member
115 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in sunxi_musb_work()
120 musb->xceiv->otg->state = OTG_STATE_B_IDLE; in sunxi_musb_work()
152 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in sunxi_musb_set_vbus()
229 musb->xceiv = glue->xceiv; in sunxi_musb_init()
296 devm_usb_put_phy(glue->dev, glue->xceiv); in sunxi_musb_exit()
773 glue->xceiv = devm_usb_get_phy(&pdev->dev, USB_PHY_TYPE_USB2); in sunxi_musb_probe()
774 if (IS_ERR(glue->xceiv)) { in sunxi_musb_probe()
775 ret = PTR_ERR(glue->xceiv); in sunxi_musb_probe()
[all...]
H A Dmusb_core.h339 struct usb_phy *xceiv; member
598 if (musb->xceiv) in musb_set_state()
599 musb->xceiv->otg->state = otg_state; in musb_set_state()
606 if (musb->xceiv) in musb_get_state()
607 return musb->xceiv->otg->state; in musb_get_state()

Completed in 19 milliseconds

12