/Linux-v4.19/drivers/usb/gadget/udc/ |
D | net2280.c | 1470 static int net2280_get_frame(struct usb_gadget *_gadget) in net2280_get_frame() argument 1476 if (!_gadget) in net2280_get_frame() 1478 dev = container_of(_gadget, struct net2280, gadget); in net2280_get_frame() 1485 static int net2280_wakeup(struct usb_gadget *_gadget) in net2280_wakeup() argument 1491 if (!_gadget) in net2280_wakeup() 1493 dev = container_of(_gadget, struct net2280, gadget); in net2280_wakeup() 1505 static int net2280_set_selfpowered(struct usb_gadget *_gadget, int value) in net2280_set_selfpowered() argument 1511 if (!_gadget) in net2280_set_selfpowered() 1513 dev = container_of(_gadget, struct net2280, gadget); in net2280_set_selfpowered() 1519 _gadget->is_selfpowered = 1; in net2280_set_selfpowered() [all …]
|
D | net2272.c | 1076 net2272_get_frame(struct usb_gadget *_gadget) in net2272_get_frame() argument 1082 if (!_gadget) in net2272_get_frame() 1084 dev = container_of(_gadget, struct net2272, gadget); in net2272_get_frame() 1095 net2272_wakeup(struct usb_gadget *_gadget) in net2272_wakeup() argument 1101 if (!_gadget) in net2272_wakeup() 1103 dev = container_of(_gadget, struct net2272, gadget); in net2272_wakeup() 1116 net2272_set_selfpowered(struct usb_gadget *_gadget, int value) in net2272_set_selfpowered() argument 1118 if (!_gadget) in net2272_set_selfpowered() 1121 _gadget->is_selfpowered = (value != 0); in net2272_set_selfpowered() 1127 net2272_pullup(struct usb_gadget *_gadget, int is_on) in net2272_pullup() argument [all …]
|
D | r8a66597-udc.h | 117 #define gadget_to_r8a66597(_gadget) \ argument 118 container_of(_gadget, struct r8a66597, gadget)
|
D | pxa27x_udc.c | 1443 static int pxa_udc_get_frame(struct usb_gadget *_gadget) in pxa_udc_get_frame() argument 1445 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_get_frame() 1456 static int pxa_udc_wakeup(struct usb_gadget *_gadget) in pxa_udc_wakeup() argument 1458 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_wakeup() 1521 static int pxa_udc_pullup(struct usb_gadget *_gadget, int is_active) in pxa_udc_pullup() argument 1523 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_pullup() 1547 static int pxa_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in pxa_udc_vbus_session() argument 1549 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_vbus_session() 1572 static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa_udc_vbus_draw() argument 1576 udc = to_gadget_udc(_gadget); in pxa_udc_vbus_draw()
|
D | pxa25x_udc.c | 1117 static int pxa25x_udc_get_frame(struct usb_gadget *_gadget) in pxa25x_udc_get_frame() argument 1121 dev = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_get_frame() 1126 static int pxa25x_udc_wakeup(struct usb_gadget *_gadget) in pxa25x_udc_wakeup() argument 1130 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_wakeup() 1176 static int pxa25x_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in pxa25x_udc_vbus_session() argument 1180 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_vbus_session() 1188 static int pxa25x_udc_pullup(struct usb_gadget *_gadget, int is_active) in pxa25x_udc_pullup() argument 1192 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_pullup() 1207 static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa25x_udc_vbus_draw() argument 1211 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_vbus_draw()
|
D | dummy_hcd.c | 852 static int dummy_g_get_frame(struct usb_gadget *_gadget) in dummy_g_get_frame() argument 860 static int dummy_wakeup(struct usb_gadget *_gadget) in dummy_wakeup() argument 864 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_wakeup() 883 static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value) in dummy_set_selfpowered() argument 887 _gadget->is_selfpowered = (value != 0); in dummy_set_selfpowered() 888 dum = gadget_to_dummy_hcd(_gadget)->dum; in dummy_set_selfpowered() 904 static int dummy_pullup(struct usb_gadget *_gadget, int value) in dummy_pullup() argument 910 dum = gadget_dev_to_dummy(&_gadget->dev); in dummy_pullup() 911 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_pullup() 922 static void dummy_udc_set_speed(struct usb_gadget *_gadget, in dummy_udc_set_speed() argument [all …]
|
D | gr_udc.c | 1843 static int gr_get_frame(struct usb_gadget *_gadget) in gr_get_frame() argument 1847 if (!_gadget) in gr_get_frame() 1849 dev = container_of(_gadget, struct gr_udc, gadget); in gr_get_frame() 1853 static int gr_wakeup(struct usb_gadget *_gadget) in gr_wakeup() argument 1857 if (!_gadget) in gr_wakeup() 1859 dev = container_of(_gadget, struct gr_udc, gadget); in gr_wakeup() 1875 static int gr_pullup(struct usb_gadget *_gadget, int is_on) in gr_pullup() argument 1880 if (!_gadget) in gr_pullup() 1882 dev = container_of(_gadget, struct gr_udc, gadget); in gr_pullup()
|
D | m66592-udc.h | 494 #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget) argument
|
D | s3c2410_udc.c | 1401 static int s3c2410_udc_get_frame(struct usb_gadget *_gadget) in s3c2410_udc_get_frame() argument 1415 static int s3c2410_udc_wakeup(struct usb_gadget *_gadget) in s3c2410_udc_wakeup() argument 1504 static int s3c2410_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in s3c2410_vbus_draw() argument
|
D | renesas_usb3.c | 363 #define gadget_to_renesas_usb3(_gadget) \ argument 364 container_of(_gadget, struct renesas_usb3, gadget) 2304 static int renesas_usb3_get_frame(struct usb_gadget *_gadget) in renesas_usb3_get_frame() argument
|
D | m66592-udc.c | 1488 static int m66592_get_frame(struct usb_gadget *_gadget) in m66592_get_frame() argument 1490 struct m66592 *m66592 = gadget_to_m66592(_gadget); in m66592_get_frame()
|
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()
|
D | fusb300_udc.c | 1331 static int fusb300_udc_pullup(struct usb_gadget *_gadget, int is_active) in fusb300_udc_pullup() argument
|
D | goku_udc.c | 989 static int goku_get_frame(struct usb_gadget *_gadget) in goku_get_frame() argument
|
/Linux-v4.19/drivers/usb/chipidea/ |
D | udc.c | 1514 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session() argument 1516 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_session() 1532 pm_runtime_get_sync(&_gadget->dev); in ci_udc_vbus_session() 1535 usb_gadget_set_state(_gadget, USB_STATE_POWERED); in ci_udc_vbus_session() 1536 usb_udc_vbus_handler(_gadget, true); in ci_udc_vbus_session() 1538 usb_udc_vbus_handler(_gadget, false); in ci_udc_vbus_session() 1546 pm_runtime_put_sync(&_gadget->dev); in ci_udc_vbus_session() 1547 usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED); in ci_udc_vbus_session() 1554 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup() argument 1556 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_wakeup() [all …]
|
/Linux-v4.19/drivers/usb/usbip/ |
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()
|
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()
|