Lines Matching defs:state
56 enum usb_device_state state = pdev->gadget.state;
62 switch (state) {
64 trace_cdnsp_ep0_set_config("from Address state");
67 trace_cdnsp_ep0_set_config("from Configured state");
70 dev_err(pdev->dev, "Set Configuration - bad device state\n");
87 enum usb_device_state state = pdev->gadget.state;
102 if (state == USB_STATE_CONFIGURED) {
206 enum usb_device_state state;
210 state = pdev->gadget.state;
219 if (state != USB_STATE_CONFIGURED || speed < USB_SPEED_SUPER)
226 if (state != USB_STATE_CONFIGURED || speed < USB_SPEED_SUPER)
235 if (state != USB_STATE_CONFIGURED || speed > USB_SPEED_HIGH)
344 enum usb_device_state state = pdev->gadget.state;
347 if (state == USB_STATE_DEFAULT)
425 if (pdev->gadget.state == USB_STATE_NOTATTACHED) {
426 dev_err(pdev->dev, "ERR: Setup detected in unattached state\n");
430 /* Restore the ep0 to Stopped/Running state. */
432 trace_cdnsp_ep0_halted("Restore to normal state");