Lines Matching refs:rmem
336 static int rmem_dma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_dma_device_init() argument
338 if (!rmem->priv) { in rmem_dma_device_init()
341 mem = dma_init_coherent_memory(rmem->base, rmem->base, in rmem_dma_device_init()
342 rmem->size, true); in rmem_dma_device_init()
345 rmem->priv = mem; in rmem_dma_device_init()
347 dma_assign_coherent_memory(dev, rmem->priv); in rmem_dma_device_init()
351 static void rmem_dma_device_release(struct reserved_mem *rmem, in rmem_dma_device_release() argument
363 static int __init rmem_dma_setup(struct reserved_mem *rmem) in rmem_dma_setup() argument
365 unsigned long node = rmem->fdt_node; in rmem_dma_setup()
381 dma_reserved_default_memory = rmem; in rmem_dma_setup()
385 rmem->ops = &rmem_dma_ops; in rmem_dma_setup()
387 &rmem->base, (unsigned long)rmem->size / SZ_1M); in rmem_dma_setup()