Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 25 of 98) sorted by relevance

1234

/drivers/infiniband/core/
Dsecurity.c48 struct pkey_index_qp_list *pkey = NULL; in get_pkey_idx_qp_list() local
56 pkey = tmp_pkey; in get_pkey_idx_qp_list()
61 return pkey; in get_pkey_idx_qp_list()
65 u16 *pkey, in get_pkey_and_subnet_prefix() argument
71 ret = ib_get_cached_pkey(dev, pp->port_num, pp->pkey_index, pkey); in get_pkey_and_subnet_prefix()
80 static int enforce_qp_pkey_security(u16 pkey, in enforce_qp_pkey_security() argument
87 ret = security_ib_pkey_access(qp_sec->security, subnet_prefix, pkey); in enforce_qp_pkey_security()
96 pkey); in enforce_qp_pkey_security()
115 u16 pkey; in check_qp_port_pkey_settings() local
123 &pkey, in check_qp_port_pkey_settings()
[all …]
Dcache.c1048 u16 *pkey) in ib_get_cached_pkey() argument
1059 cache = device->port_data[port_num].cache.pkey; in ib_get_cached_pkey()
1064 *pkey = cache->table[index]; in ib_get_cached_pkey()
1084 u16 pkey, u16 *index) in ib_find_cached_pkey() argument
1097 cache = device->port_data[port_num].cache.pkey; in ib_find_cached_pkey()
1106 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) { in ib_find_cached_pkey()
1129 u16 pkey, u16 *index) in ib_find_exact_cached_pkey() argument
1141 cache = device->port_data[port_num].cache.pkey; in ib_find_exact_cached_pkey()
1150 if (cache->table[i] == pkey) { in ib_find_exact_cached_pkey()
1522 old_pkey_cache = device->port_data[port].cache.pkey; in ib_cache_update()
[all …]
Duverbs_marshall.c150 dst->pkey = src->pkey; in __ib_copy_path_rec_to_user()
202 dst->pkey = src->pkey; in ib_copy_path_rec_from_user()
Dcma.c393 u16 pkey; member
766 u16 pkey, index; in cma_resolve_ib_dev() local
774 pkey = ntohs(addr->sib_pkey); in cma_resolve_ib_dev()
782 if (ib_find_cached_pkey(cur_dev->device, p, pkey, &index)) in cma_resolve_ib_dev()
1085 u16 pkey; in cma_ib_init_qp_attr() local
1088 pkey = 0xffff; in cma_ib_init_qp_attr()
1090 pkey = ib_addr_get_pkey(dev_addr); in cma_ib_init_qp_attr()
1093 pkey, &qp_attr->pkey_index); in cma_ib_init_qp_attr()
1255 ib->sib_pkey = path->pkey; in cma_save_ib_info()
1273 ib->sib_pkey = path->pkey; in cma_save_ib_info()
[all …]
/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c74 if (ppriv->pkey == priv->pkey) in is_child_unique()
78 if (tpriv->pkey == priv->pkey && in is_child_unique()
96 u16 pkey, int type) in __ipoib_vlan_add() argument
116 if (pkey == 0 || pkey == 0x8000) { in __ipoib_vlan_add()
124 priv->pkey = pkey; in __ipoib_vlan_add()
168 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add() argument
189 ppriv->dev->name, pkey); in ipoib_vlan_add()
200 result = __ipoib_vlan_add(ppriv, priv, pkey, IPOIB_LEGACY_CHILD); in ipoib_vlan_add()
248 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete() argument
268 if (priv->pkey == pkey && in ipoib_vlan_delete()
Dipoib_main.c93 struct ib_device *dev, u32 port, u16 pkey,
472 struct ib_device *dev, u32 port, u16 pkey, in ipoib_get_net_dev_by_params() argument
485 ret = ib_find_cached_pkey(dev, port, pkey, &pkey_index); in ipoib_get_net_dev_by_params()
873 path->pathrec.pkey = cpu_to_be16(priv->pkey); in init_path_rec()
1122 phdr->hwaddr[8] = (priv->pkey >> 8) & 0xff; in ipoib_start_xmit()
1123 phdr->hwaddr[9] = priv->pkey & 0xff; in ipoib_start_xmit()
1876 result = ib_query_pkey(priv->ca, priv->port, 0, &priv->pkey); in ipoib_parent_init()
1944 priv->pkey |= 0x8000; in ipoib_ndo_init()
1946 ndev->broadcast[8] = priv->pkey >> 8; in ipoib_ndo_init()
1947 ndev->broadcast[9] = priv->pkey & 0xff; in ipoib_ndo_init()
[all …]
Dipoib_ib.c886 ipoib_warn(priv, "P_Key 0x%04x is %s\n", priv->pkey, in ipoib_ib_dev_open()
887 (!(priv->pkey & 0x7fff) ? "Invalid" : "not found")); in ipoib_ib_dev_open()
921 if (!(priv->pkey & 0x7fff) || in ipoib_pkey_dev_check_presence()
922 ib_find_pkey(priv->ca, priv->port, priv->pkey, in ipoib_pkey_dev_check_presence()
1012 prev_pkey = priv->pkey; in update_parent_pkey()
1013 result = ib_query_pkey(priv->ca, priv->port, 0, &priv->pkey); in update_parent_pkey()
1020 priv->pkey |= 0x8000; in update_parent_pkey()
1022 if (prev_pkey != priv->pkey) { in update_parent_pkey()
1024 prev_pkey, priv->pkey); in update_parent_pkey()
1029 priv->dev->broadcast[8] = priv->pkey >> 8; in update_parent_pkey()
[all …]
Dipoib_netlink.c55 if (nla_put_u16(skb, IFLA_IPOIB_PKEY, priv->pkey)) in ipoib_fill_info()
126 child_pkey = ppriv->pkey; in ipoib_new_child_link()
Dipoib.h362 u16 pkey; member
594 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey);
595 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey);
598 u16 pkey, int child_type);
/drivers/infiniband/hw/hfi1/
Dud.c70 u16 pkey; in ud_loopback() local
74 pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); in ud_loopback()
77 if (unlikely(ingress_pkey_check(ppd, pkey, sc5, in ud_loopback()
80 hfi1_bad_pkey(ibp, pkey, in ud_loopback()
226 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth() argument
243 *pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_bth_deth()
245 *pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_bth_deth()
247 bth0 |= *pkey; in hfi1_make_bth_deth()
265 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local
323 hfi1_make_bth_deth(qp, wqe, ohdr, &pkey, extra_bytes, false); in hfi1_make_ud_req_9B()
[all …]
Dtrace_ibhdrs.h77 u16 *pkey, u32 *psn, u32 *qpn);
88 u16 *entropy, u16 *len, u16 *pkey,
95 u16 len, u16 pkey, u32 dlid, u32 slid);
100 u8 tver, u16 pkey, u32 psn, u32 qpn,
140 __field(u16, pkey)
168 &__entry->pkey,
207 &__entry->pkey,
238 __entry->pkey,
254 __entry->pkey,
299 __field(u16, pkey)
[all …]
Druc.c37 u16 pkey = packet->pkey; in hfi1_ruc_check_hdr() local
62 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr()
64 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr()
99 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr()
101 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr()
241 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_16B() local
286 bth0 |= pkey; in hfi1_make_ruc_header_16B()
302 pkey, becn, 0, l4, priv->s_sc); in hfi1_make_ruc_header_16B()
328 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_9B() local
364 bth0 |= pkey; in hfi1_make_ruc_header_9B()
Dhfi.h351 u16 pkey; member
969 u16 pkey; member
1700 u16 pkey, u32 slid, u32 dlid, u8 sc5,
1703 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
1706 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
1710 int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey,
1752 static inline int ingress_pkey_matches_entry(u16 pkey, u16 ent) in ingress_pkey_matches_entry() argument
1754 u16 mkey = pkey & PKEY_LOW_15_MASK; in ingress_pkey_matches_entry()
1763 if (!(pkey & PKEY_MEMBER_MASK)) in ingress_pkey_matches_entry()
1775 static int ingress_pkey_table_search(struct hfi1_pportdata *ppd, u16 pkey) in ingress_pkey_table_search() argument
[all …]
Dtrace.c120 u16 *pkey, u32 *psn, u32 *qpn) in hfi1_trace_parse_9b_bth() argument
130 *pkey = ib_bth_get_pkey(ohdr); in hfi1_trace_parse_9b_bth()
171 u16 *entropy, u16 *len, u16 *pkey, in hfi1_trace_parse_16b_hdr() argument
182 *pkey = hfi1_16B_get_pkey(hdr); in hfi1_trace_parse_16b_hdr()
195 u16 len, u16 pkey, u32 dlid, u32 slid) in hfi1_trace_fmt_lrh() argument
203 age, becn, fecn, l4, rc, sc, pkey, entropy); in hfi1_trace_fmt_lrh()
224 u8 tver, u16 pkey, u32 psn, u32 qpn, in hfi1_trace_fmt_rest() argument
241 se, mig, pad, tver, pkey, fecn, becn, in hfi1_trace_fmt_rest()
Dverbs.c440 u16 pkey; in hfi1_do_pkey_check() local
447 pkey = hfi1_16B_get_pkey(hdr); in hfi1_do_pkey_check()
448 return ingress_pkey_check(ppd, pkey, packet->sc, in hfi1_do_pkey_check()
1084 static inline int egress_pkey_matches_entry(u16 pkey, u16 ent) in egress_pkey_matches_entry() argument
1086 u16 mkey = pkey & PKEY_LOW_15_MASK; in egress_pkey_matches_entry()
1095 if (pkey & PKEY_MEMBER_MASK) in egress_pkey_matches_entry()
1116 int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey, in egress_pkey_check() argument
1127 if ((sc5 == 0xf) && ((pkey & PKEY_LOW_15_MASK) != PKEY_LOW_15_MASK)) in egress_pkey_check()
1131 if ((pkey & PKEY_LOW_15_MASK) == 0) in egress_pkey_check()
1139 egress_pkey_matches_entry(pkey, ppd->pkeys[s_pkey_index])) { in egress_pkey_check()
[all …]
Dipoib_main.c189 &priv->pkey); in hfi1_ipoib_set_id()
218 ib_query_pkey(device, port_num, priv->pkey_index, &priv->pkey); in hfi1_ipoib_setup_rn()
/drivers/s390/crypto/
Dpkey_api.c147 static int pkey_skey2pkey(const u8 *key, struct pkey_protkey *pkey) in pkey_skey2pkey() argument
171 key, pkey->protkey, in pkey_skey2pkey()
172 &pkey->len, &pkey->type); in pkey_skey2pkey()
176 key, pkey->protkey, in pkey_skey2pkey()
177 &pkey->len, &pkey->type); in pkey_skey2pkey()
230 static int pkey_ep11key2pkey(const u8 *key, struct pkey_protkey *pkey) in pkey_ep11key2pkey() argument
249 pkey->len = sizeof(pkey->protkey); in pkey_ep11key2pkey()
251 pkey->protkey, &pkey->len, &pkey->type); in pkey_ep11key2pkey()
770 struct pkey_protkey *pkey) in pkey_keyblob2pkey2() argument
805 return pkey_nonccatok2pkey(key, keylen, pkey); in pkey_keyblob2pkey2()
[all …]
DMakefile17 pkey-objs := pkey_api.o
18 obj-$(CONFIG_PKEY) += pkey.o
/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c419 u16 *pkey) in bnxt_qplib_get_pkey() argument
422 *pkey = 0xFFFF; in bnxt_qplib_get_pkey()
431 memcpy(pkey, &pkey_tbl->tbl[index], sizeof(*pkey)); in bnxt_qplib_get_pkey()
436 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, in bnxt_qplib_del_pkey() argument
452 if (!memcmp(&pkey_tbl->tbl[i], pkey, sizeof(*pkey))) in bnxt_qplib_del_pkey()
457 "PKEY 0x%04x not found in the pkey table\n", *pkey); in bnxt_qplib_del_pkey()
460 memset(&pkey_tbl->tbl[i], 0, sizeof(*pkey)); in bnxt_qplib_del_pkey()
468 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, in bnxt_qplib_add_pkey() argument
485 if (!memcmp(&pkey_tbl->tbl[i], pkey, sizeof(*pkey))) in bnxt_qplib_add_pkey()
496 memcpy(&pkey_tbl->tbl[free_idx], pkey, sizeof(*pkey)); in bnxt_qplib_add_pkey()
Dqplib_sp.h234 u16 *pkey);
236 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey,
239 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey,
/drivers/infiniband/sw/rxe/
Drxe_hdr.h64 __be16 pkey; member
166 return be16_to_cpu(bth->pkey); in __bth_pkey()
169 static inline void __bth_set_pkey(void *arg, u16 pkey) in __bth_set_pkey() argument
173 bth->pkey = cpu_to_be16(pkey); in __bth_set_pkey()
335 static inline void bth_set_pkey(struct rxe_pkt_info *pkt, u16 pkey) in bth_set_pkey() argument
337 __bth_set_pkey(pkt->hdr, pkey); in bth_set_pkey()
406 int mig, int pad, u16 pkey, u32 qpn, int ack_req, in bth_init() argument
417 bth->pkey = cpu_to_be16(pkey); in bth_init()
Drxe_recv.c83 u16 pkey = bth_pkey(pkt); in check_keys() local
87 if (!pkey_match(pkey, IB_DEFAULT_PKEY_FULL)) { in check_keys()
88 pr_warn_ratelimited("bad pkey = 0x%x\n", pkey); in check_keys()
/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema_iface.c172 info->pkey = cpu_to_be16(src->pkey); in opa_vnic_get_vesw_info()
206 dst->pkey = be16_to_cpu(info->pkey); in opa_vnic_set_vesw_info()
Dopa_vnic_encap.c74 u16 pkey, u16 entropy, u8 sc, u8 rc, in opa_vnic_make_header() argument
94 h[2] |= ((u32)pkey << OPA_16B_PKEY_SHFT); in opa_vnic_make_header()
511 info->vesw.pkey, entropy, sc, rc, in opa_vnic_encap_skb()
/drivers/net/ethernet/mellanox/mlx5/core/
Dvport.c582 u16 *pkey) in mlx5_query_hca_vport_pkey() argument
606 out_sz += nout * MLX5_ST_SZ_BYTES(pkey); in mlx5_query_hca_vport_pkey()
634 pkarr = MLX5_ADDR_OF(query_hca_vport_pkey_out, out, pkey); in mlx5_query_hca_vport_pkey()
635 for (i = 0; i < nout; i++, pkey++, pkarr += MLX5_ST_SZ_BYTES(pkey)) in mlx5_query_hca_vport_pkey()
636 *pkey = MLX5_GET_PR(pkey, pkarr, pkey); in mlx5_query_hca_vport_pkey()

1234