Lines Matching refs:l1_idx
93 u32 l1_idx; in page_table_dump() local
97 for (l1_idx = 0; l1_idx < ISP_L1PT_PTES; l1_idx++) { in page_table_dump()
99 u32 iova = (phys_addr_t)l1_idx << ISP_L1PT_SHIFT; in page_table_dump()
102 if (mmu_info->l1_pt[l1_idx] == mmu_info->dummy_l2_pteval) in page_table_dump()
105 l2_phys = TBL_PHYS_ADDR(mmu_info->l1_pt[l1_idx];) in page_table_dump()
108 l1_idx, iova, iova + ISP_PAGE_SIZE, &l2_phys); in page_table_dump()
111 u32 *l2_pt = mmu_info->l2_pts[l1_idx]; in page_table_dump()
263 u32 l1_idx; in l2_unmap() local
267 for (l1_idx = iova >> ISP_L1PT_SHIFT; in l2_unmap()
268 size > 0 && l1_idx < ISP_L1PT_PTES; l1_idx++) { in l2_unmap()
271 l1_idx, iova); in l2_unmap()
273 if (mmu_info->l1_pt[l1_idx] == mmu_info->dummy_l2_pteval) { in l2_unmap()
276 iova, l1_idx); in l2_unmap()
279 l2_pt = mmu_info->l2_pts[l1_idx]; in l2_unmap()
317 u32 l1_idx; in l2_map() local
323 for (l1_idx = iova >> ISP_L1PT_SHIFT; in l2_map()
324 size > 0 && l1_idx < ISP_L1PT_PTES; l1_idx++) { in l2_map()
327 l1_idx, (u32)iova); in l2_map()
329 l1_entry = mmu_info->l1_pt[l1_idx]; in l2_map()
331 l2_virt = mmu_info->l2_pts[l1_idx]; in l2_map()
351 l1_idx, l2_virt); in l2_map()
352 mmu_info->l1_pt[l1_idx] = l1_entry; in l2_map()
353 mmu_info->l2_pts[l1_idx] = l2_virt; in l2_map()
355 clflush_cache_range(&mmu_info->l1_pt[l1_idx], in l2_map()
356 sizeof(mmu_info->l1_pt[l1_idx])); in l2_map()
359 l2_pt = mmu_info->l2_pts[l1_idx]; in l2_map()
710 u32 l1_idx; in ipu6_mmu_destroy() local
730 for (l1_idx = 0; l1_idx < ISP_L1PT_PTES; l1_idx++) { in ipu6_mmu_destroy()
731 if (mmu_info->l1_pt[l1_idx] != mmu_info->dummy_l2_pteval) { in ipu6_mmu_destroy()
733 TBL_PHYS_ADDR(mmu_info->l1_pt[l1_idx]), in ipu6_mmu_destroy()
735 free_page((unsigned long)mmu_info->l2_pts[l1_idx]); in ipu6_mmu_destroy()