Home
last modified time | relevance | path

Searched refs:pkey1 (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
Dptrace-pkey.c73 int pkey1, pkey2, pkey3; in child() local
82 pkey1 = sys_pkey_alloc(0, PKEY_DISABLE_EXECUTE); in child()
83 if (pkey1 < 0) { in child()
84 pkey1 = sys_pkey_alloc(0, 0); in child()
85 CHILD_FAIL_IF(pkey1 < 0, &info->child_sync); in child()
96 info->amr1 |= 3ul << pkeyshift(pkey1); in child()
108 info->expected_iamr |= 1ul << pkeyshift(pkey1); in child()
110 info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); 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()
[all …]
Dcore-pkey.c113 int pkey1, pkey2, pkey3; in child() local
125 pkey1 = sys_pkey_alloc(0, PKEY_DISABLE_EXECUTE); in child()
126 if (pkey1 < 0) { in child()
127 pkey1 = sys_pkey_alloc(0, 0); in child()
128 FAIL_IF(pkey1 < 0); in child()
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()
148 info->uamor |= 3ul << pkeyshift(pkey1) | 3ul << pkeyshift(pkey2); in child()
151 user_write, info->amr, pkey1, pkey2, pkey3); in child()
/linux-6.12.1/drivers/infiniband/hw/qib/
Dqib_ud.c88 u16 pkey1; in qib_ud_loopback() local
92 pkey1 = qib_get_pkey(ibp, sqp->s_pkey_index); in qib_ud_loopback()
94 if (unlikely(!qib_pkey_ok(pkey1, pkey2))) { in qib_ud_loopback()
97 qib_bad_pkey(ibp, pkey1, in qib_ud_loopback()
469 u16 pkey1, pkey2; in qib_ud_rcv() local
471 pkey1 = be32_to_cpu(ohdr->bth[0]); in qib_ud_rcv()
473 if (unlikely(!qib_pkey_ok(pkey1, pkey2))) { in qib_ud_rcv()
475 pkey1, in qib_ud_rcv()
Dqib_verbs.h228 static inline int qib_pkey_ok(u16 pkey1, u16 pkey2) in qib_pkey_ok() argument
230 u16 p1 = pkey1 & 0x7FFF; in qib_pkey_ok()
237 return p1 && p1 == p2 && ((__s16)pkey1 < 0 || (__s16)pkey2 < 0); in qib_pkey_ok()
/linux-6.12.1/arch/s390/crypto/
Dpaes_s390.c416 struct pkey_protkey pkey0, pkey1; in __xts_paes_convert_key() local
419 pkey1.len = sizeof(pkey1.protkey); in __xts_paes_convert_key()
422 __paes_keyblob2pkey(&ctx->kb[1], &pkey1)) in __xts_paes_convert_key()
427 memcpy(&ctx->pk[1], &pkey1, sizeof(pkey1)); in __xts_paes_convert_key()