Lines Matching refs:erst
1027 struct cdnsp_erst *erst) in cdnsp_alloc_erst() argument
1035 erst->entries = dma_alloc_coherent(pdev->dev, size, in cdnsp_alloc_erst()
1036 &erst->erst_dma_addr, GFP_KERNEL); in cdnsp_alloc_erst()
1037 if (!erst->entries) in cdnsp_alloc_erst()
1040 erst->num_entries = evt_ring->num_segs; in cdnsp_alloc_erst()
1044 entry = &erst->entries[val]; in cdnsp_alloc_erst()
1054 static void cdnsp_free_erst(struct cdnsp_device *pdev, struct cdnsp_erst *erst) in cdnsp_free_erst() argument
1056 size_t size = sizeof(struct cdnsp_erst_entry) * (erst->num_entries); in cdnsp_free_erst()
1059 if (erst->entries) in cdnsp_free_erst()
1060 dma_free_coherent(dev, size, erst->entries, in cdnsp_free_erst()
1061 erst->erst_dma_addr); in cdnsp_free_erst()
1063 erst->entries = NULL; in cdnsp_free_erst()
1071 cdnsp_free_erst(pdev, &pdev->erst); in cdnsp_mem_cleanup()
1288 ret = cdnsp_alloc_erst(pdev, pdev->event_ring, &pdev->erst); in cdnsp_mem_init()
1301 val_64 |= (pdev->erst.erst_dma_addr & (u64)~ERST_PTR_MASK); in cdnsp_mem_init()
1321 cdnsp_free_erst(pdev, &pdev->erst); in cdnsp_mem_init()