Lines Matching refs:device_state
491 unsigned int device_state;
1730 if ((xudc->device_state == USB_STATE_CONFIGURED) &&
1734 xudc->device_state = USB_STATE_ADDRESS;
1735 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
1822 if (xudc->device_state == USB_STATE_ADDRESS) {
1827 xudc->device_state = USB_STATE_CONFIGURED;
1828 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
1978 if (xudc->device_state == USB_STATE_SUSPENDED) {
1979 xudc->device_state = xudc->resume_state;
1980 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
2083 xudc->device_state = USB_STATE_DEFAULT;
2084 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
2268 (xudc->device_state == USB_STATE_DEFAULT))
2281 if ((xudc->device_state != USB_STATE_CONFIGURED) ||
2319 if (xudc->device_state != USB_STATE_CONFIGURED)
2345 if ((xudc->device_state == USB_STATE_DEFAULT) ||
2346 ((xudc->device_state == USB_STATE_ADDRESS) &&
2406 if ((xudc->device_state != USB_STATE_CONFIGURED) &&
2407 ((xudc->device_state != USB_STATE_ADDRESS) || (ep != 0)))
2438 if (xudc->device_state == USB_STATE_DEFAULT)
2478 if ((xudc->device_state == USB_STATE_DEFAULT) &&
2480 xudc->device_state = USB_STATE_ADDRESS;
2481 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
2482 } else if ((xudc->device_state == USB_STATE_ADDRESS) &&
2484 xudc->device_state = USB_STATE_DEFAULT;
2485 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
2503 if (xudc->device_state == USB_STATE_CONFIGURED)
2799 xudc->device_state = USB_STATE_DEFAULT;
2800 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
2859 xudc->device_state = USB_STATE_DEFAULT;
2860 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
2910 xudc->device_state = USB_STATE_NOTATTACHED;
2911 usb_gadget_set_state(&xudc->gadget, xudc->device_state);
2933 xudc->resume_state = xudc->device_state;
2934 xudc->device_state = USB_STATE_SUSPENDED;
2935 usb_gadget_set_state(&xudc->gadget, xudc->device_state);