• Home
  • Raw
  • Download

Lines Matching refs:psize

150 static struct slice_mask slice_mask_for_size(struct mm_struct *mm, int psize)  in slice_mask_for_size()  argument
160 if (((lpsizes >> (i * 4)) & 0xf) == psize) in slice_mask_for_size()
167 if (((hpsizes[index] >> (mask_index * 4)) & 0xf) == psize) in slice_mask_for_size()
196 static void slice_convert(struct mm_struct *mm, struct slice_mask mask, int psize) in slice_convert() argument
204 slice_dbg("slice_convert(mm=%p, psize=%d)\n", mm, psize); in slice_convert()
216 (((unsigned long)psize) << (i * 4)); in slice_convert()
228 (((unsigned long)psize) << (mask_index * 4)); in slice_convert()
268 int psize) in slice_find_area_bottomup() argument
270 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_bottomup()
311 int psize) in slice_find_area_topdown() argument
313 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_find_area_topdown()
354 return slice_find_area_bottomup(mm, len, available, psize); in slice_find_area_topdown()
359 struct slice_mask mask, int psize, in slice_find_area() argument
363 return slice_find_area_topdown(mm, len, mask, psize); in slice_find_area()
365 return slice_find_area_bottomup(mm, len, mask, psize); in slice_find_area()
385 unsigned long flags, unsigned int psize, in slice_get_unmapped_area() argument
393 int pshift = max_t(int, mmu_psize_defs[psize].shift, PAGE_SHIFT); in slice_get_unmapped_area()
400 slice_dbg("slice_get_unmapped_area(mm=%p, psize=%d...\n", mm, psize); in slice_get_unmapped_area()
426 good_mask = slice_mask_for_size(mm, psize); in slice_get_unmapped_area()
450 if (psize == MMU_PAGE_64K) { in slice_get_unmapped_area()
474 newaddr = slice_find_area(mm, len, good_mask, psize, topdown); in slice_get_unmapped_area()
506 addr = slice_find_area(mm, len, good_mask, psize, topdown); in slice_get_unmapped_area()
516 addr = slice_find_area(mm, len, potential_mask, psize, topdown); in slice_get_unmapped_area()
519 if (addr == -ENOMEM && psize == MMU_PAGE_64K) { in slice_get_unmapped_area()
522 addr = slice_find_area(mm, len, potential_mask, psize, in slice_get_unmapped_area()
538 slice_convert(mm, mask, psize); in slice_get_unmapped_area()
539 if (psize > MMU_PAGE_BASE) in slice_get_unmapped_area()
599 void slice_set_user_psize(struct mm_struct *mm, unsigned int psize) in slice_set_user_psize() argument
607 slice_dbg("slice_set_user_psize(mm=%p, psize=%d)\n", mm, psize); in slice_set_user_psize()
613 if (old_psize == psize) in slice_set_user_psize()
616 mm->context.user_psize = psize; in slice_set_user_psize()
623 (((unsigned long)psize) << (i * 4)); in slice_set_user_psize()
634 (((unsigned long)psize) << (mask_index * 4)); in slice_set_user_psize()
649 unsigned long len, unsigned int psize) in slice_set_range_psize() argument
653 slice_convert(mm, mask, psize); in slice_set_range_psize()
680 unsigned int psize = mm->context.user_psize; in is_hugepage_only_range() local
683 available = slice_mask_for_size(mm, psize); in is_hugepage_only_range()
686 if (psize == MMU_PAGE_64K) { in is_hugepage_only_range()