/kernel/linux/linux-5.10/mm/ |
H A D | mprotect.c | 45 pte_t *pte, oldpte; in change_pte_range() local 78 oldpte = *pte; in change_pte_range() 79 if (pte_present(oldpte)) { in change_pte_range() 81 bool preserve_write = prot_numa && pte_write(oldpte); in change_pte_range() 91 if (pte_protnone(oldpte)) in change_pte_range() 94 page = vm_normal_page(vma, addr, oldpte); in change_pte_range() 119 oldpte = ptep_modify_prot_start(vma, addr, pte); in change_pte_range() 120 ptent = pte_modify(oldpte, newprot); in change_pte_range() 145 if(pte_user_mkexec(oldpte, ptent) && in change_pte_range() 147 vm_normal_page(vma, addr, oldpte)))) in change_pte_range() [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | mprotect.c | 88 pte_t *pte, oldpte; in change_pte_range() local 109 oldpte = ptep_get(pte); in change_pte_range() 110 if (pte_present(oldpte)) { in change_pte_range() 123 if (pte_protnone(oldpte)) in change_pte_range() 126 page = vm_normal_page(vma, addr, oldpte); in change_pte_range() 165 oldpte = ptep_modify_prot_start(vma, addr, pte); in change_pte_range() 166 ptent = pte_modify(oldpte, newprot); in change_pte_range() 191 ptep_modify_prot_commit(vma, addr, pte, oldpte, ptent); in change_pte_range() 192 if (pte_needs_flush(oldpte, ptent)) in change_pte_range() 195 } else if (is_swap_pte(oldpte)) { in change_pte_range() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | xpm.h | 93 #define pte_user_mkexec(oldpte, ptent) \ 94 ((!pte_user_exec(oldpte) && pte_user_exec(ptent))) 96 #define pte_user_mkexec(oldpte, ptent) 1
|
H A D | pgtable.h | 613 pte_t pte, pte_t oldpte) in arch_do_swap_page() 610 arch_do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t pte, pte_t oldpte) arch_do_swap_page() argument
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | tlbflush.h | 352 static inline bool pte_needs_flush(pte_t oldpte, pte_t newpte) in pte_needs_flush() argument 355 if (!(pte_flags(oldpte) & _PAGE_PRESENT)) in pte_needs_flush() 359 if (pte_pfn(oldpte) != pte_pfn(newpte)) in pte_needs_flush() 366 return pte_flags_need_flush(pte_flags(oldpte), pte_flags(newpte), in pte_needs_flush()
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/book3s/64/ |
H A D | tlbflush.h | 210 static inline bool pte_needs_flush(pte_t oldpte, pte_t newpte) in pte_needs_flush() argument 212 return __pte_flags_need_flush(pte_val(oldpte), pte_val(newpte)); in pte_needs_flush()
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
H A D | pgtable_64.h | 1015 unsigned long addr, pte_t oldpte); 1021 pte_t pte, pte_t oldpte) in arch_do_swap_page() 1027 if (pte_none(oldpte)) in arch_do_swap_page() 1037 unsigned long addr, pte_t oldpte) in arch_unmap_one() 1039 if (adi_state.enabled && (pte_val(oldpte) & _PAGE_MCD_4V)) in arch_unmap_one() 1040 return adi_save_tags(mm, vma, addr, oldpte); in arch_unmap_one() 1018 arch_do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t pte, pte_t oldpte) arch_do_swap_page() argument 1035 arch_unmap_one(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t oldpte) arch_unmap_one() argument
|
/kernel/linux/linux-6.6/arch/sparc/include/asm/ |
H A D | pgtable_64.h | 1057 unsigned long addr, pte_t oldpte); 1063 pte_t pte, pte_t oldpte) in arch_do_swap_page() 1069 if (pte_none(oldpte)) in arch_do_swap_page() 1079 unsigned long addr, pte_t oldpte) in arch_unmap_one() 1081 if (adi_state.enabled && (pte_val(oldpte) & _PAGE_MCD_4V)) in arch_unmap_one() 1082 return adi_save_tags(mm, vma, addr, oldpte); in arch_unmap_one() 1060 arch_do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t pte, pte_t oldpte) arch_do_swap_page() argument 1077 arch_unmap_one(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t oldpte) arch_unmap_one() argument
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | adi_64.c | 371 unsigned long addr, pte_t oldpte) in adi_save_tags() 382 paddr = pte_val(oldpte) & _PAGE_PADDR_4V; in adi_save_tags() 370 adi_save_tags(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t oldpte) adi_save_tags() argument
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | adi_64.c | 371 unsigned long addr, pte_t oldpte) in adi_save_tags() 382 paddr = pte_val(oldpte) & _PAGE_PADDR_4V; in adi_save_tags() 370 adi_save_tags(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t oldpte) adi_save_tags() argument
|
/kernel/linux/linux-6.6/include/asm-generic/ |
H A D | tlb.h | 708 static inline bool pte_needs_flush(pte_t oldpte, pte_t newpte) in pte_needs_flush() argument
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
H A D | pgtable.c | 981 * @oldpte: the PTE will be saved there if the pointer is not NULL. 989 unsigned long *oldpte, unsigned long *oldpgste) in pgste_perform_essa() 1010 if (oldpte) in pgste_perform_essa() 1011 *oldpte = pte_val(*ptep); in pgste_perform_essa() 988 pgste_perform_essa(struct mm_struct *mm, unsigned long hva, int orc, unsigned long *oldpte, unsigned long *oldpgste) pgste_perform_essa() argument
|
/kernel/linux/linux-6.6/arch/s390/mm/ |
H A D | pgtable.c | 1044 * @oldpte: the PTE will be saved there if the pointer is not NULL. 1052 unsigned long *oldpte, unsigned long *oldpgste) in pgste_perform_essa() 1073 if (oldpte) in pgste_perform_essa() 1074 *oldpte = pte_val(*ptep); in pgste_perform_essa() 1051 pgste_perform_essa(struct mm_struct *mm, unsigned long hva, int orc, unsigned long *oldpte, unsigned long *oldpgste) pgste_perform_essa() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | pgtable.h | 870 pte_t pte, pte_t oldpte) in arch_do_swap_page() 867 arch_do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr, pte_t pte, pte_t oldpte) arch_do_swap_page() argument
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | pgtable.h | 1183 unsigned long *oldpte, unsigned long *oldpgste);
|
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | pgtable.h | 1305 unsigned long *oldpte, unsigned long *oldpgste);
|