Lines Matching refs:device_state
491 unsigned int device_state; member
1743 if ((xudc->device_state == USB_STATE_CONFIGURED) && in __tegra_xudc_ep_disable()
1747 xudc->device_state = USB_STATE_ADDRESS; in __tegra_xudc_ep_disable()
1748 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_disable()
1835 if (xudc->device_state == USB_STATE_ADDRESS) { in __tegra_xudc_ep_enable()
1840 xudc->device_state = USB_STATE_CONFIGURED; in __tegra_xudc_ep_enable()
1841 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in __tegra_xudc_ep_enable()
1991 if (xudc->device_state == USB_STATE_SUSPENDED) { in tegra_xudc_resume_device_state()
1992 xudc->device_state = xudc->resume_state; in tegra_xudc_resume_device_state()
1993 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_resume_device_state()
2096 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_gadget_start()
2097 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_gadget_start()
2281 (xudc->device_state == USB_STATE_DEFAULT)) in tegra_xudc_ep0_set_feature()
2294 if ((xudc->device_state != USB_STATE_CONFIGURED) || in tegra_xudc_ep0_set_feature()
2332 if (xudc->device_state != USB_STATE_CONFIGURED) in tegra_xudc_ep0_set_feature()
2358 if ((xudc->device_state == USB_STATE_DEFAULT) || in tegra_xudc_ep0_set_feature()
2359 ((xudc->device_state == USB_STATE_ADDRESS) && in tegra_xudc_ep0_set_feature()
2419 if ((xudc->device_state != USB_STATE_CONFIGURED) && in tegra_xudc_ep0_get_status()
2420 ((xudc->device_state != USB_STATE_ADDRESS) || (ep != 0))) in tegra_xudc_ep0_get_status()
2451 if (xudc->device_state == USB_STATE_DEFAULT) in tegra_xudc_ep0_set_sel()
2491 if ((xudc->device_state == USB_STATE_DEFAULT) && in set_address_complete()
2493 xudc->device_state = USB_STATE_ADDRESS; in set_address_complete()
2494 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in set_address_complete()
2495 } else if ((xudc->device_state == USB_STATE_ADDRESS) && in set_address_complete()
2497 xudc->device_state = USB_STATE_DEFAULT; in set_address_complete()
2498 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in set_address_complete()
2516 if (xudc->device_state == USB_STATE_CONFIGURED) in tegra_xudc_ep0_set_address()
2812 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_reset()
2813 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_reset()
2872 xudc->device_state = USB_STATE_DEFAULT; in tegra_xudc_port_connect()
2873 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_connect()
2923 xudc->device_state = USB_STATE_NOTATTACHED; in tegra_xudc_port_disconnect()
2924 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_disconnect()
2946 xudc->resume_state = xudc->device_state; in tegra_xudc_port_suspend()
2947 xudc->device_state = USB_STATE_SUSPENDED; in tegra_xudc_port_suspend()
2948 usb_gadget_set_state(&xudc->gadget, xudc->device_state); in tegra_xudc_port_suspend()