/linux-master/include/linux/ |
H A D | pkeys.h | 10 #include <asm/pkeys.h>
|
/linux-master/arch/powerpc/include/asm/ |
H A D | mman.h | 13 #include <linux/pkeys.h>
|
H A D | pkeys.h | 27 #include <asm/book3s/64/pkeys.h> 90 * trusts that only good, valid pkeys come out of here. 98 * Are we out of pkeys? We must handle this specially because ffz()
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | intr.c | 41 /* Sanity check - ppd->pkeys[2] should be 0, or already initialized */ 42 if (!((ppd->pkeys[2] == 0) || (ppd->pkeys[2] == FULL_MGMT_P_KEY))) 44 __func__, ppd->pkeys[2], FULL_MGMT_P_KEY); 45 ppd->pkeys[2] = FULL_MGMT_P_KEY;
|
H A D | ud.c | 563 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); ++i) { 565 if (ppd->pkeys[i] == pkey) 567 if (ppd->pkeys[i] == LIM_MGMT_P_KEY) 581 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); ++i) 582 if ((ppd->pkeys[i] & 0x7fff) == pkey) 586 * Should not get here, this means hardware failed to validate pkeys. 878 * for invalid pkeys is optional according to
|
H A D | mad.c | 63 if (pkey_idx < ARRAY_SIZE(ppd->pkeys)) 64 return ppd->pkeys[pkey_idx]; 968 * @pkeys: the pkey table is placed here 970 static int get_pkeys(struct hfi1_devdata *dd, u32 port, u16 *pkeys) argument 974 memcpy(pkeys, ppd->pkeys, sizeof(ppd->pkeys)); 1021 /* get the real pkeys if we are requesting the first block */ 1626 * @pkeys: the PKEY table 1628 static int set_pkeys(struct hfi1_devdata *dd, u32 port, u16 *pkeys) argument [all...] |
H A D | hfi.h | 795 /* list of pkeys programmed; 0 if not set */ 796 u16 pkeys[MAX_PKEY_VALUES]; member in struct:hfi1_pportdata 1778 if (ingress_pkey_matches_entry(pkey, ppd->pkeys[i])) 1825 if (ingress_pkey_matches_entry(pkey, ppd->pkeys[idx])) 1986 if (index >= ARRAY_SIZE(ppd->pkeys)) 1989 ret = ppd->pkeys[index];
|
/linux-master/arch/powerpc/mm/book3s64/ |
H A D | Makefile | 23 obj-$(CONFIG_PPC_PKEY) += pkeys.o
|
H A D | mmu_context.c | 14 #include <linux/pkeys.h>
|
H A D | pkeys.c | 15 #include <linux/pkeys.h> 19 int num_pkey; /* Max number of pkeys supported */ 84 * Let's assume 32 pkeys on P8/P9 bare metal, if its not defined by device 157 * The OS can manage only 8 pkeys due to its inability to represent them 246 pr_info("Enabling pkeys with max key count %d\n", num_pkey);
|
H A D | pgtable.c | 10 #include <linux/pkeys.h>
|
/linux-master/drivers/infiniband/hw/mlx4/ |
H A D | sysfs.c | 298 kobject_create_and_add("pkeys", kobject_get(port->cur_port)); 446 struct pkey_mgt *m = &p->dev->pkeys; 473 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] 676 list_add_tail(&p->kobj.entry, &dev->pkeys.pkey_port_list[slave]); 705 dev->pkeys.device_parent[slave] = 708 if (!dev->pkeys.device_parent[slave]) { 713 INIT_LIST_HEAD(&dev->pkeys.pkey_port_list[slave]); 717 kobject_get(dev->pkeys.device_parent[slave])); 737 &dev->pkeys.pkey_port_list[slave], 749 kobject_put(dev->pkeys [all...] |
H A D | mad.c | 271 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32]) { 273 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32] = 351 if (dev->pkeys.virt2phys_pkey[slave][port_num - 1] 459 if (dev->pkeys.virt2phys_pkey[slave][port - 1][i] == unassigned_pkey_ix) 462 pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][i]; 567 tun_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][0]; 1383 wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][0]; 1387 wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][pkey_index]; 1854 to_mdev(ctx->ib_dev)->pkeys.virt2phys_pkey[ctx->slave][ctx->port - 1][0];
|
/linux-master/tools/testing/selftests/powerpc/mm/ |
H A D | pkey_siginfo.c | 22 #include "pkeys.h" 229 int pkeys[NR_PKEYS], i; local 231 /* Exhaustively allocate all available pkeys */ 233 pkeys[i] = sys_pkey_alloc(0, rights); 235 /* Free all allocated pkeys */ 237 sys_pkey_free(pkeys[i]); 280 * pkeys. This will be the base for the initial AMR and IAMR 283 * If the AMR and IAMR bits of all available pkeys are cleared
|
/linux-master/arch/x86/mm/ |
H A D | pkeys.c | 8 #include <linux/pkeys.h> /* PKEY_* */ 176 /* Do not expose the file if pkeys are not supported. */
|
H A D | Makefile | 62 obj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS) += pkeys.o
|
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_mad.c | 579 * @pkeys: the pkey table is placed here 581 static int get_pkeys(struct qib_devdata *dd, u8 port, u16 *pkeys) argument 591 memcpy(pkeys, rcd->pkeys, sizeof(rcd->pkeys)); 900 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { 901 if (ppd->pkeys[i] != key) 904 ppd->pkeys[i] = 0; 938 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { 939 if (!ppd->pkeys[ 988 set_pkeys(struct qib_devdata *dd, u8 port, u16 *pkeys) argument [all...] |
H A D | qib_file_ops.c | 594 for (i = 0; i < ARRAY_SIZE(rcd->pkeys); i++) { 595 if (!rcd->pkeys[i] && pidx == -1) 597 if (rcd->pkeys[i] == key) 602 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { 603 if (!ppd->pkeys[i]) { 607 if (ppd->pkeys[i] == key) { 611 rcd->pkeys[pidx] = key; 620 if ((ppd->pkeys[i] & 0x7FFF) == lkey) 630 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { 631 if (!ppd->pkeys[ [all...] |
H A D | qib_ud.c | 403 for (i = 0; i < ARRAY_SIZE(dd->rcd[ctxt]->pkeys); ++i) 404 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) 408 * Should not get here, this means hardware failed to validate pkeys.
|
H A D | qib_verbs.c | 1365 return ARRAY_SIZE(dd->rcd[0]->pkeys); 1380 if (!dd->rcd || index >= ARRAY_SIZE(dd->rcd[ctxt]->pkeys)) 1383 ret = dd->rcd[ctxt]->pkeys[index]; 1614 dd->rcd[ctxt]->pkeys);
|
/linux-master/arch/x86/include/asm/ |
H A D | mmu_context.h | 8 #include <linux/pkeys.h> 252 /* pkeys never affect instruction fetches */
|
/linux-master/drivers/hid/ |
H A D | hid-prodikeys.c | 525 const unsigned int *pkeys = &keys[0]; local 536 while (*pkeys != 0) { 537 set_bit(*pkeys, pm->input_ep82->keybit); 538 ++pkeys;
|
/linux-master/arch/x86/kvm/mmu/ |
H A D | paging_tmpl.h | 261 unsigned pkeys = 0; local 265 pkeys = pte_flags_pkey(pte_flags(pte)); 267 return pkeys;
|
/linux-master/arch/powerpc/kvm/ |
H A D | book3s_64_mmu_host.c | 11 #include <linux/pkeys.h>
|
/linux-master/arch/powerpc/mm/ |
H A D | fault.c | 36 #include <linux/pkeys.h> 284 * to pkeys later.
|