Home
last modified time | relevance | path

Searched refs:vmaddr (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.1.9/arch/s390/mm/
Dgmap.c355 static int __gmap_unlink_by_vmaddr(struct gmap *gmap, unsigned long vmaddr) in __gmap_unlink_by_vmaddr() argument
362 entry = radix_tree_delete(&gmap->host_to_guest, vmaddr >> PMD_SHIFT); in __gmap_unlink_by_vmaddr()
380 unsigned long vmaddr; in __gmap_unmap_by_gaddr() local
382 vmaddr = (unsigned long) radix_tree_delete(&gmap->guest_to_host, in __gmap_unmap_by_gaddr()
384 return vmaddr ? __gmap_unlink_by_vmaddr(gmap, vmaddr) : 0; in __gmap_unmap_by_gaddr()
475 unsigned long vmaddr; in __gmap_translate() local
477 vmaddr = (unsigned long) in __gmap_translate()
480 return vmaddr ? (vmaddr | (gaddr & ~PMD_MASK)) : -EFAULT; in __gmap_translate()
511 unsigned long vmaddr) in gmap_unlink() argument
518 flush = __gmap_unlink_by_vmaddr(gmap, vmaddr); in gmap_unlink()
[all …]
/linux-6.1.9/arch/powerpc/include/asm/nohash/
Dtlbflush.h43 static inline void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in local_flush_tlb_page() argument
45 asm volatile ("tlbie %0; sync" : : "r" (vmaddr) : "memory"); in local_flush_tlb_page()
60 extern void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
62 extern void __local_flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
68 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
69 extern void __flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
/linux-6.1.9/arch/powerpc/include/asm/book3s/32/
Dtlbflush.h10 void hash__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
53 static inline void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in flush_tlb_page() argument
56 hash__flush_tlb_page(vma, vmaddr); in flush_tlb_page()
58 _tlbie(vmaddr); in flush_tlb_page()
73 unsigned long vmaddr) in local_flush_tlb_page() argument
75 flush_tlb_page(vma, vmaddr); in local_flush_tlb_page()
/linux-6.1.9/arch/parisc/kernel/
Dcache.c315 __flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, in __flush_cache_page() argument
321 flush_dcache_page_asm(physaddr, vmaddr); in __flush_cache_page()
323 flush_icache_page_asm(physaddr, vmaddr); in __flush_cache_page()
327 static void flush_user_cache_page(struct vm_area_struct *vma, unsigned long vmaddr) in flush_user_cache_page() argument
334 vmaddr &= PAGE_MASK; in flush_user_cache_page()
349 flush_user_dcache_range_asm(vmaddr, vmaddr + PAGE_SIZE); in flush_user_cache_page()
351 flush_user_icache_range_asm(vmaddr, vmaddr + PAGE_SIZE); in flush_user_cache_page()
352 flush_tlb_page(vma, vmaddr); in flush_user_cache_page()
561 unsigned long vmaddr, unsigned long pfn) in flush_cache_page_if_present() argument
563 pte_t *ptep = get_ptep(vma->vm_mm, vmaddr); in flush_cache_page_if_present()
[all …]
/linux-6.1.9/arch/mips/include/asm/
Dtlbflush.h41 #define flush_tlb_range(vma, vmaddr, end) local_flush_tlb_range(vma, vmaddr, end) argument
42 #define flush_tlb_kernel_range(vmaddr,end) \ argument
43 local_flush_tlb_kernel_range(vmaddr, end)
Dcacheflush.h70 struct page *page, unsigned long vmaddr) in flush_anon_page() argument
73 __flush_anon_page(page, vmaddr); in flush_anon_page()
/linux-6.1.9/arch/loongarch/include/asm/
Dtlbflush.h41 #define flush_tlb_range(vma, vmaddr, end) local_flush_tlb_range(vma, vmaddr, end) argument
42 #define flush_tlb_kernel_range(vmaddr, end) local_flush_tlb_kernel_range(vmaddr, end) argument
/linux-6.1.9/arch/powerpc/include/asm/book3s/64/
Dtlbflush.h88 unsigned long vmaddr) in local_flush_tlb_page() argument
91 return radix__local_flush_tlb_page(vma, vmaddr); in local_flush_tlb_page()
92 return hash__local_flush_tlb_page(vma, vmaddr); in local_flush_tlb_page()
118 unsigned long vmaddr) in flush_tlb_page() argument
121 return radix__flush_tlb_page(vma, vmaddr); in flush_tlb_page()
122 return hash__flush_tlb_page(vma, vmaddr); in flush_tlb_page()
Dhugetlb.h12 void radix__flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
13 void radix__local_flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
87 unsigned long vmaddr) in flush_hugetlb_page() argument
90 return radix__flush_hugetlb_page(vma, vmaddr); in flush_hugetlb_page()
106 void flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
Dtlbflush-radix.h77 extern void radix__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
78 extern void radix__local_flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr,
84 extern void radix__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
85 extern void radix__flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr,
Dtlbflush-hash.h99 unsigned long vmaddr) in hash__local_flush_tlb_page() argument
104 unsigned long vmaddr) in hash__flush_tlb_page() argument
/linux-6.1.9/arch/powerpc/mm/book3s32/
Dtlb.c97 void hash__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in hash__flush_tlb_page() argument
102 mm = (vmaddr < TASK_SIZE)? vma->vm_mm: &init_mm; in hash__flush_tlb_page()
103 pmd = pmd_off(mm, vmaddr); in hash__flush_tlb_page()
105 flush_hash_pages(mm->context.id, vmaddr, pmd_val(*pmd), 1); in hash__flush_tlb_page()
/linux-6.1.9/arch/powerpc/mm/book3s64/
Dradix_hugetlbpage.c10 void radix__flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in radix__flush_hugetlb_page() argument
16 radix__flush_tlb_page_psize(vma->vm_mm, vmaddr, psize); in radix__flush_hugetlb_page()
19 void radix__local_flush_hugetlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in radix__local_flush_hugetlb_page() argument
25 radix__local_flush_tlb_page_psize(vma->vm_mm, vmaddr, psize); in radix__local_flush_hugetlb_page()
Dradix_tlb.c732 void radix__local_flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, in radix__local_flush_tlb_page_psize() argument
740 _tlbiel_va(vmaddr, pid, psize, RIC_FLUSH_TLB); in radix__local_flush_tlb_page_psize()
744 void radix__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in radix__local_flush_tlb_page() argument
749 return radix__local_flush_hugetlb_page(vma, vmaddr); in radix__local_flush_tlb_page()
751 radix__local_flush_tlb_page_psize(vma->vm_mm, vmaddr, mmu_virtual_psize); in radix__local_flush_tlb_page()
1020 void radix__flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, in radix__flush_tlb_page_psize() argument
1034 _tlbiel_va(vmaddr, pid, psize, RIC_FLUSH_TLB); in radix__flush_tlb_page_psize()
1046 pg_sizes, vmaddr, in radix__flush_tlb_page_psize()
1047 vmaddr + size); in radix__flush_tlb_page_psize()
1049 _tlbie_va(vmaddr, pid, psize, RIC_FLUSH_TLB); in radix__flush_tlb_page_psize()
[all …]
/linux-6.1.9/arch/powerpc/mm/nohash/
Dtlb.c169 void __local_flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr, in __local_flush_tlb_page() argument
177 _tlbil_va(vmaddr, pid, tsize, ind); in __local_flush_tlb_page()
181 void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in local_flush_tlb_page() argument
183 __local_flush_tlb_page(vma ? vma->vm_mm : NULL, vmaddr, in local_flush_tlb_page()
254 void __flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr, in __flush_tlb_page() argument
278 _tlbivax_bcast(vmaddr, pid, tsize, ind); in __flush_tlb_page()
285 .addr = vmaddr, in __flush_tlb_page()
294 _tlbil_va(vmaddr, pid, tsize, ind); in __flush_tlb_page()
299 void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr) in flush_tlb_page() argument
303 flush_hugetlb_page(vma, vmaddr); in flush_tlb_page()
[all …]
/linux-6.1.9/arch/ia64/include/asm/
Dprocessor.h460 __u64 vmaddr, __u64 pte, in ia64_itr() argument
464 ia64_setreg(_IA64_REG_CR_IFA, vmaddr); in ia64_itr()
477 ia64_itc (__u64 target_mask, __u64 vmaddr, __u64 pte, in ia64_itc() argument
481 ia64_setreg(_IA64_REG_CR_IFA, vmaddr); in ia64_itc()
495 ia64_ptr (__u64 target_mask, __u64 vmaddr, __u64 log_size) in ia64_ptr() argument
498 ia64_ptri(vmaddr, (log_size << 2)); in ia64_ptr()
500 ia64_ptrd(vmaddr, (log_size << 2)); in ia64_ptr()
/linux-6.1.9/arch/microblaze/include/asm/
Dtlbflush.h28 unsigned long vmaddr) in local_flush_tlb_page() argument
29 { __tlbie(vmaddr); } in local_flush_tlb_page()
/linux-6.1.9/arch/s390/include/asm/
Dgmap.h118 int __gmap_link(struct gmap *gmap, unsigned long gaddr, unsigned long vmaddr);
122 void gmap_unlink(struct mm_struct *, unsigned long *table, unsigned long vmaddr);
148 unsigned long gaddr, unsigned long vmaddr);
/linux-6.1.9/arch/s390/kvm/
Dpriv.c259 unsigned long gaddr, vmaddr; in handle_iske() local
279 vmaddr = gfn_to_hva(vcpu->kvm, gpa_to_gfn(gaddr)); in handle_iske()
280 if (kvm_is_error_hva(vmaddr)) in handle_iske()
285 rc = get_guest_storage_key(current->mm, vmaddr, &key); in handle_iske()
288 rc = fixup_user_fault(current->mm, vmaddr, in handle_iske()
307 unsigned long vmaddr, gaddr; in handle_rrbe() local
326 vmaddr = gfn_to_hva(vcpu->kvm, gpa_to_gfn(gaddr)); in handle_rrbe()
327 if (kvm_is_error_hva(vmaddr)) in handle_rrbe()
332 rc = reset_guest_reference_bit(current->mm, vmaddr); in handle_rrbe()
334 rc = fixup_user_fault(current->mm, vmaddr, in handle_rrbe()
[all …]
/linux-6.1.9/arch/mips/mm/
Dcache.c113 void __flush_anon_page(struct page *page, unsigned long vmaddr) in __flush_anon_page() argument
117 if (pages_do_alias(addr, vmaddr)) { in __flush_anon_page()
121 kaddr = kmap_coherent(page, vmaddr); in __flush_anon_page()
/linux-6.1.9/arch/parisc/include/asm/
Dcacheflush.h66 void flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr,
75 void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr);
/linux-6.1.9/arch/powerpc/include/asm/nohash/32/
Dhugetlb-8xx.h28 unsigned long vmaddr) in flush_hugetlb_page() argument
30 flush_tlb_page(vma, vmaddr); in flush_hugetlb_page()
/linux-6.1.9/arch/sh/include/asm/
Dcacheflush.h61 struct page *page, unsigned long vmaddr) in flush_anon_page() argument
64 __flush_anon_page(page, vmaddr); in flush_anon_page()
/linux-6.1.9/arch/xtensa/include/asm/
Dtlbflush.h55 #define flush_tlb_range(vma, vmaddr, end) local_flush_tlb_range(vma, vmaddr, \ argument
/linux-6.1.9/arch/arm/mm/
Dflush.c357 void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) in __flush_anon_page() argument
370 flush_cache_page(vma, vmaddr, pfn); in __flush_anon_page()
376 flush_pfn_alias(pfn, vmaddr); in __flush_anon_page()

12