Lines Matching refs:erst
398 struct xhci_erst *erst, gfp_t flags) in dbc_erst_alloc() argument
400 erst->entries = dma_alloc_coherent(dev, sizeof(*erst->entries), in dbc_erst_alloc()
401 &erst->erst_dma_addr, flags); in dbc_erst_alloc()
402 if (!erst->entries) in dbc_erst_alloc()
405 erst->num_entries = 1; in dbc_erst_alloc()
406 erst->entries[0].seg_addr = cpu_to_le64(evt_ring->first_seg->dma); in dbc_erst_alloc()
407 erst->entries[0].seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in dbc_erst_alloc()
408 erst->entries[0].rsvd = 0; in dbc_erst_alloc()
412 static void dbc_erst_free(struct device *dev, struct xhci_erst *erst) in dbc_erst_free() argument
414 dma_free_coherent(dev, sizeof(*erst->entries), erst->entries, in dbc_erst_free()
415 erst->erst_dma_addr); in dbc_erst_free()
416 erst->entries = NULL; in dbc_erst_free()
504 ret = dbc_erst_alloc(dev, dbc->ring_evt, &dbc->erst, flags); in xhci_dbc_mem_init()
521 writel(dbc->erst.num_entries, &dbc->regs->ersts); in xhci_dbc_mem_init()
523 lo_hi_writeq(dbc->erst.erst_dma_addr, &dbc->regs->erstba); in xhci_dbc_mem_init()
541 dbc_erst_free(dev, &dbc->erst); in xhci_dbc_mem_init()
568 dbc_erst_free(dbc->dev, &dbc->erst); in xhci_dbc_mem_cleanup()