Lines Matching refs:pteflags
17 static inline u64 pte_to_hpte_pkey_bits(u64 pteflags, unsigned long flags)
21 pte_pkey = (((pteflags & H_PTE_PKEY_BIT4) ? HPTE_R_KEY_BIT4 : 0x0UL) |
22 ((pteflags & H_PTE_PKEY_BIT3) ? HPTE_R_KEY_BIT3 : 0x0UL) |
23 ((pteflags & H_PTE_PKEY_BIT2) ? HPTE_R_KEY_BIT2 : 0x0UL) |
24 ((pteflags & H_PTE_PKEY_BIT1) ? HPTE_R_KEY_BIT1 : 0x0UL) |
25 ((pteflags & H_PTE_PKEY_BIT0) ? HPTE_R_KEY_BIT0 : 0x0UL));
36 static inline u16 hash__pte_to_pkey_bits(u64 pteflags)
38 return (((pteflags & H_PTE_PKEY_BIT4) ? 0x10 : 0x0UL) |
39 ((pteflags & H_PTE_PKEY_BIT3) ? 0x8 : 0x0UL) |
40 ((pteflags & H_PTE_PKEY_BIT2) ? 0x4 : 0x0UL) |
41 ((pteflags & H_PTE_PKEY_BIT1) ? 0x2 : 0x0UL) |
42 ((pteflags & H_PTE_PKEY_BIT0) ? 0x1 : 0x0UL));