Lines Matching refs:vaddr
47 unsigned long vaddr) in fman_muram_vbase_to_offset() argument
49 return vaddr - (unsigned long)muram->vbase; in fman_muram_vbase_to_offset()
68 void __iomem *vaddr; in fman_muram_init() local
81 vaddr = ioremap(base, size); in fman_muram_init()
82 if (!vaddr) { in fman_muram_init()
87 ret = gen_pool_add_virt(muram->pool, (unsigned long)vaddr, in fman_muram_init()
91 iounmap(vaddr); in fman_muram_init()
95 memset_io(vaddr, 0, (int)size); in fman_muram_init()
97 muram->vbase = vaddr; in fman_muram_init()
134 unsigned long vaddr; in fman_muram_alloc() local
136 vaddr = gen_pool_alloc(muram->pool, size); in fman_muram_alloc()
137 if (!vaddr) in fman_muram_alloc()
140 memset_io((void __iomem *)vaddr, 0, size); in fman_muram_alloc()
142 return fman_muram_vbase_to_offset(muram, vaddr); in fman_muram_alloc()