Home
last modified time | relevance | path

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

/Linux-v5.10/arch/powerpc/include/asm/book3s/64/
Dhash-pkey.h14 static inline u64 pte_to_hpte_pkey_bits(u64 pteflags) in pte_to_hpte_pkey_bits() argument
16 return (((pteflags & H_PTE_PKEY_BIT4) ? HPTE_R_KEY_BIT4 : 0x0UL) | in pte_to_hpte_pkey_bits()
17 ((pteflags & H_PTE_PKEY_BIT3) ? HPTE_R_KEY_BIT3 : 0x0UL) | in pte_to_hpte_pkey_bits()
18 ((pteflags & H_PTE_PKEY_BIT2) ? HPTE_R_KEY_BIT2 : 0x0UL) | in pte_to_hpte_pkey_bits()
19 ((pteflags & H_PTE_PKEY_BIT1) ? HPTE_R_KEY_BIT1 : 0x0UL) | in pte_to_hpte_pkey_bits()
20 ((pteflags & H_PTE_PKEY_BIT0) ? HPTE_R_KEY_BIT0 : 0x0UL)); in pte_to_hpte_pkey_bits()
23 static inline u16 hash__pte_to_pkey_bits(u64 pteflags) in hash__pte_to_pkey_bits() argument
25 return (((pteflags & H_PTE_PKEY_BIT4) ? 0x10 : 0x0UL) | in hash__pte_to_pkey_bits()
26 ((pteflags & H_PTE_PKEY_BIT3) ? 0x8 : 0x0UL) | in hash__pte_to_pkey_bits()
27 ((pteflags & H_PTE_PKEY_BIT2) ? 0x4 : 0x0UL) | in hash__pte_to_pkey_bits()
[all …]
Dpkeys.h20 static inline u16 pte_to_pkey_bits(u64 pteflags) in pte_to_pkey_bits() argument
24 return hash__pte_to_pkey_bits(pteflags); in pte_to_pkey_bits()
Dhash.h148 extern unsigned long htab_convert_pte_flags(unsigned long pteflags);
/Linux-v5.10/arch/powerpc/mm/book3s64/
Dhash_utils.c189 unsigned long htab_convert_pte_flags(unsigned long pteflags) in htab_convert_pte_flags() argument
194 if ((pteflags & _PAGE_EXEC) == 0) in htab_convert_pte_flags()
203 if (pteflags & _PAGE_PRIVILEGED) { in htab_convert_pte_flags()
207 if (!(pteflags & _PAGE_WRITE)) { in htab_convert_pte_flags()
214 if (pteflags & _PAGE_RWX) in htab_convert_pte_flags()
216 if (!((pteflags & _PAGE_WRITE) && (pteflags & _PAGE_DIRTY))) in htab_convert_pte_flags()
225 if (pteflags & _PAGE_DIRTY) in htab_convert_pte_flags()
231 if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_TOLERANT) in htab_convert_pte_flags()
233 else if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_NON_IDEMPOTENT) in htab_convert_pte_flags()
235 else if ((pteflags & _PAGE_CACHE_CTL) == _PAGE_SAO) in htab_convert_pte_flags()
[all …]
/Linux-v5.10/arch/powerpc/include/asm/
Dmmu_context.h287 static inline u64 pte_to_hpte_pkey_bits(u64 pteflags) in pte_to_hpte_pkey_bits() argument