Home
last modified time | relevance | path

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

/Linux-v5.4/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.h264 static inline u64 pte_to_hpte_pkey_bits(u64 pteflags) in pte_to_hpte_pkey_bits() argument
/Linux-v5.4/arch/powerpc/mm/book3s64/
Dhash_utils.c186 unsigned long htab_convert_pte_flags(unsigned long pteflags) in htab_convert_pte_flags() argument
191 if ((pteflags & _PAGE_EXEC) == 0) in htab_convert_pte_flags()
200 if (pteflags & _PAGE_PRIVILEGED) { in htab_convert_pte_flags()
204 if (!(pteflags & _PAGE_WRITE)) { in htab_convert_pte_flags()
211 if (pteflags & _PAGE_RWX) in htab_convert_pte_flags()
213 if (!((pteflags & _PAGE_WRITE) && (pteflags & _PAGE_DIRTY))) in htab_convert_pte_flags()
222 if (pteflags & _PAGE_DIRTY) in htab_convert_pte_flags()
228 if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_TOLERANT) in htab_convert_pte_flags()
230 else if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_NON_IDEMPOTENT) in htab_convert_pte_flags()
232 else if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_SAO) in htab_convert_pte_flags()
[all …]
/Linux-v5.4/arch/powerpc/include/asm/book3s/64/
Dhash.h148 extern unsigned long htab_convert_pte_flags(unsigned long pteflags);