Home
last modified time | relevance | path

Searched refs:vma (Results 1 – 25 of 654) sorted by relevance

12345678910>>...27

/linux/include/linux/
H A Dmmap_lock.h87 #define __vma_lockdep_map(vma) (&vma->vmlock_dep_map)
89 #define __vma_lockdep_map(vma) NULL
111 #define __vma_lockdep_acquire_read(vma) \
112 lock_acquire_shared(__vma_lockdep_map(vma), 0, 1, NULL, _RET_IP_) argument
113 #define __vma_lockdep_release_read(vma) \
114 lock_release(__vma_lockdep_map(vma), _RET_IP_)
115 #define __vma_lockdep_acquire_exclusive(vma) \ argument
116 lock_acquire_exclusive(__vma_lockdep_map(vma), 0, 0, NULL, _RET_IP_)
117 #define __vma_lockdep_release_exclusive(vma) \
82 __vma_lockdep_map(vma) global() argument
84 __vma_lockdep_map(vma) global() argument
106 __vma_lockdep_acquire_read(vma) global() argument
108 __vma_lockdep_release_read(vma) global() argument
110 __vma_lockdep_acquire_exclusive(vma) global() argument
150 vma_lock_init(struct vm_area_struct * vma,bool reset_refcnt) vma_lock_init() argument
192 __vma_refcount_put_return(struct vm_area_struct * vma) __vma_refcount_put_return() argument
210 vma_refcount_put(struct vm_area_struct * vma) vma_refcount_put() argument
238 vma_start_read_locked_nested(struct vm_area_struct * vma,int subclass) vma_start_read_locked_nested() argument
257 vma_start_read_locked(struct vm_area_struct * vma) vma_start_read_locked() argument
262 vma_end_read(struct vm_area_struct * vma) vma_end_read() argument
267 __vma_raw_mm_seqnum(struct vm_area_struct * vma) __vma_raw_mm_seqnum() argument
282 __is_vma_write_locked(struct vm_area_struct * vma) __is_vma_write_locked() argument
298 vma_start_write(struct vm_area_struct * vma) vma_start_write() argument
320 vma_start_write_killable(struct vm_area_struct * vma) vma_start_write_killable() argument
332 vma_assert_write_locked(struct vm_area_struct * vma) vma_assert_write_locked() argument
342 vma_assert_locked(struct vm_area_struct * vma) vma_assert_locked() argument
388 vma_assert_stabilised(struct vm_area_struct * vma) vma_assert_stabilised() argument
423 vma_is_attached(struct vm_area_struct * vma) vma_is_attached() argument
433 vma_assert_attached(struct vm_area_struct * vma) vma_assert_attached() argument
438 vma_assert_detached(struct vm_area_struct * vma) vma_assert_detached() argument
443 vma_mark_attached(struct vm_area_struct * vma) vma_mark_attached() argument
452 vma_mark_detached(struct vm_area_struct * vma) vma_mark_detached() argument
502 vma_lock_init(struct vm_area_struct * vma,bool reset_refcnt) vma_lock_init() argument
503 vma_end_read(struct vm_area_struct * vma) vma_end_read() argument
504 vma_start_write(struct vm_area_struct * vma) vma_start_write() argument
506 vma_start_write_killable(struct vm_area_struct * vma) vma_start_write_killable() argument
507 vma_assert_write_locked(struct vm_area_struct * vma) vma_assert_write_locked() argument
509 vma_is_attached(struct vm_area_struct * vma) vma_is_attached() argument
511 vma_assert_attached(struct vm_area_struct * vma) vma_assert_attached() argument
512 vma_assert_detached(struct vm_area_struct * vma) vma_assert_detached() argument
513 vma_mark_attached(struct vm_area_struct * vma) vma_mark_attached() argument
514 vma_mark_detached(struct vm_area_struct * vma) vma_mark_detached() argument
522 vma_assert_locked(struct vm_area_struct * vma) vma_assert_locked() argument
527 vma_assert_stabilised(struct vm_area_struct * vma) vma_assert_stabilised() argument
535 vma_assert_can_modify(struct vm_area_struct * vma) vma_assert_can_modify() argument
[all...]
/linux/drivers/gpu/drm/i915/
H A Di915_gem_evict.c41 static bool dying_vma(struct i915_vma *vma)
43 return !kref_read(&vma->obj->base.refcount);
67 static bool grab_vma(struct i915_vma *vma, struct i915_gem_ww_ctx *ww) in grab_vma() argument
73 if (i915_gem_object_get_rcu(vma->obj)) { in grab_vma()
74 if (!i915_gem_object_trylock(vma->obj, ww)) { in grab_vma()
75 i915_gem_object_put(vma->obj); in grab_vma()
80 atomic_and(~I915_VMA_PIN_MASK, &vma->flags); in grab_vma()
86 static void ungrab_vma(struct i915_vma *vma) in ungrab_vma() argument
88 if (dying_vma(vma)) in ungrab_vma()
91 i915_gem_object_unlock(vma->obj); in ungrab_vma()
[all …]
/linux/tools/testing/vma/tests/
H A Dmerge.c6 struct vm_area_struct *vma; in merge_new() local
15 vma = vma_merge_new_range(vmg); in merge_new()
16 if (vma) in merge_new()
17 vma_assert_attached(vma); in merge_new()
19 return vma; in merge_new()
98 struct vm_area_struct *vma; in test_simple_merge() local
118 vma = merge_new(&vmg); in test_simple_merge()
119 ASSERT_NE(vma, NULL); in test_simple_merge()
121 ASSERT_EQ(vma->vm_start, 0); in test_simple_merge()
122 ASSERT_EQ(vma in test_simple_merge()
135 struct vm_area_struct *vma; test_simple_modify() local
203 struct vm_area_struct *vma = alloc_vma(&mm, 0, 0x1000, 0, vma_flags); test_simple_expand() local
233 struct vm_area_struct *vma = alloc_vma(&mm, 0, 0x3000, 0, vma_flags); test_simple_shrink() local
277 struct vm_area_struct *vma, *vma_a, *vma_b, *vma_c, *vma_d; __test_merge_new() local
503 struct vm_area_struct *vma_left, *vma; test_vma_merge_special_flags() local
579 struct vm_area_struct *vma_prev, *vma_next, *vma; test_vma_merge_with_close() local
793 struct vm_area_struct *vma; test_vma_merge_new_with_close() local
843 struct vm_area_struct *vma, *vma_prev, *vma_next; __test_merge_existing() local
1111 struct vm_area_struct *vma, *vma_prev, *vma_next; test_anon_vma_non_mergeable() local
1208 struct vm_area_struct *vma_prev, *vma_next, *vma; test_dup_anon_vma() local
1367 struct vm_area_struct *vma_prev, *vma; test_vmi_prealloc_fail() local
1429 struct vm_area_struct *vma; test_merge_extend() local
1461 struct vm_area_struct *vma_prev, *vma; test_expand_only_mode() local
[all...]
/linux/mm/
H A Dvma.c9 * vma_internal.h and external VMA API declarations in vma.h.
12 #include "vma.h"
80 static void __vma_set_range(struct vm_area_struct *vma, unsigned long start, in __vma_set_range() argument
83 vma->vm_start = start; in __vma_set_range()
84 vma->vm_end = end; in __vma_set_range()
87 static void vma_set_range(struct vm_area_struct *vma, unsigned long start, in vma_set_range() argument
90 __vma_set_range(vma, start, end); in vma_set_range()
91 vma_set_pgoff(vma, pgoff); in vma_set_range()
92 vma_set_anon_pgoff(vma, anon_pgoff); in vma_set_range()
96 static bool vma_is_fork_child(struct vm_area_struct *vma) in vma_is_fork_child() argument
108 struct vm_area_struct *vma = merge_next ? vmg->next : vmg->prev; is_mergeable_vma() local
168 init_multi_vma_prep(struct vma_prepare * vp,struct vm_area_struct * vma,struct vma_merge_struct * vmg) init_multi_vma_prep() argument
276 __vma_link_file(struct vm_area_struct * vma,struct address_space * mapping) __vma_link_file() argument
290 __remove_shared_vm_struct(struct vm_area_struct * vma,struct address_space * mapping) __remove_shared_vm_struct() argument
316 anon_rmap_tree_pre_update_vma(struct vm_area_struct * vma) anon_rmap_tree_pre_update_vma() argument
325 anon_rmap_tree_post_update_vma(struct vm_area_struct * vma) anon_rmap_tree_post_update_vma() argument
460 init_vma_prep(struct vma_prepare * vp,struct vm_area_struct * vma) init_vma_prep() argument
510 remove_vma(struct vm_area_struct * vma) remove_vma() argument
544 __split_vma(struct vma_iterator * vmi,struct vm_area_struct * vma,unsigned long addr,int new_below) __split_vma() argument
637 split_vma(struct vma_iterator * vmi,struct vm_area_struct * vma,unsigned long addr,int new_below) split_vma() argument
693 struct vm_area_struct *vma; validate_mm() local
813 struct vm_area_struct *vma; commit_merge() local
855 can_merge_remove_vma(struct vm_area_struct * vma) can_merge_remove_vma() argument
1331 vma_shrink(struct vma_iterator * vmi,struct vm_area_struct * vma,unsigned long end) vma_shrink() argument
1390 struct vm_area_struct *vma; vms_clean_up_area() local
1413 struct vm_area_struct *vma; vms_complete_munmap_vmas() local
1459 struct vm_area_struct *vma; reattach_vmas() local
1627 init_vma_munmap(struct vma_munmap_struct * vms,struct vma_iterator * vmi,struct vm_area_struct * vma,unsigned long start,unsigned long end,struct list_head * uf,bool unlock) init_vma_munmap() argument
1663 do_vmi_align_munmap(struct vma_iterator * vmi,struct vm_area_struct * vma,struct mm_struct * mm,unsigned long start,unsigned long end,struct list_head * uf,bool unlock) do_vmi_align_munmap() argument
1715 struct vm_area_struct *vma; do_vmi_munmap() local
1750 struct vm_area_struct *vma = vmg->middle; vma_modify() local
1788 vma_modify_flags(struct vma_iterator * vmi,struct vm_area_struct * prev,struct vm_area_struct * vma,unsigned long start,unsigned long end,vma_flags_t * vma_flags_ptr) vma_modify_flags() argument
1813 vma_modify_name(struct vma_iterator * vmi,struct vm_area_struct * prev,struct vm_area_struct * vma,unsigned long start,unsigned long end,struct anon_vma_name * new_name) vma_modify_name() argument
1825 vma_modify_policy(struct vma_iterator * vmi,struct vm_area_struct * prev,struct vm_area_struct * vma,unsigned long start,unsigned long end,struct mempolicy * new_pol) vma_modify_policy() argument
1837 vma_modify_flags_uffd(struct vma_iterator * vmi,struct vm_area_struct * prev,struct vm_area_struct * vma,unsigned long start,unsigned long end,const vma_flags_t * vma_flags,struct vm_userfaultfd_ctx new_ctx,bool give_up_on_oom) vma_modify_flags_uffd() argument
1857 vma_merge_extend(struct vma_iterator * vmi,struct vm_area_struct * vma,unsigned long delta) vma_merge_extend() argument
1891 unlink_file_vma_batch_add(struct unlink_vma_file_batch * vb,struct vm_area_struct * vma) unlink_file_vma_batch_add() argument
1910 vma_link_file(struct vm_area_struct * vma,bool hold_rmap_lock) vma_link_file() argument
1924 vma_link(struct mm_struct * mm,struct vm_area_struct * vma) vma_link() argument
1948 struct vm_area_struct *vma = *vmap; copy_vma() local
2150 find_mergeable_anon_vma(struct vm_area_struct * vma) find_mergeable_anon_vma() argument
2189 vma_is_shared_writable(struct vm_area_struct * vma) vma_is_shared_writable() argument
2194 vma_fs_can_writeback(struct vm_area_struct * vma) vma_fs_can_writeback() argument
2208 vma_needs_dirty_tracking(struct vm_area_struct * vma) vma_needs_dirty_tracking() argument
2231 vma_wants_writenotify(struct vm_area_struct * vma,pgprot_t vm_page_prot) vma_wants_writenotify() argument
2345 struct vm_area_struct *vma; mm_take_all_locks() local
2441 struct vm_area_struct *vma; mm_drop_all_locks() local
2606 __mmap_new_file_vma(struct mmap_state * map,struct vm_area_struct * vma) __mmap_new_file_vma() argument
2664 struct vm_area_struct *vma; __mmap_new_vma() local
2737 __mmap_complete(struct mmap_state * map,struct vm_area_struct * vma) __mmap_complete() argument
2822 set_vma_user_defined_fields(struct vm_area_struct * vma,struct mmap_state * map) set_vma_user_defined_fields() argument
2866 struct vm_area_struct *vma = NULL; __mmap_region() local
3013 do_brk_flags(struct vma_iterator * vmi,struct vm_area_struct * vma,unsigned long addr,unsigned long len,vma_flags_t vma_flags) do_brk_flags() argument
3204 acct_stack_growth(struct vm_area_struct * vma,unsigned long size,unsigned long grow) acct_stack_growth() argument
3247 expand_upwards(struct vm_area_struct * vma,unsigned long address) expand_upwards() argument
3332 expand_downwards(struct vm_area_struct * vma,unsigned long address) expand_downwards() argument
3427 insert_vm_struct(struct mm_struct * mm,struct vm_area_struct * vma) insert_vm_struct() argument
3481 vma_mmu_pagesize(struct vm_area_struct * vma) vma_mmu_pagesize() argument
3493 struct vm_area_struct *vma; __install_special_mapping() local
[all...]
H A Dnommu.c92 struct vm_area_struct *vma; in kobjsize() local
94 vma = find_vma(current->mm, (unsigned long)objp); in kobjsize()
95 if (vma) in kobjsize()
96 return vma->vm_end - vma->vm_start; in kobjsize()
148 struct vm_area_struct *vma; in __vmalloc_user_flags() local
151 vma = find_vma(current->mm, (unsigned long)ret); in __vmalloc_user_flags()
152 if (vma) in __vmalloc_user_flags()
153 vm_flags_set(vma, VM_USERMAP); in __vmalloc_user_flags()
345 int vm_insert_page(struct vm_area_struct *vma, unsigne argument
352 vm_insert_pages(struct vm_area_struct * vma,unsigned long addr,struct page ** pages,unsigned long * num) vm_insert_pages() argument
359 vm_map_pages(struct vm_area_struct * vma,struct page ** pages,unsigned long num) vm_map_pages() argument
366 vm_map_pages_zero(struct vm_area_struct * vma,struct page ** pages,unsigned long num) vm_map_pages_zero() argument
562 setup_vma_to_mm(struct vm_area_struct * vma,struct mm_struct * mm) setup_vma_to_mm() argument
578 cleanup_vma_from_mm(struct vm_area_struct * vma) cleanup_vma_from_mm() argument
597 delete_vma_from_mm(struct vm_area_struct * vma) delete_vma_from_mm() argument
616 delete_vma(struct mm_struct * mm,struct vm_area_struct * vma) delete_vma() argument
652 expand_stack_locked(struct vm_area_struct * vma,unsigned long addr) expand_stack_locked() argument
671 struct vm_area_struct *vma; find_vma_exact() local
893 do_mmap_shared_file(struct vm_area_struct * vma) do_mmap_shared_file() argument
914 do_mmap_private(struct vm_area_struct * vma,struct vm_region * region,unsigned long len,unsigned long capabilities) do_mmap_private() argument
1023 struct vm_area_struct *vma; do_mmap() local
1330 split_vma(struct vma_iterator * vmi,struct vm_area_struct * vma,unsigned long addr,int new_below) split_vma() argument
1415 vmi_shrink_vma(struct vma_iterator * vmi,struct vm_area_struct * vma,unsigned long from,unsigned long to) vmi_shrink_vma() argument
1459 struct vm_area_struct *vma; do_munmap() local
1541 struct vm_area_struct *vma; exit_mmap() local
1576 struct vm_area_struct *vma; do_mremap() local
1620 remap_pfn_range(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,pgprot_t prot) remap_pfn_range() argument
1631 vm_iomap_memory(struct vm_area_struct * vma,phys_addr_t start,unsigned long len) vm_iomap_memory() argument
1641 remap_vmalloc_range(struct vm_area_struct * vma,void * addr,unsigned long pgoff) remap_vmalloc_range() argument
1674 struct vm_area_struct *vma; __access_remote_vm() local
1753 struct vm_area_struct *vma; __copy_remote_vm_str() local
1837 struct vm_area_struct *vma; nommu_shrink_inode_mappings() local
[all...]
H A Dvma.h3 * vma.h
5 * Core VMA manipulation API implemented in vma.c, vma_init.c and vma_exec.c.
21 struct vm_area_struct *vma; member
41 * vma munmap operation
45 struct vm_area_struct *vma; /* The first vma to munmap */
46 struct vm_area_struct *prev; /* vma before the munmap area */
47 struct vm_area_struct *next; /* vma after the munmap area */
143 * If set, skip uprobe_mmap upon merged vma.
173 struct ma_state *mas; /* the maple state point to the first vma */
43 struct vm_area_struct *vma; /* The first vma to munmap */ global() member
187 unmap_all_init(struct unmap_desc * unmap,struct vma_iterator * vmi,struct vm_area_struct * vma) unmap_all_init() argument
258 assert_sane_pgoff(struct vm_area_struct * vma,pgoff_t pgoff) assert_sane_pgoff() argument
280 vma_set_pgoff(struct vm_area_struct * vma,pgoff_t pgoff) vma_set_pgoff() argument
297 __vma_set_anon_pgoff(struct vm_area_struct * vma,pgoff_t pgoff) __vma_set_anon_pgoff() argument
305 vma_set_anon_pgoff(struct vm_area_struct * vma,pgoff_t pgoff) vma_set_anon_pgoff() argument
311 vma_add_pgoff(struct vm_area_struct * vma,pgoff_t delta) vma_add_pgoff() argument
318 vma_sub_pgoff(struct vm_area_struct * vma,pgoff_t delta) vma_sub_pgoff() argument
368 vma_iter_store_gfp(struct vma_iterator * vmi,struct vm_area_struct * vma,gfp_t gfp) vma_iter_store_gfp() argument
389 compat_set_vma_from_desc(struct vm_area_struct * vma,struct vm_area_desc * desc) compat_set_vma_from_desc() argument
564 vma_wants_manual_pte_write_upgrade(struct vm_area_struct * vma) vma_wants_manual_pte_write_upgrade() argument
668 vma_iter_prealloc(struct vma_iterator * vmi,struct vm_area_struct * vma) vma_iter_prealloc() argument
685 vma_iter_store_overwrite(struct vma_iterator * vmi,struct vm_area_struct * vma) vma_iter_store_overwrite() argument
713 vma_iter_store_new(struct vma_iterator * vmi,struct vm_area_struct * vma) vma_iter_store_new() argument
764 vma_is_sealed(struct vm_area_struct * vma) vma_is_sealed() argument
769 vma_is_sealed(struct vm_area_struct * vma) vma_is_sealed() argument
[all...]
H A Dmemory.c107 if (!userfaultfd_wp(vmf->vma)) in vmf_orig_pte_uffd_wp()
366 * page tables that should be removed. This can differ from the vma mappings on
377 struct vm_area_struct *vma = unmap->first; in free_pgtables() local
382 * pagetable end is exclusive. vma_end is exclusive. The last vma in free_pgtables()
390 unsigned long addr = vma->vm_start; in free_pgtables()
396 * Hide vma from rmap and truncate_pagecache before freeing in free_pgtables()
400 vma_start_write(vma); in free_pgtables()
401 unlink_anon_vmas(vma); in free_pgtables()
404 unlink_file_vma_batch_add(&vb, vma); in free_pgtables()
409 while (next && next->vm_start <= vma in free_pgtables()
628 print_bad_page_map(struct vm_area_struct * vma,unsigned long addr,const void * entry,size_t entry_size,struct page * page,enum pgtable_level level) print_bad_page_map() argument
681 print_bad_pte(struct vm_area_struct * vma,unsigned long addr,pte_t pte,struct page * page) print_bad_pte() argument
755 __vm_normal_page(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,bool special,const void * entry,size_t entry_size,enum pgtable_level level) __vm_normal_page() argument
824 vm_normal_page(struct vm_area_struct * vma,unsigned long addr,pte_t pte) vm_normal_page() argument
845 vm_normal_folio(struct vm_area_struct * vma,unsigned long addr,pte_t pte) vm_normal_folio() argument
868 vm_normal_page_pmd(struct vm_area_struct * vma,unsigned long addr,pmd_t pmd) vm_normal_page_pmd() argument
889 vm_normal_folio_pmd(struct vm_area_struct * vma,unsigned long addr,pmd_t pmd) vm_normal_folio_pmd() argument
911 vm_normal_page_pud(struct vm_area_struct * vma,unsigned long addr,pud_t pud) vm_normal_page_pud() argument
947 restore_exclusive_pte(struct vm_area_struct * vma,struct folio * folio,struct page * page,unsigned long address,pte_t * ptep,pte_t orig_pte) restore_exclusive_pte() argument
985 try_restore_exclusive_pte(struct vm_area_struct * vma,unsigned long addr,pte_t * ptep,pte_t orig_pte) try_restore_exclusive_pte() argument
1284 folio_prealloc(struct mm_struct * src_mm,struct vm_area_struct * vma,unsigned long addr,bool need_zero) folio_prealloc() argument
1705 cond_install_uffd_wp_ptes(struct vm_area_struct * vma,unsigned long addr,pte_t * ptep,pte_t pte,unsigned long nr_ptes) cond_install_uffd_wp_ptes() argument
1759 zap_install_uffd_wp_if_needed(struct vm_area_struct * vma,unsigned long addr,pte_t * pte,int nr,struct zap_details * details,pte_t pteval) zap_install_uffd_wp_if_needed() argument
1770 zap_present_folio_ptes(struct mmu_gather * tlb,struct vm_area_struct * vma,struct folio * folio,struct page * page,pte_t * pte,pte_t ptent,unsigned int nr,unsigned long addr,struct zap_details * details,int * rss,bool * force_flush,bool * force_break,bool * any_skipped) zap_present_folio_ptes() argument
1821 zap_present_ptes(struct mmu_gather * tlb,struct vm_area_struct * vma,pte_t * pte,pte_t ptent,unsigned int max_nr,unsigned long addr,struct zap_details * details,int * rss,bool * force_flush,bool * force_break,bool * any_skipped) zap_present_ptes() argument
1867 zap_nonpresent_ptes(struct mmu_gather * tlb,struct vm_area_struct * vma,pte_t * pte,pte_t ptent,unsigned int max_nr,unsigned long addr,struct zap_details * details,int * rss,bool * any_skipped) zap_nonpresent_ptes() argument
1938 do_zap_pte_range(struct mmu_gather * tlb,struct vm_area_struct * vma,pte_t * pte,unsigned long addr,unsigned long end,struct zap_details * details,int * rss,bool * force_flush,bool * force_break,bool * any_skipped) do_zap_pte_range() argument
2032 zap_pte_range(struct mmu_gather * tlb,struct vm_area_struct * vma,pmd_t * pmd,unsigned long addr,unsigned long end,struct zap_details * details) zap_pte_range() argument
2124 zap_pmd_range(struct mmu_gather * tlb,struct vm_area_struct * vma,pud_t * pud,unsigned long addr,unsigned long end,struct zap_details * details) zap_pmd_range() argument
2160 zap_pud_range(struct mmu_gather * tlb,struct vm_area_struct * vma,p4d_t * p4d,unsigned long addr,unsigned long end,struct zap_details * details) zap_pud_range() argument
2188 zap_p4d_range(struct mmu_gather * tlb,struct vm_area_struct * vma,pgd_t * pgd,unsigned long addr,unsigned long end,struct zap_details * details) zap_p4d_range() argument
2206 __zap_vma_range(struct mmu_gather * tlb,struct vm_area_struct * vma,unsigned long start,unsigned long end,struct zap_details * details) __zap_vma_range() argument
2255 zap_vma_for_reaping(struct vm_area_struct * vma) zap_vma_for_reaping() argument
2294 struct vm_area_struct *vma; unmap_vmas() local
2331 zap_vma_range_batched(struct mmu_gather * tlb,struct vm_area_struct * vma,unsigned long address,unsigned long size,struct zap_details * details) zap_vma_range_batched() argument
2372 zap_vma_range(struct vm_area_struct * vma,unsigned long address,unsigned long size) zap_vma_range() argument
2391 zap_special_vma_range(struct vm_area_struct * vma,unsigned long address,unsigned long size) zap_special_vma_range() argument
2434 vm_mixed_zeropage_allowed(struct vm_area_struct * vma) vm_mixed_zeropage_allowed() argument
2464 validate_page_before_insert(struct vm_area_struct * vma,struct page * page) validate_page_before_insert() argument
2482 insert_page_into_pte_locked(struct vm_area_struct * vma,pte_t * pte,unsigned long addr,struct page * page,pgprot_t prot,bool mkwrite) insert_page_into_pte_locked() argument
2523 insert_page(struct vm_area_struct * vma,unsigned long addr,struct page * page,pgprot_t prot,bool mkwrite) insert_page() argument
2544 insert_page_in_batch_locked(struct vm_area_struct * vma,pte_t * pte,unsigned long addr,struct page * page,pgprot_t prot) insert_page_in_batch_locked() argument
2558 insert_pages(struct vm_area_struct * vma,unsigned long addr,struct page ** pages,unsigned long * num,pgprot_t prot) insert_pages() argument
2631 vm_insert_pages(struct vm_area_struct * vma,unsigned long addr,struct page ** pages,unsigned long * num) vm_insert_pages() argument
2670 map_kernel_pages_complete(struct vm_area_struct * vma,struct mmap_action * action) map_kernel_pages_complete() argument
2712 vm_insert_page(struct vm_area_struct * vma,unsigned long addr,struct page * page) vm_insert_page() argument
2739 __vm_map_pages(struct vm_area_struct * vma,struct page ** pages,unsigned long num,unsigned long offset) __vm_map_pages() argument
2774 vm_map_pages(struct vm_area_struct * vma,struct page ** pages,unsigned long num) vm_map_pages() argument
2794 vm_map_pages_zero(struct vm_area_struct * vma,struct page ** pages,unsigned long num) vm_map_pages_zero() argument
2801 insert_pfn(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,pgprot_t prot,bool mkwrite) insert_pfn() argument
2885 vmf_insert_pfn_prot(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,pgprot_t pgprot) vmf_insert_pfn_prot() argument
2932 vmf_insert_pfn(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn) vmf_insert_pfn() argument
2939 vm_mixed_ok(struct vm_area_struct * vma,unsigned long pfn,bool mkwrite) vm_mixed_ok() argument
2953 __vm_insert_mixed(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,bool mkwrite) __vm_insert_mixed() argument
3019 vmf_insert_mixed(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn) vmf_insert_mixed() argument
3031 vmf_insert_mixed_mkwrite(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn) vmf_insert_mixed_mkwrite() argument
3154 remap_pfn_range_internal(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,pgprot_t prot) remap_pfn_range_internal() argument
3187 remap_pfn_range_notrack(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,pgprot_t prot) remap_pfn_range_notrack() argument
3233 remap_pfn_range_track(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,pgprot_t prot) remap_pfn_range_track() argument
3270 do_remap_pfn_range(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,pgprot_t prot) do_remap_pfn_range() argument
3276 do_remap_pfn_range(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,pgprot_t prot) do_remap_pfn_range() argument
3304 remap_pfn_range_prepare_vma(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size) remap_pfn_range_prepare_vma() argument
3333 remap_pfn_range(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,pgprot_t prot) remap_pfn_range() argument
3346 remap_pfn_range_complete(struct vm_area_struct * vma,struct mmap_action * action) remap_pfn_range_complete() argument
3424 vm_iomap_memory(struct vm_area_struct * vma,phys_addr_t start,unsigned long len) vm_iomap_memory() argument
3693 struct vm_area_struct *vma = vmf->vma; __wp_page_copy_user() local
3785 __get_fault_gfp_mask(struct vm_area_struct * vma) __get_fault_gfp_mask() argument
3840 struct vm_area_struct *vma = vmf->vma; fault_dirty_shared_page() local
3894 struct vm_area_struct *vma = vmf->vma; wp_page_reuse() local
3927 struct vm_area_struct *vma = vmf->vma; vmf_can_call_fault() local
3952 struct vm_area_struct *vma = vmf->vma; __vmf_anon_prepare() local
3988 struct vm_area_struct *vma = vmf->vma; wp_page_copy() local
4179 struct vm_area_struct *vma = vmf->vma; wp_pfn_shared() local
4202 struct vm_area_struct *vma = vmf->vma; wp_page_shared() local
4241 __wp_can_reuse_large_anon_folio(struct folio * folio,struct vm_area_struct * vma) __wp_can_reuse_large_anon_folio() argument
4307 __wp_can_reuse_large_anon_folio(struct folio * folio,struct vm_area_struct * vma) __wp_can_reuse_large_anon_folio() argument
4314 wp_can_reuse_anon_folio(struct folio * folio,struct vm_area_struct * vma) wp_can_reuse_anon_folio() argument
4384 struct vm_area_struct *vma = vmf->vma; do_wp_page() local
4480 struct vm_area_struct *vma; unmap_mapping_range_tree() local
4603 struct vm_area_struct *vma = vmf->vma; remove_device_exclusive_entry() local
4650 should_try_to_free_swap(struct swap_info_struct * si,struct folio * folio,struct vm_area_struct * vma,bool exclusive,unsigned int fault_flags) should_try_to_free_swap() argument
4797 struct vm_area_struct *vma = vmf->vma; thp_swapin_suitable_orders() local
4883 struct vm_area_struct *vma = vmf->vma; do_swap_page() local
5303 struct vm_area_struct *vma = vmf->vma; alloc_anon_folio() local
5391 map_anon_folio_pte_nopf(struct folio * folio,pte_t * pte,struct vm_area_struct * vma,unsigned long addr,bool uffd_wp) map_anon_folio_pte_nopf() argument
5412 map_anon_folio_pte_pf(struct folio * folio,pte_t * pte,struct vm_area_struct * vma,unsigned long addr,bool uffd_wp) map_anon_folio_pte_pf() argument
5429 struct vm_area_struct *vma = vmf->vma; do_anonymous_page() local
5540 struct vm_area_struct *vma = vmf->vma; __do_fault() local
5597 struct vm_area_struct *vma = vmf->vma; deposit_prealloc_pte() local
5610 struct vm_area_struct *vma = vmf->vma; do_set_pmd() local
5701 struct vm_area_struct *vma = vmf->vma; set_pte_range() local
5759 struct vm_area_struct *vma = vmf->vma; finish_fault() local
6014 struct vm_area_struct *vma = vmf->vma; do_cow_fault() local
6056 struct vm_area_struct *vma = vmf->vma; do_shared_fault() local
6106 struct vm_area_struct *vma = vmf->vma; do_fault() local
6152 struct vm_area_struct *vma = vmf->vma; numa_migrate_check() local
6195 numa_rebuild_single_mapping(struct vm_fault * vmf,struct vm_area_struct * vma,unsigned long fault_addr,pte_t * fault_pte,bool writable) numa_rebuild_single_mapping() argument
6210 numa_rebuild_large_mapping(struct vm_fault * vmf,struct vm_area_struct * vma,struct folio * folio,pte_t fault_pte,bool ignore_writable,bool pte_write_upgrade) numa_rebuild_large_mapping() argument
6290 struct vm_area_struct *vma = vmf->vma; do_numa_page() local
6381 struct vm_area_struct *vma = vmf->vma; create_huge_pmd() local
6392 struct vm_area_struct *vma = vmf->vma; wp_huge_pmd() local
6425 struct vm_area_struct *vma = vmf->vma; create_huge_pud() local
6439 struct vm_area_struct *vma = vmf->vma; wp_huge_pud() local
6604 __handle_mm_fault(struct vm_area_struct * vma,unsigned long address,unsigned int flags) __handle_mm_fault() argument
6779 lru_gen_enter_fault(struct vm_area_struct * vma) lru_gen_enter_fault() argument
6790 lru_gen_enter_fault(struct vm_area_struct * vma) lru_gen_enter_fault() argument
6799 sanitize_fault_flags(struct vm_area_struct * vma,unsigned int * flags) sanitize_fault_flags() argument
6841 handle_mm_fault(struct vm_area_struct * vma,unsigned long address,unsigned int flags,struct pt_regs * regs) handle_mm_fault() argument
6994 pfnmap_lockdep_assert(struct vm_area_struct * vma) pfnmap_lockdep_assert() argument
7041 struct vm_area_struct *vma = args->vma; follow_pfnmap_start() local
7156 generic_access_phys(struct vm_area_struct * vma,unsigned long addr,void * buf,int len,int write) generic_access_phys() argument
7231 struct vm_area_struct *vma = NULL; __access_remote_vm() local
7358 struct vm_area_struct *vma = NULL; __copy_remote_vm_str() local
7455 struct vm_area_struct *vma; print_vma_addr() local
7622 copy_user_gigantic_page(struct folio * dst,struct folio * src,unsigned long addr_hint,struct vm_area_struct * vma,unsigned int nr_pages) copy_user_gigantic_page() argument
7645 struct vm_area_struct *vma; global() member
7660 copy_user_large_folio(struct folio * dst,struct folio * src,unsigned long addr_hint,struct vm_area_struct * vma) copy_user_large_folio() argument
7735 vma_pgtable_walk_begin(struct vm_area_struct * vma) vma_pgtable_walk_begin() argument
7741 vma_pgtable_walk_end(struct vm_area_struct * vma) vma_pgtable_walk_end() argument
[all...]
H A Dmadvise.c81 struct vm_area_struct *vma; member
111 struct anon_vma_name *anon_vma_name(struct vm_area_struct *vma) in anon_vma_name() argument
113 vma_assert_stabilised(vma); in anon_vma_name()
114 return vma->anon_name; in anon_vma_name()
118 static int replace_anon_vma_name(struct vm_area_struct *vma, in replace_anon_vma_name() argument
121 struct anon_vma_name *orig_name = anon_vma_name(vma); in replace_anon_vma_name()
124 vma->anon_name = NULL; in replace_anon_vma_name()
132 vma->anon_name = anon_vma_name_reuse(anon_name); in replace_anon_vma_name()
138 static int replace_anon_vma_name(struct vm_area_struct *vma, in replace_anon_vma_name() argument
148 * Update the vm_flags or anon_name on region of a vma, splittin
154 struct vm_area_struct *vma = madv_behavior->vma; madvise_update_vma() local
199 struct vm_area_struct *vma = walk->private; swapin_walk_pmd_entry() local
243 shmem_swapin_range(struct vm_area_struct * vma,unsigned long start,unsigned long end,struct address_space * mapping) shmem_swapin_range() argument
292 struct vm_area_struct *vma = madv_behavior->vma; madvise_willneed() local
338 can_do_file_pageout(struct vm_area_struct * vma) can_do_file_pageout() argument
370 struct vm_area_struct *vma = walk->vma; madvise_cold_or_pageout_pte_range() local
586 struct vm_area_struct *vma = madv_behavior->vma; madvise_cold_page_range() local
599 can_madv_lru_vma(struct vm_area_struct * vma) can_madv_lru_vma() argument
606 struct vm_area_struct *vma = madv_behavior->vma; madvise_cold() local
621 madvise_pageout_page_range(struct mmu_gather * tlb,struct vm_area_struct * vma,struct madvise_behavior_range * range) madvise_pageout_page_range() argument
638 struct vm_area_struct *vma = madv_behavior->vma; madvise_pageout() local
668 struct vm_area_struct *vma = walk->vma; madvise_free_pte_range() local
811 struct vm_area_struct *vma = madv_behavior->vma; madvise_free_single_vma() local
876 struct vm_area_struct *vma = madv_behavior->vma; madvise_dontneed_free_valid_vma() local
918 struct vm_area_struct *vma; madvise_dontneed_free() local
1015 struct vm_area_struct *vma = madv_behavior->vma; madvise_remove() local
1055 is_valid_guard_vma(struct vm_area_struct * vma,bool allow_locked) is_valid_guard_vma() argument
1126 struct vm_area_struct *vma = madv_behavior->vma; madvise_guard_install() local
1254 struct vm_area_struct *vma = madv_behavior->vma; madvise_guard_remove() local
1301 struct vm_area_struct *vma = madv_behavior->vma; can_madvise_modify() local
1350 struct vm_area_struct *vma = madv_behavior->vma; madvise_vma_behavior() local
1599 is_vma_lock_sufficient(struct vm_area_struct * vma,struct madvise_behavior * madv_behavior) is_vma_lock_sufficient() argument
1641 struct vm_area_struct *vma; try_vma_read_lock() local
1679 struct vm_area_struct *prev, *vma; madvise_walk_vmas() local
[all...]
H A Dmremap.c64 struct vm_area_struct *vma; member
143 static void take_rmap_locks(struct vm_area_struct *vma) in take_rmap_locks() argument
145 if (vma->vm_file) in take_rmap_locks()
146 i_mmap_lock_write(vma->vm_file->f_mapping); in take_rmap_locks()
147 if (vma_has_anon_rmap(vma)) in take_rmap_locks()
148 anon_vma_lock_write(vma->anon_vma); in take_rmap_locks()
151 static void drop_rmap_locks(struct vm_area_struct *vma) in drop_rmap_locks() argument
153 if (vma_has_anon_rmap(vma)) in drop_rmap_locks()
154 anon_vma_unlock_write(vma->anon_vma); in drop_rmap_locks()
155 if (vma in drop_rmap_locks()
178 mremap_folio_pte_batch(struct vm_area_struct * vma,unsigned long addr,pte_t * ptep,pte_t pte,int max_nr) mremap_folio_pte_batch() argument
200 struct vm_area_struct *vma = pmc->old; move_ptes() local
363 struct vm_area_struct *vma = pmc->old; move_normal_pmd() local
440 struct vm_area_struct *vma = pmc->old; move_normal_pud() local
491 struct vm_area_struct *vma = pmc->old; move_huge_pud() local
650 can_align_down(struct pagetable_move_control * pmc,struct vm_area_struct * vma,unsigned long addr_to_align,unsigned long mask) can_align_down() argument
957 struct vm_area_struct *vma = vrm->vma; vrm_set_new_addr() local
1032 struct vm_area_struct *vma = vrm->vma; vrm_stat_account() local
1132 struct vm_area_struct *vma = vrm->vma; prep_move_vma() local
1195 struct vm_area_struct *vma = vrm->vma; unmap_source_vma() local
1301 struct vm_area_struct *vma = vrm->vma; copy_vma_and_data() local
1365 struct vm_area_struct *vma = vrm->vma; dontunmap_complete() local
1544 vma_expandable(struct vm_area_struct * vma,unsigned long delta) vma_expandable() argument
1584 struct vm_area_struct *vma = vrm->vma; expand_vma_in_place() local
1752 vma_multi_allowed(struct vm_area_struct * vma) vma_multi_allowed() argument
1782 struct vm_area_struct *vma = vrm->vma; check_prep_vma() local
1935 struct vm_area_struct *vma; remap_move() local
[all...]
H A Dvma_exec.c23 int relocate_vma_down(struct vm_area_struct *vma, unsigned long shift) in relocate_vma_down() argument
36 struct mm_struct *mm = vma->vm_mm; in relocate_vma_down()
37 unsigned long old_start = vma->vm_start; in relocate_vma_down()
38 unsigned long old_end = vma->vm_end; in relocate_vma_down()
44 vma_start_pgoff(vma), vma_start_anon_pgoff(vma)); in relocate_vma_down()
47 PAGETABLE_MOVE(pmc, vma, vma, old_start, new_start, length); in relocate_vma_down()
55 if (vma != vma_next(&vmi)) in relocate_vma_down()
62 vmg.target = vma; in relocate_vma_down()
96 return vma_shrink(&vmi, vma, new_end); in relocate_vma_down()
116 struct vm_area_struct *vma; in create_init_stack_vma() local
[all …]
H A Drmap.c150 static void anon_vma_chain_assign(struct vm_area_struct *vma, in anon_vma_chain_assign() argument
154 avc->vma = vma; in anon_vma_chain_assign()
156 list_add(&avc->same_vma, &vma->anon_vma_chain); in anon_vma_chain_assign()
161 * @vma: the memory region in question
163 * This makes sure the memory mapping described by 'vma' has
171 * reason for splitting a vma has been mprotect()), or we
174 * Anon-vma allocations are very subtle, because we may have
177 * allocated vma (it depends on RCU to make sure that the
185 int __anon_vma_prepare(struct vm_area_struct *vma) in __anon_vma_prepare() argument
382 anon_vma_fork(struct vm_area_struct * vma,struct vm_area_struct * pvma) anon_vma_fork() argument
456 cleanup_partial_anon_vmas(struct vm_area_struct * vma) cleanup_partial_anon_vmas() argument
483 unlink_anon_vmas(struct vm_area_struct * vma) unlink_anon_vmas() argument
861 page_address_in_vma(const struct folio * folio,const struct page * page,const struct vm_area_struct * vma) page_address_in_vma() argument
923 folio_referenced_one(struct folio * folio,struct vm_area_struct * vma,unsigned long address,void * arg) folio_referenced_one() argument
1036 invalid_folio_referenced_vma(struct vm_area_struct * vma,void * arg) invalid_folio_referenced_vma() argument
1114 struct vm_area_struct *vma = pvmw->vma; page_vma_mkclean_one() local
1188 page_mkclean_one(struct folio * folio,struct vm_area_struct * vma,unsigned long address,void * arg) page_mkclean_one() argument
1199 invalid_mkclean_vma(struct vm_area_struct * vma,void * arg) invalid_mkclean_vma() argument
1240 mapping_wrprotect_range_one(struct folio * folio,struct vm_area_struct * vma,unsigned long address,void * arg) mapping_wrprotect_range_one() argument
1320 pfn_mkclean_range(unsigned long pfn,unsigned long nr_pages,pgoff_t pgoff,struct vm_area_struct * vma) pfn_mkclean_range() argument
1363 __folio_add_rmap(struct folio * folio,struct page * page,int nr_pages,struct vm_area_struct * vma,enum pgtable_level level) __folio_add_rmap() argument
1450 folio_move_anon_rmap(struct folio * folio,struct vm_area_struct * vma) folio_move_anon_rmap() argument
1473 __folio_set_anon(struct folio * folio,struct vm_area_struct * vma,unsigned long address,bool exclusive) __folio_set_anon() argument
1506 __page_check_anon_rmap(const struct folio * folio,const struct page * page,struct vm_area_struct * vma,unsigned long address) __page_check_anon_rmap() argument
1527 __folio_add_anon_rmap(struct folio * folio,struct page * page,int nr_pages,struct vm_area_struct * vma,unsigned long address,rmap_t flags,enum pgtable_level level) __folio_add_anon_rmap() argument
1606 folio_add_anon_rmap_ptes(struct folio * folio,struct page * page,int nr_pages,struct vm_area_struct * vma,unsigned long address,rmap_t flags) folio_add_anon_rmap_ptes() argument
1627 folio_add_anon_rmap_pmd(struct folio * folio,struct page * page,struct vm_area_struct * vma,unsigned long address,rmap_t flags) folio_add_anon_rmap_pmd() argument
1652 folio_add_new_anon_rmap(struct folio * folio,struct vm_area_struct * vma,unsigned long address,rmap_t flags) folio_add_new_anon_rmap() argument
1711 __folio_add_file_rmap(struct folio * folio,struct page * page,int nr_pages,struct vm_area_struct * vma,enum pgtable_level level) __folio_add_file_rmap() argument
1740 folio_add_file_rmap_ptes(struct folio * folio,struct page * page,int nr_pages,struct vm_area_struct * vma) folio_add_file_rmap_ptes() argument
1756 folio_add_file_rmap_pmd(struct folio * folio,struct page * page,struct vm_area_struct * vma) folio_add_file_rmap_pmd() argument
1776 folio_add_file_rmap_pud(struct folio * folio,struct page * page,struct vm_area_struct * vma) folio_add_file_rmap_pud() argument
1787 __folio_remove_rmap(struct folio * folio,struct page * page,int nr_pages,struct vm_area_struct * vma,enum pgtable_level level) __folio_remove_rmap() argument
1908 folio_remove_rmap_ptes(struct folio * folio,struct page * page,int nr_pages,struct vm_area_struct * vma) folio_remove_rmap_ptes() argument
1924 folio_remove_rmap_pmd(struct folio * folio,struct page * page,struct vm_area_struct * vma) folio_remove_rmap_pmd() argument
1944 folio_remove_rmap_pud(struct folio * folio,struct page * page,struct vm_area_struct * vma) folio_remove_rmap_pud() argument
1959 struct vm_area_struct *vma = pvmw->vma; folio_unmap_pte_batch() local
1989 try_to_unmap_poisoned_hugetlb_one(struct folio * folio,struct vm_area_struct * vma,unsigned long address,void * arg) try_to_unmap_poisoned_hugetlb_one() argument
2078 ttu_anon_lazyfree_folio(struct vm_area_struct * vma,struct folio * folio,unsigned long nr_pages) ttu_anon_lazyfree_folio() argument
2146 ttu_anon_swapbacked_folio(struct vm_area_struct * vma,struct folio * folio,struct page * page,unsigned long address,pte_t * ptep,pte_t pteval) ttu_anon_swapbacked_folio() argument
2182 ttu_anon_folio(struct vm_area_struct * vma,struct folio * folio,struct page * page,unsigned long address,pte_t * ptep,pte_t pteval,unsigned long nr_pages) ttu_anon_folio() argument
2205 try_to_unmap_one(struct folio * folio,struct vm_area_struct * vma,unsigned long address,void * arg) try_to_unmap_one() argument
2426 invalid_migration_vma(struct vm_area_struct * vma,void * arg) invalid_migration_vma() argument
2469 try_to_migrate_one(struct folio * folio,struct vm_area_struct * vma,unsigned long address,void * arg) try_to_migrate_one() argument
2878 struct vm_area_struct *vma; make_device_exclusive() local
3047 struct vm_area_struct *vma = avc->vma; rmap_walk_anon() local
3092 struct vm_area_struct *vma; __rmap_walk_file() local
3184 hugetlb_add_anon_rmap(struct folio * folio,struct vm_area_struct * vma,unsigned long address,rmap_t flags) hugetlb_add_anon_rmap() argument
3199 hugetlb_add_new_anon_rmap(struct folio * folio,struct vm_area_struct * vma,unsigned long address) hugetlb_add_new_anon_rmap() argument
[all...]
H A Dinternal.h24 #include "vma.h"
41 void folio_add_lru_vma(struct folio *folio, struct vm_area_struct *vma);
226 static inline void vma_close(struct vm_area_struct *vma)
228 if (vma->vm_ops && vma->vm_ops->close) {
229 vma->vm_ops->close(vma);
235 vma->vm_ops = &vma_dummy_vm_ops;
245 * @vma: VMA which we are mapping. in mmap_file()
249 static inline int mmap_file(struct file *file, struct vm_area_struct *vma) in mmap_file()
236 mmap_file(struct file * file,struct vm_area_struct * vma) mmap_file() argument
258 vma_close(struct vm_area_struct * vma) vma_close() argument
339 anon_vma_prepare(struct vm_area_struct * vma) anon_vma_prepare() argument
413 folio_pte_batch_flags(struct folio * folio,struct vm_area_struct * vma,pte_t * ptep,pte_t * ptentp,unsigned int max_nr,fpb_t flags) folio_pte_batch_flags() argument
933 folio_within_range(struct folio * folio,struct vm_area_struct * vma,unsigned long start,unsigned long end) folio_within_range() argument
964 folio_within_vma(struct folio * folio,struct vm_area_struct * vma) folio_within_vma() argument
980 mlock_vma_folio(struct folio * folio,struct vm_area_struct * vma) mlock_vma_folio() argument
996 munlock_vma_folio(struct folio * folio,struct vm_area_struct * vma) munlock_vma_folio() argument
1018 __vma_address(const struct vm_area_struct * vma,pgoff_t pgoff,pgoff_t pgoff_start,unsigned long nr_pages) __vma_address() argument
1048 vma_filebacked_address(const struct vm_area_struct * vma,pgoff_t pgoff,unsigned long nr_pages) vma_filebacked_address() argument
1068 vma_anon_address(const struct vm_area_struct * vma,pgoff_t pgoff_anon,unsigned long nr_pages) vma_anon_address() argument
1083 const struct vm_area_struct *vma = pvmw->vma; vma_address_end() local
1125 vma_supports_mlock(const struct vm_area_struct * vma) vma_supports_mlock() argument
1252 vma_is_single_threaded_private(struct vm_area_struct * vma) vma_is_single_threaded_private() argument
1266 folio_can_map_prot_numa(struct folio * folio,struct vm_area_struct * vma,bool is_private_single_threaded) folio_can_map_prot_numa() argument
1356 gup_must_unshare(struct vm_area_struct * vma,unsigned int flags,struct page * page) gup_must_unshare() argument
1402 vma_soft_dirty_enabled(struct vm_area_struct * vma) vma_soft_dirty_enabled() argument
1420 pmd_needs_soft_dirty_wp(struct vm_area_struct * vma,pmd_t pmd) pmd_needs_soft_dirty_wp() argument
1425 pte_needs_soft_dirty_wp(struct vm_area_struct * vma,pte_t pte) pte_needs_soft_dirty_wp() argument
1550 maybe_rmap_unlock_action(struct vm_area_struct * vma,struct mmap_action * action) maybe_rmap_unlock_action() argument
1565 clear_flush_young_ptes_notify(struct vm_area_struct * vma,unsigned long addr,pte_t * ptep,unsigned int nr) clear_flush_young_ptes_notify() argument
1576 pmdp_clear_flush_young_notify(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmdp) pmdp_clear_flush_young_notify() argument
1586 test_and_clear_young_ptes_notify(struct vm_area_struct * vma,unsigned long addr,pte_t * ptep,unsigned int nr) test_and_clear_young_ptes_notify() argument
1596 pmdp_test_and_clear_young_notify(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmdp) pmdp_test_and_clear_young_notify() argument
[all...]
H A Dhuge_memory.c95 static inline bool file_thp_enabled(const struct vm_area_struct *vma) in file_thp_enabled() argument
99 if (!vma->vm_file) in file_thp_enabled()
102 inode = file_inode(vma->vm_file); in file_thp_enabled()
107 if (!mapping_pmd_folio_support(vma->vm_file->f_mapping)) in file_thp_enabled()
113 static bool vma_file_bypass_thp_tuneables(const struct vm_area_struct *vma,
116 const bool has_huge_fault = vma->vm_ops->huge_fault; in vma_is_special_huge()
122 if (vma_test(vma, VMA_PFNMAP_BIT) && has_huge_fault) in vma_file_bypass_thp_tuneables()
138 static bool vma_file_check_thp_tuneables(const struct vm_area_struct *vma, in vma_file_allow_thp_tuneables()
141 return vma_file_bypass_thp_tuneables(vma, type) || in vma_file_allow_thp_tuneables()
145 static bool vma_can_map_huge_file(const struct vm_area_struct *vma,
114 vma_is_special_huge(const struct vm_area_struct * vma) vma_is_special_huge() argument
121 vma_file_bypass_thp_tuneables(const struct vm_area_struct * vma,enum tva_type type) vma_file_bypass_thp_tuneables() argument
146 vma_file_check_thp_tuneables(const struct vm_area_struct * vma,vm_flags_t vm_flags,enum tva_type type) vma_file_check_thp_tuneables() argument
153 vma_can_map_huge_file(const struct vm_area_struct * vma,vm_flags_t vm_flags,enum tva_type type) vma_can_map_huge_file() argument
182 __thp_vma_allowable_orders(struct vm_area_struct * vma,vm_flags_t vm_flags,enum tva_type type,unsigned long orders) __thp_vma_allowable_orders() argument
1263 maybe_pmd_mkwrite(pmd_t pmd,struct vm_area_struct * vma) maybe_pmd_mkwrite() argument
1349 vma_alloc_anon_folio_pmd(struct vm_area_struct * vma,unsigned long addr) vma_alloc_anon_folio_pmd() argument
1401 map_anon_folio_pmd_nopf(struct folio * folio,pmd_t * pmd,struct vm_area_struct * vma,unsigned long haddr) map_anon_folio_pmd_nopf() argument
1415 map_anon_folio_pmd_pf(struct folio * folio,pmd_t * pmd,struct vm_area_struct * vma,unsigned long haddr) map_anon_folio_pmd_pf() argument
1427 struct vm_area_struct *vma = vmf->vma; __do_huge_pmd_anonymous_page() local
1478 struct vm_area_struct *vma = vmf->vma; do_huge_pmd_device_private() local
1523 vma_thp_gfp_mask(struct vm_area_struct * vma) vma_thp_gfp_mask() argument
1551 set_huge_zero_folio(pgtable_t pgtable,struct mm_struct * mm,struct vm_area_struct * vma,unsigned long haddr,pmd_t * pmd,struct folio * zero_folio) set_huge_zero_folio() argument
1564 struct vm_area_struct *vma = vmf->vma; do_huge_pmd_anonymous_page() local
1627 insert_pmd(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmd,struct folio_or_pfn fop,pgprot_t prot,bool write) insert_pmd() argument
1712 struct vm_area_struct *vma = vmf->vma; vmf_insert_pfn_pmd() local
1737 struct vm_area_struct *vma = vmf->vma; vmf_insert_folio_pmd() local
1752 maybe_pud_mkwrite(pud_t pud,struct vm_area_struct * vma) maybe_pud_mkwrite() argument
1759 insert_pud(struct vm_area_struct * vma,unsigned long addr,pud_t * pud,struct folio_or_pfn fop,pgprot_t prot,bool write) insert_pud() argument
1820 struct vm_area_struct *vma = vmf->vma; vmf_insert_pfn_pud() local
1853 struct vm_area_struct *vma = vmf->vma; vmf_insert_folio_pud() local
1877 touch_pmd(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmd,bool write) touch_pmd() argument
2063 touch_pud(struct vm_area_struct * vma,unsigned long addr,pud_t * pud,bool write) touch_pud() argument
2078 copy_huge_pud(struct mm_struct * dst_mm,struct mm_struct * src_mm,pud_t * dst_pud,pud_t * src_pud,unsigned long addr,struct vm_area_struct * vma) copy_huge_pud() argument
2138 struct vm_area_struct *vma = vmf->vma; do_huge_zero_wp_pmd() local
2170 struct vm_area_struct *vma = vmf->vma; do_huge_pmd_wp_page() local
2261 can_change_pmd_writable(struct vm_area_struct * vma,unsigned long addr,pmd_t pmd) can_change_pmd_writable() argument
2293 struct vm_area_struct *vma = vmf->vma; do_huge_pmd_uffd_rwp() local
2322 struct vm_area_struct *vma = vmf->vma; do_huge_pmd_numa_page() local
2400 madvise_free_huge_pmd(struct mmu_gather * tlb,struct vm_area_struct * vma,pmd_t * pmd,unsigned long addr,unsigned long next) madvise_free_huge_pmd() argument
2479 zap_huge_pmd_folio(struct mm_struct * mm,struct vm_area_struct * vma,pmd_t pmdval,struct folio * folio,bool is_present) zap_huge_pmd_folio() argument
2506 normal_or_softleaf_folio_pmd(struct vm_area_struct * vma,unsigned long addr,pmd_t pmdval,bool is_present) normal_or_softleaf_folio_pmd() argument
2517 has_deposited_pgtable(struct vm_area_struct * vma,pmd_t pmdval,struct folio * folio) has_deposited_pgtable() argument
2547 zap_huge_pmd(struct mmu_gather * tlb,struct vm_area_struct * vma,pmd_t * pmd,unsigned long addr) zap_huge_pmd() argument
2590 pmd_move_must_withdraw(spinlock_t * new_pmd_ptl,spinlock_t * old_pmd_ptl,struct vm_area_struct * vma) pmd_move_must_withdraw() argument
2626 move_huge_pmd(struct vm_area_struct * vma,unsigned long old_addr,unsigned long new_addr,pmd_t * old_pmd,pmd_t * new_pmd) move_huge_pmd() argument
2734 change_huge_pmd(struct mmu_gather * tlb,struct vm_area_struct * vma,pmd_t * pmd,unsigned long addr,pgprot_t newprot,unsigned long cp_flags) change_huge_pmd() argument
2843 change_huge_pud(struct mmu_gather * tlb,struct vm_area_struct * vma,pud_t * pudp,unsigned long addr,pgprot_t newprot,unsigned long cp_flags) change_huge_pud() argument
3016 __pmd_trans_huge_lock(pmd_t * pmd,struct vm_area_struct * vma) __pmd_trans_huge_lock() argument
3033 __pud_trans_huge_lock(pud_t * pud,struct vm_area_struct * vma) __pud_trans_huge_lock() argument
3045 zap_huge_pud(struct mmu_gather * tlb,struct vm_area_struct * vma,pud_t * pud,unsigned long addr) zap_huge_pud() argument
3080 __split_huge_pud_locked(struct vm_area_struct * vma,pud_t * pud,unsigned long haddr) __split_huge_pud_locked() argument
3112 __split_huge_pud(struct vm_area_struct * vma,pud_t * pud,unsigned long address) __split_huge_pud() argument
3132 __split_huge_pud(struct vm_area_struct * vma,pud_t * pud,unsigned long address) __split_huge_pud() argument
3138 __split_huge_zero_page_pmd(struct vm_area_struct * vma,unsigned long haddr,pmd_t * pmd) __split_huge_zero_page_pmd() argument
3184 __split_huge_pmd_locked(struct vm_area_struct * vma,pmd_t * pmd,unsigned long haddr,bool freeze) __split_huge_pmd_locked() argument
3471 split_huge_pmd_locked(struct vm_area_struct * vma,unsigned long address,pmd_t * pmd,bool freeze) split_huge_pmd_locked() argument
3479 __split_huge_pmd(struct vm_area_struct * vma,pmd_t * pmd,unsigned long address,bool freeze) __split_huge_pmd() argument
3495 split_huge_pmd_address(struct vm_area_struct * vma,unsigned long address,bool freeze) split_huge_pmd_address() argument
3506 split_huge_pmd_if_needed(struct vm_area_struct * vma,unsigned long address) split_huge_pmd_if_needed() argument
3518 vma_adjust_trans_huge(struct vm_area_struct * vma,unsigned long start,unsigned long end,struct vm_area_struct * next) vma_adjust_trans_huge() argument
3557 __discard_anon_folio_pmd_locked(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmdp,struct folio * folio) __discard_anon_folio_pmd_locked() argument
3620 unmap_huge_pmd_locked(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmdp,struct folio * folio) unmap_huge_pmd_locked() argument
4769 vma_not_suitable_for_thp_split(struct vm_area_struct * vma) vma_not_suitable_for_thp_split() argument
4820 struct vm_area_struct *vma = vma_lookup(mm, addr); split_huge_pages_pid() local
5066 struct vm_area_struct *vma = pvmw->vma; set_pmd_migration_entry() local
5138 struct vm_area_struct *vma = pvmw->vma; remove_migration_pmd() local
[all...]
/linux/tools/testing/vma/
H A Dshared.c28 struct vm_area_struct *vma = vm_area_alloc(mm); in alloc_vma()
30 if (vma == NULL) in alloc_vma()
33 vma->vm_start = start;
34 vma->vm_end = end; in detach_free_vma() argument
35 vma_set_pgoff(vma, pgoff); in detach_free_vma()
36 vma_set_anon_pgoff(vma, start >> PAGE_SHIFT); in detach_free_vma()
37 vma->flags = vma_flags; in detach_free_vma()
38 vma_assert_detached(vma); in detach_free_vma()
40 return vma; in alloc_and_link_vma()
43 void detach_free_vma(struct vm_area_struct *vma) in alloc_and_link_vma()
19 struct vm_area_struct *vma = vm_area_alloc(mm); alloc_vma() local
44 struct vm_area_struct *vma = alloc_vma(mm, start, end, pgoff, vma_flags); alloc_and_link_vma() local
72 struct vm_area_struct *vma; cleanup_mm() local
89 vma_write_started(struct vm_area_struct * vma) vma_write_started() argument
100 __vma_set_dummy_anon_vma(struct vm_area_struct * vma,struct anon_vma_chain * avc,struct anon_vma * anon_vma) __vma_set_dummy_anon_vma() argument
109 vma_set_dummy_anon_vma(struct vm_area_struct * vma,struct anon_vma_chain * avc) vma_set_dummy_anon_vma() argument
[all...]
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_vmm.c29 nouveau_vma_unmap(struct nouveau_vma *vma) in nouveau_vma_unmap() argument
31 if (vma->mem) { in nouveau_vma_unmap()
32 nvif_vmm_unmap(&vma->vmm->vmm, vma->addr); in nouveau_vma_unmap()
33 vma->mem = NULL; in nouveau_vma_unmap()
38 nouveau_vma_map(struct nouveau_vma *vma, struct nouveau_mem *mem) in nouveau_vma_map() argument
40 struct nvif_vma tmp = { .addr = vma->addr }; in nouveau_vma_map()
41 int ret = nouveau_mem_map(mem, &vma->vmm->vmm, &tmp); in nouveau_vma_map()
44 vma->mem = mem; in nouveau_vma_map()
51 struct nouveau_vma *vma; in nouveau_vma_find() local
53 list_for_each_entry(vma, &nvbo->vma_list, head) { in nouveau_vma_find()
[all …]
/linux/tools/testing/vma/include/
H A Ddup.h7 static inline void vma_start_write(struct vm_area_struct *vma);
125 DECLARE_VMA_BIT(DONTCOPY, 17), /* Do not copy this vma on fork */
137 DECLARE_VMA_BIT(HUGEPAGE, 29), /* MADV_HUGEPAGE marked this vma */
138 DECLARE_VMA_BIT(NOHUGEPAGE, 30),/* MADV_NOHUGEPAGE marked this vma */
584 * A file's MAP_PRIVATE vma can be in both i_mmap tree and anon_vma
585 * list, after a COW of one of the file pages. A MAP_SHARED vma
587 * or brk vma (with NULL file) can only be in an anon_vma list.
631 * terminated string containing the name given to the vma, or NULL if
645 void (*open)(struct vm_area_struct *vma);
650 void (*close)(struct vm_area_struct *vma);
883 vm_flags_init(struct vm_area_struct * vma,vm_flags_t flags) vm_flags_init() argument
895 vm_flags_reset(struct vm_area_struct * vma,vm_flags_t flags) vm_flags_reset() argument
902 vma_flags_reset_once(struct vm_area_struct * vma,vma_flags_t * flags) vma_flags_reset_once() argument
918 vm_flags_set(struct vm_area_struct * vma,vm_flags_t flags) vm_flags_set() argument
925 vm_flags_clear(struct vm_area_struct * vma,vm_flags_t flags) vm_flags_clear() argument
1065 vma_test(const struct vm_area_struct * vma,vma_flag_t bit) vma_test() argument
1071 vma_test_any_mask(const struct vm_area_struct * vma,vma_flags_t flags) vma_test_any_mask() argument
1077 vma_test_any(vma,...) global() argument
1080 vma_test_all_mask(const struct vm_area_struct * vma,vma_flags_t flags) vma_test_all_mask() argument
1086 vma_test_all(vma,...) global() argument
1090 vma_test_single_mask(const struct vm_area_struct * vma,vma_flags_t flagmask) vma_test_single_mask() argument
1095 vma_set_flags_mask(struct vm_area_struct * vma,vma_flags_t flags) vma_set_flags_mask() argument
1101 vma_set_flags(vma,...) global() argument
1104 vma_clear_flags_mask(struct vm_area_struct * vma,vma_flags_t flags) vma_clear_flags_mask() argument
1110 vma_clear_flags(vma,...) global() argument
1160 vma_is_shared_maywrite(struct vm_area_struct * vma) vma_is_shared_maywrite() argument
1171 vma_is_cow_mapping(const struct vm_area_struct * vma) vma_is_cow_mapping() argument
1185 vma_is_attached(struct vm_area_struct * vma) vma_is_attached() argument
1195 vma_assert_attached(struct vm_area_struct * vma) vma_assert_attached() argument
1200 vma_assert_detached(struct vm_area_struct * vma) vma_assert_detached() argument
1206 vma_mark_attached(struct vm_area_struct * vma) vma_mark_attached() argument
1213 vma_mark_detached(struct vm_area_struct * vma) vma_mark_detached() argument
1226 vma_init(struct vm_area_struct * vma,struct mm_struct * mm) vma_init() argument
1293 vma_set_anonymous(struct vm_area_struct * vma) vma_set_anonymous() argument
1304 compat_set_desc_from_vma(struct vm_area_desc * desc,const struct file * file,const struct vm_area_struct * vma) compat_set_desc_from_vma() argument
1323 vma_pages(const struct vm_area_struct * vma) vma_pages() argument
1328 vma_start_pgoff(const struct vm_area_struct * vma) vma_start_pgoff() argument
1333 vma_end_pgoff(const struct vm_area_struct * vma) vma_end_pgoff() argument
1338 vma_start_anon_pgoff(const struct vm_area_struct * vma) vma_start_anon_pgoff() argument
1350 vma_end_anon_pgoff(const struct vm_area_struct * vma) vma_end_anon_pgoff() argument
1355 vma_last_anon_pgoff(const struct vm_area_struct * vma) vma_last_anon_pgoff() argument
1366 __compat_vma_mmap(struct vm_area_desc * desc,struct vm_area_struct * vma) __compat_vma_mmap() argument
1380 compat_vma_mmap(struct file * file,struct vm_area_struct * vma) compat_vma_mmap() argument
1431 vma_is_anonymous(const struct vm_area_struct * vma) vma_is_anonymous() argument
1444 struct vm_area_struct *vma; find_vma_prev() local
1470 vma_set_page_prot(struct vm_area_struct * vma) vma_set_page_prot() argument
1487 stack_guard_start_gap(struct vm_area_struct * vma) stack_guard_start_gap() argument
1499 vm_start_gap(struct vm_area_struct * vma) vm_start_gap() argument
1510 vm_end_gap(struct vm_area_struct * vma) vm_end_gap() argument
1522 vma_is_accessible(struct vm_area_struct * vma) vma_is_accessible() argument
1565 vfs_mmap(struct file * file,struct vm_area_struct * vma) vfs_mmap() argument
1573 vma_set_file(struct vm_area_struct * vma,struct file * file) vma_set_file() argument
1598 linear_page_delta(const struct vm_area_struct * vma,const unsigned long address) linear_page_delta() argument
1604 linear_page_index(const struct vm_area_struct * vma,const unsigned long address) linear_page_index() argument
1614 vma_assert_can_modify(struct vm_area_struct * vma) vma_assert_can_modify() argument
1620 vma_get_page_prot(const struct vm_area_struct * vma) vma_get_page_prot() argument
1625 __linear_anon_page_index(const struct vm_area_struct * vma,const unsigned long address) __linear_anon_page_index() argument
1635 linear_anon_page_index(const struct vm_area_struct * vma,const unsigned long address) linear_anon_page_index() argument
[all...]
H A Dstubs.h28 #define vma_policy(vma) NULL argument
67 static inline void vma_numab_state_init(struct vm_area_struct *vma) in vma_numab_state_init() argument
71 static inline void vma_numab_state_free(struct vm_area_struct *vma) in vma_numab_state_free() argument
80 static inline void free_anon_vma_name(struct vm_area_struct *vma) in free_anon_vma_name() argument
89 static inline int mmap_action_complete(struct vm_area_struct *vma, in mmap_action_complete() argument
96 static inline void fixup_hugetlb_reservations(struct vm_area_struct *vma) in fixup_hugetlb_reservations() argument
115 static inline int remap_pfn_range_complete(struct vm_area_struct *vma, unsigned long addr, in remap_pfn_range_complete() argument
143 static inline int userfaultfd_unmap_prep(struct vm_area_struct *vma, in userfaultfd_unmap_prep() argument
190 static inline void khugepaged_enter_vma(struct vm_area_struct *vma,
200 static inline bool vma_is_hugetlb(struct vm_area_struct *vma)
186 khugepaged_enter_vma(struct vm_area_struct * vma,vm_flags_t vm_flags) khugepaged_enter_vma() argument
196 is_vm_hugetlb_page(struct vm_area_struct * vma) is_vm_hugetlb_page() argument
201 vma_soft_dirty_enabled(struct vm_area_struct * vma) vma_soft_dirty_enabled() argument
206 userfaultfd_wp(struct vm_area_struct * vma) userfaultfd_wp() argument
250 shmem_zero_setup(struct vm_area_struct * vma) shmem_zero_setup() argument
260 vma_interval_tree_insert(struct vm_area_struct * vma,struct rb_root_cached * rb) vma_interval_tree_insert() argument
265 vma_interval_tree_remove(struct vm_area_struct * vma,struct rb_root_cached * rb) vma_interval_tree_remove() argument
284 uprobe_mmap(struct vm_area_struct * vma) uprobe_mmap() argument
288 uprobe_munmap(struct vm_area_struct * vma,unsigned long start,unsigned long end) uprobe_munmap() argument
301 vma_assert_write_locked(struct vm_area_struct * vma) vma_assert_write_locked() argument
305 ksm_add_vma(struct vm_area_struct * vma) ksm_add_vma() argument
309 perf_event_mmap(struct vm_area_struct * vma) perf_event_mmap() argument
313 vma_is_dax(struct vm_area_struct * vma) vma_is_dax() argument
328 vma_close(struct vm_area_struct * vma) vma_close() argument
332 mmap_file(struct file * file,struct vm_area_struct * vma) mmap_file() argument
348 anon_vma_name(struct vm_area_struct * vma) anon_vma_name() argument
353 is_mergeable_vm_userfaultfd_ctx(struct vm_area_struct * vma,struct vm_userfaultfd_ctx vm_ctx) is_mergeable_vm_userfaultfd_ctx() argument
423 vma_adjust_trans_huge(struct vm_area_struct * vma,unsigned long start,unsigned long end,struct vm_area_struct * next) vma_adjust_trans_huge() argument
432 vma_supports_mlock(const struct vm_area_struct * vma) vma_supports_mlock() argument
[all...]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dvmm.c824 struct nvkm_vma *vma = kzalloc_obj(*vma); in nvkm_vma_new() local
825 if (vma) { in nvkm_vma_new()
826 vma->addr = addr; in nvkm_vma_new()
827 vma->size = size; in nvkm_vma_new()
828 vma->page = NVKM_VMA_PAGE_NONE; in nvkm_vma_new()
829 vma->refd = NVKM_VMA_PAGE_NONE; in nvkm_vma_new()
831 return vma; in nvkm_vma_new()
835 nvkm_vma_tail(struct nvkm_vma *vma, u64 tail) in nvkm_vma_tail() argument
839 BUG_ON(vma->size == tail); in nvkm_vma_tail()
841 if (!(new = nvkm_vma_new(vma->addr + (vma->size - tail), tail))) in nvkm_vma_tail()
[all …]
/linux/drivers/gpu/drm/i915/selftests/
H A Di915_gem_gtt.c398 struct i915_vma *vma; in close_object_list() local
400 vma = i915_vma_instance(obj, vm, NULL); in close_object_list()
401 if (!IS_ERR(vma)) in close_object_list()
402 ignored = i915_vma_unbind_unlocked(vma); in close_object_list()
421 struct i915_vma *vma; in fill_hole() local
463 vma = i915_vma_instance(obj, vm, NULL); in fill_hole()
464 if (IS_ERR(vma)) in fill_hole()
473 err = i915_vma_pin(vma, 0, 0, offset | flags); in fill_hole()
480 if (!drm_mm_node_allocated(&vma->node) || in fill_hole()
481 i915_vma_misplaced(vma, in fill_hole()
656 struct i915_vma *vma; walk_hole() local
723 struct i915_vma *vma; pot_hole() local
812 struct i915_vma *vma; drunk_hole() local
920 struct i915_vma *vma; __shrink_hole() local
1024 struct i915_vma *vma; shrink_boom() local
1086 struct i915_vma *vma; misaligned_case() local
1443 track_vma_bind(struct i915_vma * vma) track_vma_bind() argument
1511 reserve_gtt_with_resource(struct i915_vma * vma,u64 offset) reserve_gtt_with_resource() argument
1557 struct i915_vma *vma; igt_gtt_reserve() local
1602 struct i915_vma *vma; igt_gtt_reserve() local
1646 struct i915_vma *vma; igt_gtt_reserve() local
1693 insert_gtt_with_resource(struct i915_vma * vma) insert_gtt_with_resource() argument
1780 struct i915_vma *vma; igt_gtt_insert() local
1821 struct i915_vma *vma; igt_gtt_insert() local
1840 struct i915_vma *vma; igt_gtt_insert() local
1879 struct i915_vma *vma; igt_gtt_insert() local
[all...]
/linux/drivers/gpu/drm/xe/
H A Dxe_trace_bo.h22 #define __dev_name_vma(vma) __dev_name_vm(xe_vma_vm(vma))
94 TP_PROTO(struct xe_vma *vma),
95 TP_ARGS(vma),
98 __string(dev, __dev_name_vma(vma))
99 __field(struct xe_vma *, vma)
109 __entry->vma = vma;
110 __entry->vm = xe_vma_vm(vma);
111 __entry->asid = xe_vma_vm(vma)
21 __dev_name_vma(vma) global() argument
[all...]
H A Dxe_userptr.c24 * @uvma: The userptr vma
26 * Check if the userptr vma has been invalidated since last successful
29 * vma userptr will remain valid after a lockless check, so typically
32 * Return: 0 if userptr vma is valid, -EAGAIN otherwise; repin recommended.
63 struct xe_vma *vma = &uvma->vma; in xe_vma_userptr_pin_pages()
64 struct xe_vm *vm = xe_vma_vm(vma); in xe_vma_userptr_pin_pages()
68 lockdep_is_held_type(&vma->fault_lock, 0)); in xe_vma_userptr_pin_pages()
79 struct xe_vma *vma = &uvma->vma; in xe_vma_userptr_pin_pages()
62 struct xe_vma *vma = &uvma->vma; xe_vma_userptr_pin_pages() local
89 struct xe_vma *vma = &uvma->vma; xe_vma_userptr_do_inval() local
134 struct xe_vma *vma = &uvma->vma; xe_vma_userptr_complete_tlb_inval() local
155 struct xe_vma *vma = &uvma->vma; xe_vma_userptr_invalidate_pass1() local
209 struct xe_vma *vma = &uvma->vma; xe_vma_userptr_invalidate_start() local
237 struct xe_vma *vma = &uvma->vma; xe_vma_userptr_invalidate_finish() local
[all...]
H A Dxe_vm.h76 bool xe_vma_has_default_mem_attrs(struct xe_vma *vma);
119 * DOC: Provide accessors for vma members to facilitate easy change of
122 static inline u64 xe_vma_start(struct xe_vma *vma) in xe_vma_start() argument
124 return vma->gpuva.va.addr; in xe_vma_start()
127 static inline u64 xe_vma_size(struct xe_vma *vma) in xe_vma_size() argument
129 return vma->gpuva.va.range; in xe_vma_size()
132 static inline u64 xe_vma_end(struct xe_vma *vma) in xe_vma_end() argument
134 return xe_vma_start(vma) + xe_vma_size(vma); in xe_vma_end()
137 static inline u64 xe_vma_bo_offset(struct xe_vma *vma) in xe_vma_bo_offset() argument
142 xe_vma_bo(struct xe_vma * vma) xe_vma_bo() argument
148 xe_vma_vm(struct xe_vma * vma) xe_vma_vm() argument
153 xe_vma_read_only(struct xe_vma * vma) xe_vma_read_only() argument
158 xe_vma_userptr(struct xe_vma * vma) xe_vma_userptr() argument
163 xe_vma_is_null(struct xe_vma * vma) xe_vma_is_null() argument
168 xe_vma_is_cpu_addr_mirror(struct xe_vma * vma) xe_vma_is_cpu_addr_mirror() argument
173 xe_vma_has_no_bo(struct xe_vma * vma) xe_vma_has_no_bo() argument
178 xe_vma_is_userptr(struct xe_vma * vma) xe_vma_is_userptr() argument
198 to_userptr_vma(struct xe_vma * vma) to_userptr_vma() argument
[all...]
/linux/drivers/pci/
H A Dmmap.c25 struct vm_area_struct *vma, in pci_mmap_resource_range() argument
32 if (vma->vm_pgoff + vma_pages(vma) > size) in pci_mmap_resource_range()
36 vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); in pci_mmap_resource_range()
38 vma->vm_page_prot = pgprot_device(vma->vm_page_prot); in pci_mmap_resource_range()
41 ret = pci_iobar_pfn(pdev, bar, vma); in pci_mmap_resource_range()
45 vma->vm_pgoff += (pci_resource_start(pdev, bar) >> PAGE_SHIFT); in pci_mmap_resource_range()
47 vma->vm_ops = &pci_phys_vm_ops; in pci_mmap_resource_range()
49 return io_remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, in pci_mmap_resource_range()
50 vma->vm_end - vma->vm_start, in pci_mmap_resource_range()
51 vma->vm_page_prot); in pci_mmap_resource_range()
[all …]
/linux/fs/proc/
H A Dtask_mmu.c157 struct vm_area_struct *vma; in unlock_ctx_vma()
163 vma = lock_next_vma(&priv->rvmi, last_pos); in unlock_ctx_vma()
164 if (!IS_ERR_OR_NULL(vma))
165 lock_ctx->locked_vma = vma; in lock_vma_range()
167 return vma; in lock_vma_range()
210 struct vm_area_struct *vma; in fallback_to_mmap_lock()
213 vma = get_next_vma(priv, *ppos); in fallback_to_mmap_lock()
215 if (IS_ERR(vma)) { in fallback_to_mmap_lock()
216 if (PTR_ERR(vma) == -EAGAIN && fallback_to_mmap_lock(priv, *ppos)) in fallback_to_mmap_lock()
219 return vma; in drop_rcu()
188 struct vm_area_struct *vma; get_next_vma() local
279 struct vm_area_struct *vma; proc_get_vma() local
414 get_vma_name(struct vm_area_struct * vma,const struct path ** path,const char ** name,const char ** name_fmt) get_vma_name() argument
496 show_map_vma(struct seq_file * m,struct vm_area_struct * vma) show_map_vma() argument
584 struct vm_area_struct *vma; query_vma_find_by_addr() local
638 struct vm_area_struct *vma; query_matching_vma() local
689 struct vm_area_struct *vma; do_procmap_query() local
1027 struct vm_area_struct *vma = walk->vma; smaps_pte_hole() local
1053 struct vm_area_struct *vma = walk->vma; smaps_pte_entry() local
1100 struct vm_area_struct *vma = walk->vma; smaps_pmd_entry() local
1142 struct vm_area_struct *vma = walk->vma; smaps_pte_range() local
1166 show_smap_vma_flags(struct seq_file * m,struct vm_area_struct * vma) show_smap_vma_flags() argument
1271 struct vm_area_struct *vma = walk->vma; smaps_hugetlb_range() local
1371 smap_gather_stats(struct proc_maps_private * priv,struct vm_area_struct * vma,struct mem_size_stats * mss,unsigned long start) smap_gather_stats() argument
1462 struct vm_area_struct *vma = v; show_smap() local
1492 struct vm_area_struct *vma; show_smaps_rollup() local
1690 pte_is_pinned(struct vm_area_struct * vma,unsigned long addr,pte_t pte) pte_is_pinned() argument
1706 clear_soft_dirty(struct vm_area_struct * vma,unsigned long addr,pte_t * pte) clear_soft_dirty() argument
1738 clear_soft_dirty_pmd(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmdp) clear_soft_dirty_pmd() argument
1764 clear_soft_dirty_pmd(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmdp) clear_soft_dirty_pmd() argument
1774 struct vm_area_struct *vma = walk->vma; clear_refs_pte_range() local
1834 struct vm_area_struct *vma = walk->vma; clear_refs_test_walk() local
1864 struct vm_area_struct *vma; clear_refs_write() local
1992 struct vm_area_struct *vma = find_vma(walk->mm, addr); pagemap_pte_hole() local
2025 pte_to_pagemap_entry(struct pagemapread * pm,struct vm_area_struct * vma,unsigned long addr,pte_t pte) pte_to_pagemap_entry() argument
2092 pagemap_pmd_range_thp(pmd_t * pmdp,unsigned long addr,unsigned long end,struct vm_area_struct * vma,struct pagemapread * pm) pagemap_pmd_range_thp() argument
2172 struct vm_area_struct *vma = walk->vma; pagemap_pmd_range() local
2218 struct vm_area_struct *vma = walk->vma; pagemap_hugetlb_range() local
2434 pagemap_page_category(struct pagemap_scan_private * p,struct vm_area_struct * vma,unsigned long addr,pte_t pte) pagemap_page_category() argument
2503 make_uffd_wp_pte(struct vm_area_struct * vma,unsigned long addr,pte_t * pte,pte_t ptent) make_uffd_wp_pte() argument
2523 pagemap_thp_category(struct pagemap_scan_private * p,struct vm_area_struct * vma,unsigned long addr,pmd_t pmd) pagemap_thp_category() argument
2575 make_uffd_wp_pmd(struct vm_area_struct * vma,unsigned long addr,pmd_t * pmdp) make_uffd_wp_pmd() argument
2592 pagemap_hugetlb_category(struct vm_area_struct * vma,pte_t pte) pagemap_hugetlb_category() argument
2636 make_uffd_wp_huge_pte(struct vm_area_struct * vma,unsigned long addr,pte_t * ptep,pte_t ptent) make_uffd_wp_huge_pte() argument
2712 struct vm_area_struct *vma = walk->vma; pagemap_scan_test_walk() local
2819 struct vm_area_struct *vma = walk->vma; pagemap_scan_thp_entry() local
2869 struct vm_area_struct *vma = walk->vma; pagemap_scan_pmd_entry() local
2970 struct vm_area_struct *vma = walk->vma; pagemap_scan_hugetlb_entry() local
3039 pagemap_scan_hugetlb_hole_wp(struct vm_area_struct * vma,unsigned long addr,unsigned long end) pagemap_scan_hugetlb_hole_wp() argument
3073 pagemap_scan_hugetlb_hole_wp(struct vm_area_struct * vma,unsigned long addr,unsigned long end) pagemap_scan_hugetlb_hole_wp() argument
3084 struct vm_area_struct *vma = walk->vma; pagemap_scan_pte_hole() local
3375 can_gather_numa_stats(pte_t pte,struct vm_area_struct * vma,unsigned long addr) can_gather_numa_stats() argument
3400 can_gather_numa_stats_pmd(pmd_t pmd,struct vm_area_struct * vma,unsigned long addr) can_gather_numa_stats_pmd() argument
3428 struct vm_area_struct *vma = walk->vma; gather_pte_stats() local
3532 struct vm_area_struct *vma = v; show_numa_map() local
[all...]
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_ring.c37 struct i915_vma *vma = ring->vma; in intel_ring_pin() local
46 flags = PIN_OFFSET_BIAS | i915_ggtt_pin_bias(vma); in intel_ring_pin()
48 if (i915_gem_object_is_stolen(vma->obj)) in intel_ring_pin()
53 ret = i915_ggtt_pin(vma, ww, 0, flags); in intel_ring_pin()
57 if (i915_vma_is_map_and_fenceable(vma) && !HAS_LLC(vma->vm->i915)) { in intel_ring_pin()
58 addr = (void __force *)i915_vma_pin_iomap(vma); in intel_ring_pin()
60 int type = intel_gt_coherent_map_type(vma->vm->gt, vma->obj, false); in intel_ring_pin()
62 addr = i915_gem_object_pin_map(vma->obj, type); in intel_ring_pin()
70 i915_vma_make_unshrinkable(vma); in intel_ring_pin()
79 i915_vma_unpin(vma); in intel_ring_pin()
[all …]

12345678910>>...27