Home
last modified time | relevance | path

Searched refs:gadget_driver (Results 1 – 25 of 25) sorted by relevance

/linux-6.1.9/drivers/usb/mtu3/
Dmtu3_gadget.c522 if (mtu->gadget_driver) { in mtu3_gadget_start()
524 mtu->g.name, mtu->gadget_driver->driver.name); in mtu3_gadget_start()
534 mtu->gadget_driver = driver; in mtu3_gadget_start()
547 struct usb_gadget_driver *driver = mtu->gadget_driver; in stop_activity()
589 mtu->gadget_driver = NULL; in mtu3_gadget_stop()
731 if (mtu->async_callbacks && mtu->gadget_driver && mtu->gadget_driver->resume) { in mtu3_gadget_resume()
733 mtu->gadget_driver->resume(&mtu->g); in mtu3_gadget_resume()
742 if (mtu->async_callbacks && mtu->gadget_driver && mtu->gadget_driver->suspend) { in mtu3_gadget_suspend()
744 mtu->gadget_driver->suspend(&mtu->g); in mtu3_gadget_suspend()
753 if (mtu->async_callbacks && mtu->gadget_driver && mtu->gadget_driver->disconnect) { in mtu3_gadget_disconnect()
[all …]
Dmtu3.h344 struct usb_gadget_driver *gadget_driver; member
Dmtu3_gadget_ep0.c69 if (!mtu->gadget_driver || !mtu->async_callbacks) in forward_to_driver()
73 ret = mtu->gadget_driver->setup(&mtu->g, setup); in forward_to_driver()
Dmtu3_core.c1037 if (!mtu->gadget_driver) in ssusb_gadget_suspend()
1053 if (!mtu->gadget_driver) in ssusb_gadget_resume()
/linux-6.1.9/drivers/usb/gadget/udc/bdc/
Dbdc_udc.c143 if (bdc->gadget_driver && bdc->gadget_driver->disconnect) { in bdc_uspc_disconnected()
145 bdc->gadget_driver->disconnect(&bdc->gadget); in bdc_uspc_disconnected()
189 bdc->gadget_driver->suspend) { in handle_link_state_change()
193 bdc->gadget_driver->suspend(&bdc->gadget); in handle_link_state_change()
221 bdc->gadget_driver->resume(&bdc->gadget); in handle_link_state_change()
372 if (bdc->gadget_driver) { in bdc_udc_start()
375 bdc->gadget_driver->driver.name); in bdc_udc_start()
389 bdc->gadget_driver = driver; in bdc_udc_start()
405 bdc->gadget_driver = NULL; in bdc_udc_stop()
Dbdc.h406 struct usb_gadget_driver *gadget_driver; member
Dbdc_ep.c1502 ret = bdc->gadget_driver->setup(&bdc->gadget, setup_pkt); in handle_control_request()
1882 if (!bdc->gadget_driver in bdc_gadget_ep_enable()
/linux-6.1.9/drivers/usb/gadget/
Dconfigfs.c236 udc_name = gi->composite.gadget_driver.udc_name; in gadget_dev_desc_UDC_show()
247 if (!gi->composite.gadget_driver.udc_name) in unregister_gadget()
250 ret = usb_gadget_unregister_driver(&gi->composite.gadget_driver); in unregister_gadget()
253 kfree(gi->composite.gadget_driver.udc_name); in unregister_gadget()
254 gi->composite.gadget_driver.udc_name = NULL; in unregister_gadget()
282 if (gi->composite.gadget_driver.udc_name) { in gadget_dev_desc_UDC_store()
286 gi->composite.gadget_driver.udc_name = name; in gadget_dev_desc_UDC_store()
287 ret = usb_gadget_register_driver(&gi->composite.gadget_driver); in gadget_dev_desc_UDC_store()
289 gi->composite.gadget_driver.udc_name = NULL; in gadget_dev_desc_UDC_store()
317 if (gi->composite.gadget_driver.udc_name) in gadget_dev_desc_max_speed_store()
[all …]
Dcomposite.c2493 struct usb_gadget_driver *gadget_driver; in usb_composite_probe() local
2501 driver->gadget_driver = composite_driver_template; in usb_composite_probe()
2502 gadget_driver = &driver->gadget_driver; in usb_composite_probe()
2504 gadget_driver->function = (char *) driver->name; in usb_composite_probe()
2505 gadget_driver->driver.name = driver->name; in usb_composite_probe()
2506 gadget_driver->max_speed = driver->max_speed; in usb_composite_probe()
2508 return usb_gadget_register_driver(gadget_driver); in usb_composite_probe()
2521 usb_gadget_unregister_driver(&driver->gadget_driver); in usb_composite_unregister()
/linux-6.1.9/drivers/usb/musb/
Dmusb_gadget.c1847 musb->gadget_driver = driver; in musb_gadget_start()
1903 musb->gadget_driver = NULL; in musb_gadget_stop()
1933 if (musb->gadget_driver && musb->gadget_driver->resume) { in musb_g_resume()
1935 musb->gadget_driver->resume(&musb->g); in musb_g_resume()
1960 if (musb->gadget_driver && musb->gadget_driver->suspend) { in musb_g_suspend()
1962 musb->gadget_driver->suspend(&musb->g); in musb_g_suspend()
1996 if (musb->gadget_driver && musb->gadget_driver->disconnect) { in musb_g_disconnect()
1998 musb->gadget_driver->disconnect(&musb->g); in musb_g_disconnect()
2037 musb->gadget_driver in musb_g_reset()
2038 ? musb->gadget_driver->driver.name in musb_g_reset()
[all …]
Dmusb_gadget_ep0.c628 if (!musb->gadget_driver) in forward_to_driver()
631 retval = musb->gadget_driver->setup(&musb->g, ctrlrequest); in forward_to_driver()
Dmusb_core.h409 struct usb_gadget_driver *gadget_driver; /* its driver */ member
Domap2430.c124 if (musb->gadget_driver) { in omap_musb_set_mailbox()
Dtusb6010.c483 if (!musb->gadget_driver) { in musb_do_idle()
/linux-6.1.9/drivers/usb/cdns3/
Dcdnsp-gadget.c1318 pdev->gadget_driver = driver; in cdnsp_gadget_udc_start()
1471 pdev->gadget_driver = NULL; in cdnsp_gadget_udc_stop()
1704 if (pdev->gadget_driver && pdev->gadget_driver->disconnect) { in cdnsp_disconnect_gadget()
1706 pdev->gadget_driver->disconnect(&pdev->gadget); in cdnsp_disconnect_gadget()
1718 if (pdev->gadget_driver && pdev->gadget_driver->suspend) { in cdnsp_suspend_gadget()
1720 pdev->gadget_driver->suspend(&pdev->gadget); in cdnsp_suspend_gadget()
1727 if (pdev->gadget_driver && pdev->gadget_driver->resume) { in cdnsp_resume_gadget()
1729 pdev->gadget_driver->resume(&pdev->gadget); in cdnsp_resume_gadget()
1744 usb_gadget_udc_reset(&pdev->gadget, pdev->gadget_driver); in cdnsp_irq_reset()
1984 if (!pdev->gadget_driver) in cdnsp_gadget_resume()
[all …]
Dcdns3-gadget.c1759 if (priv_dev->gadget_driver && priv_dev->gadget_driver->disconnect) in cdns3_disconnect_gadget()
1760 priv_dev->gadget_driver->disconnect(&priv_dev->gadget); in cdns3_disconnect_gadget()
1805 if (priv_dev->gadget_driver && in cdns3_check_usb_interrupt_proceed()
1806 priv_dev->gadget_driver->suspend) { in cdns3_check_usb_interrupt_proceed()
1808 priv_dev->gadget_driver->suspend(&priv_dev->gadget); in cdns3_check_usb_interrupt_proceed()
1814 if (priv_dev->gadget_driver && in cdns3_check_usb_interrupt_proceed()
1815 priv_dev->gadget_driver->resume) { in cdns3_check_usb_interrupt_proceed()
1817 priv_dev->gadget_driver->resume(&priv_dev->gadget); in cdns3_check_usb_interrupt_proceed()
1824 if (priv_dev->gadget_driver) { in cdns3_check_usb_interrupt_proceed()
1827 priv_dev->gadget_driver); in cdns3_check_usb_interrupt_proceed()
[all …]
Dcdnsp-ep0.c47 ret = pdev->gadget_driver->setup(&pdev->gadget, ctrl); in cdnsp_ep0_delegate_req()
436 if (!pdev->gadget_driver) in cdnsp_setup_analyze()
Dcdns3-ep0.c90 ret = priv_dev->gadget_driver->setup(&priv_dev->gadget, ctrl_req); in cdns3_ep0_delegate_req()
Dcdns3-gadget.h1292 struct usb_gadget_driver *gadget_driver; member
Dcdnsp-gadget.h1395 struct usb_gadget_driver *gadget_driver; member
Dcdnsp-ring.c1533 if (pdev->gadget_driver) in cdnsp_thread_irq_handler()
/linux-6.1.9/include/linux/usb/
Dcomposite.h389 struct usb_gadget_driver gadget_driver; member
419 return container_of(gdrv, struct usb_composite_driver, gadget_driver); in to_cdriver()
/linux-6.1.9/drivers/usb/dwc3/
Dgadget.c2805 dwc->gadget_driver = driver; in dwc3_gadget_start()
2824 dwc->gadget_driver = NULL; in dwc3_gadget_stop()
3675 if (dwc->async_callbacks && dwc->gadget_driver->disconnect) { in dwc3_disconnect_gadget()
3677 dwc->gadget_driver->disconnect(dwc->gadget); in dwc3_disconnect_gadget()
3684 if (dwc->async_callbacks && dwc->gadget_driver->suspend) { in dwc3_suspend_gadget()
3686 dwc->gadget_driver->suspend(dwc->gadget); in dwc3_suspend_gadget()
3693 if (dwc->async_callbacks && dwc->gadget_driver->resume) { in dwc3_resume_gadget()
3695 dwc->gadget_driver->resume(dwc->gadget); in dwc3_resume_gadget()
3702 if (!dwc->gadget_driver) in dwc3_reset_gadget()
3707 usb_gadget_udc_reset(dwc->gadget, dwc->gadget_driver); in dwc3_reset_gadget()
[all …]
Dep0.c623 ret = dwc->gadget_driver->setup(dwc->gadget, ctrl); in dwc3_ep0_delegate_req()
821 if (!dwc->gadget_driver || !dwc->softconnect || !dwc->connected) in dwc3_ep0_inspect_setup()
Dcore.h1149 struct usb_gadget_driver *gadget_driver; member