Lines Matching refs:SZ_2M
263 size_t blk_offset = -addr % SZ_2M; in get_pgsize()
265 if (blk_offset || size < SZ_2M) { in get_pgsize()
270 *count = min(blk_offset, size) / SZ_2M; in get_pgsize()
271 return SZ_2M; in get_pgsize()
439 #define NUM_FAULT_PAGES (SZ_2M / PAGE_SIZE)
467 addr &= ~((u64)SZ_2M - 1); in panfrost_mmu_map_fault_addr()
476 bo->sgts = kvmalloc_array(bo->base.base.size / SZ_2M, in panfrost_mmu_map_fault_addr()
520 sgt = &bo->sgts[page_offset / (SZ_2M / PAGE_SIZE)]; in panfrost_mmu_map_fault_addr()
522 NUM_FAULT_PAGES, 0, SZ_2M, GFP_KERNEL); in panfrost_mmu_map_fault_addr()
534 bo->heap_rss_size += SZ_2M; in panfrost_mmu_map_fault_addr()
635 .pgsize_bitmap = SZ_4K | SZ_2M, in panfrost_mmu_ctx_create()