Lines Matching refs:phys
59 phys_addr_t phys; member
71 return tlbcam_addrs[b].phys + (va - tlbcam_addrs[b].start); in v_block_mapped()
82 if (pa >= tlbcam_addrs[b].phys in p_block_mapped()
84 +tlbcam_addrs[b].phys) in p_block_mapped()
85 return tlbcam_addrs[b].start+(pa-tlbcam_addrs[b].phys); in p_block_mapped()
97 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument
119 TLBCAM[index].MAS3 = (phys & MAS3_RPN) | MAS3_SR; in settlbcam()
122 TLBCAM[index].MAS7 = (u64)phys >> 32; in settlbcam()
135 tlbcam_addrs[index].phys = phys; in settlbcam()
139 phys_addr_t phys) 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()
188 phys += 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()
201 phys += cam_sz; in map_mem_in_cams_addr()
227 phys_addr_t phys = memstart_addr; 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()