USB_STATE_NOTATTACHED
if (tp->udev->state == USB_STATE_NOTATTACHED)
bool unplugged = udev->state == USB_STATE_NOTATTACHED;
if (card->udev->state != USB_STATE_NOTATTACHED && !adapter->mfg_mode) {
if (priv->udev->state != USB_STATE_NOTATTACHED) {
if (rtwusb->udev->state != USB_STATE_NOTATTACHED)
usb_gadget_set_state(&priv_dev->gadget, USB_STATE_NOTATTACHED);
usb_gadget_set_state(&priv_dev->gadget, USB_STATE_NOTATTACHED);
if (pdev->gadget.state == USB_STATE_NOTATTACHED) {
usb_gadget_set_state(&pdev->gadget, USB_STATE_NOTATTACHED);
usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED);
[USB_STATE_NOTATTACHED] = "not attached",
if (dev->state == USB_STATE_NOTATTACHED)
ps->dev->state != USB_STATE_NOTATTACHED);
if (udev->state == USB_STATE_NOTATTACHED ||
if (udev->state == USB_STATE_NOTATTACHED)
if (udev->state == USB_STATE_NOTATTACHED ||
if (udev->state == USB_STATE_NOTATTACHED)
if (udev->state == USB_STATE_NOTATTACHED ||
if (udev->state == USB_STATE_NOTATTACHED) {
if (udev->state != USB_STATE_NOTATTACHED)
if (udev->state == USB_STATE_NOTATTACHED)
if (!driver->soft_unbind || udev->state == USB_STATE_NOTATTACHED)
if (udev->state != USB_STATE_NOTATTACHED &&
USB_STATE_NOTATTACHED);
USB_STATE_NOTATTACHED);
udev->state == USB_STATE_NOTATTACHED)) {
if (!udev || udev->state == USB_STATE_NOTATTACHED) {
usb_set_device_state(udev, USB_STATE_NOTATTACHED);
if (hdev->state == USB_STATE_NOTATTACHED)
if (udev->state == USB_STATE_NOTATTACHED || !udev->parent)
update_usb_device_state(udev, USB_STATE_NOTATTACHED);
if (udev->state == USB_STATE_NOTATTACHED)
else if (new_state != USB_STATE_NOTATTACHED) {
usb_set_device_state(udev, USB_STATE_NOTATTACHED);
usb_set_device_state(udev, USB_STATE_NOTATTACHED);
usb_set_device_state(udev, USB_STATE_NOTATTACHED);
usb_set_device_state(port_dev->child, USB_STATE_NOTATTACHED);
if (hdev->state == USB_STATE_NOTATTACHED)
udev->state != USB_STATE_NOTATTACHED) {
|| udev->state == USB_STATE_NOTATTACHED) {
if (hdev->state == USB_STATE_NOTATTACHED) {
if (udev->state == USB_STATE_NOTATTACHED ||
if (udev->state == USB_STATE_NOTATTACHED) {
if (udev->state != USB_STATE_NOTATTACHED) {
if (udev->state == USB_STATE_NOTATTACHED)
if (udev->state == USB_STATE_NOTATTACHED)
usb_gadget_set_state(&hsotg->gadget, USB_STATE_NOTATTACHED);
usb_gadget_set_state(dwc->gadget, USB_STATE_NOTATTACHED);
usb_gadget_set_state(dwc->gadget, USB_STATE_NOTATTACHED);
usb_gadget_set_state(&udc->gadget, USB_STATE_NOTATTACHED);
usb_gadget_set_state(&bdc->gadget, USB_STATE_NOTATTACHED);
usb_gadget_set_state(&bdc->gadget, USB_STATE_NOTATTACHED);
if (pdev->gadget.state == USB_STATE_NOTATTACHED) {
usb_gadget_set_state(&pdev->gadget, USB_STATE_NOTATTACHED);
usb_gadget_set_state(gadget, USB_STATE_NOTATTACHED);
udc->resume_state = USB_STATE_NOTATTACHED;
udc->resume_state = USB_STATE_NOTATTACHED;
int powstate = !(dev->gadget.state == USB_STATE_NOTATTACHED ||
usb_gadget_set_state(&dev->gadget, USB_STATE_NOTATTACHED);
? USB_STATE_POWERED : USB_STATE_NOTATTACHED);
usb3->gadget.state != USB_STATE_NOTATTACHED) {
USB_STATE_NOTATTACHED);
xudc->device_state = USB_STATE_NOTATTACHED;
info->devices[port].status = USB_STATE_NOTATTACHED;
if (info->devices[port].status != USB_STATE_NOTATTACHED)
if (info->devices[port].status != USB_STATE_NOTATTACHED)
if (info->devices[port].status != USB_STATE_NOTATTACHED)
if (info->devices[port].status != USB_STATE_NOTATTACHED)
USB_STATE_NOTATTACHED) {
usb_gadget_set_state(&mtu->g, USB_STATE_NOTATTACHED);
usb_gadget_set_state(g, USB_STATE_NOTATTACHED);
usb_gadget_set_state(&musb->g, USB_STATE_NOTATTACHED);
if (!port || port->serial->dev->state == USB_STATE_NOTATTACHED)
if (port->serial->dev->state == USB_STATE_NOTATTACHED)
if (us->pusb_dev->state == USB_STATE_NOTATTACHED) {