Home
last modified time | relevance | path

Searched refs:pkeyshift (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dpkeys.c181 default_amr |= (0x3ul << pkeyshift(execute_only_key)); in pkey_early_init_devtree()
206 default_amr &= ~(0x3ul << pkeyshift(3)); in pkey_early_init_devtree()
207 default_iamr &= ~(0x1ul << pkeyshift(3)); in pkey_early_init_devtree()
208 default_uamor &= ~(0x3ul << pkeyshift(3)); in pkey_early_init_devtree()
214 default_amr &= ~(0x3ul << pkeyshift(0)); in pkey_early_init_devtree()
215 default_iamr &= ~(0x1ul << pkeyshift(0)); in pkey_early_init_devtree()
216 default_uamor &= ~(0x3ul << pkeyshift(0)); in pkey_early_init_devtree()
229 default_uamor &= ~(0x3ul << pkeyshift(1)); in pkey_early_init_devtree()
238 default_uamor &= ~(0x3ul << pkeyshift(i)); in pkey_early_init_devtree()
347 pkey_bits = 0x3ul << pkeyshift(pkey); in __arch_set_user_pkey_access()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-pkey.c29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) macro
96 info->amr1 |= 3ul << pkeyshift(pkey1); in child()
97 info->amr2 |= 3ul << pkeyshift(pkey2); in child()
108 info->expected_iamr |= 1ul << pkeyshift(pkey1); in child()
110 info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); in child()
115 info->expected_iamr &= ~(1ul << pkeyshift(pkey2)); in child()
116 info->expected_iamr &= ~(1ul << pkeyshift(pkey3)); in child()
122 info->invalid_iamr = info->expected_iamr | (1ul << pkeyshift(pkey1) | 1ul << pkeyshift(pkey2)); in child()
123 info->invalid_uamor = info->expected_uamor & ~(0x3ul << pkeyshift(pkey1)); in child()
H A Dcore-pkey.c38 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) macro
139 info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); in child()
142 info->iamr |= 1ul << pkeyshift(pkey1); in child()
144 info->iamr &= ~(1ul << pkeyshift(pkey1)); in child()
146 info->iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3)); in child()
148 info->uamor |= 3ul << pkeyshift(pkey1) | 3ul << pkeyshift(pkey2); in child()