Home
last modified time | relevance | path

Searched refs:_gadget (Results 1 – 14 of 14) sorted by relevance

/linux-4.1.27/drivers/usb/chipidea/
Dudc.c1495 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session() argument
1497 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_session()
1509 pm_runtime_get_sync(&_gadget->dev); in ci_udc_vbus_session()
1512 usb_gadget_set_state(_gadget, USB_STATE_POWERED); in ci_udc_vbus_session()
1513 usb_udc_vbus_handler(_gadget, true); in ci_udc_vbus_session()
1515 usb_udc_vbus_handler(_gadget, false); in ci_udc_vbus_session()
1523 pm_runtime_put_sync(&_gadget->dev); in ci_udc_vbus_session()
1524 usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED); in ci_udc_vbus_session()
1531 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup() argument
1533 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_wakeup()
[all …]
/linux-4.1.27/drivers/usb/gadget/udc/
Dnet2272.c1093 net2272_get_frame(struct usb_gadget *_gadget) in net2272_get_frame() argument
1099 if (!_gadget) in net2272_get_frame()
1101 dev = container_of(_gadget, struct net2272, gadget); in net2272_get_frame()
1112 net2272_wakeup(struct usb_gadget *_gadget) in net2272_wakeup() argument
1118 if (!_gadget) in net2272_wakeup()
1120 dev = container_of(_gadget, struct net2272, gadget); in net2272_wakeup()
1133 net2272_set_selfpowered(struct usb_gadget *_gadget, int value) in net2272_set_selfpowered() argument
1135 if (!_gadget) in net2272_set_selfpowered()
1138 _gadget->is_selfpowered = (value != 0); in net2272_set_selfpowered()
1144 net2272_pullup(struct usb_gadget *_gadget, int is_on) in net2272_pullup() argument
[all …]
Dr8a66597-udc.h120 #define gadget_to_r8a66597(_gadget) \ argument
121 container_of(_gadget, struct r8a66597, gadget)
Dnet2280.c1398 static int net2280_get_frame(struct usb_gadget *_gadget) in net2280_get_frame() argument
1404 if (!_gadget) in net2280_get_frame()
1406 dev = container_of(_gadget, struct net2280, gadget); in net2280_get_frame()
1413 static int net2280_wakeup(struct usb_gadget *_gadget) in net2280_wakeup() argument
1419 if (!_gadget) in net2280_wakeup()
1421 dev = container_of(_gadget, struct net2280, gadget); in net2280_wakeup()
1433 static int net2280_set_selfpowered(struct usb_gadget *_gadget, int value) in net2280_set_selfpowered() argument
1439 if (!_gadget) in net2280_set_selfpowered()
1441 dev = container_of(_gadget, struct net2280, gadget); in net2280_set_selfpowered()
1447 _gadget->is_selfpowered = 1; in net2280_set_selfpowered()
[all …]
Dpxa27x_udc.c1516 static int pxa_udc_get_frame(struct usb_gadget *_gadget) in pxa_udc_get_frame() argument
1518 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_get_frame()
1529 static int pxa_udc_wakeup(struct usb_gadget *_gadget) in pxa_udc_wakeup() argument
1531 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_wakeup()
1594 static int pxa_udc_pullup(struct usb_gadget *_gadget, int is_active) in pxa_udc_pullup() argument
1596 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_pullup()
1623 static int pxa_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in pxa_udc_vbus_session() argument
1625 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_vbus_session()
1648 static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa_udc_vbus_draw() argument
1652 udc = to_gadget_udc(_gadget); in pxa_udc_vbus_draw()
Dpxa25x_udc.c906 static int pxa25x_udc_get_frame(struct usb_gadget *_gadget) in pxa25x_udc_get_frame() argument
911 static int pxa25x_udc_wakeup(struct usb_gadget *_gadget) in pxa25x_udc_wakeup() argument
957 static int pxa25x_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in pxa25x_udc_vbus_session() argument
961 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_vbus_session()
969 static int pxa25x_udc_pullup(struct usb_gadget *_gadget, int is_active) in pxa25x_udc_pullup() argument
973 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_pullup()
988 static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa25x_udc_vbus_draw() argument
992 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_vbus_draw()
Dgr_udc.c1864 static int gr_get_frame(struct usb_gadget *_gadget) in gr_get_frame() argument
1868 if (!_gadget) in gr_get_frame()
1870 dev = container_of(_gadget, struct gr_udc, gadget); in gr_get_frame()
1874 static int gr_wakeup(struct usb_gadget *_gadget) in gr_wakeup() argument
1878 if (!_gadget) in gr_wakeup()
1880 dev = container_of(_gadget, struct gr_udc, gadget); in gr_wakeup()
1896 static int gr_pullup(struct usb_gadget *_gadget, int is_on) in gr_pullup() argument
1901 if (!_gadget) in gr_pullup()
1903 dev = container_of(_gadget, struct gr_udc, gadget); in gr_pullup()
Dm66592-udc.h497 #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget) argument
Ddummy_hcd.c770 static int dummy_g_get_frame(struct usb_gadget *_gadget) in dummy_g_get_frame() argument
778 static int dummy_wakeup(struct usb_gadget *_gadget) in dummy_wakeup() argument
782 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_wakeup()
801 static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value) in dummy_set_selfpowered() argument
805 _gadget->is_selfpowered = (value != 0); in dummy_set_selfpowered()
806 dum = gadget_to_dummy_hcd(_gadget)->dum; in dummy_set_selfpowered()
822 static int dummy_pullup(struct usb_gadget *_gadget, int value) in dummy_pullup() argument
828 dum = gadget_dev_to_dummy(&_gadget->dev); in dummy_pullup()
845 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_pullup()
Ds3c2410_udc.c1408 static int s3c2410_udc_get_frame(struct usb_gadget *_gadget) in s3c2410_udc_get_frame() argument
1422 static int s3c2410_udc_wakeup(struct usb_gadget *_gadget) in s3c2410_udc_wakeup() argument
1511 static int s3c2410_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in s3c2410_vbus_draw() argument
Dm66592-udc.c1503 static int m66592_get_frame(struct usb_gadget *_gadget) in m66592_get_frame() argument
1505 struct m66592 *m66592 = gadget_to_m66592(_gadget); in m66592_get_frame()
Dr8a66597-udc.c1781 static int r8a66597_get_frame(struct usb_gadget *_gadget) in r8a66597_get_frame() argument
1783 struct r8a66597 *r8a66597 = gadget_to_r8a66597(_gadget); in r8a66597_get_frame()
Dfusb300_udc.c1334 static int fusb300_udc_pullup(struct usb_gadget *_gadget, int is_active) in fusb300_udc_pullup() argument
Dgoku_udc.c988 static int goku_get_frame(struct usb_gadget *_gadget) in goku_get_frame() argument