Lines Matching refs:erst
1794 struct xhci_erst *erst, in xhci_alloc_erst() argument
1803 erst->entries = dma_alloc_coherent(xhci_to_hcd(xhci)->self.sysdev, in xhci_alloc_erst()
1804 size, &erst->erst_dma_addr, flags); in xhci_alloc_erst()
1805 if (!erst->entries) in xhci_alloc_erst()
1808 erst->num_entries = evt_ring->num_segs; in xhci_alloc_erst()
1812 entry = &erst->entries[val]; in xhci_alloc_erst()
1822 void xhci_free_erst(struct xhci_hcd *xhci, struct xhci_erst *erst) in xhci_free_erst() argument
1827 size = sizeof(struct xhci_erst_entry) * (erst->num_entries); in xhci_free_erst()
1828 if (erst->entries) in xhci_free_erst()
1830 erst->entries, in xhci_free_erst()
1831 erst->erst_dma_addr); in xhci_free_erst()
1832 erst->entries = NULL; in xhci_free_erst()
1842 xhci_free_erst(xhci, &xhci->erst); in xhci_mem_cleanup()
2522 ret = xhci_alloc_erst(xhci, xhci->event_ring, &xhci->erst, flags); in xhci_mem_init()
2540 (unsigned long long)xhci->erst.erst_dma_addr); in xhci_mem_init()
2543 val_64 |= (xhci->erst.erst_dma_addr & (u64) ~ERST_PTR_MASK); in xhci_mem_init()