Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/infiniband/hw/hfi1/
Dintr.c42 if (!((ppd->pkeys[2] == 0) || (ppd->pkeys[2] == FULL_MGMT_P_KEY))) in add_full_mgmt_pkey()
44 __func__, ppd->pkeys[2], FULL_MGMT_P_KEY); in add_full_mgmt_pkey()
45 ppd->pkeys[2] = FULL_MGMT_P_KEY; in add_full_mgmt_pkey()
Dud.c563 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); ++i) { in hfi1_lookup_pkey_idx()
565 if (ppd->pkeys[i] == pkey) in hfi1_lookup_pkey_idx()
567 if (ppd->pkeys[i] == LIM_MGMT_P_KEY) in hfi1_lookup_pkey_idx()
581 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); ++i) in hfi1_lookup_pkey_idx()
582 if ((ppd->pkeys[i] & 0x7fff) == pkey) in hfi1_lookup_pkey_idx()
Dmad.c63 if (pkey_idx < ARRAY_SIZE(ppd->pkeys)) in hfi1_lookup_pkey_value()
64 return ppd->pkeys[pkey_idx]; in hfi1_lookup_pkey_value()
970 static int get_pkeys(struct hfi1_devdata *dd, u32 port, u16 *pkeys) in get_pkeys() argument
974 memcpy(pkeys, ppd->pkeys, sizeof(ppd->pkeys)); in get_pkeys()
1628 static int set_pkeys(struct hfi1_devdata *dd, u32 port, u16 *pkeys) in set_pkeys() argument
1645 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in set_pkeys()
1646 if (pkeys[i] == LIM_MGMT_P_KEY) { in set_pkeys()
1655 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) { in set_pkeys()
1656 u16 key = pkeys[i]; in set_pkeys()
1657 u16 okey = ppd->pkeys[i]; in set_pkeys()
[all …]
Dhfi.h796 u16 pkeys[MAX_PKEY_VALUES]; member
1778 if (ingress_pkey_matches_entry(pkey, ppd->pkeys[i])) in ingress_pkey_table_search()
1825 if (ingress_pkey_matches_entry(pkey, ppd->pkeys[idx])) in ingress_pkey_check()
1986 if (index >= ARRAY_SIZE(ppd->pkeys)) in hfi1_get_pkey()
1989 ret = ppd->pkeys[index]; in hfi1_get_pkey()
Dverbs.c1139 egress_pkey_matches_entry(pkey, ppd->pkeys[s_pkey_index])) { in egress_pkey_check()
1144 if (egress_pkey_matches_entry(pkey, ppd->pkeys[i])) in egress_pkey_check()
1538 return ARRAY_SIZE(dd->pport[0].pkeys); in hfi1_get_npkeys()
1870 ppd->pkeys); in hfi1_register_ib_device()
Dfile_ops.c1608 for (i = 0; i < ARRAY_SIZE(ppd->pkeys); i++) in set_ctxt_pkey()
1609 if (pkey == ppd->pkeys[i]) in set_ctxt_pkey()
Dinit.c611 ppd->pkeys[default_pkey_idx] = DEFAULT_P_KEY; in hfi1_init_pportdata()
613 ppd->pkeys[0] = 0x8001; in hfi1_init_pportdata()
/linux-6.12.1/drivers/infiniband/hw/mlx4/
Dsysfs.c446 struct pkey_mgt *m = &p->dev->pkeys; in show_port_pkey()
473 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1] in store_port_pkey()
676 list_add_tail(&p->kobj.entry, &dev->pkeys.pkey_port_list[slave]); in add_port()
705 dev->pkeys.device_parent[slave] = in register_one_pkey_tree()
708 if (!dev->pkeys.device_parent[slave]) { in register_one_pkey_tree()
713 INIT_LIST_HEAD(&dev->pkeys.pkey_port_list[slave]); in register_one_pkey_tree()
717 kobject_get(dev->pkeys.device_parent[slave])); in register_one_pkey_tree()
737 &dev->pkeys.pkey_port_list[slave], in register_one_pkey_tree()
749 kobject_put(dev->pkeys.device_parent[slave]); in register_one_pkey_tree()
751 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()
459 if (dev->pkeys.virt2phys_pkey[slave][port - 1][i] == unassigned_pkey_ix) in find_slave_port_pkey_ix()
462 pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][i]; in find_slave_port_pkey_ix()
567 tun_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][0]; in mlx4_ib_send_to_slave()
1383 wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][0]; in mlx4_ib_send_to_wire()
1387 wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][pkey_index]; in mlx4_ib_send_to_wire()
1854 to_mdev(ctx->ib_dev)->pkeys.virt2phys_pkey[ctx->slave][ctx->port - 1][0]; in create_pv_sqp()
Dmlx4_ib.h635 struct pkey_mgt pkeys; member
/linux-6.12.1/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.c403 for (i = 0; i < ARRAY_SIZE(dd->rcd[ctxt]->pkeys); ++i) in qib_lookup_pkey()
404 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) in qib_lookup_pkey()
Dqib.h201 u16 pkeys[4]; member
614 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()
1614 dd->rcd[ctxt]->pkeys); in qib_register_ib_device()
Dqib_iba6120.c2787 val64 = (u64) ppd->pkeys[0] | ((u64) ppd->pkeys[1] << 16) | in qib_6120_set_ib_cfg()
2788 ((u64) ppd->pkeys[2] << 32) | in qib_6120_set_ib_cfg()
2789 ((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()
/linux-6.12.1/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()
/linux-6.12.1/arch/powerpc/mm/book3s64/
DMakefile21 obj-$(CONFIG_PPC_PKEY) += pkeys.o
/linux-6.12.1/drivers/hid/
Dhid-prodikeys.c525 const unsigned int *pkeys = &keys[0]; in pcmidi_setup_extra_keys() local
536 while (*pkeys != 0) { in pcmidi_setup_extra_keys()
537 set_bit(*pkeys, pm->input_ep82->keybit); in pcmidi_setup_extra_keys()
538 ++pkeys; in pcmidi_setup_extra_keys()
/linux-6.12.1/Documentation/translations/zh_CN/core-api/
Dprotection-keys.rst43 有3个系统调用可以直接与pkeys进行交互::
/linux-6.12.1/arch/x86/mm/
DMakefile61 obj-$(CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS) += pkeys.o
/linux-6.12.1/arch/x86/kvm/mmu/
Dpaging_tmpl.h261 unsigned pkeys = 0; in FNAME() local
265 pkeys = pte_flags_pkey(pte_flags(pte)); in FNAME()
267 return pkeys; in FNAME()
/linux-6.12.1/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.
/linux-6.12.1/Documentation/core-api/
Dprotection-keys.rst53 There are 3 system calls which directly interact with pkeys::

12