Lines Matching refs:udev
116 static inline int is_root_hub(struct usb_device *udev) in is_root_hub() argument
118 return (udev->parent == NULL); in is_root_hub()
1624 struct usb_device *udev = urb->dev; in usb_hcd_unlink_urb() local
1636 usb_get_dev(udev); in usb_hcd_unlink_urb()
1645 dev_dbg(&udev->dev, "hcd_unlink_urb %p fail %d\n", in usb_hcd_unlink_urb()
1647 usb_put_dev(udev); in usb_hcd_unlink_urb()
1786 void usb_hcd_flush_endpoint(struct usb_device *udev, in usb_hcd_flush_endpoint() argument
1795 hcd = bus_to_hcd(udev->bus); in usb_hcd_flush_endpoint()
1878 int usb_hcd_alloc_bandwidth(struct usb_device *udev, in usb_hcd_alloc_bandwidth() argument
1889 hcd = bus_to_hcd(udev->bus); in usb_hcd_alloc_bandwidth()
1896 ep = udev->ep_out[i]; in usb_hcd_alloc_bandwidth()
1898 hcd->driver->drop_endpoint(hcd, udev, ep); in usb_hcd_alloc_bandwidth()
1899 ep = udev->ep_in[i]; in usb_hcd_alloc_bandwidth()
1901 hcd->driver->drop_endpoint(hcd, udev, ep); in usb_hcd_alloc_bandwidth()
1903 hcd->driver->check_bandwidth(hcd, udev); in usb_hcd_alloc_bandwidth()
1917 ep = udev->ep_out[i]; in usb_hcd_alloc_bandwidth()
1919 ret = hcd->driver->drop_endpoint(hcd, udev, ep); in usb_hcd_alloc_bandwidth()
1923 ep = udev->ep_in[i]; in usb_hcd_alloc_bandwidth()
1925 ret = hcd->driver->drop_endpoint(hcd, udev, ep); in usb_hcd_alloc_bandwidth()
1943 ret = hcd->driver->add_endpoint(hcd, udev, &alt->endpoint[j]); in usb_hcd_alloc_bandwidth()
1950 struct usb_interface *iface = usb_ifnum_to_if(udev, in usb_hcd_alloc_bandwidth()
1972 ret = hcd->driver->drop_endpoint(hcd, udev, in usb_hcd_alloc_bandwidth()
1979 ret = hcd->driver->add_endpoint(hcd, udev, in usb_hcd_alloc_bandwidth()
1985 ret = hcd->driver->check_bandwidth(hcd, udev); in usb_hcd_alloc_bandwidth()
1988 hcd->driver->reset_bandwidth(hcd, udev); in usb_hcd_alloc_bandwidth()
2000 void usb_hcd_disable_endpoint(struct usb_device *udev, in usb_hcd_disable_endpoint() argument
2006 hcd = bus_to_hcd(udev->bus); in usb_hcd_disable_endpoint()
2019 void usb_hcd_reset_endpoint(struct usb_device *udev, in usb_hcd_reset_endpoint() argument
2022 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_hcd_reset_endpoint()
2031 usb_settoggle(udev, epnum, is_out, 0); in usb_hcd_reset_endpoint()
2033 usb_settoggle(udev, epnum, !is_out, 0); in usb_hcd_reset_endpoint()
2136 void usb_hcd_synchronize_unlinks(struct usb_device *udev) in usb_hcd_synchronize_unlinks() argument
2145 int usb_hcd_get_frame_number (struct usb_device *udev) in usb_hcd_get_frame_number() argument
2147 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_hcd_get_frame_number()
2228 struct usb_device *udev; in hcd_bus_resume() local
2247 usb_hub_for_each_child(rhdev, port1, udev) { in hcd_bus_resume()
2248 if (udev->state != USB_STATE_NOTATTACHED && in hcd_bus_resume()
2249 !udev->port_is_suspended) { in hcd_bus_resume()
2268 struct usb_device *udev = hcd->self.root_hub; in hcd_resume_work() local
2270 usb_remote_wakeup(udev); in hcd_resume_work()