Home
last modified time | relevance | path

Searched refs:rmem (Results 1 – 3 of 3) sorted by relevance

/kernel/dma/
Dcontiguous.c384 static int rmem_cma_device_init(struct reserved_mem *rmem, struct device *dev) in rmem_cma_device_init() argument
386 dev->cma_area = rmem->priv; in rmem_cma_device_init()
390 static void rmem_cma_device_release(struct reserved_mem *rmem, in rmem_cma_device_release() argument
401 static int __init rmem_cma_setup(struct reserved_mem *rmem) in rmem_cma_setup() argument
403 unsigned long node = rmem->fdt_node; in rmem_cma_setup()
410 rmem->name); in rmem_cma_setup()
418 if (!IS_ALIGNED(rmem->base | rmem->size, CMA_MIN_ALIGNMENT_BYTES)) { in rmem_cma_setup()
423 err = cma_init_reserved_mem(rmem->base, rmem->size, 0, rmem->name, &cma); in rmem_cma_setup()
429 dma_contiguous_early_fixup(rmem->base, rmem->size); in rmem_cma_setup()
434 rmem->ops = &rmem_cma_ops; in rmem_cma_setup()
[all …]
Dcoherent.c336 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()
[all …]
Dswiotlb.c1023 static int rmem_swiotlb_device_init(struct reserved_mem *rmem, in rmem_swiotlb_device_init() argument
1026 struct io_tlb_mem *mem = rmem->priv; in rmem_swiotlb_device_init()
1027 unsigned long nslabs = rmem->size >> IO_TLB_SHIFT; in rmem_swiotlb_device_init()
1032 if (PageHighMem(pfn_to_page(PHYS_PFN(rmem->base)))) { in rmem_swiotlb_device_init()
1061 set_memory_decrypted((unsigned long)phys_to_virt(rmem->base), in rmem_swiotlb_device_init()
1062 rmem->size >> PAGE_SHIFT); in rmem_swiotlb_device_init()
1063 swiotlb_init_io_tlb_mem(mem, rmem->base, nslabs, SWIOTLB_FORCE, in rmem_swiotlb_device_init()
1067 rmem->priv = mem; in rmem_swiotlb_device_init()
1069 swiotlb_create_debugfs_files(mem, rmem->name); in rmem_swiotlb_device_init()
1077 static void rmem_swiotlb_device_release(struct reserved_mem *rmem, in rmem_swiotlb_device_release() argument
[all …]