Lines Matching refs:gadget
535 if (!otg->gadget || !otg->gadget->dev.parent) in fsl_otg_start_gadget()
539 dev = otg->gadget->dev.parent; in fsl_otg_start_gadget()
606 struct usb_gadget *gadget) in fsl_otg_set_peripheral() argument
619 if (!gadget) { in fsl_otg_set_peripheral()
621 otg->gadget->ops->vbus_draw(otg->gadget, 0); in fsl_otg_set_peripheral()
622 usb_gadget_vbus_disconnect(otg->gadget); in fsl_otg_set_peripheral()
623 otg->gadget = 0; in fsl_otg_set_peripheral()
629 otg->gadget = gadget; in fsl_otg_set_peripheral()
630 otg->gadget->is_a_peripheral = !otg_dev->fsm.id; in fsl_otg_set_peripheral()
752 if (otg->gadget) in fsl_otg_isr()
753 otg->gadget->is_a_peripheral = !fsm->id; in fsl_otg_isr()