Lines Matching full:phys
60 phys_addr_t phys; member
77 return tlbcam_addrs[b].phys + (va - tlbcam_addrs[b].start); in v_block_mapped()
88 if (pa >= tlbcam_addrs[b].phys in p_block_mapped()
90 +tlbcam_addrs[b].phys) in p_block_mapped()
91 return tlbcam_addrs[b].start+(pa-tlbcam_addrs[b].phys); in p_block_mapped()
103 static void settlbcam(int index, unsigned long virt, phys_addr_t phys, in settlbcam() argument
125 TLBCAM[index].MAS3 = (phys & MAS3_RPN) | MAS3_SX | MAS3_SR; in settlbcam()
128 TLBCAM[index].MAS7 = (u64)phys >> 32; in settlbcam()
138 tlbcam_addrs[index].phys = phys; in settlbcam()
142 phys_addr_t phys) in calc_cam_sz() argument
145 unsigned int align = __ffs(virt | phys); in calc_cam_sz()
166 static unsigned long map_mem_in_cams_addr(phys_addr_t phys, unsigned long virt, in map_mem_in_cams_addr() argument
177 cam_sz = calc_cam_sz(ram, virt, phys); in map_mem_in_cams_addr()
179 settlbcam(i, virt, phys, cam_sz, in map_mem_in_cams_addr()
185 phys += cam_sz; in map_mem_in_cams_addr()
206 phys_addr_t phys = memstart_addr; in map_mem_in_cams() local
208 return map_mem_in_cams_addr(phys, virt, ram, max_cam_idx, dryrun); in map_mem_in_cams()