Lines Matching refs:rmem
34 struct reserved_mem *rmem; member
48 kaddr = devm_memremap(drvdata->misc.this_device, drvdata->rmem->base, in open_dice_wipe()
49 drvdata->rmem->size, MEMREMAP_WC); in open_dice_wipe()
55 memset(kaddr, 0, drvdata->rmem->size); in open_dice_wipe()
67 unsigned long val = to_open_dice_drvdata(filp)->rmem->size; in open_dice_read()
106 return vm_iomap_memory(vma, drvdata->rmem->base, drvdata->rmem->size); in open_dice_mmap()
120 struct reserved_mem *rmem; in open_dice_probe() local
124 rmem = of_reserved_mem_lookup(dev->of_node); in open_dice_probe()
125 if (!rmem) { in open_dice_probe()
130 if (!rmem->size || (rmem->size > ULONG_MAX)) { in open_dice_probe()
135 if (!PAGE_ALIGNED(rmem->base) || !PAGE_ALIGNED(rmem->size)) { in open_dice_probe()
146 .rmem = rmem, in open_dice_probe()