Home
last modified time | relevance | path

Searched refs:_gadget (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/usb/gadget/udc/
H A Dnet2280.c1461 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 in net2280_set_selfpowered()
1521 net2280_pullup(struct usb_gadget *_gadget, int is_on) net2280_pullup() argument
1547 net2280_match_ep(struct usb_gadget *_gadget, struct usb_endpoint_descriptor *desc, struct usb_ss_ep_comp_descriptor *ep_comp) net2280_match_ep() argument
2405 net2280_start(struct usb_gadget *_gadget, struct usb_gadget_driver *driver) net2280_start() argument
2480 net2280_stop(struct usb_gadget *_gadget) net2280_stop() argument
2501 net2280_async_callbacks(struct usb_gadget *_gadget, bool enable) net2280_async_callbacks() argument
[all...]
H A Dnet2272.c1077 net2272_get_frame(struct usb_gadget *_gadget) in net2272_get_frame() argument
1083 if (!_gadget) in net2272_get_frame()
1085 dev = container_of(_gadget, struct net2272, gadget); in net2272_get_frame()
1096 net2272_wakeup(struct usb_gadget *_gadget) in net2272_wakeup() argument
1102 if (!_gadget) in net2272_wakeup()
1104 dev = container_of(_gadget, struct net2272, gadget); in net2272_wakeup()
1117 net2272_set_selfpowered(struct usb_gadget *_gadget, int value) in net2272_set_selfpowered() argument
1119 if (!_gadget) in net2272_set_selfpowered()
1122 _gadget->is_selfpowered = (value != 0); in net2272_set_selfpowered()
1128 net2272_pullup(struct usb_gadget *_gadget, in argument
1438 net2272_start(struct usb_gadget *_gadget, struct usb_gadget_driver *driver) net2272_start() argument
1490 net2272_stop(struct usb_gadget *_gadget) net2272_stop() argument
1506 net2272_async_callbacks(struct usb_gadget *_gadget, bool enable) net2272_async_callbacks() argument
[all...]
H A Dr8a66597-udc.h117 #define gadget_to_r8a66597(_gadget) \
118 container_of(_gadget, struct r8a66597, gadget)
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()
874 static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value) in dummy_set_selfpowered() argument
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
938 dummy_udc_async_callbacks(struct usb_gadget *_gadget, bool enable) dummy_udc_async_callbacks() argument
[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, struc in pxa25x_udc_vbus_draw()
[all...]
H A Dpxa27x_udc.c1439 * @_gadget: usb gadget
1441 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()
1450 * @_gadget: usb gadget
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()
1512 * @_gadget: usb gadget using the control
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()
1537 * @_gadget
1545 pxa_udc_vbus_session(struct usb_gadget *_gadget, int is_active) pxa_udc_vbus_session() argument
1570 pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) pxa_udc_vbus_draw() argument
[all...]
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)
H A Drenesas_usb3.c376 #define gadget_to_renesas_usb3(_gadget) \
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
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
H A Dnet2280.c1466 static int net2280_get_frame(struct usb_gadget *_gadget) in net2280_get_frame() argument
1472 if (!_gadget) in net2280_get_frame()
1474 dev = container_of(_gadget, struct net2280, gadget); in net2280_get_frame()
1481 static int net2280_wakeup(struct usb_gadget *_gadget) in net2280_wakeup() argument
1487 if (!_gadget) in net2280_wakeup()
1489 dev = container_of(_gadget, struct net2280, gadget); in net2280_wakeup()
1501 static int net2280_set_selfpowered(struct usb_gadget *_gadget, int value) in net2280_set_selfpowered() argument
1507 if (!_gadget) in net2280_set_selfpowered()
1509 dev = container_of(_gadget, struct net2280, gadget); in net2280_set_selfpowered()
1515 _gadget in net2280_set_selfpowered()
1526 net2280_pullup(struct usb_gadget *_gadget, int is_on) net2280_pullup() argument
1552 net2280_match_ep(struct usb_gadget *_gadget, struct usb_endpoint_descriptor *desc, struct usb_ss_ep_comp_descriptor *ep_comp) net2280_match_ep() argument
2408 net2280_start(struct usb_gadget *_gadget, struct usb_gadget_driver *driver) net2280_start() argument
2484 net2280_stop(struct usb_gadget *_gadget) net2280_stop() argument
[all...]
H A Dnet2272.c1075 net2272_get_frame(struct usb_gadget *_gadget) in net2272_get_frame() argument
1081 if (!_gadget) in net2272_get_frame()
1083 dev = container_of(_gadget, struct net2272, gadget); in net2272_get_frame()
1094 net2272_wakeup(struct usb_gadget *_gadget) in net2272_wakeup() argument
1100 if (!_gadget) in net2272_wakeup()
1102 dev = container_of(_gadget, struct net2272, gadget); in net2272_wakeup()
1115 net2272_set_selfpowered(struct usb_gadget *_gadget, int value) in net2272_set_selfpowered() argument
1117 if (!_gadget) in net2272_set_selfpowered()
1120 _gadget->is_selfpowered = (value != 0); in net2272_set_selfpowered()
1126 net2272_pullup(struct usb_gadget *_gadget, in argument
1434 net2272_start(struct usb_gadget *_gadget, struct usb_gadget_driver *driver) net2272_start() argument
1487 net2272_stop(struct usb_gadget *_gadget) net2272_stop() argument
[all...]
H A Dr8a66597-udc.h117 #define gadget_to_r8a66597(_gadget) \
118 container_of(_gadget, struct r8a66597, gadget)
H A Dpxa25x_udc.c1117 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, struc in pxa25x_udc_vbus_draw()
[all...]
H A Dpxa27x_udc.c1440 * @_gadget: usb gadget
1442 static int pxa_udc_get_frame(struct usb_gadget *_gadget) in pxa_udc_get_frame() argument
1444 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_get_frame()
1451 * @_gadget: usb gadget
1455 static int pxa_udc_wakeup(struct usb_gadget *_gadget) in pxa_udc_wakeup() argument
1457 struct pxa_udc *udc = to_gadget_udc(_gadget); in pxa_udc_wakeup()
1513 * @_gadget: usb gadget using the control
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()
1537 * @_gadget
1545 pxa_udc_vbus_session(struct usb_gadget *_gadget, int is_active) pxa_udc_vbus_session() argument
1570 pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) pxa_udc_vbus_draw() argument
[all...]
H A Dgr_udc.c1843 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()
H A Ddummy_hcd.c840 static int dummy_g_get_frame(struct usb_gadget *_gadget) in dummy_g_get_frame() argument
848 static int dummy_wakeup(struct usb_gadget *_gadget) in dummy_wakeup() argument
852 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_wakeup()
871 static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value) in dummy_set_selfpowered() argument
875 _gadget->is_selfpowered = (value != 0); in dummy_set_selfpowered()
876 dum = gadget_to_dummy_hcd(_gadget)->dum; in dummy_set_selfpowered()
892 static int dummy_pullup(struct usb_gadget *_gadget, int value) in dummy_pullup() argument
898 dum = gadget_dev_to_dummy(&_gadget->dev); in dummy_pullup()
899 dum_hcd = gadget_to_dummy_hcd(_gadget); in dummy_pullup()
925 static void dummy_udc_set_speed(struct usb_gadget *_gadget, in dummy_udc_set_speed() argument
[all...]
H A Dm66592-udc.h494 #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget)
H A Ds3c2410_udc.c1376 static int s3c2410_udc_get_frame(struct usb_gadget *_gadget) in s3c2410_udc_get_frame() argument
1390 static int s3c2410_udc_wakeup(struct usb_gadget *_gadget) in s3c2410_udc_wakeup() argument
1479 static int s3c2410_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in s3c2410_vbus_draw() argument
H A Drenesas_usb3.c368 #define gadget_to_renesas_usb3(_gadget) \
369 container_of(_gadget, struct renesas_usb3, gadget)
2330 static int renesas_usb3_get_frame(struct usb_gadget *_gadget) in renesas_usb3_get_frame() argument
/kernel/linux/linux-6.6/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()
1673 static void ci_hdrc_gadget_connect(struct usb_gadget *_gadget, int is_active) in ci_hdrc_gadget_connect() argument
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()
1703 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session() argument
1705 struct ci_hdrc *ci = container_of(_gadget, struc in ci_udc_vbus_session()
1734 ci_udc_wakeup(struct usb_gadget *_gadget) ci_udc_wakeup() argument
1759 ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) ci_udc_vbus_draw() argument
1768 ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) ci_udc_selfpowered() argument
1784 ci_udc_pullup(struct usb_gadget *_gadget, int is_on) ci_udc_pullup() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
H A Dudc.c1646 static void ci_hdrc_gadget_connect(struct usb_gadget *_gadget, int is_active) in ci_hdrc_gadget_connect() argument
1648 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_hdrc_gadget_connect()
1656 usb_gadget_set_state(_gadget, USB_STATE_POWERED); in ci_hdrc_gadget_connect()
1658 usb_udc_vbus_handler(_gadget, true); in ci_hdrc_gadget_connect()
1663 usb_udc_vbus_handler(_gadget, false); in ci_hdrc_gadget_connect()
1672 usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED); in ci_hdrc_gadget_connect()
1676 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session() argument
1678 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_session()
1695 ci_hdrc_gadget_connect(_gadget, is_active); in ci_udc_vbus_session()
1700 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup() argument
1725 ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) ci_udc_vbus_draw() argument
1734 ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) ci_udc_selfpowered() argument
1750 ci_udc_pullup(struct usb_gadget *_gadget, int is_on) ci_udc_pullup() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/usbip/
H A Dvudc.h134 struct usb_gadget *_gadget) in usb_gadget_to_vudc()
136 return container_of(_gadget, struct vudc, gadget); in usb_gadget_to_vudc()
133 usb_gadget_to_vudc( struct usb_gadget *_gadget) usb_gadget_to_vudc() argument
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()
/kernel/linux/linux-6.6/drivers/usb/usbip/
H A Dvudc.h134 struct usb_gadget *_gadget) in usb_gadget_to_vudc()
136 return container_of(_gadget, struct vudc, gadget); in usb_gadget_to_vudc()
133 usb_gadget_to_vudc( struct usb_gadget *_gadget) usb_gadget_to_vudc() argument
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()

Completed in 49 milliseconds

12