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