Lines Matching refs:psize
188 const struct slice_mask *mask, int psize) in slice_convert() argument
197 slice_dbg("slice_convert(mm=%p, psize=%d)\n", mm, psize); in slice_convert()
200 psize_mask = slice_mask_for_size(&mm->context, psize); in slice_convert()
223 (((unsigned long)psize) << (mask_index * 4)); in slice_convert()
242 (((unsigned long)psize) << (mask_index * 4)); in slice_convert()
281 int psize, unsigned long high_limit) in slice_find_area_bottomup() argument
283 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_bottomup()
323 int psize, unsigned long high_limit) in slice_find_area_topdown() argument
325 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_topdown()
374 return slice_find_area_bottomup(mm, TASK_UNMAPPED_BASE, len, available, psize, high_limit); in slice_find_area_topdown()
379 const struct slice_mask *mask, int psize, in slice_find_area() argument
383 return slice_find_area_topdown(mm, mm->mmap_base, len, mask, psize, high_limit); in slice_find_area()
385 return slice_find_area_bottomup(mm, mm->mmap_base, len, mask, psize, high_limit); in slice_find_area()
424 unsigned long flags, unsigned int psize, in slice_get_unmapped_area() argument
432 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_get_unmapped_area()
469 slice_dbg("slice_get_unmapped_area(mm=%p, psize=%d...\n", mm, psize); in slice_get_unmapped_area()
486 maskp = slice_mask_for_size(&mm->context, psize); in slice_get_unmapped_area()
512 if (IS_ENABLED(CONFIG_PPC_64K_PAGES) && psize == MMU_PAGE_64K) { in slice_get_unmapped_area()
541 psize, topdown, high_limit); in slice_get_unmapped_area()
577 psize, topdown, high_limit); in slice_get_unmapped_area()
588 psize, topdown, high_limit); in slice_get_unmapped_area()
591 psize == MMU_PAGE_64K) { in slice_get_unmapped_area()
595 psize, topdown, high_limit); in slice_get_unmapped_area()
621 slice_convert(mm, &potential_mask, psize); in slice_get_unmapped_area()
622 if (psize > MMU_PAGE_BASE) in slice_get_unmapped_area()
687 unsigned int psize = mmu_virtual_psize; in slice_init_new_context_exec() local
697 mm_ctx_set_user_psize(&mm->context, psize); in slice_init_new_context_exec()
703 memset(lpsizes, (psize << 4) | psize, SLICE_NUM_LOW >> 1); in slice_init_new_context_exec()
706 memset(hpsizes, (psize << 4) | psize, SLICE_NUM_HIGH >> 1); in slice_init_new_context_exec()
711 mask = slice_mask_for_size(&mm->context, psize); in slice_init_new_context_exec()
730 unsigned long len, unsigned int psize) in slice_set_range_psize() argument
737 slice_convert(mm, &mask, psize); in slice_set_range_psize()
764 unsigned int psize = mm_ctx_user_psize(&mm->context); in slice_is_hugepage_only_range() local
768 maskp = slice_mask_for_size(&mm->context, psize); in slice_is_hugepage_only_range()
771 if (IS_ENABLED(CONFIG_PPC_64K_PAGES) && psize == MMU_PAGE_64K) { in slice_is_hugepage_only_range()