Lines Matching refs:erst
1793 struct xhci_erst *erst, in xhci_alloc_erst() argument
1802 erst->entries = dma_zalloc_coherent(xhci_to_hcd(xhci)->self.sysdev, in xhci_alloc_erst()
1803 size, &erst->erst_dma_addr, flags); in xhci_alloc_erst()
1804 if (!erst->entries) in xhci_alloc_erst()
1807 erst->num_entries = evt_ring->num_segs; in xhci_alloc_erst()
1811 entry = &erst->entries[val]; in xhci_alloc_erst()
1821 void xhci_free_erst(struct xhci_hcd *xhci, struct xhci_erst *erst) in xhci_free_erst() argument
1826 size = sizeof(struct xhci_erst_entry) * (erst->num_entries); in xhci_free_erst()
1827 if (erst->entries) in xhci_free_erst()
1829 erst->entries, in xhci_free_erst()
1830 erst->erst_dma_addr); in xhci_free_erst()
1831 erst->entries = NULL; in xhci_free_erst()
1841 xhci_free_erst(xhci, &xhci->erst); in xhci_mem_cleanup()
2502 ret = xhci_alloc_erst(xhci, xhci->event_ring, &xhci->erst, flags); in xhci_mem_init()
2520 (unsigned long long)xhci->erst.erst_dma_addr); in xhci_mem_init()
2523 val_64 |= (xhci->erst.erst_dma_addr & (u64) ~ERST_PTR_MASK); in xhci_mem_init()