Lines Matching defs:_gadget

1461 static int net2280_get_frame(struct usb_gadget *_gadget)
1467 if (!_gadget)
1469 dev = container_of(_gadget, struct net2280, gadget);
1476 static int net2280_wakeup(struct usb_gadget *_gadget)
1482 if (!_gadget)
1484 dev = container_of(_gadget, struct net2280, gadget);
1496 static int net2280_set_selfpowered(struct usb_gadget *_gadget, int value)
1502 if (!_gadget)
1504 dev = container_of(_gadget, struct net2280, gadget);
1510 _gadget->is_selfpowered = 1;
1513 _gadget->is_selfpowered = 0;
1521 static int net2280_pullup(struct usb_gadget *_gadget, int is_on)
1527 if (!_gadget)
1529 dev = container_of(_gadget, struct net2280, gadget);
1547 static struct usb_ep *net2280_match_ep(struct usb_gadget *_gadget,
1556 ep = gadget_find_ep_by_name(_gadget, "ep-e");
1557 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1559 ep = gadget_find_ep_by_name(_gadget, "ep-f");
1560 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1570 ep = gadget_find_ep_by_name(_gadget, "ep2in");
1571 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1573 ep = gadget_find_ep_by_name(_gadget, "ep4in");
1574 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1578 ep = gadget_find_ep_by_name(_gadget, "ep1out");
1579 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1581 ep = gadget_find_ep_by_name(_gadget, "ep3out");
1582 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1586 ep = gadget_find_ep_by_name(_gadget, "ep1in");
1587 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1589 ep = gadget_find_ep_by_name(_gadget, "ep3in");
1590 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1594 ep = gadget_find_ep_by_name(_gadget, "ep2out");
1595 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1597 ep = gadget_find_ep_by_name(_gadget, "ep4out");
1598 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1605 ep = gadget_find_ep_by_name(_gadget, name);
1606 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp))
1612 static int net2280_start(struct usb_gadget *_gadget,
1614 static int net2280_stop(struct usb_gadget *_gadget);
1615 static void net2280_async_callbacks(struct usb_gadget *_gadget, bool enable);
2405 static int net2280_start(struct usb_gadget *_gadget,
2420 dev = container_of(_gadget, struct net2280, gadget);
2480 static int net2280_stop(struct usb_gadget *_gadget)
2485 dev = container_of(_gadget, struct net2280, gadget);
2501 static void net2280_async_callbacks(struct usb_gadget *_gadget, bool enable)
2503 struct net2280 *dev = container_of(_gadget, struct net2280, gadget);