Lines Matching refs:pgsize

55 			   pte_t *ptep, size_t *pgsize)  in find_num_contig()  argument
61 *pgsize = PAGE_SIZE; in find_num_contig()
65 *pgsize = PMD_SIZE; in find_num_contig()
71 static inline int num_contig_ptes(unsigned long size, size_t *pgsize) in num_contig_ptes() argument
75 *pgsize = size; in num_contig_ptes()
85 *pgsize = PMD_SIZE; in num_contig_ptes()
89 *pgsize = PAGE_SIZE; in num_contig_ptes()
108 unsigned long pgsize, in get_clear_flush() argument
115 for (i = 0; i < ncontig; i++, addr += pgsize, ptep++) { in get_clear_flush()
149 unsigned long pgsize, in clear_flush() argument
155 for (i = 0; i < ncontig; i++, addr += pgsize, ptep++) in clear_flush()
164 size_t pgsize; in set_huge_pte_at() local
181 ncontig = find_num_contig(mm, addr, ptep, &pgsize); in set_huge_pte_at()
183 dpfn = pgsize >> PAGE_SHIFT; in set_huge_pte_at()
186 clear_flush(mm, addr, ptep, pgsize, ncontig); in set_huge_pte_at()
188 for (i = 0; i < ncontig; i++, ptep++, addr += pgsize, pfn += dpfn) in set_huge_pte_at()
196 size_t pgsize; in set_huge_swap_pte_at() local
198 ncontig = num_contig_ptes(sz, &pgsize); in set_huge_swap_pte_at()
303 size_t pgsize; in huge_pte_clear() local
305 ncontig = num_contig_ptes(sz, &pgsize); in huge_pte_clear()
307 for (i = 0; i < ncontig; i++, addr += pgsize, ptep++) in huge_pte_clear()
315 size_t pgsize; in huge_ptep_get_and_clear() local
321 ncontig = find_num_contig(mm, addr, ptep, &pgsize); in huge_ptep_get_and_clear()
323 return get_clear_flush(mm, addr, ptep, pgsize, ncontig); in huge_ptep_get_and_clear()
360 size_t pgsize = 0; in huge_ptep_set_access_flags() local
368 ncontig = find_num_contig(vma->vm_mm, addr, ptep, &pgsize); in huge_ptep_set_access_flags()
369 dpfn = pgsize >> PAGE_SHIFT; in huge_ptep_set_access_flags()
374 orig_pte = get_clear_flush(vma->vm_mm, addr, ptep, pgsize, ncontig); in huge_ptep_set_access_flags()
384 for (i = 0; i < ncontig; i++, ptep++, addr += pgsize, pfn += dpfn) in huge_ptep_set_access_flags()
396 size_t pgsize; in huge_ptep_set_wrprotect() local
404 ncontig = find_num_contig(mm, addr, ptep, &pgsize); in huge_ptep_set_wrprotect()
405 dpfn = pgsize >> PAGE_SHIFT; in huge_ptep_set_wrprotect()
407 pte = get_clear_flush(mm, addr, ptep, pgsize, ncontig); in huge_ptep_set_wrprotect()
413 for (i = 0; i < ncontig; i++, ptep++, addr += pgsize, pfn += dpfn) in huge_ptep_set_wrprotect()
420 size_t pgsize; in huge_ptep_clear_flush() local
428 ncontig = find_num_contig(vma->vm_mm, addr, ptep, &pgsize); in huge_ptep_clear_flush()
429 clear_flush(vma->vm_mm, addr, ptep, pgsize, ncontig); in huge_ptep_clear_flush()