/drivers/infiniband/core/ |
D | security.c | 48 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 …]
|
D | cache.c | 1034 u16 *pkey) in ib_get_cached_pkey() argument 1045 cache = device->port_data[port_num].cache.pkey; in ib_get_cached_pkey() 1050 *pkey = cache->table[index]; in ib_get_cached_pkey() 1077 u16 pkey, in ib_find_cached_pkey() argument 1091 cache = device->port_data[port_num].cache.pkey; in ib_find_cached_pkey() 1096 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) { in ib_find_cached_pkey() 1118 u16 pkey, in ib_find_exact_cached_pkey() argument 1131 cache = device->port_data[port_num].cache.pkey; in ib_find_exact_cached_pkey() 1136 if (cache->table[i] == pkey) { in ib_find_exact_cached_pkey() 1439 old_pkey_cache = device->port_data[port].cache.pkey; in ib_cache_update() [all …]
|
D | uverbs_marshall.c | 150 dst->pkey = src->pkey; in __ib_copy_path_rec_to_user() 202 dst->pkey = src->pkey; in ib_copy_path_rec_from_user()
|
D | cma.c | 419 u16 pkey; member 815 u16 pkey, index; in cma_resolve_ib_dev() local 823 pkey = ntohs(addr->sib_pkey); in cma_resolve_ib_dev() 831 if (ib_find_cached_pkey(cur_dev->device, p, pkey, &index)) in cma_resolve_ib_dev() 1080 u16 pkey; in cma_ib_init_qp_attr() local 1083 pkey = 0xffff; in cma_ib_init_qp_attr() 1085 pkey = ib_addr_get_pkey(dev_addr); in cma_ib_init_qp_attr() 1088 pkey, &qp_attr->pkey_index); in cma_ib_init_qp_attr() 1246 ib->sib_pkey = path->pkey; in cma_save_ib_info() 1264 ib->sib_pkey = path->pkey; in cma_save_ib_info() [all …]
|
D | cm.c | 286 __be16 pkey; member 569 be16_to_cpu(path->pkey), &av->pkey_index); in cm_init_av_by_path() 1303 req_msg->pkey = param->primary_path->pkey; in cm_format_req() 1401 (param->alternate_path->pkey != param->primary_path->pkey || in cm_validate_req_param() 1459 cm_id_priv->pkey = param->primary_path->pkey; in ib_send_cm_req() 1595 primary_path->pkey = req_msg->pkey; in cm_format_paths_from_req() 1616 alt_path->pkey = req_msg->pkey; in cm_format_paths_from_req() 1639 u16 pkey; in cm_get_bth_pkey() local 1642 ret = ib_get_cached_pkey(ib_dev, port_num, pkey_index, &pkey); in cm_get_bth_pkey() 1649 return pkey; in cm_get_bth_pkey() [all …]
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_vlan.c | 74 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 115 if (pkey == 0 || pkey == 0x8000) { in __ipoib_vlan_add() 121 priv->pkey = pkey; in __ipoib_vlan_add() 165 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add() argument 186 ppriv->dev->name, pkey); in ipoib_vlan_add() 195 result = __ipoib_vlan_add(ppriv, priv, pkey, IPOIB_LEGACY_CHILD); in ipoib_vlan_add() 243 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete() argument 263 if (priv->pkey == pkey && in ipoib_vlan_delete()
|
D | ipoib_main.c | 97 struct ib_device *dev, u8 port, u16 pkey, 469 struct ib_device *dev, u8 port, u16 pkey, in ipoib_get_net_dev_by_params() argument 482 ret = ib_find_cached_pkey(dev, port, pkey, &pkey_index); in ipoib_get_net_dev_by_params() 871 path->pathrec.pkey = cpu_to_be16(priv->pkey); in init_path_rec() 1120 phdr->hwaddr[8] = (priv->pkey >> 8) & 0xff; in ipoib_start_xmit() 1121 phdr->hwaddr[9] = priv->pkey & 0xff; in ipoib_start_xmit() 1867 result = ib_query_pkey(priv->ca, priv->port, 0, &priv->pkey); in ipoib_parent_init() 1926 priv->pkey |= 0x8000; in ipoib_ndo_init() 1928 ndev->broadcast[8] = priv->pkey >> 8; in ipoib_ndo_init() 1929 ndev->broadcast[9] = priv->pkey & 0xff; in ipoib_ndo_init() [all …]
|
D | ipoib_ib.c | 894 ipoib_warn(priv, "P_Key 0x%04x is %s\n", priv->pkey, in ipoib_ib_dev_open() 895 (!(priv->pkey & 0x7fff) ? "Invalid" : "not found")); in ipoib_ib_dev_open() 925 if (!(priv->pkey & 0x7fff) || in ipoib_pkey_dev_check_presence() 926 ib_find_pkey(priv->ca, priv->port, priv->pkey, in ipoib_pkey_dev_check_presence() 1016 prev_pkey = priv->pkey; in update_parent_pkey() 1017 result = ib_query_pkey(priv->ca, priv->port, 0, &priv->pkey); in update_parent_pkey() 1024 priv->pkey |= 0x8000; in update_parent_pkey() 1026 if (prev_pkey != priv->pkey) { in update_parent_pkey() 1028 prev_pkey, priv->pkey); in update_parent_pkey() 1033 priv->dev->broadcast[8] = priv->pkey >> 8; in update_parent_pkey() [all …]
|
D | ipoib_netlink.c | 50 if (nla_put_u16(skb, IFLA_IPOIB_PKEY, priv->pkey)) in ipoib_fill_info() 121 child_pkey = ppriv->pkey; in ipoib_new_child_link()
|
D | ipoib.h | 362 u16 pkey; member 591 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey); 592 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey); 595 u16 pkey, int child_type);
|
/drivers/infiniband/hw/hfi1/ |
D | ud.c | 112 u16 pkey; in ud_loopback() local 116 pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); in ud_loopback() 119 if (unlikely(ingress_pkey_check(ppd, pkey, sc5, in ud_loopback() 122 hfi1_bad_pkey(ibp, pkey, in ud_loopback() 268 u16 *pkey, u32 extra_bytes, bool bypass) in hfi1_make_bth_deth() argument 285 *pkey = hfi1_get_pkey(ibp, rvt_get_swqe_pkey_index(wqe)); in hfi1_make_bth_deth() 287 *pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_bth_deth() 289 bth0 |= *pkey; in hfi1_make_bth_deth() 307 u16 len, slid, dlid, pkey; in hfi1_make_ud_req_9B() local 365 hfi1_make_bth_deth(qp, wqe, ohdr, &pkey, extra_bytes, false); in hfi1_make_ud_req_9B() [all …]
|
D | trace_ibhdrs.h | 118 u16 *pkey, u32 *psn, u32 *qpn); 129 u16 *entropy, u16 *len, u16 *pkey, 136 u16 len, u16 pkey, u32 dlid, u32 slid); 141 u8 tver, u16 pkey, u32 psn, u32 qpn, 181 __field(u16, pkey) 209 &__entry->pkey, 248 &__entry->pkey, 279 __entry->pkey, 295 __entry->pkey, 340 __field(u16, pkey) [all …]
|
D | ruc.c | 79 u16 pkey = packet->pkey; in hfi1_ruc_check_hdr() local 104 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr() 106 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr() 141 if (unlikely(rcv_pkey_check(ppd_from_ibp(ibp), pkey, in hfi1_ruc_check_hdr() 143 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr() 282 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_16B() local 327 bth0 |= pkey; in hfi1_make_ruc_header_16B() 343 pkey, becn, 0, l4, priv->s_sc); in hfi1_make_ruc_header_16B() 368 u16 pkey = hfi1_get_pkey(ibp, qp->s_pkey_index); in hfi1_make_ruc_header_9B() local 404 bth0 |= pkey; in hfi1_make_ruc_header_9B()
|
D | hfi.h | 382 u16 pkey; member 1011 u16 pkey; member 1613 u16 pkey, u32 slid, u32 dlid, u8 sc5, 1616 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, 1619 u32 remote_qpn, u16 pkey, u32 slid, u32 dlid, 1623 int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey, 1665 static inline int ingress_pkey_matches_entry(u16 pkey, u16 ent) in ingress_pkey_matches_entry() argument 1667 u16 mkey = pkey & PKEY_LOW_15_MASK; in ingress_pkey_matches_entry() 1676 if (!(pkey & PKEY_MEMBER_MASK)) in ingress_pkey_matches_entry() 1688 static int ingress_pkey_table_search(struct hfi1_pportdata *ppd, u16 pkey) in ingress_pkey_table_search() argument [all …]
|
D | trace.c | 160 u16 *pkey, u32 *psn, u32 *qpn) in hfi1_trace_parse_9b_bth() argument 170 *pkey = ib_bth_get_pkey(ohdr); in hfi1_trace_parse_9b_bth() 206 u16 *entropy, u16 *len, u16 *pkey, in hfi1_trace_parse_16b_hdr() argument 217 *pkey = hfi1_16B_get_pkey(hdr); in hfi1_trace_parse_16b_hdr() 230 u16 len, u16 pkey, u32 dlid, u32 slid) in hfi1_trace_fmt_lrh() argument 238 age, becn, fecn, l4, rc, sc, pkey, entropy); in hfi1_trace_fmt_lrh() 259 u8 tver, u16 pkey, u32 psn, u32 qpn, in hfi1_trace_fmt_rest() argument 276 se, mig, pad, tver, pkey, fecn, becn, in hfi1_trace_fmt_rest()
|
D | verbs.c | 481 u16 pkey; in hfi1_do_pkey_check() local 488 pkey = hfi1_16B_get_pkey(hdr); in hfi1_do_pkey_check() 489 return ingress_pkey_check(ppd, pkey, packet->sc, in hfi1_do_pkey_check() 1123 static inline int egress_pkey_matches_entry(u16 pkey, u16 ent) in egress_pkey_matches_entry() argument 1125 u16 mkey = pkey & PKEY_LOW_15_MASK; in egress_pkey_matches_entry() 1134 if (pkey & PKEY_MEMBER_MASK) in egress_pkey_matches_entry() 1155 int egress_pkey_check(struct hfi1_pportdata *ppd, u32 slid, u16 pkey, in egress_pkey_check() argument 1166 if ((sc5 == 0xf) && ((pkey & PKEY_LOW_15_MASK) != PKEY_LOW_15_MASK)) in egress_pkey_check() 1170 if ((pkey & PKEY_LOW_15_MASK) == 0) in egress_pkey_check() 1178 egress_pkey_matches_entry(pkey, ppd->pkeys[s_pkey_index])) { in egress_pkey_check() [all …]
|
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_sp.c | 411 u16 *pkey) in bnxt_qplib_get_pkey() argument 414 *pkey = 0xFFFF; in bnxt_qplib_get_pkey() 423 memcpy(pkey, &pkey_tbl->tbl[index], sizeof(*pkey)); in bnxt_qplib_get_pkey() 428 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, in bnxt_qplib_del_pkey() argument 444 if (!memcmp(&pkey_tbl->tbl[i], pkey, sizeof(*pkey))) in bnxt_qplib_del_pkey() 449 "PKEY 0x%04x not found in the pkey table\n", *pkey); in bnxt_qplib_del_pkey() 452 memset(&pkey_tbl->tbl[i], 0, sizeof(*pkey)); in bnxt_qplib_del_pkey() 460 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, in bnxt_qplib_add_pkey() argument 477 if (!memcmp(&pkey_tbl->tbl[i], pkey, sizeof(*pkey))) in bnxt_qplib_add_pkey() 488 memcpy(&pkey_tbl->tbl[free_idx], pkey, sizeof(*pkey)); in bnxt_qplib_add_pkey()
|
D | qplib_sp.h | 237 u16 *pkey); 239 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, 242 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey,
|
/drivers/infiniband/sw/rxe/ |
D | rxe_hdr.h | 92 __be16 pkey; member 194 return be16_to_cpu(bth->pkey); in __bth_pkey() 197 static inline void __bth_set_pkey(void *arg, u16 pkey) in __bth_set_pkey() argument 201 bth->pkey = cpu_to_be16(pkey); in __bth_set_pkey() 363 static inline void bth_set_pkey(struct rxe_pkt_info *pkt, u16 pkey) in bth_set_pkey() argument 365 __bth_set_pkey(pkt->hdr + pkt->offset, pkey); in bth_set_pkey() 434 int mig, int pad, u16 pkey, u32 qpn, int ack_req, in bth_init() argument 445 bth->pkey = cpu_to_be16(pkey); in bth_init()
|
D | rxe_recv.c | 107 u16 pkey = bth_pkey(pkt); in check_keys() local 113 if (pkey_match(pkey, port->pkey_tbl[i])) { in check_keys() 121 pr_warn_ratelimited("bad pkey = 0x%x\n", pkey); in check_keys() 126 if (unlikely(!pkey_match(pkey, in check_keys() 129 pr_warn_ratelimited("bad pkey = 0x%0x\n", pkey); in check_keys()
|
/drivers/s390/crypto/ |
D | pkey_api.c | 132 static int pkey_skey2pkey(const u8 *key, struct pkey_protkey *pkey) in pkey_skey2pkey() argument 154 key, pkey->protkey, in pkey_skey2pkey() 155 &pkey->len, &pkey->type); in pkey_skey2pkey() 159 key, pkey->protkey, in pkey_skey2pkey() 160 &pkey->len, &pkey->type); in pkey_skey2pkey() 569 struct pkey_protkey *pkey) in pkey_keyblob2pkey2() argument 583 return pkey_nonccatok2pkey(key, keylen, pkey); in pkey_keyblob2pkey2() 615 rc = cca_sec2protkey(card, dom, key, pkey->protkey, in pkey_keyblob2pkey2() 616 &pkey->len, &pkey->type); in pkey_keyblob2pkey2() 618 rc = cca_cipher2protkey(card, dom, key, pkey->protkey, in pkey_keyblob2pkey2() [all …]
|
D | Makefile | 16 pkey-objs := pkey_api.o 17 obj-$(CONFIG_PKEY) += pkey.o
|
/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema_iface.c | 172 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()
|
D | opa_vnic_encap.c | 74 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/ |
D | vport.c | 598 u16 *pkey) in mlx5_query_hca_vport_pkey() argument 622 out_sz += nout * MLX5_ST_SZ_BYTES(pkey); in mlx5_query_hca_vport_pkey() 650 pkarr = MLX5_ADDR_OF(query_hca_vport_pkey_out, out, pkey); in mlx5_query_hca_vport_pkey() 651 for (i = 0; i < nout; i++, pkey++, pkarr += MLX5_ST_SZ_BYTES(pkey)) in mlx5_query_hca_vport_pkey() 652 *pkey = MLX5_GET_PR(pkey, pkarr, pkey); in mlx5_query_hca_vport_pkey()
|