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()
1675 struct usb_device *udev = urb->dev; in usb_hcd_unlink_urb() local
1687 usb_get_dev(udev); in usb_hcd_unlink_urb()
1696 dev_dbg(&udev->dev, "hcd_unlink_urb %p fail %d\n", in usb_hcd_unlink_urb()
1698 usb_put_dev(udev); in usb_hcd_unlink_urb()
1837 void usb_hcd_flush_endpoint(struct usb_device *udev, in usb_hcd_flush_endpoint() argument
1846 hcd = bus_to_hcd(udev->bus); in usb_hcd_flush_endpoint()
1929 int usb_hcd_alloc_bandwidth(struct usb_device *udev, in usb_hcd_alloc_bandwidth() argument
1940 hcd = bus_to_hcd(udev->bus); in usb_hcd_alloc_bandwidth()
1947 ep = udev->ep_out[i]; in usb_hcd_alloc_bandwidth()
1949 hcd->driver->drop_endpoint(hcd, udev, ep); in usb_hcd_alloc_bandwidth()
1950 ep = udev->ep_in[i]; in usb_hcd_alloc_bandwidth()
1952 hcd->driver->drop_endpoint(hcd, udev, ep); in usb_hcd_alloc_bandwidth()
1954 hcd->driver->check_bandwidth(hcd, udev); in usb_hcd_alloc_bandwidth()
1968 ep = udev->ep_out[i]; in usb_hcd_alloc_bandwidth()
1970 ret = hcd->driver->drop_endpoint(hcd, udev, ep); in usb_hcd_alloc_bandwidth()
1974 ep = udev->ep_in[i]; in usb_hcd_alloc_bandwidth()
1976 ret = hcd->driver->drop_endpoint(hcd, udev, ep); in usb_hcd_alloc_bandwidth()
1994 ret = hcd->driver->add_endpoint(hcd, udev, &alt->endpoint[j]); in usb_hcd_alloc_bandwidth()
2001 struct usb_interface *iface = usb_ifnum_to_if(udev, in usb_hcd_alloc_bandwidth()
2023 ret = hcd->driver->drop_endpoint(hcd, udev, in usb_hcd_alloc_bandwidth()
2030 ret = hcd->driver->add_endpoint(hcd, udev, in usb_hcd_alloc_bandwidth()
2036 ret = hcd->driver->check_bandwidth(hcd, udev); in usb_hcd_alloc_bandwidth()
2039 hcd->driver->reset_bandwidth(hcd, udev); in usb_hcd_alloc_bandwidth()
2051 void usb_hcd_disable_endpoint(struct usb_device *udev, in usb_hcd_disable_endpoint() argument
2057 hcd = bus_to_hcd(udev->bus); in usb_hcd_disable_endpoint()
2070 void usb_hcd_reset_endpoint(struct usb_device *udev, in usb_hcd_reset_endpoint() argument
2073 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_hcd_reset_endpoint()
2082 usb_settoggle(udev, epnum, is_out, 0); in usb_hcd_reset_endpoint()
2084 usb_settoggle(udev, epnum, !is_out, 0); in usb_hcd_reset_endpoint()
2187 void usb_hcd_synchronize_unlinks(struct usb_device *udev) in usb_hcd_synchronize_unlinks() argument
2196 int usb_hcd_get_frame_number (struct usb_device *udev) in usb_hcd_get_frame_number() argument
2198 struct usb_hcd *hcd = bus_to_hcd(udev->bus); in usb_hcd_get_frame_number()
2279 struct usb_device *udev; in hcd_bus_resume() local
2298 usb_hub_for_each_child(rhdev, port1, udev) { in hcd_bus_resume()
2299 if (udev->state != USB_STATE_NOTATTACHED && in hcd_bus_resume()
2300 !udev->port_is_suspended) { in hcd_bus_resume()
2319 struct usb_device *udev = hcd->self.root_hub; in hcd_resume_work() local
2321 usb_remote_wakeup(udev); in hcd_resume_work()