Lines Matching +full:p +full:- +full:384
1 /* SPDX-License-Identifier: GPL-2.0 */
9 # define SYS_pkey_alloc 384
28 #define NR_RESERVED_PKEYS_4K 27 /* pkey-0, pkey-1, exec-only-pkey
31 #define NR_RESERVED_PKEYS_64K_3KEYS 3 /* PowerNV and KVM: pkey-0,
32 pkey-1 and exec-only key */
33 #define NR_RESERVED_PKEYS_64K_4KEYS 4 /* PowerVM: pkey-0, pkey-1,
34 pkey-31 and exec-only key */
41 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY; in pkey_bit_position()
77 if ((stat("/sys/firmware/devicetree/base/ibm,partition-name", &buf) == 0) && in arch_is_powervm()
78 (stat("/sys/firmware/devicetree/base/hmc-managed?", &buf) == 0) && in arch_is_powervm()
79 (stat("/sys/firmware/devicetree/base/chosen/qemu,graphic-width", &buf) == -1) ) in arch_is_powervm()
99 * powerpc does not allow userspace to change permissions of exec-only in expect_fault_on_read_execonly_key()
117 /* 4-byte instructions * 16384 = 64K page */
128 ptr = mmap(NULL, size, prot, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in malloc_pkey_with_mprotect_subpage()
129 pkey_assert(ptr != (void *)-1); in malloc_pkey_with_mprotect_subpage()
141 dprintf1("%s() for pkey %d @ %p\n", __func__, pkey, ptr); in malloc_pkey_with_mprotect_subpage()