Home
last modified time | relevance | path

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

/openbmc/linux/drivers/usb/gadget/udc/
H A Dnet2280.c1467 if (!_gadget) in net2280_get_frame()
1482 if (!_gadget) in net2280_wakeup()
1502 if (!_gadget) in net2280_set_selfpowered()
1510 _gadget->is_selfpowered = 1; in net2280_set_selfpowered()
1513 _gadget->is_selfpowered = 0; in net2280_set_selfpowered()
1527 if (!_gadget) in net2280_pullup()
1556 ep = gadget_find_ep_by_name(_gadget, "ep-e"); in net2280_match_ep()
1559 ep = gadget_find_ep_by_name(_gadget, "ep-f"); in net2280_match_ep()
1570 ep = gadget_find_ep_by_name(_gadget, "ep2in"); in net2280_match_ep()
1573 ep = gadget_find_ep_by_name(_gadget, "ep4in"); in net2280_match_ep()
[all …]
H A Dnet2272.c1077 net2272_get_frame(struct usb_gadget *_gadget) in net2272_get_frame() argument
1083 if (!_gadget) in net2272_get_frame()
1096 net2272_wakeup(struct usb_gadget *_gadget) in net2272_wakeup() argument
1102 if (!_gadget) in net2272_wakeup()
1119 if (!_gadget) in net2272_set_selfpowered()
1122 _gadget->is_selfpowered = (value != 0); in net2272_set_selfpowered()
1134 if (!_gadget) in net2272_pullup()
1151 static int net2272_start(struct usb_gadget *_gadget,
1153 static int net2272_stop(struct usb_gadget *_gadget);
1438 static int net2272_start(struct usb_gadget *_gadget, in net2272_start() argument
[all …]
H A Dr8a66597-udc.h117 #define gadget_to_r8a66597(_gadget) \ argument
118 container_of(_gadget, struct r8a66597, gadget)
H A Dpxa27x_udc.c1441 static int pxa_udc_get_frame(struct usb_gadget *_gadget) in pxa_udc_get_frame() argument
1443 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_get_frame()
1454 static int pxa_udc_wakeup(struct usb_gadget *_gadget) in pxa_udc_wakeup() argument
1456 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_wakeup()
1519 static int pxa_udc_pullup(struct usb_gadget *_gadget, int is_active) in pxa_udc_pullup() argument
1521 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_pullup()
1545 static int pxa_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in pxa_udc_vbus_session() argument
1547 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_vbus_session()
1570 static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa_udc_vbus_draw() argument
1574 udc = to_gadget_udc(_gadget); in pxa_udc_vbus_draw()
H A Ddummy_hcd.c843 static int dummy_g_get_frame(struct usb_gadget *_gadget) in dummy_g_get_frame() argument
851 static int dummy_wakeup(struct usb_gadget *_gadget) in dummy_wakeup() argument
855 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_wakeup()
878 _gadget->is_selfpowered = (value != 0); in dummy_set_selfpowered()
879 dum = gadget_to_dummy_hcd(_gadget)->dum; in dummy_set_selfpowered()
895 static int dummy_pullup(struct usb_gadget *_gadget, int value) in dummy_pullup() argument
901 dum = gadget_dev_to_dummy(&_gadget->dev); in dummy_pullup()
902 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_pullup()
928 static void dummy_udc_set_speed(struct usb_gadget *_gadget, in dummy_udc_set_speed() argument
933 dum = gadget_dev_to_dummy(&_gadget->dev); in dummy_udc_set_speed()
[all …]
H A Dpxa25x_udc.c1116 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 Dgr_udc.c1845 static int gr_get_frame(struct usb_gadget *_gadget) in gr_get_frame() argument
1849 if (!_gadget) in gr_get_frame()
1851 dev = container_of(_gadget, struct gr_udc, gadget); in gr_get_frame()
1855 static int gr_wakeup(struct usb_gadget *_gadget) in gr_wakeup() argument
1859 if (!_gadget) in gr_wakeup()
1861 dev = container_of(_gadget, struct gr_udc, gadget); in gr_wakeup()
1877 static int gr_pullup(struct usb_gadget *_gadget, int is_on) in gr_pullup() argument
1882 if (!_gadget) in gr_pullup()
1884 dev = container_of(_gadget, struct gr_udc, gadget); in gr_pullup()
H A Dm66592-udc.h494 #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget) argument
H A Drenesas_usb3.c376 #define gadget_to_renesas_usb3(_gadget) \ argument
377 container_of(_gadget, struct renesas_usb3, gadget)
2408 static int renesas_usb3_get_frame(struct usb_gadget *_gadget) in renesas_usb3_get_frame() argument
H A Dm66592-udc.c1487 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 Dr8a66597-udc.c1766 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 Dfusb300_udc.c1330 static int fusb300_udc_pullup(struct usb_gadget *_gadget, int is_active) in fusb300_udc_pullup() argument
H A Dgoku_udc.c994 static int goku_get_frame(struct usb_gadget *_gadget) in goku_get_frame() argument
/openbmc/linux/drivers/usb/usbip/
H A Dvudc.h134 struct usb_gadget *_gadget) in usb_gadget_to_vudc() argument
136 return container_of(_gadget, struct vudc, gadget); in usb_gadget_to_vudc()
H A Dvudc_dev.c126 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()
/openbmc/linux/drivers/usb/chipidea/
H A Dudc.c1658 static int ci_udc_get_frame(struct usb_gadget *_gadget) in ci_udc_get_frame() argument
1660 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_get_frame()
1675 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_hdrc_gadget_connect()
1683 usb_gadget_set_state(_gadget, USB_STATE_POWERED); in ci_hdrc_gadget_connect()
1685 usb_udc_vbus_handler(_gadget, true); in ci_hdrc_gadget_connect()
1690 usb_udc_vbus_handler(_gadget, false); in ci_hdrc_gadget_connect()
1699 usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED); in ci_hdrc_gadget_connect()
1729 ci_hdrc_gadget_connect(_gadget, is_active); in ci_udc_vbus_session()
1734 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup() argument
1775 _gadget->is_selfpowered = (is_on != 0); in ci_udc_selfpowered()
[all …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dfotg210.c733 static int fotg210_pullup(struct usb_gadget *_gadget, int is_on) in fotg210_pullup() argument
737 chip = container_of(_gadget, struct fotg210_chip, gadget); in fotg210_pullup()
746 static int fotg210_get_frame(struct usb_gadget *_gadget) in fotg210_get_frame() argument
751 chip = container_of(_gadget, struct fotg210_chip, gadget); in fotg210_get_frame()
H A Dpxa25x_udc.c1008 static int pxa25x_udc_get_frame(struct usb_gadget *_gadget) in pxa25x_udc_get_frame() argument
1014 static int pxa25x_udc_wakeup(struct usb_gadget *_gadget) in pxa25x_udc_wakeup() argument
1058 static int pxa25x_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in pxa25x_udc_vbus_session() argument
1062 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_vbus_session()
1069 static int pxa25x_udc_pullup(struct usb_gadget *_gadget, int is_active) in pxa25x_udc_pullup() argument
1073 udc = container_of(_gadget, struct pxa25x_udc, gadget); in pxa25x_udc_pullup()
1089 static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa25x_udc_vbus_draw() argument