Lines Matching refs:rmem
334 static int rmem_dma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_dma_device_init() argument
336 if (!rmem->priv) { in rmem_dma_device_init()
339 mem = dma_init_coherent_memory(rmem->base, rmem->base, in rmem_dma_device_init()
340 rmem->size, true); in rmem_dma_device_init()
343 rmem->priv = mem; in rmem_dma_device_init()
345 dma_assign_coherent_memory(dev, rmem->priv); in rmem_dma_device_init()
349 static void rmem_dma_device_release(struct reserved_mem *rmem, in rmem_dma_device_release() argument
361 static int __init rmem_dma_setup(struct reserved_mem *rmem) in rmem_dma_setup() argument
363 unsigned long node = rmem->fdt_node; in rmem_dma_setup()
379 dma_reserved_default_memory = rmem; in rmem_dma_setup()
383 rmem->ops = &rmem_dma_ops; in rmem_dma_setup()
385 &rmem->base, (unsigned long)rmem->size / SZ_1M); in rmem_dma_setup()