Lines Matching full:deactivated
712 if (gadget->deactivated || !gadget->udc->allow_connect || !gadget->udc->started) { in usb_gadget_connect_locked()
714 * If the gadget isn't usable (because it is deactivated, in usb_gadget_connect_locked()
768 if (gadget->deactivated || !gadget->udc->started) { in usb_gadget_disconnect_locked()
770 * If gadget is deactivated we only save new state. in usb_gadget_disconnect_locked()
819 * @gadget: the peripheral being deactivated
836 if (gadget->deactivated) in usb_gadget_deactivate()
850 gadget->deactivated = true; in usb_gadget_deactivate()
864 * This routine activates gadget which was previously deactivated with
876 if (!gadget->deactivated) in usb_gadget_activate()
879 gadget->deactivated = false; in usb_gadget_activate()
883 * while it was being deactivated, we call usb_gadget_connect(). in usb_gadget_activate()