Lines Matching refs:device_state

492 	unsigned int device_state;  member
1728 if ((xudc->device_state == USB_STATE_CONFIGURED) && in __tegra_xudc_ep_disable()
1732 xudc->device_state = USB_STATE_ADDRESS; in __tegra_xudc_ep_disable()
1733 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_disable()
1820 if (xudc->device_state == USB_STATE_ADDRESS) { in __tegra_xudc_ep_enable()
1825 xudc->device_state = USB_STATE_CONFIGURED; in __tegra_xudc_ep_enable()
1826 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_enable()
1976 if (xudc->device_state == USB_STATE_SUSPENDED) { in tegra_xudc_resume_device_state()
1977 xudc->device_state = xudc->resume_state; in tegra_xudc_resume_device_state()
1978 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_resume_device_state()
2081 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_gadget_start()
2082 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_gadget_start()
2266 (xudc->device_state == USB_STATE_DEFAULT)) in tegra_xudc_ep0_set_feature()
2279 if ((xudc->device_state != USB_STATE_CONFIGURED) || in tegra_xudc_ep0_set_feature()
2317 if (xudc->device_state != USB_STATE_CONFIGURED) in tegra_xudc_ep0_set_feature()
2343 if ((xudc->device_state == USB_STATE_DEFAULT) || in tegra_xudc_ep0_set_feature()
2344 ((xudc->device_state == USB_STATE_ADDRESS) && in tegra_xudc_ep0_set_feature()
2404 if ((xudc->device_state != USB_STATE_CONFIGURED) && in tegra_xudc_ep0_get_status()
2405 ((xudc->device_state != USB_STATE_ADDRESS) || (ep != 0))) in tegra_xudc_ep0_get_status()
2436 if (xudc->device_state == USB_STATE_DEFAULT) in tegra_xudc_ep0_set_sel()
2476 if ((xudc->device_state == USB_STATE_DEFAULT) && in set_address_complete()
2478 xudc->device_state = USB_STATE_ADDRESS; in set_address_complete()
2479 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in set_address_complete()
2480 } else if ((xudc->device_state == USB_STATE_ADDRESS) && in set_address_complete()
2482 xudc->device_state = USB_STATE_DEFAULT; in set_address_complete()
2483 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in set_address_complete()
2501 if (xudc->device_state == USB_STATE_CONFIGURED) in tegra_xudc_ep0_set_address()
2797 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_reset()
2798 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_reset()
2854 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_port_connect()
2855 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_connect()
2905 xudc->device_state = USB_STATE_NOTATTACHED; in tegra_xudc_port_disconnect()
2906 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_disconnect()
2928 xudc->resume_state = xudc->device_state; in tegra_xudc_port_suspend()
2929 xudc->device_state = USB_STATE_SUSPENDED; in tegra_xudc_port_suspend()
2930 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_suspend()