Lines Matching refs:virt
103 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument
117 TLBCAM[index].MAS2 = virt & PAGE_MASK; in settlbcam()
139 tlbcam_addrs[index].start = virt; in settlbcam()
140 tlbcam_addrs[index].limit = virt + size - 1; in settlbcam()
144 unsigned long calc_cam_sz(unsigned long ram, unsigned long virt, in calc_cam_sz() argument
148 unsigned int align = __ffs(virt | phys); in calc_cam_sz()
169 static unsigned long map_mem_in_cams_addr(phys_addr_t phys, unsigned long virt, in map_mem_in_cams_addr() argument
187 cam_sz = calc_cam_sz(boundary, virt, phys); in map_mem_in_cams_addr()
189 settlbcam(i, virt, phys, cam_sz, pgprot_val(prot), 0); in map_mem_in_cams_addr()
193 virt += cam_sz; in map_mem_in_cams_addr()
200 cam_sz = calc_cam_sz(ram, virt, phys); in map_mem_in_cams_addr()
202 settlbcam(i, virt, phys, cam_sz, pgprot_val(prot), 0); in map_mem_in_cams_addr()
206 virt += cam_sz; in map_mem_in_cams_addr()
232 unsigned long virt = PAGE_OFFSET; in map_mem_in_cams() local
235 return map_mem_in_cams_addr(phys, virt, ram, max_cam_idx, dryrun, init); in map_mem_in_cams()