Lines Matching refs:gadget
218 if (gadget_is_otg(c->cdev->gadget)) { in rndis_do_config()
260 if (gadget_is_otg(c->cdev->gadget)) { in eth_do_config()
275 } else if (can_support_ecm(c->cdev->gadget)) { in eth_do_config()
310 struct usb_gadget *gadget = cdev->gadget; in eth_bind() local
331 } else if (can_support_ecm(gadget)) { in eth_bind()
371 gether_set_gadget(net, cdev->gadget); in eth_bind()
378 else if (can_support_ecm(gadget)) in eth_bind()
406 if (gadget_is_otg(gadget) && !otg_desc[0]) { in eth_bind()
409 usb_desc = usb_otg_descriptor_alloc(gadget); in eth_bind()
412 usb_otg_descriptor_init(gadget, usb_desc); in eth_bind()
430 dev_info(&gadget->dev, "%s, version: " DRIVER_VERSION "\n", in eth_bind()
444 else if (can_support_ecm(gadget)) in eth_bind()
460 } else if (can_support_ecm(cdev->gadget)) { in eth_unbind()