pkey1 88 drivers/infiniband/hw/qib/qib_ud.c u16 pkey1; pkey1 92 drivers/infiniband/hw/qib/qib_ud.c pkey1 = qib_get_pkey(ibp, sqp->s_pkey_index); pkey1 94 drivers/infiniband/hw/qib/qib_ud.c if (unlikely(!qib_pkey_ok(pkey1, pkey2))) { pkey1 97 drivers/infiniband/hw/qib/qib_ud.c qib_bad_pkey(ibp, pkey1, pkey1 468 drivers/infiniband/hw/qib/qib_ud.c u16 pkey1, pkey2; pkey1 470 drivers/infiniband/hw/qib/qib_ud.c pkey1 = be32_to_cpu(ohdr->bth[0]); pkey1 472 drivers/infiniband/hw/qib/qib_ud.c if (unlikely(!qib_pkey_ok(pkey1, pkey2))) { pkey1 474 drivers/infiniband/hw/qib/qib_ud.c pkey1, pkey1 229 drivers/infiniband/hw/qib/qib_verbs.h static inline int qib_pkey_ok(u16 pkey1, u16 pkey2) pkey1 231 drivers/infiniband/hw/qib/qib_verbs.h u16 p1 = pkey1 & 0x7FFF; pkey1 238 drivers/infiniband/hw/qib/qib_verbs.h return p1 && p1 == p2 && ((__s16)pkey1 < 0 || (__s16)pkey2 < 0); pkey1 113 tools/testing/selftests/powerpc/ptrace/core-pkey.c int pkey1, pkey2, pkey3; pkey1 125 tools/testing/selftests/powerpc/ptrace/core-pkey.c pkey1 = sys_pkey_alloc(0, PKEY_DISABLE_EXECUTE); pkey1 126 tools/testing/selftests/powerpc/ptrace/core-pkey.c if (pkey1 < 0) { pkey1 127 tools/testing/selftests/powerpc/ptrace/core-pkey.c pkey1 = sys_pkey_alloc(0, 0); pkey1 128 tools/testing/selftests/powerpc/ptrace/core-pkey.c FAIL_IF(pkey1 < 0); pkey1 139 tools/testing/selftests/powerpc/ptrace/core-pkey.c info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); pkey1 142 tools/testing/selftests/powerpc/ptrace/core-pkey.c info->iamr |= 1ul << pkeyshift(pkey1); pkey1 144 tools/testing/selftests/powerpc/ptrace/core-pkey.c info->iamr &= ~(1ul << pkeyshift(pkey1)); pkey1 148 tools/testing/selftests/powerpc/ptrace/core-pkey.c info->uamor |= 3ul << pkeyshift(pkey1) | 3ul << pkeyshift(pkey2); pkey1 151 tools/testing/selftests/powerpc/ptrace/core-pkey.c user_write, info->amr, pkey1, pkey2, pkey3); pkey1 78 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c int pkey1, pkey2, pkey3; pkey1 87 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c pkey1 = sys_pkey_alloc(0, PKEY_DISABLE_EXECUTE); pkey1 88 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c if (pkey1 < 0) { pkey1 89 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c pkey1 = sys_pkey_alloc(0, 0); pkey1 90 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c CHILD_FAIL_IF(pkey1 < 0, &info->child_sync); pkey1 101 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c info->amr1 |= 3ul << pkeyshift(pkey1); pkey1 106 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c info->expected_iamr |= 1ul << pkeyshift(pkey1); pkey1 108 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); pkey1 112 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c info->expected_uamor |= 3ul << pkeyshift(pkey1) | pkey1 114 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c info->new_iamr |= 1ul << pkeyshift(pkey1) | 1ul << pkeyshift(pkey2); pkey1 115 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c info->new_uamor |= 3ul << pkeyshift(pkey1); pkey1 127 tools/testing/selftests/powerpc/ptrace/ptrace-pkey.c user_write, info->amr1, pkey1, pkey2, pkey3);