Searched refs:pkey2 (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-pkey.c | 73 int pkey1, pkey2, pkey3; in child() local 90 pkey2 = sys_pkey_alloc(0, 0); in child() 91 CHILD_FAIL_IF(pkey2 < 0, &info->child_sync); in child() 97 info->amr2 |= 3ul << pkeyshift(pkey2); in child() 115 info->expected_iamr &= ~(1ul << pkeyshift(pkey2)); in child() 122 info->invalid_iamr = info->expected_iamr | (1ul << pkeyshift(pkey1) | 1ul << pkeyshift(pkey2)); in child() 126 user_write, info->amr1, pkey1, pkey2, pkey3); in child()
|
D | core-pkey.c | 113 int pkey1, pkey2, pkey3; in child() local 133 pkey2 = sys_pkey_alloc(0, 0); in child() 134 FAIL_IF(pkey2 < 0); in child() 139 info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); in child() 146 info->iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3)); 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/ |
D | qib_ud.c | 89 u16 pkey2; in qib_ud_loopback() local 93 pkey2 = qib_get_pkey(ibp, qp->s_pkey_index); in qib_ud_loopback() 94 if (unlikely(!qib_pkey_ok(pkey1, pkey2))) { in qib_ud_loopback() 469 u16 pkey1, pkey2; in qib_ud_rcv() local 472 pkey2 = qib_get_pkey(ibp, qp->s_pkey_index); in qib_ud_rcv() 473 if (unlikely(!qib_pkey_ok(pkey1, pkey2))) { in qib_ud_rcv()
|
D | qib_verbs.h | 228 static inline int qib_pkey_ok(u16 pkey1, u16 pkey2) in qib_pkey_ok() argument 231 u16 p2 = pkey2 & 0x7FFF; in qib_pkey_ok() 237 return p1 && p1 == p2 && ((__s16)pkey1 < 0 || (__s16)pkey2 < 0); in qib_pkey_ok()
|