| /linux/drivers/usb/gadget/udc/ |
| H A D | net2280.c | 1461 static int net2280_get_frame(struct usb_gadget *_gadget) in net2280_get_frame() argument 1467 if (!_gadget) in net2280_get_frame() 1469 dev = container_of(_gadget, struct net2280, gadget); in net2280_get_frame() 1476 static int net2280_wakeup(struct usb_gadget *_gadget) in net2280_wakeup() argument 1482 if (!_gadget) in net2280_wakeup() 1484 dev = container_of(_gadget, struct net2280, gadget); in net2280_wakeup() 1496 static int net2280_set_selfpowered(struct usb_gadget *_gadget, int value) in net2280_set_selfpowered() argument 1502 if (!_gadget) in net2280_set_selfpowered() 1504 dev = container_of(_gadget, struct net2280, gadget); in net2280_set_selfpowered() 1510 _gadget->is_selfpowered = 1; in net2280_set_selfpowered() [all …]
|
| H A D | r8a66597-udc.h | 117 #define gadget_to_r8a66597(_gadget) \ argument 118 container_of(_gadget, struct r8a66597, gadget)
|
| H A D | dummy_hcd.c | 847 static int dummy_g_get_frame(struct usb_gadget *_gadget) in dummy_g_get_frame() argument 855 static int dummy_wakeup(struct usb_gadget *_gadget) in dummy_wakeup() argument 859 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_wakeup() 878 static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value) in dummy_set_selfpowered() argument 882 _gadget->is_selfpowered = (value != 0); in dummy_set_selfpowered() 883 dum = gadget_to_dummy_hcd(_gadget)->dum; in dummy_set_selfpowered() 899 static int dummy_pullup(struct usb_gadget *_gadget, int value) in dummy_pullup() argument 905 dum = gadget_dev_to_dummy(&_gadget->dev); in dummy_pullup() 906 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_pullup() 932 static void dummy_udc_set_speed(struct usb_gadget *_gadget, in dummy_udc_set_speed() argument [all …]
|
| H A D | pxa25x_udc.c | 1116 static int pxa25x_udc_get_frame(struct usb_gadget *_gadget) in pxa25x_udc_get_frame() argument 1120 dev = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_get_frame() 1125 static int pxa25x_udc_wakeup(struct usb_gadget *_gadget) in pxa25x_udc_wakeup() argument 1129 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_wakeup() 1175 static int pxa25x_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in pxa25x_udc_vbus_session() argument 1179 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_vbus_session() 1187 static int pxa25x_udc_pullup(struct usb_gadget *_gadget, int is_active) in pxa25x_udc_pullup() argument 1191 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_pullup() 1206 static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa25x_udc_vbus_draw() argument 1210 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_vbus_draw()
|
| H A D | m66592-udc.h | 494 #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget) argument
|
| H A D | renesas_usb3.c | 376 #define gadget_to_renesas_usb3(_gadget) \ argument 377 container_of(_gadget, struct renesas_usb3, gadget) 2407 static int renesas_usb3_get_frame(struct usb_gadget *_gadget) in renesas_usb3_get_frame() argument
|
| H A D | m66592-udc.c | 1487 static int m66592_get_frame(struct usb_gadget *_gadget) in m66592_get_frame() argument 1489 struct m66592 *m66592 = gadget_to_m66592(_gadget); in m66592_get_frame()
|
| H A D | r8a66597-udc.c | 1766 static int r8a66597_get_frame(struct usb_gadget *_gadget) in r8a66597_get_frame() argument 1768 struct r8a66597 *r8a66597 = gadget_to_r8a66597(_gadget); in r8a66597_get_frame()
|
| H A D | goku_udc.c | 994 static int goku_get_frame(struct usb_gadget *_gadget) in goku_get_frame() argument
|
| /linux/drivers/usb/chipidea/ |
| H A D | udc.c | 1831 static int ci_udc_get_frame(struct usb_gadget *_gadget) in ci_udc_get_frame() argument 1833 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_get_frame() 1846 static void ci_hdrc_gadget_connect(struct usb_gadget *_gadget, int is_active) in ci_hdrc_gadget_connect() argument 1848 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_hdrc_gadget_connect() 1856 usb_gadget_set_state(_gadget, USB_STATE_POWERED); in ci_hdrc_gadget_connect() 1858 usb_udc_vbus_handler(_gadget, true); in ci_hdrc_gadget_connect() 1863 usb_udc_vbus_handler(_gadget, false); in ci_hdrc_gadget_connect() 1872 usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED); in ci_hdrc_gadget_connect() 1876 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session() argument 1878 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_session() [all …]
|
| /linux/drivers/usb/usbip/ |
| H A D | vudc_dev.c | 126 static int vgadget_get_frame(struct usb_gadget *_gadget) in vgadget_get_frame() argument 129 struct vudc *udc = usb_gadget_to_vudc(_gadget); in vgadget_get_frame() 137 static int vgadget_set_selfpowered(struct usb_gadget *_gadget, int value) in vgadget_set_selfpowered() argument 139 struct vudc *udc = usb_gadget_to_vudc(_gadget); in vgadget_set_selfpowered() 148 static int vgadget_pullup(struct usb_gadget *_gadget, int value) in vgadget_pullup() argument 150 struct vudc *udc = usb_gadget_to_vudc(_gadget); in vgadget_pullup()
|
| H A D | vudc.h | 134 struct usb_gadget *_gadget) in usb_gadget_to_vudc() argument 136 return container_of(_gadget, struct vudc, gadget); in usb_gadget_to_vudc()
|