Home
last modified time | relevance | path

Searched refs:pgoff (Results 1 – 21 of 21) sorted by relevance

/mm/
Dmincore.c62 static unsigned char mincore_page(struct address_space *mapping, pgoff_t pgoff) in mincore_page() argument
75 page = find_get_entry(mapping, pgoff); in mincore_page()
85 page = find_get_page(mapping, pgoff); in mincore_page()
87 page = find_get_page(mapping, pgoff); in mincore_page()
105 pgoff_t pgoff; in mincore_unmapped_range() local
107 pgoff = linear_page_index(vma, addr); in mincore_unmapped_range()
108 for (i = 0; i < nr; i++, pgoff++) in mincore_unmapped_range()
109 vec[i] = mincore_page(vma->vm_file->f_mapping, pgoff); in mincore_unmapped_range()
127 pgoff_t pgoff; in mincore_pte_range() local
135 pgoff = pte_to_pgoff(pte); in mincore_pte_range()
[all …]
Dfremap.c73 unsigned long addr, unsigned long pgoff, pgprot_t prot) in install_file_pte() argument
83 ptfile = pgoff_to_pte(pgoff); in install_file_pte()
103 unsigned long size, pgoff_t pgoff) in generic_file_remap_pages() argument
109 err = install_file_pte(mm, vma, addr, pgoff, vma->vm_page_prot); in generic_file_remap_pages()
115 pgoff++; in generic_file_remap_pages()
143 unsigned long, prot, unsigned long, pgoff, unsigned long, flags) in SYSCALL_DEFINE5() argument
169 if (pgoff + (size >> PAGE_SHIFT) < pgoff) in SYSCALL_DEFINE5()
174 if (pgoff + (size >> PAGE_SHIFT) >= (1UL << PTE_FILE_MAX_BITS)) in SYSCALL_DEFINE5()
207 if (pgoff == linear_page_index(vma, start)) { in SYSCALL_DEFINE5()
231 addr = mmap_region(file, start, size, vm_flags, pgoff); in SYSCALL_DEFINE5()
[all …]
Dfilemap_xip.c166 unsigned long pgoff) in __xip_unmap() argument
186 vma_interval_tree_foreach(vma, &mapping->i_mmap, pgoff, pgoff) { in __xip_unmap()
189 ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in __xip_unmap()
236 if (vmf->pgoff >= size) in xip_file_fault()
239 error = mapping->a_ops->get_xip_mem(mapping, vmf->pgoff, 0, in xip_file_fault()
254 error = mapping->a_ops->get_xip_mem(mapping, vmf->pgoff, 1, in xip_file_fault()
260 __xip_unmap(mapping, vmf->pgoff); in xip_file_fault()
279 error = mapping->a_ops->get_xip_mem(mapping, vmf->pgoff, 0, in xip_file_fault()
Dmmap.c759 unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert) in vma_adjust() argument
870 vma->vm_pgoff = pgoff; in vma_adjust()
1076 pgoff_t pgoff, struct mempolicy *policy, in vma_merge() argument
1104 file, pgoff, anon_name)) { in vma_merge()
1111 file, pgoff+pglen, anon_name) && in vma_merge()
1132 file, pgoff+pglen, anon_name)) { in vma_merge()
1298 unsigned long flags, unsigned long pgoff, in do_mmap_pgoff() argument
1328 if ((pgoff + (len >> PAGE_SHIFT)) < pgoff) in do_mmap_pgoff()
1338 addr = get_unmapped_area(file, addr, len, pgoff, flags); in do_mmap_pgoff()
1408 pgoff = 0; in do_mmap_pgoff()
[all …]
Dnommu.c918 unsigned long pgoff, in validate_mmap_request() argument
945 if ((pgoff + (rlen >> PAGE_SHIFT)) < pgoff) in validate_mmap_request()
1266 unsigned long pgoff, in do_mmap_pgoff() argument
1275 kenter(",%lx,%lx,%lx,%lx,%lx", addr, len, prot, flags, pgoff); in do_mmap_pgoff()
1281 ret = validate_mmap_request(file, addr, len, prot, flags, pgoff, in do_mmap_pgoff()
1307 region->vm_pgoff = pgoff; in do_mmap_pgoff()
1311 vma->vm_pgoff = pgoff; in do_mmap_pgoff()
1333 pgend = pgoff + pglen; in do_mmap_pgoff()
1352 if (pgoff >= rpgend) in do_mmap_pgoff()
1357 if ((pregion->vm_pgoff != pgoff || rpglen != pglen) && in do_mmap_pgoff()
[all …]
Dmemory.c1989 vmf.pgoff = page->index; in do_page_mkwrite()
2664 pgoff_t pgoff, unsigned int flags, struct page **page) in __do_fault() argument
2670 vmf.pgoff = pgoff; in __do_fault()
2798 pte_t *pte, pgoff_t pgoff, unsigned int flags) in do_fault_around() argument
2811 pgoff -= off; in do_fault_around()
2817 max_pgoff = pgoff - ((start_addr >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) + in do_fault_around()
2820 pgoff + nr_pages - 1); in do_fault_around()
2824 if (++pgoff > max_pgoff) in do_fault_around()
2834 vmf.pgoff = pgoff; in do_fault_around()
2842 pgoff_t pgoff, unsigned int flags, pte_t orig_pte) in do_read_fault() argument
[all …]
Dmremap.c354 unsigned long pgoff; in vma_to_resize() local
358 pgoff = (addr - vma->vm_start) >> PAGE_SHIFT; in vma_to_resize()
359 pgoff += vma->vm_pgoff; in vma_to_resize()
360 if (pgoff + (new_len >> PAGE_SHIFT) < pgoff) in vma_to_resize()
Dmemory-failure.c432 pgoff_t pgoff; in collect_procs_anon() local
438 pgoff = page_to_pgoff(page); in collect_procs_anon()
447 pgoff, pgoff) { in collect_procs_anon()
472 pgoff_t pgoff = page_to_pgoff(page); in collect_procs_file() local
477 vma_interval_tree_foreach(vma, &mapping->i_mmap, pgoff, in collect_procs_file()
478 pgoff) { in collect_procs_file()
Drmap.c569 pgoff_t pgoff = page_to_pgoff(page); in __vma_address() local
570 return vma->vm_start + ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in __vma_address()
1685 pgoff_t pgoff = page_to_pgoff(page); in rmap_walk_anon() local
1693 anon_vma_interval_tree_foreach(avc, &anon_vma->rb_root, pgoff, pgoff) { in rmap_walk_anon()
1726 pgoff_t pgoff = page_to_pgoff(page); in rmap_walk_file() local
1741 vma_interval_tree_foreach(vma, &mapping->i_mmap, pgoff, pgoff) { in rmap_walk_file()
Dmadvise.c51 pgoff_t pgoff; in madvise_behavior() local
103 pgoff = vma->vm_pgoff + ((start - vma->vm_start) >> PAGE_SHIFT); in madvise_behavior()
105 vma->vm_file, pgoff, vma_policy(vma), in madvise_behavior()
Dmprotect.c262 pgoff_t pgoff; in mprotect_fixup() local
290 pgoff = vma->vm_pgoff + ((start - vma->vm_start) >> PAGE_SHIFT); in mprotect_fixup()
292 vma->anon_vma, vma->vm_file, pgoff, vma_policy(vma), in mprotect_fixup()
Dutil.c256 unsigned long flag, unsigned long pgoff) in vm_mmap_pgoff() argument
265 ret = do_mmap_pgoff(file, addr, len, prot, flag, pgoff, in vm_mmap_pgoff()
Dmlock.c559 pgoff_t pgoff; in mlock_fixup() local
568 pgoff = vma->vm_pgoff + ((start - vma->vm_start) >> PAGE_SHIFT); in mlock_fixup()
570 vma->vm_file, pgoff, vma_policy(vma), in mlock_fixup()
Dmempolicy.c749 pgoff_t pgoff; in mbind_range() local
769 pgoff = vma->vm_pgoff + in mbind_range()
772 vma->anon_vma, vma->vm_file, pgoff, in mbind_range()
2270 unsigned long pgoff; in mpol_misplaced() local
2287 pgoff = vma->vm_pgoff; in mpol_misplaced()
2288 pgoff += (addr - vma->vm_start) >> PAGE_SHIFT; in mpol_misplaced()
2289 polnid = offset_il_node(pol, vma, pgoff); in mpol_misplaced()
Dfilemap.c1873 pgoff_t offset = vmf->pgoff; in filemap_fault()
2000 radix_tree_for_each_slot(slot, &mapping->page_tree, &iter, vmf->pgoff) { in filemap_map_pages()
2037 pte = vmf->pte + page->index - vmf->pgoff; in filemap_map_pages()
2043 addr = address + (page->index - vmf->pgoff) * PAGE_SIZE; in filemap_map_pages()
Dhuge_memory.c1868 pgoff_t pgoff = page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT); in __split_huge_page() local
1875 anon_vma_interval_tree_foreach(avc, &anon_vma->rb_root, pgoff, pgoff) { in __split_huge_page()
1900 anon_vma_interval_tree_foreach(avc, &anon_vma->rb_root, pgoff, pgoff) { in __split_huge_page()
Dmigrate.c200 pgoff_t pgoff = page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT); in remove_linear_migration_ptes_from_nonlinear() local
206 addr = vma->vm_start + ((pgoff - vma->vm_pgoff) << PAGE_SHIFT); in remove_linear_migration_ptes_from_nonlinear()
Dmemcontrol.c5726 pgoff_t pgoff; in mc_handle_file_pte() local
5735 pgoff = linear_page_index(vma, addr); in mc_handle_file_pte()
5737 pgoff = pte_to_pgoff(ptent); in mc_handle_file_pte()
5743 page = find_get_entry(mapping, pgoff); in mc_handle_file_pte()
5751 page = find_get_page(mapping, pgoff); in mc_handle_file_pte()
5753 page = find_get_page(mapping, pgoff); in mc_handle_file_pte()
Dhugetlb.c2791 pgoff_t pgoff; in unmap_ref_private() local
2798 pgoff = ((address - vma->vm_start) >> PAGE_SHIFT) + in unmap_ref_private()
2808 vma_interval_tree_foreach(iter_vma, &mapping->i_mmap, pgoff, pgoff) { in unmap_ref_private()
Dshmem.c1308 vmf->pgoff >= shmem_falloc->start && in shmem_fault()
1309 vmf->pgoff < shmem_falloc->next) { in shmem_fault()
1342 error = shmem_getpage(inode, vmf->pgoff, &vmf->page, SGP_CACHE, &ret); in shmem_fault()
Dvmalloc.c2179 unsigned long pgoff) in remap_vmalloc_range() argument
2182 addr + (pgoff << PAGE_SHIFT), in remap_vmalloc_range()