Searched refs:pkeyshift (Results 1 – 3 of 3) sorted by relevance
44 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey+1) * AMR_BITS_PER_PKEY)) macro173 default_amr |= (0x3ul << pkeyshift(execute_only_key)); in pkey_early_init_devtree()174 default_iamr &= ~(0x1ul << pkeyshift(execute_only_key)); in pkey_early_init_devtree()179 default_uamor &= ~(0x3ul << pkeyshift(execute_only_key)); in pkey_early_init_devtree()185 default_amr &= ~(0x3ul << pkeyshift(0)); in pkey_early_init_devtree()186 default_iamr &= ~(0x1ul << pkeyshift(0)); in pkey_early_init_devtree()187 default_uamor &= ~(0x3ul << pkeyshift(0)); in pkey_early_init_devtree()200 default_uamor &= ~(0x3ul << pkeyshift(1)); in pkey_early_init_devtree()209 default_uamor &= ~(0x3ul << pkeyshift(i)); in pkey_early_init_devtree()262 u64 new_amr_bits = (((u64)init_bits & 0x3UL) << pkeyshift(pkey)); in init_amr()[all …]
29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) macro96 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()
38 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) macro139 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()