Lines Matching refs:gadget
214 if (gadget_is_otg(c->cdev->gadget)) { in rndis_do_config()
256 if (gadget_is_otg(c->cdev->gadget)) { in eth_do_config()
271 } else if (can_support_ecm(c->cdev->gadget)) { in eth_do_config()
306 struct usb_gadget *gadget = cdev->gadget; in eth_bind() local
327 } else if (can_support_ecm(gadget)) { in eth_bind()
367 gether_set_gadget(net, cdev->gadget); in eth_bind()
374 else if (can_support_ecm(gadget)) in eth_bind()
402 if (gadget_is_otg(gadget) && !otg_desc[0]) { in eth_bind()
405 usb_desc = usb_otg_descriptor_alloc(gadget); in eth_bind()
410 usb_otg_descriptor_init(gadget, usb_desc); in eth_bind()
428 dev_info(&gadget->dev, "%s, version: " DRIVER_VERSION "\n", in eth_bind()
442 else if (can_support_ecm(gadget)) in eth_bind()
458 } else if (can_support_ecm(cdev->gadget)) { in eth_unbind()