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