Lines Matching refs:dr
67 struct dma_devres *dr; in dmam_alloc_coherent() local
70 dr = devres_alloc(dmam_coherent_release, sizeof(*dr), gfp); in dmam_alloc_coherent()
71 if (!dr) in dmam_alloc_coherent()
76 devres_free(dr); in dmam_alloc_coherent()
80 dr->vaddr = vaddr; in dmam_alloc_coherent()
81 dr->dma_handle = *dma_handle; in dmam_alloc_coherent()
82 dr->size = size; in dmam_alloc_coherent()
84 devres_add(dev, dr); in dmam_alloc_coherent()
126 struct dma_devres *dr; in dmam_alloc_noncoherent() local
129 dr = devres_alloc(dmam_noncoherent_release, sizeof(*dr), gfp); in dmam_alloc_noncoherent()
130 if (!dr) in dmam_alloc_noncoherent()
135 devres_free(dr); in dmam_alloc_noncoherent()
139 dr->vaddr = vaddr; in dmam_alloc_noncoherent()
140 dr->dma_handle = *dma_handle; in dmam_alloc_noncoherent()
141 dr->size = size; in dmam_alloc_noncoherent()
143 devres_add(dev, dr); in dmam_alloc_noncoherent()