Lines Matching refs:rmem
1023 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
1088 static int __init rmem_swiotlb_setup(struct reserved_mem *rmem) in rmem_swiotlb_setup() argument
1090 unsigned long node = rmem->fdt_node; in rmem_swiotlb_setup()
1098 rmem->ops = &rmem_swiotlb_ops; in rmem_swiotlb_setup()
1100 &rmem->base, (unsigned long)rmem->size / SZ_1M); in rmem_swiotlb_setup()