Home
last modified time | relevance | path

Searched defs:vma (Results 1 – 25 of 836) sorted by relevance

12345678910>>...34

/linux-6.15/drivers/gpu/drm/i915/
Di915_vma.h51 static inline bool i915_vma_is_active(const struct i915_vma *vma) in i915_vma_is_active()
65 i915_vma_move_to_active(struct i915_vma *vma, struct i915_request *rq, in i915_vma_move_to_active()
73 static inline bool i915_vma_is_ggtt(const struct i915_vma *vma) in i915_vma_is_ggtt()
78 static inline bool i915_vma_is_dpt(const struct i915_vma *vma) in i915_vma_is_dpt()
83 static inline bool i915_vma_has_ggtt_write(const struct i915_vma *vma) in i915_vma_has_ggtt_write()
88 static inline void i915_vma_set_ggtt_write(struct i915_vma *vma) in i915_vma_set_ggtt_write()
94 static inline bool i915_vma_unset_ggtt_write(struct i915_vma *vma) in i915_vma_unset_ggtt_write()
102 static inline bool i915_vma_is_map_and_fenceable(const struct i915_vma *vma) in i915_vma_is_map_and_fenceable()
107 static inline bool i915_vma_set_userfault(struct i915_vma *vma) in i915_vma_set_userfault()
113 static inline void i915_vma_unset_userfault(struct i915_vma *vma) in i915_vma_unset_userfault()
[all …]
Di915_vma.c48 static inline void assert_vma_held_evict(const struct i915_vma *vma) in assert_vma_held_evict()
66 static void i915_vma_free(struct i915_vma *vma) in i915_vma_free()
75 static void vma_print_allocator(struct i915_vma *vma, const char *reason) in vma_print_allocator()
94 static void vma_print_allocator(struct i915_vma *vma, const char *reason) in vma_print_allocator()
107 struct i915_vma *vma = active_to_vma(ref); in __i915_vma_active() local
132 struct i915_vma *vma = active_to_vma(ref); in __i915_vma_retire() local
151 struct i915_vma *vma; in vma_create() local
293 struct i915_vma *vma = rb_entry(rb, struct i915_vma, obj_node); in i915_vma_lookup() local
327 struct i915_vma *vma; in i915_vma_instance() local
405 int i915_vma_wait_for_bind(struct i915_vma *vma) in i915_vma_wait_for_bind()
[all …]
Di915_gem_evict.c67 static bool grab_vma(struct i915_vma *vma, struct i915_gem_ww_ctx *ww) in grab_vma()
86 static void ungrab_vma(struct i915_vma *vma) in ungrab_vma()
98 struct i915_vma *vma, in mark_free()
112 static bool defer_evict(struct i915_vma *vma) in defer_evict()
157 struct i915_vma *vma, *next; in i915_gem_evict_something() local
337 struct i915_vma *vma, *next; in i915_gem_evict_for_node() local
478 struct i915_vma *vma, *vn; in i915_gem_evict_vm() local
/linux-6.15/include/linux/
Duserfaultfd_k.h149 static inline bool is_mergeable_vm_userfaultfd_ctx(struct vm_area_struct *vma, in is_mergeable_vm_userfaultfd_ctx()
166 static inline bool uffd_disable_huge_pmd_share(struct vm_area_struct *vma) in uffd_disable_huge_pmd_share()
178 static inline bool uffd_disable_fault_around(struct vm_area_struct *vma) in uffd_disable_fault_around()
183 static inline bool userfaultfd_missing(struct vm_area_struct *vma) in userfaultfd_missing()
188 static inline bool userfaultfd_wp(struct vm_area_struct *vma) in userfaultfd_wp()
193 static inline bool userfaultfd_minor(struct vm_area_struct *vma) in userfaultfd_minor()
198 static inline bool userfaultfd_pte_wp(struct vm_area_struct *vma, in userfaultfd_pte_wp()
204 static inline bool userfaultfd_huge_pmd_wp(struct vm_area_struct *vma, in userfaultfd_huge_pmd_wp()
210 static inline bool userfaultfd_armed(struct vm_area_struct *vma) in userfaultfd_armed()
215 static inline bool vma_can_userfault(struct vm_area_struct *vma, in vma_can_userfault()
[all …]
Dhuge_mm.h99 #define thp_vma_allowable_order(vma, vm_flags, tva_flags, order) \ argument
215 static inline bool thp_vma_suitable_order(struct vm_area_struct *vma, in thp_vma_suitable_order()
240 static inline unsigned long thp_vma_suitable_orders(struct vm_area_struct *vma, in thp_vma_suitable_orders()
284 unsigned long thp_vma_allowable_orders(struct vm_area_struct *vma, in thp_vma_allowable_orders()
319 static inline bool vma_thp_disabled(struct vm_area_struct *vma, in vma_thp_disabled()
422 change_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma, in change_huge_pud()
452 struct vm_area_struct *vma) in pmd_trans_huge_lock()
460 struct vm_area_struct *vma) in pud_trans_huge_lock()
517 static inline bool thp_vma_suitable_order(struct vm_area_struct *vma, in thp_vma_suitable_order()
523 static inline unsigned long thp_vma_suitable_orders(struct vm_area_struct *vma, in thp_vma_suitable_orders()
[all …]
Drmap.h84 struct vm_area_struct *vma; member
160 static inline int anon_vma_prepare(struct vm_area_struct *vma) in anon_vma_prepare()
168 static inline void anon_vma_merge(struct vm_area_struct *vma, in anon_vma_merge()
230 int mapcount, struct vm_area_struct *vma) in folio_set_large_mapcount()
244 int diff, struct vm_area_struct *vma) in folio_add_return_large_mapcount()
294 int diff, struct vm_area_struct *vma) in folio_sub_return_large_mapcount()
345 struct vm_area_struct *vma) in folio_set_large_mapcount()
352 int diff, struct vm_area_struct *vma) in folio_add_large_mapcount()
358 int diff, struct vm_area_struct *vma) in folio_add_return_large_mapcount()
364 int diff, struct vm_area_struct *vma) in folio_sub_large_mapcount()
[all …]
Dmm.h536 struct vm_area_struct *vma; /* Target VMA */ member
660 static inline void vma_numab_state_init(struct vm_area_struct *vma) in vma_numab_state_init()
664 static inline void vma_numab_state_free(struct vm_area_struct *vma) in vma_numab_state_free()
669 static inline void vma_numab_state_init(struct vm_area_struct *vma) {} in vma_numab_state_init()
670 static inline void vma_numab_state_free(struct vm_area_struct *vma) {} in vma_numab_state_free()
674 static inline void vma_lock_init(struct vm_area_struct *vma, bool reset_refcnt) in vma_lock_init()
697 static inline void vma_refcount_put(struct vm_area_struct *vma) in vma_refcount_put()
720 static inline struct vm_area_struct *vma_start_read(struct mm_struct *mm, in vma_start_read()
773 static inline bool vma_start_read_locked_nested(struct vm_area_struct *vma, int subclass) in vma_start_read_locked_nested()
792 static inline bool vma_start_read_locked(struct vm_area_struct *vma) in vma_start_read_locked()
[all …]
Dhugetlb.h107 struct vm_area_struct *vma; member
251 static inline void hugetlb_zap_begin(struct vm_area_struct *vma, in hugetlb_zap_begin()
258 static inline void hugetlb_zap_end(struct vm_area_struct *vma, in hugetlb_zap_end()
282 static inline void hugetlb_dup_vma_private(struct vm_area_struct *vma) in hugetlb_dup_vma_private()
286 static inline void clear_vma_resv_huge_pages(struct vm_area_struct *vma) in clear_vma_resv_huge_pages()
302 struct vm_area_struct *vma, in huge_pmd_unshare()
309 struct vm_area_struct *vma, in adjust_range_if_pmd_sharing_possible()
315 struct vm_area_struct *vma, in hugetlb_zap_begin()
321 struct vm_area_struct *vma, in hugetlb_zap_end()
335 static inline int move_hugetlb_page_tables(struct vm_area_struct *vma, in move_hugetlb_page_tables()
[all …]
/linux-6.15/drivers/gpu/drm/xe/
Dxe_vm.h110 static inline u64 xe_vma_start(struct xe_vma *vma) in xe_vma_start()
115 static inline u64 xe_vma_size(struct xe_vma *vma) in xe_vma_size()
120 static inline u64 xe_vma_end(struct xe_vma *vma) in xe_vma_end()
125 static inline u64 xe_vma_bo_offset(struct xe_vma *vma) in xe_vma_bo_offset()
130 static inline struct xe_bo *xe_vma_bo(struct xe_vma *vma) in xe_vma_bo()
136 static inline struct xe_vm *xe_vma_vm(struct xe_vma *vma) in xe_vma_vm()
141 static inline bool xe_vma_read_only(struct xe_vma *vma) in xe_vma_read_only()
146 static inline u64 xe_vma_userptr(struct xe_vma *vma) in xe_vma_userptr()
151 static inline bool xe_vma_is_null(struct xe_vma *vma) in xe_vma_is_null()
156 static inline bool xe_vma_is_cpu_addr_mirror(struct xe_vma *vma) in xe_vma_is_cpu_addr_mirror()
[all …]
/linux-6.15/mm/
Dvma.c62 struct vm_area_struct *vma = merge_next ? vmg->next : vmg->prev; in is_mergeable_vma() local
86 struct anon_vma *anon_vma2, struct vm_area_struct *vma) in is_mergeable_anon_vma()
113 struct vm_area_struct *vma, in init_multi_vma_prep()
194 static void __vma_link_file(struct vm_area_struct *vma, in __vma_link_file()
208 static void __remove_shared_vm_struct(struct vm_area_struct *vma, in __remove_shared_vm_struct()
234 anon_vma_interval_tree_pre_update_vma(struct vm_area_struct *vma) in anon_vma_interval_tree_pre_update_vma()
243 anon_vma_interval_tree_post_update_vma(struct vm_area_struct *vma) in anon_vma_interval_tree_post_update_vma()
377 static void init_vma_prep(struct vma_prepare *vp, struct vm_area_struct *vma) in init_vma_prep()
423 void remove_vma(struct vm_area_struct *vma) in remove_vma()
438 void unmap_region(struct ma_state *mas, struct vm_area_struct *vma, in unmap_region()
[all …]
Drmap.c150 static void anon_vma_chain_link(struct vm_area_struct *vma, in anon_vma_chain_link()
186 int __anon_vma_prepare(struct vm_area_struct *vma) in __anon_vma_prepare()
334 int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma) in anon_vma_fork()
396 void unlink_anon_vmas(struct vm_area_struct *vma) in unlink_anon_vmas()
789 const struct page *page, const struct vm_area_struct *vma) in page_address_in_vma()
850 struct vm_area_struct *vma, unsigned long address, void *arg) in folio_referenced_one()
950 static bool invalid_folio_referenced_vma(struct vm_area_struct *vma, void *arg) in invalid_folio_referenced_vma()
1027 struct vm_area_struct *vma = pvmw->vma; in page_vma_mkclean_one() local
1094 static bool page_mkclean_one(struct folio *folio, struct vm_area_struct *vma, in page_mkclean_one()
1105 static bool invalid_mkclean_vma(struct vm_area_struct *vma, void *arg) in invalid_mkclean_vma()
[all …]
Dmemory.c347 struct vm_area_struct *vma, unsigned long floor, in free_pgtables()
479 static void print_bad_pte(struct vm_area_struct *vma, unsigned long addr, in print_bad_pte()
575 struct page *vm_normal_page(struct vm_area_struct *vma, unsigned long addr, in vm_normal_page()
641 struct folio *vm_normal_folio(struct vm_area_struct *vma, unsigned long addr, in vm_normal_folio()
652 struct page *vm_normal_page_pmd(struct vm_area_struct *vma, unsigned long addr, in vm_normal_page_pmd()
691 struct folio *vm_normal_folio_pmd(struct vm_area_struct *vma, in vm_normal_folio_pmd()
728 static void restore_exclusive_pte(struct vm_area_struct *vma, in restore_exclusive_pte()
762 static int try_restore_exclusive_pte(struct vm_area_struct *vma, in try_restore_exclusive_pte()
1049 struct vm_area_struct *vma, unsigned long addr, bool need_zero) in folio_prealloc()
1464 zap_install_uffd_wp_if_needed(struct vm_area_struct *vma, in zap_install_uffd_wp_if_needed()
[all …]
Dmadvise.c102 struct anon_vma_name *anon_vma_name(struct vm_area_struct *vma) in anon_vma_name()
110 static int replace_anon_vma_name(struct vm_area_struct *vma, in replace_anon_vma_name()
130 static int replace_anon_vma_name(struct vm_area_struct *vma, in replace_anon_vma_name()
145 static int madvise_update_vma(struct vm_area_struct *vma, in madvise_update_vma()
182 struct vm_area_struct *vma = walk->private; in swapin_walk_pmd_entry() local
228 static void shmem_swapin_range(struct vm_area_struct *vma, in shmem_swapin_range()
269 static long madvise_willneed(struct vm_area_struct *vma, in madvise_willneed()
317 static inline bool can_do_file_pageout(struct vm_area_struct *vma) in can_do_file_pageout()
352 struct vm_area_struct *vma = walk->vma; in madvise_cold_or_pageout_pte_range() local
570 struct vm_area_struct *vma, in madvise_cold_page_range()
[all …]
Dnommu.c92 struct vm_area_struct *vma; in kobjsize() local
147 struct vm_area_struct *vma; in __vmalloc_user_flags() local
328 int vm_insert_page(struct vm_area_struct *vma, unsigned long addr, in vm_insert_page()
335 int vm_insert_pages(struct vm_area_struct *vma, unsigned long addr, in vm_insert_pages()
342 int vm_map_pages(struct vm_area_struct *vma, struct page **pages, in vm_map_pages()
349 int vm_map_pages_zero(struct vm_area_struct *vma, struct page **pages, in vm_map_pages_zero()
543 static void setup_vma_to_mm(struct vm_area_struct *vma, struct mm_struct *mm) in setup_vma_to_mm()
559 static void cleanup_vma_from_mm(struct vm_area_struct *vma) in cleanup_vma_from_mm()
578 static int delete_vma_from_mm(struct vm_area_struct *vma) in delete_vma_from_mm()
597 static void delete_vma(struct mm_struct *mm, struct vm_area_struct *vma) in delete_vma()
[all …]
Dmmap.c81 void vma_set_page_prot(struct vm_area_struct *vma) in vma_set_page_prot()
696 struct vm_area_struct *vma, *prev; in generic_get_unmapped_area() local
744 struct vm_area_struct *vma, *prev; in generic_get_unmapped_area_topdown() local
934 struct vm_area_struct *vma; in find_vma_prev() local
961 int expand_stack_locked(struct vm_area_struct *vma, unsigned long address) in expand_stack_locked()
968 struct vm_area_struct *vma, *prev; in find_extend_vma_locked() local
983 int expand_stack_locked(struct vm_area_struct *vma, unsigned long address) in expand_stack_locked()
990 struct vm_area_struct *vma; in find_extend_vma_locked() local
1010 #define vma_expand_up(vma,addr) expand_upwards(vma, addr) argument
1011 #define vma_expand_down(vma, addr) (-EFAULT) argument
[all …]
Dpgtable-generic.c68 int ptep_set_access_flags(struct vm_area_struct *vma, in ptep_set_access_flags()
82 int ptep_clear_flush_young(struct vm_area_struct *vma, in ptep_clear_flush_young()
94 pte_t ptep_clear_flush(struct vm_area_struct *vma, unsigned long address, in ptep_clear_flush()
109 int pmdp_set_access_flags(struct vm_area_struct *vma, in pmdp_set_access_flags()
124 int pmdp_clear_flush_young(struct vm_area_struct *vma, in pmdp_clear_flush_young()
137 pmd_t pmdp_huge_clear_flush(struct vm_area_struct *vma, unsigned long address, in pmdp_huge_clear_flush()
150 pud_t pudp_huge_clear_flush(struct vm_area_struct *vma, unsigned long address, in pudp_huge_clear_flush()
198 pmd_t pmdp_invalidate(struct vm_area_struct *vma, unsigned long address, in pmdp_invalidate()
209 pmd_t pmdp_invalidate_ad(struct vm_area_struct *vma, unsigned long address, in pmdp_invalidate_ad()
218 pmd_t pmdp_collapse_flush(struct vm_area_struct *vma, unsigned long address, in pmdp_collapse_flush()
Dmseal.c19 static inline void set_vma_sealed(struct vm_area_struct *vma) in set_vma_sealed()
40 static bool is_ro_anon(struct vm_area_struct *vma) in is_ro_anon()
60 bool can_modify_vma_madv(struct vm_area_struct *vma, int behavior) in can_modify_vma_madv()
72 static int mseal_fixup(struct vma_iterator *vmi, struct vm_area_struct *vma, in mseal_fixup()
103 struct vm_area_struct *vma; in check_mm_seal() local
129 struct vm_area_struct *vma, *prev; in apply_mm_seal() local
Dmprotect.c43 bool can_change_pte_writable(struct vm_area_struct *vma, unsigned long addr, in can_change_pte_writable()
87 struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr, in change_pte_range()
295 pgtable_split_needed(struct vm_area_struct *vma, unsigned long cp_flags) in pgtable_split_needed()
311 pgtable_populate_needed(struct vm_area_struct *vma, unsigned long cp_flags) in pgtable_populate_needed()
327 #define change_pmd_prepare(vma, pmd, cp_flags) \ argument
342 #define change_prepare(vma, high, low, addr, cp_flags) \ argument
354 struct vm_area_struct *vma, pud_t *pud, unsigned long addr, in change_pmd_range()
424 struct vm_area_struct *vma, p4d_t *p4d, unsigned long addr, in change_pud_range()
483 struct vm_area_struct *vma, pgd_t *pgd, unsigned long addr, in change_p4d_range()
506 struct vm_area_struct *vma, unsigned long addr, in change_protection_range()
[all …]
Dhuge_memory.c86 static inline bool file_thp_enabled(struct vm_area_struct *vma) in file_thp_enabled()
101 unsigned long __thp_vma_allowable_orders(struct vm_area_struct *vma, in __thp_vma_allowable_orders()
1053 pmd_t maybe_pmd_mkwrite(pmd_t pmd, struct vm_area_struct *vma) in maybe_pmd_mkwrite()
1158 static struct folio *vma_alloc_anon_folio_pmd(struct vm_area_struct *vma, in vma_alloc_anon_folio_pmd()
1202 struct vm_area_struct *vma, unsigned long haddr) in map_anon_folio_pmd()
1221 struct vm_area_struct *vma = vmf->vma; in __do_huge_pmd_anonymous_page() local
1280 gfp_t vma_thp_gfp_mask(struct vm_area_struct *vma) in vma_thp_gfp_mask()
1308 struct vm_area_struct *vma, unsigned long haddr, pmd_t *pmd, in set_huge_zero_folio()
1321 struct vm_area_struct *vma = vmf->vma; in do_huge_pmd_anonymous_page() local
1376 static int insert_pfn_pmd(struct vm_area_struct *vma, unsigned long addr, in insert_pfn_pmd()
[all …]
/linux-6.15/tools/testing/vma/
Dvma.c18 #define vma_iter_prealloc(vmi, vma) \ argument
83 static int attach_vma(struct mm_struct *mm, struct vm_area_struct *vma) in attach_vma()
100 struct vm_area_struct *vma = alloc_vma(mm, start, end, pgoff, flags); in alloc_and_link_vma() local
123 struct vm_area_struct *vma; in merge_new() local
145 struct vm_area_struct *vma; in merge_existing() local
234 struct vm_area_struct *vma; in cleanup_mm() local
252 static bool vma_write_started(struct vm_area_struct *vma) in vma_write_started()
270 struct vm_area_struct *vma; in test_simple_merge() local
304 struct vm_area_struct *vma; in test_simple_modify() local
366 struct vm_area_struct *vma = alloc_vma(&mm, 0, 0x1000, 0, flags); in test_simple_expand() local
[all …]
Dvma_internal.h98 #define vma_policy(vma) NULL argument
445 static inline bool vma_is_shared_maywrite(struct vm_area_struct *vma) in vma_is_shared_maywrite()
464 static inline void vma_assert_attached(struct vm_area_struct *vma) in vma_assert_attached()
469 static inline void vma_assert_detached(struct vm_area_struct *vma) in vma_assert_detached()
475 static inline void vma_mark_attached(struct vm_area_struct *vma) in vma_mark_attached()
482 static inline void vma_mark_detached(struct vm_area_struct *vma) in vma_mark_detached()
499 static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) in vma_init()
510 struct vm_area_struct *vma = calloc(1, sizeof(struct vm_area_struct)); in vm_area_alloc() local
579 static inline void vma_set_range(struct vm_area_struct *vma, in vma_set_range()
632 static inline bool vma_is_anonymous(struct vm_area_struct *vma) in vma_is_anonymous()
[all …]
/linux-6.15/arch/powerpc/include/asm/book3s/64/
Dtlbflush.h47 static inline void flush_pmd_tlb_range(struct vm_area_struct *vma, in flush_pmd_tlb_range()
55 static inline void flush_pud_tlb_range(struct vm_area_struct *vma, in flush_pud_tlb_range()
63 static inline void flush_hugetlb_tlb_range(struct vm_area_struct *vma, in flush_hugetlb_tlb_range()
71 static inline void flush_tlb_range(struct vm_area_struct *vma, in flush_tlb_range()
91 static inline void local_flush_tlb_page(struct vm_area_struct *vma, in local_flush_tlb_page()
120 static inline void flush_tlb_page(struct vm_area_struct *vma, in flush_tlb_page()
128 #define flush_tlb_page(vma, addr) local_flush_tlb_page(vma, addr) argument
132 static inline void flush_tlb_fix_spurious_fault(struct vm_area_struct *vma, in flush_tlb_fix_spurious_fault()
/linux-6.15/arch/parisc/kernel/
Dcache.c331 __flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, in __flush_cache_page()
393 void flush_icache_pages(struct vm_area_struct *vma, struct page *page, in flush_icache_pages()
476 struct vm_area_struct *vma; in flush_dcache_folio() local
623 static void flush_cache_page_if_present(struct vm_area_struct *vma, in flush_cache_page_if_present()
648 unsigned long vaddr, struct vm_area_struct *vma) in copy_user_highpage()
660 void copy_to_user_page(struct vm_area_struct *vma, struct page *page, in copy_to_user_page()
668 void copy_from_user_page(struct vm_area_struct *vma, struct page *page, in copy_from_user_page()
705 static void flush_cache_pages(struct vm_area_struct *vma, unsigned long start, unsigned long end) in flush_cache_pages()
715 struct vm_area_struct *vma; in mm_total_size() local
729 struct vm_area_struct *vma; in flush_cache_mm() local
[all …]
/linux-6.15/drivers/gpu/drm/nouveau/
Dnouveau_vmm.c29 nouveau_vma_unmap(struct nouveau_vma *vma) in nouveau_vma_unmap()
38 nouveau_vma_map(struct nouveau_vma *vma, struct nouveau_mem *mem) in nouveau_vma_map()
51 struct nouveau_vma *vma; in nouveau_vma_find() local
64 struct nouveau_vma *vma = *pvma; in nouveau_vma_del() local
81 struct nouveau_vma *vma; in nouveau_vma_new() local
/linux-6.15/arch/x86/mm/
Dpgtable.c461 int ptep_set_access_flags(struct vm_area_struct *vma, in ptep_set_access_flags()
474 int pmdp_set_access_flags(struct vm_area_struct *vma, in pmdp_set_access_flags()
495 int pudp_set_access_flags(struct vm_area_struct *vma, unsigned long address, in pudp_set_access_flags()
516 int ptep_test_and_clear_young(struct vm_area_struct *vma, in ptep_test_and_clear_young()
529 int pmdp_test_and_clear_young(struct vm_area_struct *vma, in pmdp_test_and_clear_young()
543 int pudp_test_and_clear_young(struct vm_area_struct *vma, in pudp_test_and_clear_young()
556 int ptep_clear_flush_young(struct vm_area_struct *vma, in ptep_clear_flush_young()
576 int pmdp_clear_flush_young(struct vm_area_struct *vma, in pmdp_clear_flush_young()
590 pmd_t pmdp_invalidate_ad(struct vm_area_struct *vma, unsigned long address, in pmdp_invalidate_ad()
605 pud_t pudp_invalidate(struct vm_area_struct *vma, unsigned long address, in pudp_invalidate()
[all …]

12345678910>>...34