Searched refs:pkeyshift (Results 1 – 4 of 4) sorted by relevance
182 default_amr |= (0x3ul << pkeyshift(execute_only_key)); in pkey_early_init_devtree()207 default_amr &= ~(0x3ul << pkeyshift(3)); in pkey_early_init_devtree()208 default_iamr &= ~(0x1ul << pkeyshift(3)); in pkey_early_init_devtree()209 default_uamor &= ~(0x3ul << pkeyshift(3)); in pkey_early_init_devtree()215 default_amr &= ~(0x3ul << pkeyshift(0)); in pkey_early_init_devtree()216 default_iamr &= ~(0x1ul << pkeyshift(0)); in pkey_early_init_devtree()217 default_uamor &= ~(0x3ul << pkeyshift(0)); in pkey_early_init_devtree()230 default_uamor &= ~(0x3ul << pkeyshift(1)); in pkey_early_init_devtree()239 default_uamor &= ~(0x3ul << pkeyshift(i)); in pkey_early_init_devtree()348 pkey_bits = 0x3ul << pkeyshift(pkey); in __arch_set_user_pkey_access()[all …]
72 info->amr1 |= 3ul << pkeyshift(pkey1); in child()73 info->amr2 |= 3ul << pkeyshift(pkey2); in child()84 info->expected_iamr |= 1ul << pkeyshift(pkey1); in child()86 info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); in child()91 info->expected_iamr &= ~(1ul << pkeyshift(pkey2)); in child()92 info->expected_iamr &= ~(1ul << pkeyshift(pkey3)); in child()98 info->invalid_iamr = info->expected_iamr | (1ul << pkeyshift(pkey1) | 1ul << pkeyshift(pkey2)); in child()99 info->invalid_uamor = info->expected_uamor & ~(0x3ul << pkeyshift(pkey1)); in child()
110 info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); in child()113 info->iamr |= 1ul << pkeyshift(pkey1); in child()115 info->iamr &= ~(1ul << pkeyshift(pkey1)); in child()117 info->iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3)); in child()119 info->uamor |= 3ul << pkeyshift(pkey1) | 3ul << pkeyshift(pkey2); in child()
51 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) macro