]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/host/xhci.h
USB: xhci: Refactor code to free or cache endpoint rings.
[~andy/linux] / drivers / usb / host / xhci.h
index 877813505ef2044d062a1f66b8215b4a952aeda2..61747f3c5c8fb26b87592da9d3cefa39d6063394 100644 (file)
@@ -1233,6 +1233,9 @@ int xhci_endpoint_init(struct xhci_hcd *xhci, struct xhci_virt_device *virt_dev,
                struct usb_device *udev, struct usb_host_endpoint *ep,
                gfp_t mem_flags);
 void xhci_ring_free(struct xhci_hcd *xhci, struct xhci_ring *ring);
+void xhci_free_or_cache_endpoint_ring(struct xhci_hcd *xhci,
+               struct xhci_virt_device *virt_dev,
+               unsigned int ep_index);
 struct xhci_command *xhci_alloc_command(struct xhci_hcd *xhci,
                bool allocate_completion, gfp_t mem_flags);
 void xhci_free_command(struct xhci_hcd *xhci,