Home
last modified time | relevance | path

Searched refs:pkeys (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dintr.c84 if (!((ppd->pkeys[2] == 0) || (ppd->pkeys[2] == FULL_MGMT_P_KEY))) in add_full_mgmt_pkey()
86 __func__, ppd->pkeys[2], FULL_MGMT_P_KEY); in add_full_mgmt_pkey()
87 ppd->pkeys[2] = FULL_MGMT_P_KEY; in add_full_mgmt_pkey()
Dud.c604 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); ++i) { in hfi1_lookup_pkey_idx()
606 if (ppd->pkeys[i] == pkey) in hfi1_lookup_pkey_idx()
608 if (ppd->pkeys[i] == LIM_MGMT_P_KEY) in hfi1_lookup_pkey_idx()
622 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); ++i) in hfi1_lookup_pkey_idx()
623 if ((ppd->pkeys[i] & 0x7fff) == pkey) in hfi1_lookup_pkey_idx()
Dmad.c105 if (pkey_idx < ARRAY_SIZE(ppd->pkeys)) in hfi1_lookup_pkey_value()
106 return ppd->pkeys[pkey_idx]; in hfi1_lookup_pkey_value()
1012 static int get_pkeys(struct hfi1_devdata *dd, u8 port, u16 *pkeys) in get_pkeys() argument
1016 memcpy(pkeys, ppd->pkeys, sizeof(ppd->pkeys)); in get_pkeys()
1670 static int set_pkeys(struct hfi1_devdata *dd, u8 port, u16 *pkeys) in set_pkeys() argument
1687 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in set_pkeys()
1688 if (pkeys[i] == LIM_MGMT_P_KEY) { in set_pkeys()
1697 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in set_pkeys()
1698 u16 key = pkeys[i]; in set_pkeys()
1699 u16 okey = ppd->pkeys[i]; in set_pkeys()
[all …]
Dhfi.h847 u16 pkeys[MAX_PKEY_VALUES]; member
1830 if (ingress_pkey_matches_entry(pkey, ppd->pkeys[i])) in ingress_pkey_table_search()
1877 if (ingress_pkey_matches_entry(pkey, ppd->pkeys[idx])) in ingress_pkey_check()
2038 if (index >= ARRAY_SIZE(ppd->pkeys)) in hfi1_get_pkey()
2041 ret = ppd->pkeys[index]; in hfi1_get_pkey()
Dverbs.c1181 egress_pkey_matches_entry(pkey, ppd->pkeys[s_pkey_index])) { in egress_pkey_check()
1186 if (egress_pkey_matches_entry(pkey, ppd->pkeys[i])) in egress_pkey_check()
1583 return ARRAY_SIZE(dd->pport[0].pkeys); in hfi1_get_npkeys()
1928 ppd->pkeys); in hfi1_register_ib_device()
Dfile_ops.c1611 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) in set_ctxt_pkey()
1612 if (pkey == ppd->pkeys[i]) in set_ctxt_pkey()
Dinit.c652 ppd->pkeys[default_pkey_idx] = DEFAULT_P_KEY; in hfi1_init_pportdata()
654 ppd->pkeys[0] = 0x8001; in hfi1_init_pportdata()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dsysfs.c446 if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >= in show_port_pkey()
451 p->dev->pkeys.virt2phys_pkey[p->slave] in show_port_pkey()
475 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] in store_port_pkey()
686 list_add_tail(&p->kobj.entry, &dev->pkeys.pkey_port_list[slave]); in add_port()
715 dev->pkeys.device_parent[slave] = in register_one_pkey_tree()
718 if (!dev->pkeys.device_parent[slave]) { in register_one_pkey_tree()
723 INIT_LIST_HEAD(&dev->pkeys.pkey_port_list[slave]); in register_one_pkey_tree()
727 kobject_get(dev->pkeys.device_parent[slave])); in register_one_pkey_tree()
747 &dev->pkeys.pkey_port_list[slave], in register_one_pkey_tree()
759 kobject_put(dev->pkeys.device_parent[slave]); in register_one_pkey_tree()
[all …]
Dmad.c271 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32]) { in smp_snoop()
273 dev->pkeys.phys_pkey_cache[port_num - 1][i + bn*32] = in smp_snoop()
351 if (dev->pkeys.virt2phys_pkey[slave][port_num - 1] in __propagate_pkey_ev()
458 if (dev->pkeys.virt2phys_pkey[slave][port - 1][i] == unassigned_pkey_ix) in find_slave_port_pkey_ix()
461 pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][i]; in find_slave_port_pkey_ix()
566 tun_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][0]; in mlx4_ib_send_to_slave()
1381 wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][0]; in mlx4_ib_send_to_wire()
1385 wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][pkey_index]; in mlx4_ib_send_to_wire()
1851 to_mdev(ctx->ib_dev)->pkeys.virt2phys_pkey[ctx->slave][ctx->port - 1][0]; in create_pv_sqp()
Dmlx4_ib.h634 struct pkey_mgt pkeys; member
Dmain.c2398 ibdev->pkeys.virt2phys_pkey[slave][port - 1][i] = in init_pkeys()
2403 ibdev->pkeys.virt2phys_pkey[slave][port - 1][i]); in init_pkeys()
2412 ibdev->pkeys.phys_pkey_cache[port-1][i] = in init_pkeys()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/
Dpkey_siginfo.c229 int pkeys[NR_PKEYS], i; in reset_pkeys() local
233 pkeys[i] = sys_pkey_alloc(0, rights); in reset_pkeys()
237 sys_pkey_free(pkeys[i]); in reset_pkeys()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_file_ops.c594 for (i = 0; i < ARRAY_SIZE(rcd->pkeys); i++) { in qib_set_part_key()
595 if (!rcd->pkeys[i] && pidx == -1) in qib_set_part_key()
597 if (rcd->pkeys[i] == key) in qib_set_part_key()
602 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in qib_set_part_key()
603 if (!ppd->pkeys[i]) { in qib_set_part_key()
607 if (ppd->pkeys[i] == key) { in qib_set_part_key()
611 rcd->pkeys[pidx] = key; in qib_set_part_key()
620 if ((ppd->pkeys[i] & 0x7FFF) == lkey) in qib_set_part_key()
630 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in qib_set_part_key()
631 if (!ppd->pkeys[i] && in qib_set_part_key()
[all …]
Dqib_mad.c581 static int get_pkeys(struct qib_devdata *dd, u8 port, u16 *pkeys) in get_pkeys() argument
591 memcpy(pkeys, rcd->pkeys, sizeof(rcd->pkeys)); in get_pkeys()
900 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in rm_pkey()
901 if (ppd->pkeys[i] != key) in rm_pkey()
904 ppd->pkeys[i] = 0; in rm_pkey()
938 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in add_pkey()
939 if (!ppd->pkeys[i]) { in add_pkey()
944 if (ppd->pkeys[i] == key) { in add_pkey()
958 if ((ppd->pkeys[i] & 0x7FFF) == lkey) { in add_pkey()
967 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in add_pkey()
[all …]
Dqib_ud.c402 for (i = 0; i < ARRAY_SIZE(dd->rcd[ctxt]->pkeys); ++i) in qib_lookup_pkey()
403 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) in qib_lookup_pkey()
Dqib.h201 u16 pkeys[4]; member
618 u16 pkeys[4]; member
Dqib_verbs.c1365 return ARRAY_SIZE(dd->rcd[0]->pkeys); in qib_get_npkeys()
1380 if (!dd->rcd || index >= ARRAY_SIZE(dd->rcd[ctxt]->pkeys)) in qib_get_pkey()
1383 ret = dd->rcd[ctxt]->pkeys[index]; in qib_get_pkey()
1613 dd->rcd[ctxt]->pkeys); in qib_register_ib_device()
Dqib_iba6120.c2790 val64 = (u64) ppd->pkeys[0] | ((u64) ppd->pkeys[1] << 16) | in qib_6120_set_ib_cfg()
2791 ((u64) ppd->pkeys[2] << 32) | in qib_6120_set_ib_cfg()
2792 ((u64) ppd->pkeys[3] << 48); in qib_6120_set_ib_cfg()
Dqib_iba7220.c2527 maskr = (u64) ppd->pkeys[0] | ((u64) ppd->pkeys[1] << 16) | in qib_7220_set_ib_cfg()
2528 ((u64) ppd->pkeys[2] << 32) | in qib_7220_set_ib_cfg()
2529 ((u64) ppd->pkeys[3] << 48); in qib_7220_set_ib_cfg()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
DMakefile20 obj-$(CONFIG_PPC_MEM_KEYS) += pkeys.o
/kernel/linux/linux-5.10/drivers/hid/
Dhid-prodikeys.c535 const unsigned int *pkeys = &keys[0]; in pcmidi_setup_extra_keys() local
546 while (*pkeys != 0) { in pcmidi_setup_extra_keys()
547 set_bit(*pkeys, pm->input_ep82->keybit); in pcmidi_setup_extra_keys()
548 ++pkeys; in pcmidi_setup_extra_keys()
/kernel/linux/linux-5.10/arch/x86/mm/
DMakefile51 obj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS) += pkeys.o
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
Dpaging_tmpl.h296 unsigned pkeys = 0; in FNAME() local
300 pkeys = pte_flags_pkey(pte_flags(pte)); in FNAME()
302 return pkeys; in FNAME()
/kernel/linux/linux-5.10/Documentation/ABI/stable/
Dsysfs-class-infiniband328 What: /sys/class/infiniband/mlx4_X/iov/ports/<port-num>/pkeys/<n>
344 The "pkeys" and "gids" subdirectories contain one file for each
346 example, ports/1/pkeys/10 contains the value at index 10 in port
356 pkeys/<n>: (RO) Displays the contents of the physical
363 <m>/pkey_idx/<n>: (RW) Writable except for RoCE pkeys.
/kernel/linux/linux-5.10/Documentation/core-api/
Dprotection-keys.rst36 There are 3 system calls which directly interact with pkeys::

12