Lines Matching refs:l2_idx
98 u32 l2_idx; in page_table_dump() local
110 for (l2_idx = 0; l2_idx < ISP_L2PT_PTES; l2_idx++) { in page_table_dump()
112 u32 iova2 = iova + (l2_idx << ISP_L2PT_SHIFT); in page_table_dump()
114 if (l2_pt[l2_idx] == mmu_info->dummy_page_pteval) in page_table_dump()
119 l2_idx, iova2, in page_table_dump()
120 TBL_PHYS_ADDR(l2_pt[l2_idx])); in page_table_dump()
261 unsigned int l2_idx; in l2_unmap() local
282 for (l2_idx = (iova & ISP_L2PT_MASK) >> ISP_L2PT_SHIFT; in l2_unmap()
283 size > 0 && l2_idx < ISP_L2PT_PTES; l2_idx++) { in l2_unmap()
284 phys_addr_t pteval = TBL_PHYS_ADDR(l2_pt[l2_idx]); in l2_unmap()
288 l2_idx, &pteval); in l2_unmap()
289 l2_pt[l2_idx] = mmu_info->dummy_page_pteval; in l2_unmap()
298 clflush_cache_range(&l2_pt[l2_idx - l2_entries], in l2_unmap()
312 unsigned int l2_idx; in l2_map() local
362 for (l2_idx = (iova & ISP_L2PT_MASK) >> ISP_L2PT_SHIFT; in l2_map()
363 size > 0 && l2_idx < ISP_L2PT_PTES; l2_idx++) { in l2_map()
364 l2_pt[l2_idx] = paddr >> ISP_PADDR_SHIFT; in l2_map()
366 dev_dbg(dev, "l2 index %u mapped as 0x%8.8x\n", l2_idx, in l2_map()
367 l2_pt[l2_idx]); in l2_map()
378 clflush_cache_range(&l2_pt[l2_idx - l2_entries], in l2_map()