Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 25 of 96) 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 …]
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()
Dcache.c1050 u16 *pkey) in ib_get_cached_pkey() argument
1061 cache = device->port_data[port_num].cache.pkey; in ib_get_cached_pkey()
1066 *pkey = cache->table[index]; in ib_get_cached_pkey()
1086 u16 pkey, u16 *index) in ib_find_cached_pkey() argument
1099 cache = device->port_data[port_num].cache.pkey; in ib_find_cached_pkey()
1108 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) { in ib_find_cached_pkey()
1131 u16 pkey, u16 *index) in ib_find_exact_cached_pkey() argument
1143 cache = device->port_data[port_num].cache.pkey; in ib_find_exact_cached_pkey()
1152 if (cache->table[i] == pkey) { in ib_find_exact_cached_pkey()
1535 old_pkey_cache = device->port_data[port].cache.pkey; in ib_cache_update()
[all …]
Dcma.c403 u16 pkey; member
917 u16 pkey, index; in cma_resolve_ib_dev() local
925 pkey = ntohs(addr->sib_pkey); in cma_resolve_ib_dev()
933 if (ib_find_cached_pkey(cur_dev->device, p, pkey, &index)) in cma_resolve_ib_dev()
1238 u16 pkey; in cma_ib_init_qp_attr() local
1241 pkey = 0xffff; in cma_ib_init_qp_attr()
1243 pkey = ib_addr_get_pkey(dev_addr); in cma_ib_init_qp_attr()
1246 pkey, &qp_attr->pkey_index); in cma_ib_init_qp_attr()
1408 ib->sib_pkey = path->pkey; in cma_save_ib_info()
1426 ib->sib_pkey = path->pkey; in cma_save_ib_info()
[all …]
/drivers/infiniband/ulp/ipoib/
Dipoib_vlan.c73 if (ppriv->pkey == priv->pkey) in is_child_unique()
77 if (tpriv->pkey == priv->pkey && in is_child_unique()
95 u16 pkey, int type) in __ipoib_vlan_add() argument
115 if (pkey == 0 || pkey == 0x8000) { in __ipoib_vlan_add()
123 priv->pkey = pkey; in __ipoib_vlan_add()
167 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add() argument
192 pkey); in ipoib_vlan_add()
203 result = __ipoib_vlan_add(ppriv, priv, pkey, IPOIB_LEGACY_CHILD); in ipoib_vlan_add()
251 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete() argument
271 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()
1881 result = ib_query_pkey(priv->ca, priv->port, 0, &priv->pkey); in ipoib_parent_init()
1948 priv->pkey |= 0x8000; in ipoib_ndo_init()
1950 ndev->broadcast[8] = priv->pkey >> 8; in ipoib_ndo_init()
1951 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.c54 if (nla_put_u16(skb, IFLA_IPOIB_PKEY, priv->pkey)) in ipoib_fill_info()
125 child_pkey = ppriv->pkey; in ipoib_new_child_link()
Dipoib.h362 u16 pkey; member
595 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey);
596 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey);
599 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
1698 u16 pkey, u32 slid, u32 dlid, u8 sc5,
1701 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
1704 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid,
1708 int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey,
1750 static inline int ingress_pkey_matches_entry(u16 pkey, u16 ent) in ingress_pkey_matches_entry() argument
1752 u16 mkey = pkey & PKEY_LOW_15_MASK; in ingress_pkey_matches_entry()
1761 if (!(pkey & PKEY_MEMBER_MASK)) in ingress_pkey_matches_entry()
1773 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/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.c79 u16 pkey = bth_pkey(pkt); in check_keys() local
83 if (!pkey_match(pkey, IB_DEFAULT_PKEY_FULL)) { in check_keys()
/drivers/s390/crypto/
DMakefile17 pkey-objs := pkey_api.o
18 obj-$(CONFIG_PKEY) += pkey.o
/drivers/crypto/virtio/
Dvirtio_crypto_akcipher_algs.c113 uint8_t *pkey; in virtio_crypto_alg_akcipher_init_session() local
120 pkey = kmemdup(key, keylen, GFP_KERNEL); in virtio_crypto_alg_akcipher_init_session()
121 if (!pkey) in virtio_crypto_alg_akcipher_init_session()
139 sg_init_one(&key_sg, pkey, keylen); in virtio_crypto_alg_akcipher_init_session()
162 kfree_sensitive(pkey); in virtio_crypto_alg_akcipher_init_session()
/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.c585 u16 *pkey) in mlx5_query_hca_vport_pkey() argument
609 out_sz += nout * MLX5_ST_SZ_BYTES(pkey); in mlx5_query_hca_vport_pkey()
637 pkarr = MLX5_ADDR_OF(query_hca_vport_pkey_out, out, pkey); in mlx5_query_hca_vport_pkey()
638 for (i = 0; i < nout; i++, pkey++, pkarr += MLX5_ST_SZ_BYTES(pkey)) in mlx5_query_hca_vport_pkey()
639 *pkey = MLX5_GET_PR(pkey, pkarr, pkey); in mlx5_query_hca_vport_pkey()
/drivers/infiniband/hw/mlx5/
Dgsi.c267 u16 pkey; in setup_qp() local
273 ret = ib_query_pkey(device, gsi->port_num, pkey_index, &pkey); in setup_qp()
280 if (!pkey) { in setup_qp()
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_verbs.c209 u16 *pkey) in pvrdma_query_pkey() argument
229 *pkey = rsp.query_pkey_resp.pkey; in pvrdma_query_pkey()

1234