Lines Matching refs:_gadget

1461 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->is_selfpowered = 1; in net2280_set_selfpowered()
1513 _gadget->is_selfpowered = 0; in net2280_set_selfpowered()
1521 static int net2280_pullup(struct usb_gadget *_gadget, int is_on) in net2280_pullup() argument
1527 if (!_gadget) in net2280_pullup()
1529 dev = container_of(_gadget, struct net2280, gadget); in net2280_pullup()
1547 static struct usb_ep *net2280_match_ep(struct usb_gadget *_gadget, in net2280_match_ep() argument
1556 ep = gadget_find_ep_by_name(_gadget, "ep-e"); in net2280_match_ep()
1557 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1559 ep = gadget_find_ep_by_name(_gadget, "ep-f"); in net2280_match_ep()
1560 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1570 ep = gadget_find_ep_by_name(_gadget, "ep2in"); in net2280_match_ep()
1571 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1573 ep = gadget_find_ep_by_name(_gadget, "ep4in"); in net2280_match_ep()
1574 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1578 ep = gadget_find_ep_by_name(_gadget, "ep1out"); in net2280_match_ep()
1579 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1581 ep = gadget_find_ep_by_name(_gadget, "ep3out"); in net2280_match_ep()
1582 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1586 ep = gadget_find_ep_by_name(_gadget, "ep1in"); in net2280_match_ep()
1587 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1589 ep = gadget_find_ep_by_name(_gadget, "ep3in"); in net2280_match_ep()
1590 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1594 ep = gadget_find_ep_by_name(_gadget, "ep2out"); in net2280_match_ep()
1595 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1597 ep = gadget_find_ep_by_name(_gadget, "ep4out"); in net2280_match_ep()
1598 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
1605 ep = gadget_find_ep_by_name(_gadget, name); in net2280_match_ep()
1606 if (ep && usb_gadget_ep_match_desc(_gadget, ep, desc, ep_comp)) in net2280_match_ep()
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, in net2280_start() argument
2420 dev = container_of(_gadget, struct net2280, gadget); in net2280_start()
2481 static int net2280_stop(struct usb_gadget *_gadget) in net2280_stop() argument
2486 dev = container_of(_gadget, struct net2280, gadget); in net2280_stop()
2502 static void net2280_async_callbacks(struct usb_gadget *_gadget, bool enable) in net2280_async_callbacks() argument
2504 struct net2280 *dev = container_of(_gadget, struct net2280, gadget); in net2280_async_callbacks()