_gadget 1527 drivers/usb/chipidea/udc.c static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) _gadget 1529 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); _gadget 1545 drivers/usb/chipidea/udc.c pm_runtime_get_sync(&_gadget->dev); _gadget 1548 drivers/usb/chipidea/udc.c usb_gadget_set_state(_gadget, USB_STATE_POWERED); _gadget 1549 drivers/usb/chipidea/udc.c usb_udc_vbus_handler(_gadget, true); _gadget 1551 drivers/usb/chipidea/udc.c usb_udc_vbus_handler(_gadget, false); _gadget 1559 drivers/usb/chipidea/udc.c pm_runtime_put_sync(&_gadget->dev); _gadget 1560 drivers/usb/chipidea/udc.c usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED); _gadget 1567 drivers/usb/chipidea/udc.c static int ci_udc_wakeup(struct usb_gadget *_gadget) _gadget 1569 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); _gadget 1592 drivers/usb/chipidea/udc.c static int ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) _gadget 1594 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); _gadget 1601 drivers/usb/chipidea/udc.c static int ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) _gadget 1603 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); _gadget 1608 drivers/usb/chipidea/udc.c _gadget->is_selfpowered = (is_on != 0); _gadget 1617 drivers/usb/chipidea/udc.c static int ci_udc_pullup(struct usb_gadget *_gadget, int is_on) _gadget 1619 drivers/usb/chipidea/udc.c struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); _gadget 839 drivers/usb/gadget/udc/dummy_hcd.c static int dummy_g_get_frame(struct usb_gadget *_gadget) _gadget 847 drivers/usb/gadget/udc/dummy_hcd.c static int dummy_wakeup(struct usb_gadget *_gadget) _gadget 851 drivers/usb/gadget/udc/dummy_hcd.c dum_hcd = gadget_to_dummy_hcd(_gadget); _gadget 870 drivers/usb/gadget/udc/dummy_hcd.c static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value) _gadget 874 drivers/usb/gadget/udc/dummy_hcd.c _gadget->is_selfpowered = (value != 0); _gadget 875 drivers/usb/gadget/udc/dummy_hcd.c dum = gadget_to_dummy_hcd(_gadget)->dum; _gadget 891 drivers/usb/gadget/udc/dummy_hcd.c static int dummy_pullup(struct usb_gadget *_gadget, int value) _gadget 897 drivers/usb/gadget/udc/dummy_hcd.c dum = gadget_dev_to_dummy(&_gadget->dev); _gadget 898 drivers/usb/gadget/udc/dummy_hcd.c dum_hcd = gadget_to_dummy_hcd(_gadget); _gadget 909 drivers/usb/gadget/udc/dummy_hcd.c static void dummy_udc_set_speed(struct usb_gadget *_gadget, _gadget 914 drivers/usb/gadget/udc/dummy_hcd.c dum = gadget_dev_to_dummy(&_gadget->dev); _gadget 1331 drivers/usb/gadget/udc/fusb300_udc.c static int fusb300_udc_pullup(struct usb_gadget *_gadget, int is_active) _gadget 989 drivers/usb/gadget/udc/goku_udc.c static int goku_get_frame(struct usb_gadget *_gadget) _gadget 1843 drivers/usb/gadget/udc/gr_udc.c static int gr_get_frame(struct usb_gadget *_gadget) _gadget 1847 drivers/usb/gadget/udc/gr_udc.c if (!_gadget) _gadget 1849 drivers/usb/gadget/udc/gr_udc.c dev = container_of(_gadget, struct gr_udc, gadget); _gadget 1853 drivers/usb/gadget/udc/gr_udc.c static int gr_wakeup(struct usb_gadget *_gadget) _gadget 1857 drivers/usb/gadget/udc/gr_udc.c if (!_gadget) _gadget 1859 drivers/usb/gadget/udc/gr_udc.c dev = container_of(_gadget, struct gr_udc, gadget); _gadget 1875 drivers/usb/gadget/udc/gr_udc.c static int gr_pullup(struct usb_gadget *_gadget, int is_on) _gadget 1880 drivers/usb/gadget/udc/gr_udc.c if (!_gadget) _gadget 1882 drivers/usb/gadget/udc/gr_udc.c dev = container_of(_gadget, struct gr_udc, gadget); _gadget 1488 drivers/usb/gadget/udc/m66592-udc.c static int m66592_get_frame(struct usb_gadget *_gadget) _gadget 1490 drivers/usb/gadget/udc/m66592-udc.c struct m66592 *m66592 = gadget_to_m66592(_gadget); _gadget 494 drivers/usb/gadget/udc/m66592-udc.h #define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget) _gadget 1076 drivers/usb/gadget/udc/net2272.c net2272_get_frame(struct usb_gadget *_gadget) _gadget 1082 drivers/usb/gadget/udc/net2272.c if (!_gadget) _gadget 1084 drivers/usb/gadget/udc/net2272.c dev = container_of(_gadget, struct net2272, gadget); _gadget 1095 drivers/usb/gadget/udc/net2272.c net2272_wakeup(struct usb_gadget *_gadget) _gadget 1101 drivers/usb/gadget/udc/net2272.c if (!_gadget) _gadget 1103 drivers/usb/gadget/udc/net2272.c dev = container_of(_gadget, struct net2272, gadget); _gadget 1116 drivers/usb/gadget/udc/net2272.c net2272_set_selfpowered(struct usb_gadget *_gadget, int value) _gadget 1118 drivers/usb/gadget/udc/net2272.c if (!_gadget) _gadget 1121 drivers/usb/gadget/udc/net2272.c _gadget->is_selfpowered = (value != 0); _gadget 1127 drivers/usb/gadget/udc/net2272.c net2272_pullup(struct usb_gadget *_gadget, int is_on) _gadget 1133 drivers/usb/gadget/udc/net2272.c if (!_gadget) _gadget 1135 drivers/usb/gadget/udc/net2272.c dev = container_of(_gadget, struct net2272, gadget); _gadget 1150 drivers/usb/gadget/udc/net2272.c static int net2272_start(struct usb_gadget *_gadget, _gadget 1152 drivers/usb/gadget/udc/net2272.c static int net2272_stop(struct usb_gadget *_gadget); _gadget 1435 drivers/usb/gadget/udc/net2272.c static int net2272_start(struct usb_gadget *_gadget, _gadget 1445 drivers/usb/gadget/udc/net2272.c dev = container_of(_gadget, struct net2272, gadget); _gadget 1488 drivers/usb/gadget/udc/net2272.c static int net2272_stop(struct usb_gadget *_gadget) _gadget 1493 drivers/usb/gadget/udc/net2272.c dev = container_of(_gadget, struct net2272, gadget); _gadget 1467 drivers/usb/gadget/udc/net2280.c static int net2280_get_frame(struct usb_gadget *_gadget) _gadget 1473 drivers/usb/gadget/udc/net2280.c if (!_gadget) _gadget 1475 drivers/usb/gadget/udc/net2280.c dev = container_of(_gadget, struct net2280, gadget); _gadget 1482 drivers/usb/gadget/udc/net2280.c static int net2280_wakeup(struct usb_gadget *_gadget) _gadget 1488 drivers/usb/gadget/udc/net2280.c if (!_gadget) _gadget 1490 drivers/usb/gadget/udc/net2280.c dev = container_of(_gadget, struct net2280, gadget); _gadget 1502 drivers/usb/gadget/udc/net2280.c static int net2280_set_selfpowered(struct usb_gadget *_gadget, int value) _gadget 1508 drivers/usb/gadget/udc/net2280.c if (!_gadget) _gadget 1510 drivers/usb/gadget/udc/net2280.c dev = container_of(_gadget, struct net2280, gadget); _gadget 1516 drivers/usb/gadget/udc/net2280.c _gadget->is_selfpowered = 1; _gadget 1519 drivers/usb/gadget/udc/net2280.c _gadget->is_selfpowered = 0; _gadget 1527 drivers/usb/gadget/udc/net2280.c static int net2280_pullup(struct usb_gadget *_gadget, int is_on) _gadget 1533 drivers/usb/gadget/udc/net2280.c if (!_gadget) _gadget 1535 drivers/usb/gadget/udc/net2280.c dev = container_of(_gadget, struct net2280, gadget); _gadget 1553 drivers/usb/gadget/udc/net2280.c static struct usb_ep *net2280_match_ep(struct usb_gadget *_gadget, _gadget 1562 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep-e"); _gadget 1563 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1565 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep-f"); _gadget 1566 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1576 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep2in"); _gadget 1577 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1579 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep4in"); _gadget 1580 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1584 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep1out"); _gadget 1585 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1587 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep3out"); _gadget 1588 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1592 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep1in"); _gadget 1593 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1595 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep3in"); _gadget 1596 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1600 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep2out"); _gadget 1601 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1603 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, "ep4out"); _gadget 1604 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1611 drivers/usb/gadget/udc/net2280.c ep = gadget_find_ep_by_name(_gadget, name); _gadget 1612 drivers/usb/gadget/udc/net2280.c if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) _gadget 1618 drivers/usb/gadget/udc/net2280.c static int net2280_start(struct usb_gadget *_gadget, _gadget 1620 drivers/usb/gadget/udc/net2280.c static int net2280_stop(struct usb_gadget *_gadget); _gadget 2409 drivers/usb/gadget/udc/net2280.c static int net2280_start(struct usb_gadget *_gadget, _gadget 2424 drivers/usb/gadget/udc/net2280.c dev = container_of(_gadget, struct net2280, gadget); _gadget 2485 drivers/usb/gadget/udc/net2280.c static int net2280_stop(struct usb_gadget *_gadget) _gadget 2490 drivers/usb/gadget/udc/net2280.c dev = container_of(_gadget, struct net2280, gadget); _gadget 1117 drivers/usb/gadget/udc/pxa25x_udc.c static int pxa25x_udc_get_frame(struct usb_gadget *_gadget) _gadget 1121 drivers/usb/gadget/udc/pxa25x_udc.c dev = container_of(_gadget, struct pxa25x_udc, gadget); _gadget 1126 drivers/usb/gadget/udc/pxa25x_udc.c static int pxa25x_udc_wakeup(struct usb_gadget *_gadget) _gadget 1130 drivers/usb/gadget/udc/pxa25x_udc.c udc = container_of(_gadget, struct pxa25x_udc, gadget); _gadget 1176 drivers/usb/gadget/udc/pxa25x_udc.c static int pxa25x_udc_vbus_session(struct usb_gadget *_gadget, int is_active) _gadget 1180 drivers/usb/gadget/udc/pxa25x_udc.c udc = container_of(_gadget, struct pxa25x_udc, gadget); _gadget 1188 drivers/usb/gadget/udc/pxa25x_udc.c static int pxa25x_udc_pullup(struct usb_gadget *_gadget, int is_active) _gadget 1192 drivers/usb/gadget/udc/pxa25x_udc.c udc = container_of(_gadget, struct pxa25x_udc, gadget); _gadget 1207 drivers/usb/gadget/udc/pxa25x_udc.c static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) _gadget 1211 drivers/usb/gadget/udc/pxa25x_udc.c udc = container_of(_gadget, struct pxa25x_udc, gadget); _gadget 1443 drivers/usb/gadget/udc/pxa27x_udc.c static int pxa_udc_get_frame(struct usb_gadget *_gadget) _gadget 1445 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_udc *udc = to_gadget_udc(_gadget); _gadget 1456 drivers/usb/gadget/udc/pxa27x_udc.c static int pxa_udc_wakeup(struct usb_gadget *_gadget) _gadget 1458 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_udc *udc = to_gadget_udc(_gadget); _gadget 1521 drivers/usb/gadget/udc/pxa27x_udc.c static int pxa_udc_pullup(struct usb_gadget *_gadget, int is_active) _gadget 1523 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_udc *udc = to_gadget_udc(_gadget); _gadget 1547 drivers/usb/gadget/udc/pxa27x_udc.c static int pxa_udc_vbus_session(struct usb_gadget *_gadget, int is_active) _gadget 1549 drivers/usb/gadget/udc/pxa27x_udc.c struct pxa_udc *udc = to_gadget_udc(_gadget); _gadget 1572 drivers/usb/gadget/udc/pxa27x_udc.c static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) _gadget 1576 drivers/usb/gadget/udc/pxa27x_udc.c udc = to_gadget_udc(_gadget); _gadget 1766 drivers/usb/gadget/udc/r8a66597-udc.c static int r8a66597_get_frame(struct usb_gadget *_gadget) _gadget 1768 drivers/usb/gadget/udc/r8a66597-udc.c struct r8a66597 *r8a66597 = gadget_to_r8a66597(_gadget); _gadget 117 drivers/usb/gadget/udc/r8a66597-udc.h #define gadget_to_r8a66597(_gadget) \ _gadget 118 drivers/usb/gadget/udc/r8a66597-udc.h container_of(_gadget, struct r8a66597, gadget) _gadget 368 drivers/usb/gadget/udc/renesas_usb3.c #define gadget_to_renesas_usb3(_gadget) \ _gadget 369 drivers/usb/gadget/udc/renesas_usb3.c container_of(_gadget, struct renesas_usb3, gadget) _gadget 2314 drivers/usb/gadget/udc/renesas_usb3.c static int renesas_usb3_get_frame(struct usb_gadget *_gadget) _gadget 1390 drivers/usb/gadget/udc/s3c2410_udc.c static int s3c2410_udc_get_frame(struct usb_gadget *_gadget) _gadget 1404 drivers/usb/gadget/udc/s3c2410_udc.c static int s3c2410_udc_wakeup(struct usb_gadget *_gadget) _gadget 1493 drivers/usb/gadget/udc/s3c2410_udc.c static int s3c2410_vbus_draw(struct usb_gadget *_gadget, unsigned ma) _gadget 134 drivers/usb/usbip/vudc.h struct usb_gadget *_gadget) _gadget 136 drivers/usb/usbip/vudc.h return container_of(_gadget, struct vudc, gadget); _gadget 126 drivers/usb/usbip/vudc_dev.c static int vgadget_get_frame(struct usb_gadget *_gadget) _gadget 129 drivers/usb/usbip/vudc_dev.c struct vudc *udc = usb_gadget_to_vudc(_gadget); _gadget 137 drivers/usb/usbip/vudc_dev.c static int vgadget_set_selfpowered(struct usb_gadget *_gadget, int value) _gadget 139 drivers/usb/usbip/vudc_dev.c struct vudc *udc = usb_gadget_to_vudc(_gadget); _gadget 148 drivers/usb/usbip/vudc_dev.c static int vgadget_pullup(struct usb_gadget *_gadget, int value) _gadget 150 drivers/usb/usbip/vudc_dev.c struct vudc *udc = usb_gadget_to_vudc(_gadget);