Searched refs:pkeyshift (Results 1 – 3 of 3) sorted by relevance
29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey+1) * AMR_BITS_PER_PKEY)) macro130 pkey_amr_mask &= ~(0x3ul << pkeyshift(0)); in pkey_initialize()133 pkey_iamr_mask &= ~(0x3ul << pkeyshift(0)); in pkey_initialize()134 pkey_iamr_mask &= ~(0x3ul << pkeyshift(execute_only_key)); in pkey_initialize()137 pkey_uamor_mask &= ~(0x3ul << pkeyshift(0)); in pkey_initialize()138 pkey_uamor_mask &= ~(0x3ul << pkeyshift(execute_only_key)); in pkey_initialize()143 pkey_uamor_mask &= ~(0x3ul << pkeyshift(i)); in pkey_initialize()210 u64 pkey_bits = 0x3ul << pkeyshift(pkey); in is_pkey_enabled()223 u64 new_amr_bits = (((u64)init_bits & 0x3UL) << pkeyshift(pkey)); in init_amr()224 u64 old_amr = read_amr() & ~((u64)(0x3ul) << pkeyshift(pkey)); in init_amr()[all …]
29 #define pkeyshift(pkey) (PKEY_REG_BITS - ((pkey + 1) * AMR_BITS_PER_PKEY)) macro101 info->amr1 |= 3ul << pkeyshift(pkey1); in child()102 info->amr2 |= 3ul << pkeyshift(pkey2); in child()103 info->amr3 |= info->amr2 | 3ul << pkeyshift(pkey3); in child()106 info->expected_iamr |= 1ul << pkeyshift(pkey1); in child()108 info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); in child()110 info->expected_iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3)); in child()112 info->expected_uamor |= 3ul << pkeyshift(pkey1) | in child()113 3ul << pkeyshift(pkey2); in child()114 info->new_iamr |= 1ul << pkeyshift(pkey1) | 1ul << pkeyshift(pkey2); in child()[all …]
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()