Searched refs:pteflags (Results 1 – 4 of 4) sorted by relevance
54 static inline u64 pte_to_hpte_pkey_bits(u64 pteflags) in pte_to_hpte_pkey_bits() argument56 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() argument65 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 …]
263 static inline u64 pte_to_hpte_pkey_bits(u64 pteflags) in pte_to_hpte_pkey_bits() argument
183 unsigned long htab_convert_pte_flags(unsigned long pteflags) in htab_convert_pte_flags() argument188 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 …]
100 extern unsigned long htab_convert_pte_flags(unsigned long pteflags);