Lines Matching refs:device_state
491 unsigned int device_state; member
1736 if ((xudc->device_state == USB_STATE_CONFIGURED) && in __tegra_xudc_ep_disable()
1740 xudc->device_state = USB_STATE_ADDRESS; in __tegra_xudc_ep_disable()
1741 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_disable()
1828 if (xudc->device_state == USB_STATE_ADDRESS) { in __tegra_xudc_ep_enable()
1833 xudc->device_state = USB_STATE_CONFIGURED; in __tegra_xudc_ep_enable()
1834 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_enable()
1984 if (xudc->device_state == USB_STATE_SUSPENDED) { in tegra_xudc_resume_device_state()
1985 xudc->device_state = xudc->resume_state; in tegra_xudc_resume_device_state()
1986 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_resume_device_state()
2089 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_gadget_start()
2090 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_gadget_start()
2274 (xudc->device_state == USB_STATE_DEFAULT)) in tegra_xudc_ep0_set_feature()
2287 if ((xudc->device_state != USB_STATE_CONFIGURED) || in tegra_xudc_ep0_set_feature()
2325 if (xudc->device_state != USB_STATE_CONFIGURED) in tegra_xudc_ep0_set_feature()
2351 if ((xudc->device_state == USB_STATE_DEFAULT) || in tegra_xudc_ep0_set_feature()
2352 ((xudc->device_state == USB_STATE_ADDRESS) && in tegra_xudc_ep0_set_feature()
2412 if ((xudc->device_state != USB_STATE_CONFIGURED) && in tegra_xudc_ep0_get_status()
2413 ((xudc->device_state != USB_STATE_ADDRESS) || (ep != 0))) in tegra_xudc_ep0_get_status()
2444 if (xudc->device_state == USB_STATE_DEFAULT) in tegra_xudc_ep0_set_sel()
2484 if ((xudc->device_state == USB_STATE_DEFAULT) && in set_address_complete()
2486 xudc->device_state = USB_STATE_ADDRESS; in set_address_complete()
2487 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in set_address_complete()
2488 } else if ((xudc->device_state == USB_STATE_ADDRESS) && in set_address_complete()
2490 xudc->device_state = USB_STATE_DEFAULT; in set_address_complete()
2491 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in set_address_complete()
2509 if (xudc->device_state == USB_STATE_CONFIGURED) in tegra_xudc_ep0_set_address()
2805 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_reset()
2806 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_reset()
2865 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_port_connect()
2866 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_connect()
2916 xudc->device_state = USB_STATE_NOTATTACHED; in tegra_xudc_port_disconnect()
2917 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_disconnect()
2939 xudc->resume_state = xudc->device_state; in tegra_xudc_port_suspend()
2940 xudc->device_state = USB_STATE_SUSPENDED; in tegra_xudc_port_suspend()
2941 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_suspend()