Lines Matching refs:device_state
490 unsigned int device_state; member
1742 if ((xudc->device_state == USB_STATE_CONFIGURED) && in __tegra_xudc_ep_disable()
1746 xudc->device_state = USB_STATE_ADDRESS; in __tegra_xudc_ep_disable()
1747 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_disable()
1834 if (xudc->device_state == USB_STATE_ADDRESS) { in __tegra_xudc_ep_enable()
1839 xudc->device_state = USB_STATE_CONFIGURED; in __tegra_xudc_ep_enable()
1840 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_enable()
1990 if (xudc->device_state == USB_STATE_SUSPENDED) { in tegra_xudc_resume_device_state()
1991 xudc->device_state = xudc->resume_state; in tegra_xudc_resume_device_state()
1992 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_resume_device_state()
2095 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_gadget_start()
2096 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_gadget_start()
2279 (xudc->device_state == USB_STATE_DEFAULT)) in tegra_xudc_ep0_set_feature()
2292 if ((xudc->device_state != USB_STATE_CONFIGURED) || in tegra_xudc_ep0_set_feature()
2330 if (xudc->device_state != USB_STATE_CONFIGURED) in tegra_xudc_ep0_set_feature()
2356 if ((xudc->device_state == USB_STATE_DEFAULT) || in tegra_xudc_ep0_set_feature()
2357 ((xudc->device_state == USB_STATE_ADDRESS) && in tegra_xudc_ep0_set_feature()
2417 if ((xudc->device_state != USB_STATE_CONFIGURED) && in tegra_xudc_ep0_get_status()
2418 ((xudc->device_state != USB_STATE_ADDRESS) || (ep != 0))) in tegra_xudc_ep0_get_status()
2449 if (xudc->device_state == USB_STATE_DEFAULT) in tegra_xudc_ep0_set_sel()
2489 if ((xudc->device_state == USB_STATE_DEFAULT) && in set_address_complete()
2491 xudc->device_state = USB_STATE_ADDRESS; in set_address_complete()
2492 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in set_address_complete()
2493 } else if ((xudc->device_state == USB_STATE_ADDRESS) && in set_address_complete()
2495 xudc->device_state = USB_STATE_DEFAULT; in set_address_complete()
2496 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in set_address_complete()
2514 if (xudc->device_state == USB_STATE_CONFIGURED) in tegra_xudc_ep0_set_address()
2810 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_reset()
2811 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_reset()
2870 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_port_connect()
2871 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_connect()
2921 xudc->device_state = USB_STATE_NOTATTACHED; in tegra_xudc_port_disconnect()
2922 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_disconnect()
2944 xudc->resume_state = xudc->device_state; in tegra_xudc_port_suspend()
2945 xudc->device_state = USB_STATE_SUSPENDED; in tegra_xudc_port_suspend()
2946 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_suspend()