Home
last modified time | relevance | path

Searched refs:pteflags (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/arch/powerpc/include/asm/
Dpkeys.h54 static inline u64 pte_to_hpte_pkey_bits(u64 pteflags) in pte_to_hpte_pkey_bits() argument
56 return (((pteflags & H_PTE_PKEY_BIT0) ? HPTE_R_KEY_BIT0 : 0x0UL) | in pte_to_hpte_pkey_bits()
57 ((pteflags & H_PTE_PKEY_BIT1) ? HPTE_R_KEY_BIT1 : 0x0UL) | in pte_to_hpte_pkey_bits()
58 ((pteflags & H_PTE_PKEY_BIT2) ? HPTE_R_KEY_BIT2 : 0x0UL) | in pte_to_hpte_pkey_bits()
59 ((pteflags & H_PTE_PKEY_BIT3) ? HPTE_R_KEY_BIT3 : 0x0UL) | in pte_to_hpte_pkey_bits()
60 ((pteflags & H_PTE_PKEY_BIT4) ? HPTE_R_KEY_BIT4 : 0x0UL)); in pte_to_hpte_pkey_bits()
63 static inline u16 pte_to_pkey_bits(u64 pteflags) in pte_to_pkey_bits() argument
65 return (((pteflags & H_PTE_PKEY_BIT0) ? 0x10 : 0x0UL) | in pte_to_pkey_bits()
66 ((pteflags & H_PTE_PKEY_BIT1) ? 0x8 : 0x0UL) | in pte_to_pkey_bits()
67 ((pteflags & H_PTE_PKEY_BIT2) ? 0x4 : 0x0UL) | in pte_to_pkey_bits()
[all …]
Dmmu_context.h263 static inline u64 pte_to_hpte_pkey_bits(u64 pteflags) in pte_to_hpte_pkey_bits() argument
/Linux-v4.19/arch/powerpc/mm/
Dhash_utils_64.c183 unsigned long htab_convert_pte_flags(unsigned long pteflags) in htab_convert_pte_flags() argument
188 if ((pteflags & _PAGE_EXEC) == 0) in htab_convert_pte_flags()
197 if (pteflags & _PAGE_PRIVILEGED) { in htab_convert_pte_flags()
201 if (!(pteflags & _PAGE_WRITE)) { in htab_convert_pte_flags()
208 if (pteflags & _PAGE_RWX) in htab_convert_pte_flags()
210 if (!((pteflags & _PAGE_WRITE) && (pteflags & _PAGE_DIRTY))) in htab_convert_pte_flags()
219 if (pteflags & _PAGE_DIRTY) in htab_convert_pte_flags()
225 if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_TOLERANT) in htab_convert_pte_flags()
227 else if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_NON_IDEMPOTENT) in htab_convert_pte_flags()
229 else if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_SAO) in htab_convert_pte_flags()
[all …]
/Linux-v4.19/arch/powerpc/include/asm/book3s/64/
Dhash.h100 extern unsigned long htab_convert_pte_flags(unsigned long pteflags);