Lines Matching refs:erst
1886 struct xhci_erst *erst, in xhci_alloc_erst() argument
1895 erst->entries = dma_alloc_coherent(xhci_to_hcd(xhci)->self.sysdev, in xhci_alloc_erst()
1896 size, &erst->erst_dma_addr, flags); in xhci_alloc_erst()
1897 if (!erst->entries) in xhci_alloc_erst()
1900 erst->num_entries = evt_ring->num_segs; in xhci_alloc_erst()
1904 entry = &erst->entries[val]; in xhci_alloc_erst()
1915 void xhci_free_erst(struct xhci_hcd *xhci, struct xhci_erst *erst) in xhci_free_erst() argument
1920 size = sizeof(struct xhci_erst_entry) * (erst->num_entries); in xhci_free_erst()
1921 if (erst->entries) in xhci_free_erst()
1923 erst->entries, in xhci_free_erst()
1924 erst->erst_dma_addr); in xhci_free_erst()
1925 erst->entries = NULL; in xhci_free_erst()
1954 xhci_free_erst(xhci, &xhci->erst); in xhci_mem_cleanup()
2645 ret = xhci_alloc_erst(xhci, xhci->event_ring, &xhci->erst, flags); in xhci_mem_init()
2663 (unsigned long long)xhci->erst.erst_dma_addr); in xhci_mem_init()
2666 val_64 |= (xhci->erst.erst_dma_addr & (u64) ~ERST_PTR_MASK); in xhci_mem_init()