Lines Matching refs:virt
97 static void settlbcam(int index, unsigned long virt, phys_addr_t phys,
111 TLBCAM[index].MAS2 = virt & PAGE_MASK;
125 if (!is_kernel_addr(virt)) {
133 tlbcam_addrs[index].start = virt;
134 tlbcam_addrs[index].limit = virt + size - 1;
138 static unsigned long calc_cam_sz(unsigned long ram, unsigned long virt,
142 unsigned int align = __ffs(virt | phys);
163 static unsigned long map_mem_in_cams_addr(phys_addr_t phys, unsigned long virt,
181 cam_sz = calc_cam_sz(boundary, virt, phys);
183 settlbcam(i, virt, phys, cam_sz, pgprot_val(prot), 0);
187 virt += cam_sz;
194 cam_sz = calc_cam_sz(ram, virt, phys);
196 settlbcam(i, virt, phys, cam_sz, pgprot_val(prot), 0);
200 virt += cam_sz;
226 unsigned long virt = PAGE_OFFSET;
229 return map_mem_in_cams_addr(phys, virt, ram, max_cam_idx, dryrun, init);