/linux-4.4.14/crypto/ |
D | rsa.c | 81 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_enc() local 89 if (unlikely(!pkey->n || !pkey->e)) { in rsa_enc() 94 if (req->dst_len < mpi_get_size(pkey->n)) { in rsa_enc() 95 req->dst_len = mpi_get_size(pkey->n); in rsa_enc() 105 ret = _rsa_enc(pkey, c, m); in rsa_enc() 126 const struct rsa_key *pkey = rsa_get_key(tfm); in rsa_dec() local 134 if (unlikely(!pkey->n || !pkey->d)) { in rsa_dec() 139 if (req->dst_len < mpi_get_size(pkey->n)) { in rsa_dec() 140 req->dst_len = mpi_get_size(pkey->n); in rsa_dec() 150 ret = _rsa_dec(pkey, m, c); in rsa_dec() [all …]
|
/linux-4.4.14/drivers/infiniband/ulp/ipoib/ |
D | ipoib_vlan.c | 53 u16 pkey, int type) in __ipoib_vlan_add() argument 68 priv->pkey = pkey; in __ipoib_vlan_add() 71 priv->dev->broadcast[8] = pkey >> 8; in __ipoib_vlan_add() 72 priv->dev->broadcast[9] = pkey & 0xff; in __ipoib_vlan_add() 120 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add() argument 133 ppriv->dev->name, pkey); in ipoib_vlan_add() 148 if (ppriv->pkey == pkey) { in ipoib_vlan_add() 154 if (tpriv->pkey == pkey && in ipoib_vlan_add() 161 result = __ipoib_vlan_add(ppriv, priv, pkey, IPOIB_LEGACY_CHILD); in ipoib_vlan_add() 174 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete() argument [all …]
|
D | ipoib_main.c | 98 struct ib_device *dev, u8 port, u16 pkey, 403 struct ib_device *dev, u8 port, u16 pkey, in ipoib_get_net_dev_by_params() argument 416 ret = ib_find_cached_pkey(dev, port, pkey, &pkey_index); in ipoib_get_net_dev_by_params() 776 path->pathrec.pkey = cpu_to_be16(priv->pkey); in path_rec_create() 973 cb->hwaddr[8] = (priv->pkey >> 8) & 0xff; in ipoib_start_xmit() 974 cb->hwaddr[9] = priv->pkey & 0xff; in ipoib_start_xmit() 1687 return sprintf(buf, "0x%04x\n", priv->pkey); in show_pkey() 1689 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL); 1732 int pkey; in create_child() local 1735 if (sscanf(buf, "%i", &pkey) != 1) in create_child() [all …]
|
D | ipoib_ib.c | 686 ipoib_warn(priv, "P_Key 0x%04x is %s\n", priv->pkey, in ipoib_ib_dev_open() 687 (!(priv->pkey & 0x7fff) ? "Invalid" : "not found")); in ipoib_ib_dev_open() 728 if (!(priv->pkey & 0x7fff) || in ipoib_pkey_dev_check_presence() 729 ib_find_pkey(priv->ca, priv->port, priv->pkey, in ipoib_pkey_dev_check_presence() 933 prev_pkey = priv->pkey; in update_parent_pkey() 934 result = ib_query_pkey(priv->ca, priv->port, 0, &priv->pkey); in update_parent_pkey() 941 priv->pkey |= 0x8000; in update_parent_pkey() 943 if (prev_pkey != priv->pkey) { in update_parent_pkey() 945 prev_pkey, priv->pkey); in update_parent_pkey() 950 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() 119 child_pkey = ppriv->pkey; in ipoib_new_child_link()
|
D | ipoib.h | 342 u16 pkey; member 562 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey); 563 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey); 566 u16 pkey, int child_type);
|
D | ipoib_verbs.c | 45 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &pkey_index)) { in ipoib_mcast_attach()
|
D | ipoib_multicast.c | 480 rec.pkey = cpu_to_be16(priv->pkey); in ipoib_mcast_join()
|
D | ipoib_cm.c | 1089 ret = ib_find_pkey(priv->ca, priv->port, priv->pkey, &qp_attr.pkey_index); in ipoib_cm_modify_tx_init() 1091 ipoib_warn(priv, "pkey 0x%x not found: %d\n", priv->pkey, ret); in ipoib_cm_modify_tx_init()
|
/linux-4.4.14/include/net/ |
D | neighbour.h | 195 __u32 (*hash)(const void *pkey, 198 bool (*key_eq)(const struct neighbour *, const void *pkey); 251 static inline bool neigh_key_eq16(const struct neighbour *n, const void *pkey) in neigh_key_eq16() argument 253 return *(const u16 *)n->primary_key == *(const u16 *)pkey; in neigh_key_eq16() 256 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) in neigh_key_eq32() argument 258 return *(const u32 *)n->primary_key == *(const u32 *)pkey; in neigh_key_eq32() 261 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) in neigh_key_eq128() argument 264 const u32 *p32 = pkey; in neigh_key_eq128() 272 bool (*key_eq)(const struct neighbour *n, const void *pkey), in ___neigh_lookup_noref() argument 273 __u32 (*hash)(const void *pkey, in ___neigh_lookup_noref() argument [all …]
|
D | ndisc.h | 147 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) in ndisc_hashfn() argument 149 const u32 *p32 = pkey; in ndisc_hashfn() 157 static inline struct neighbour *__ipv6_neigh_lookup_noref(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup_noref() argument 159 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, ndisc_hashfn, pkey, dev); in __ipv6_neigh_lookup_noref() 162 static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey) in __ipv6_neigh_lookup() argument 167 n = __ipv6_neigh_lookup_noref(dev, pkey); in __ipv6_neigh_lookup()
|
D | arp.h | 12 static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32 *hash_rnd) in arp_hashfn() argument 14 u32 key = *(const u32 *)pkey; in arp_hashfn()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | ud.c | 105 u16 pkey; in ud_loopback() local 109 pkey = hfi1_get_pkey(ibp, sqp->s_pkey_index); in ud_loopback() 112 if (unlikely(ingress_pkey_check(ppd, pkey, sc5, in ud_loopback() 114 hfi1_bad_pqkey(ibp, IB_NOTICE_TRAP_BAD_PKEY, pkey, in ud_loopback() 443 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey) in hfi1_lookup_pkey_idx() argument 448 if (pkey == FULL_MGMT_P_KEY || pkey == LIM_MGMT_P_KEY) { in hfi1_lookup_pkey_idx() 453 if (ppd->pkeys[i] == pkey) in hfi1_lookup_pkey_idx() 460 if (pkey == FULL_MGMT_P_KEY) in hfi1_lookup_pkey_idx() 467 pkey &= 0x7fff; /* remove limited/full membership bit */ in hfi1_lookup_pkey_idx() 470 if ((ppd->pkeys[i] & 0x7fff) == pkey) in hfi1_lookup_pkey_idx() [all …]
|
D | hfi.h | 755 u16 pkey; member 1226 u32 pkey, u32 slid, u32 dlid, u8 sc5, 1268 static inline int ingress_pkey_matches_entry(u16 pkey, u16 ent) in ingress_pkey_matches_entry() argument 1270 u16 mkey = pkey & PKEY_LOW_15_MASK; in ingress_pkey_matches_entry() 1279 if (!(pkey & PKEY_MEMBER_MASK)) in ingress_pkey_matches_entry() 1291 static int ingress_pkey_table_search(struct hfi1_pportdata *ppd, u16 pkey) in ingress_pkey_table_search() argument 1296 if (ingress_pkey_matches_entry(pkey, ppd->pkeys[i])) in ingress_pkey_table_search() 1307 static void ingress_pkey_table_fail(struct hfi1_pportdata *ppd, u16 pkey, in ingress_pkey_table_fail() argument 1316 dd->err_info_rcv_constraint.pkey = pkey; in ingress_pkey_table_fail() 1328 static inline int ingress_pkey_check(struct hfi1_pportdata *ppd, u16 pkey, in ingress_pkey_check() argument [all …]
|
D | verbs.c | 1225 static inline int egress_pkey_matches_entry(u16 pkey, u16 ent) in egress_pkey_matches_entry() argument 1227 u16 mkey = pkey & PKEY_LOW_15_MASK; in egress_pkey_matches_entry() 1236 if (pkey & PKEY_MEMBER_MASK) in egress_pkey_matches_entry() 1254 u16 pkey; in egress_pkey_check() local 1267 pkey = (u16)be32_to_cpu(ohdr->bth[0]); in egress_pkey_check() 1270 if ((sc5 == 0xf) && ((pkey & PKEY_LOW_15_MASK) != PKEY_LOW_15_MASK)) in egress_pkey_check() 1275 if ((pkey & PKEY_LOW_15_MASK) == 0) in egress_pkey_check() 1279 if (unlikely(!egress_pkey_matches_entry(pkey, in egress_pkey_check() 1283 if (egress_pkey_matches_entry(pkey, ppd->pkeys[i])) in egress_pkey_check() 1298 dd->err_info_xmit_constraint.pkey = pkey; in egress_pkey_check() [all …]
|
D | trace.h | 449 __field(u16, pkey) 493 __entry->pkey = 530 __entry->pkey, 573 __field(u16, pkey) 594 __entry->pkey = be32_to_cpu(ohdr->bth[0]) & 0xffff; 608 __entry->pkey,
|
D | uc.c | 306 u16 pkey = (u16)be32_to_cpu(ohdr->bth[0]); in hfi1_uc_rcv() local 314 return_cnp(ibp, qp, src_qp, pkey, dlid, slid, sc5, grh); in hfi1_uc_rcv()
|
D | file_ops.c | 1883 u16 pkey) in set_ctxt_pkey() argument 1889 if (pkey == LIM_MGMT_P_KEY || pkey == FULL_MGMT_P_KEY) { in set_ctxt_pkey() 1895 if (pkey == ppd->pkeys[i]) { in set_ctxt_pkey() 1901 ret = hfi1_set_ctxt_pkey(dd, uctxt->ctxt, pkey); in set_ctxt_pkey()
|
D | mad.c | 2200 __be16 pkey; member 2208 __be16 pkey; member 2908 rsp->port_xmit_constraint_ei.pkey = in pma_get_opa_errorinfo() 2909 cpu_to_be16(dd->err_info_xmit_constraint.pkey); in pma_get_opa_errorinfo() 2915 rsp->port_rcv_constraint_ei.pkey = in pma_get_opa_errorinfo() 2916 cpu_to_be16(dd->err_info_rcv_constraint.pkey); in pma_get_opa_errorinfo() 3814 u16 pkey; in opa_local_smp_check() local 3819 pkey = ppd->pkeys[in_wc->pkey_index]; in opa_local_smp_check() 3838 if (pkey == LIM_MGMT_P_KEY || pkey == FULL_MGMT_P_KEY) in opa_local_smp_check() 3840 ingress_pkey_table_fail(ppd, pkey, slid); in opa_local_smp_check()
|
D | driver.c | 472 u16 pkey = (u16)be32_to_cpu(ohdr->bth[0]); in process_ecn() local 476 return_cnp(ibp, qp, src_qpn, pkey, dlid, slid, sc5, grh); in process_ecn()
|
D | chip.h | 1018 int hfi1_set_ctxt_pkey(struct hfi1_devdata *dd, unsigned ctxt, u16 pkey);
|
D | verbs.h | 964 int hfi1_lookup_pkey_idx(struct hfi1_ibport *ibp, u16 pkey);
|
D | chip.c | 10323 int hfi1_set_ctxt_pkey(struct hfi1_devdata *dd, unsigned ctxt, u16 pkey) in hfi1_set_ctxt_pkey() argument 10341 reg = ((u64)pkey & SEND_CTXT_CHECK_PARTITION_KEY_VALUE_MASK) << in hfi1_set_ctxt_pkey()
|
/linux-4.4.14/lib/ |
D | digsig.c | 81 MPI in = NULL, res = NULL, pkey[2]; in digsig_verify_rsa() local 111 pkey[i] = mpi_read_from_buffer(datap, &remaining); in digsig_verify_rsa() 112 if (!pkey[i]) in digsig_verify_rsa() 117 mblen = mpi_get_nbits(pkey[0]); in digsig_verify_rsa() 136 err = mpi_powm(res, in, pkey[1], pkey[0]); in digsig_verify_rsa() 168 mpi_free(pkey[i]); in digsig_verify_rsa()
|
/linux-4.4.14/include/rdma/ |
D | ib_cache.h | 117 u16 *pkey); 132 u16 pkey, 148 u16 pkey,
|
D | ib_addr.h | 136 static inline void ib_addr_set_pkey(struct rdma_dev_addr *dev_addr, u16 pkey) in ib_addr_set_pkey() argument 138 dev_addr->broadcast[8] = pkey >> 8; in ib_addr_set_pkey() 139 dev_addr->broadcast[9] = (unsigned char) pkey; in ib_addr_set_pkey()
|
D | ib_sa.h | 148 __be16 pkey; member 197 __be16 pkey; member 254 __be16 pkey; member
|
D | ib_pack.h | 207 __be16 pkey; member
|
D | ib_verbs.h | 1655 u8 port_num, u16 index, u16 *pkey); 1859 u16 pkey, 2212 u8 port_num, u16 index, u16 *pkey); 2226 u8 port_num, u16 pkey, u16 *index); 3026 u16 pkey, const union ib_gid *gid,
|
D | ib_cm.h | 232 u16 pkey; member
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | vport.c | 160 u16 *pkey) in mlx5_query_hca_vport_pkey() argument 184 out_sz += nout * MLX5_ST_SZ_BYTES(pkey); in mlx5_query_hca_vport_pkey() 216 pkarr = MLX5_ADDR_OF(query_hca_vport_pkey_out, out, pkey); in mlx5_query_hca_vport_pkey() 217 for (i = 0; i < nout; i++, pkey++, pkarr += MLX5_ST_SZ_BYTES(pkey)) in mlx5_query_hca_vport_pkey() 218 *pkey = MLX5_GET_PR(pkey, pkarr, pkey); in mlx5_query_hca_vport_pkey()
|
/linux-4.4.14/drivers/infiniband/core/ |
D | uverbs_marshall.c | 108 dst->pkey = src->pkey; in ib_copy_path_rec_to_user() 134 dst->pkey = src->pkey; in ib_copy_path_rec_from_user()
|
D | device.c | 770 u8 port_num, u16 index, u16 *pkey) in ib_query_pkey() argument 772 return device->query_pkey(device, port_num, index, pkey); in ib_query_pkey() 874 u8 port_num, u16 pkey, u16 *index) in ib_find_pkey() argument 884 if ((pkey & 0x7fff) == (tmp_pkey & 0x7fff)) { in ib_find_pkey() 916 u16 pkey, in ib_get_net_dev_by_params() argument 935 net_dev = client->get_net_dev_by_params(dev, port, pkey, in ib_get_net_dev_by_params()
|
D | cache.c | 769 u16 *pkey) in ib_get_cached_pkey() argument 785 *pkey = cache->table[index]; in ib_get_cached_pkey() 795 u16 pkey, in ib_find_cached_pkey() argument 814 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) { in ib_find_cached_pkey() 836 u16 pkey, in ib_find_exact_cached_pkey() argument 854 if (cache->table[i] == pkey) { in ib_find_exact_cached_pkey()
|
D | cm.c | 233 __be16 pkey; member 381 be16_to_cpu(path->pkey), &av->pkey_index); in cm_init_av_by_path() 1083 req_msg->pkey = param->primary_path->pkey; in cm_format_req() 1159 (param->alternate_path->pkey != param->primary_path->pkey || in cm_validate_req_param() 1215 cm_id_priv->pkey = param->primary_path->pkey; in ib_send_cm_req() 1305 primary_path->pkey = req_msg->pkey; in cm_format_paths_from_req() 1327 alt_path->pkey = req_msg->pkey; in cm_format_paths_from_req() 1346 u16 pkey; in cm_get_bth_pkey() local 1349 ret = ib_get_cached_pkey(ib_dev, port_num, pkey_index, &pkey); in cm_get_bth_pkey() 1356 return pkey; in cm_get_bth_pkey() [all …]
|
D | cma.c | 287 u16 pkey; member 538 u16 pkey, index; in cma_resolve_ib_dev() local 545 pkey = ntohs(addr->sib_pkey); in cma_resolve_ib_dev() 552 if (ib_find_cached_pkey(cur_dev->device, p, pkey, &index)) in cma_resolve_ib_dev() 808 u16 pkey; in cma_ib_init_qp_attr() local 811 pkey = 0xffff; in cma_ib_init_qp_attr() 813 pkey = ib_addr_get_pkey(dev_addr); in cma_ib_init_qp_attr() 816 pkey, &qp_attr->pkey_index); in cma_ib_init_qp_attr() 953 ib->sib_pkey = path->pkey; in cma_save_ib_info() 971 ib->sib_pkey = path->pkey; in cma_save_ib_info() [all …]
|
D | multicast.c | 302 if (comp_mask & IB_SA_MCMEMBER_REC_PKEY && src->pkey != dst->pkey) in cmp_rec() 402 be16_to_cpu(group->rec.pkey), &pkey_index); in process_group_error() 530 be16_to_cpu(rec->pkey), &pkey_index); in join_handler()
|
D | sysfs.c | 304 u16 pkey; in show_port_pkey() local 307 ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey); in show_port_pkey() 311 return sprintf(buf, "0x%04x\n", pkey); in show_port_pkey()
|
D | ucma.c | 741 resp->ib_route[0].pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr)); in ucma_copy_ib_route() 767 resp->ib_route[0].pkey = cpu_to_be16(0xffff); in ucma_copy_iboe_route() 851 resp->pkey = (__force __u16) cpu_to_be16( in ucma_query_device_addr() 935 addr->sib_pkey = (__force __be16) resp.pkey; in ucma_query_gid() 948 addr->sib_pkey = (__force __be16) resp.pkey; in ucma_query_gid()
|
D | cm_msgs.h | 74 __be16 pkey; member 800 __be16 pkey; member
|
D | ud_header.c | 175 { STRUCT_FIELD(bth, pkey),
|
D | sa_query.c | 215 { PATH_REC_FIELD(pkey), 295 { MCMEMBER_REC_FIELD(pkey), 359 { SERVICE_REC_FIELD(pkey), 474 val16 = be16_to_cpu(sa_rec->pkey); in ib_nl_set_path_rec_attrs()
|
D | ucm.c | 307 uvt->resp.u.sidr_req_resp.pkey = in ib_ucm_event_process() 308 evt->param.sidr_req_rcvd.pkey; in ib_ucm_event_process()
|
/linux-4.4.14/include/uapi/rdma/ |
D | ib_user_sa.h | 63 __be16 pkey; member
|
D | rdma_user_cm.h | 164 __u16 pkey; member
|
D | ib_user_cm.h | 287 __u16 pkey; member
|
/linux-4.4.14/net/core/ |
D | neighbour.c | 400 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey, in neigh_lookup() argument 408 n = __neigh_lookup_noref(tbl, pkey, dev); in neigh_lookup() 421 const void *pkey) in neigh_lookup_nodev() argument 432 hash_val = tbl->hash(pkey, NULL, nht->hash_rnd) >> (32 - nht->hash_shift); in neigh_lookup_nodev() 437 if (!memcmp(n->primary_key, pkey, key_len) && in neigh_lookup_nodev() 451 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey, in __neigh_create() argument 465 memcpy(n->primary_key, pkey, key_len); in __neigh_create() 499 hash_val = tbl->hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); in __neigh_create() 511 if (dev == n1->dev && !memcmp(n1->primary_key, pkey, key_len)) { in __neigh_create() 539 static u32 pneigh_hash(const void *pkey, int key_len) in pneigh_hash() argument [all …]
|
/linux-4.4.14/include/linux/mlx5/ |
D | vport.h | 45 u16 *pkey);
|
D | mlx5_ifc.h | 2210 u8 pkey[0x10]; member 3490 struct mlx5_ifc_pkey_bits pkey[0]; member
|
/linux-4.4.14/net/decnet/ |
D | dn_neigh.c | 65 static u32 dn_neigh_hash(const void *pkey, in dn_neigh_hash() argument 69 return jhash_2words(*(__u16 *)pkey, 0, hash_rnd[0]); in dn_neigh_hash() 72 static bool dn_key_eq(const struct neighbour *neigh, const void *pkey) in dn_key_eq() argument 74 return neigh_key_eq16(neigh, pkey); in dn_key_eq()
|
/linux-4.4.14/net/ipv4/ |
D | fib_trie.c | 1366 t_key pkey = pn->key; in fib_table_lookup() local 1379 cindex = get_index(pkey, pn); in fib_table_lookup() 1591 t_key pkey = pn->key; in leaf_walk_rcu() local 1594 cindex = get_index(pkey, pn) + 1; in leaf_walk_rcu() 1633 t_key pkey = pn->key; in fib_trie_free() local 1645 cindex = get_index(pkey, pn); in fib_trie_free() 1749 t_key pkey = pn->key; in fib_table_flush_external() local 1757 cindex = get_index(pkey, pn); in fib_table_flush_external() 1824 t_key pkey = pn->key; in fib_table_flush() local 1832 cindex = get_index(pkey, pn); in fib_table_flush() [all …]
|
D | arp.c | 126 static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd); 127 static bool arp_key_eq(const struct neighbour *n, const void *pkey); 212 static u32 arp_hash(const void *pkey, in arp_hash() argument 216 return arp_hashfn(pkey, dev, hash_rnd); in arp_hash() 219 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq() argument 221 return neigh_key_eq32(neigh, pkey); in arp_key_eq()
|
D | route.c | 448 const __be32 *pkey = daddr; in ipv4_neigh_lookup() local 454 pkey = (const __be32 *) &rt->rt_gateway; in ipv4_neigh_lookup() 456 pkey = &ip_hdr(skb)->daddr; in ipv4_neigh_lookup() 458 n = __ipv4_neigh_lookup(dev, *(__force u32 *)pkey); in ipv4_neigh_lookup() 461 return neigh_create(&arp_tbl, pkey, dev); in ipv4_neigh_lookup()
|
/linux-4.4.14/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.h | 54 u16 *pkey);
|
D | usnic_ib_verbs.c | 428 u16 *pkey) in usnic_ib_query_pkey() argument 433 *pkey = 0xffff; in usnic_ib_query_pkey()
|
/linux-4.4.14/net/ipv6/ |
D | ndisc.c | 85 static u32 ndisc_hash(const void *pkey, 88 static bool ndisc_key_eq(const struct neighbour *neigh, const void *pkey); 295 static u32 ndisc_hash(const void *pkey, in ndisc_hash() argument 299 return ndisc_hashfn(pkey, dev, hash_rnd); in ndisc_hash() 302 static bool ndisc_key_eq(const struct neighbour *n, const void *pkey) in ndisc_key_eq() argument 304 return neigh_key_eq128(n, pkey); in ndisc_key_eq() 690 static int pndisc_is_router(const void *pkey, in pndisc_is_router() argument 697 n = __pneigh_lookup(&nd_tbl, dev_net(dev), pkey, dev); in pndisc_is_router()
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.h | 77 int ocrdma_query_pkey(struct ib_device *, u8 port, u16 index, u16 *pkey);
|
D | ocrdma_verbs.c | 56 int ocrdma_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in ocrdma_query_pkey() argument 61 *pkey = 0xffff; in ocrdma_query_pkey()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 395 static unsigned qib_lookup_pkey(struct qib_ibport *ibp, u16 pkey) in qib_lookup_pkey() argument 402 pkey &= 0x7fff; /* remove limited/full membership bit */ in qib_lookup_pkey() 405 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) in qib_lookup_pkey()
|
D | qib_verbs.c | 1972 u16 *pkey) in qib_query_pkey() argument 1982 *pkey = qib_get_pkey(to_iport(ibdev, port), index); in qib_query_pkey()
|
/linux-4.4.14/drivers/infiniband/ulp/srp/ |
D | ib_srp.h | 215 __be16 pkey; member
|
D | ib_srp.c | 270 be16_to_cpu(target->pkey), in srp_init_qp() 306 ch->path.pkey = target->pkey; in srp_new_cm_id() 2325 ch->path.pkey = cpi->redirect_pkey; in srp_cm_rej_handler() 2644 return sprintf(buf, "0x%04x\n", be16_to_cpu(target->pkey)); in show_pkey() 2753 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL); 3047 target->pkey = cpu_to_be16(token); in srp_parse_options() 3349 be16_to_cpu(target->pkey), in srp_create_target()
|
/linux-4.4.14/drivers/staging/rdma/ehca/ |
D | ehca_hca.c | 285 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in ehca_query_pkey() argument 311 memcpy(pkey, &rblock->pkey_entries + index, sizeof(u16)); in ehca_query_pkey()
|
D | ehca_iverbs.h | 59 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey);
|
/linux-4.4.14/drivers/infiniband/hw/mlx5/ |
D | mad.c | 286 u16 *pkey) in mlx5_query_mad_ifc_pkey() argument 306 *pkey = be16_to_cpu(((__be16 *)out_mad->data)[index % 32]); in mlx5_query_mad_ifc_pkey()
|
D | main.c | 508 u16 *pkey) in mlx5_ib_query_pkey() argument 515 return mlx5_query_mad_ifc_pkey(ibdev, port, index, pkey); in mlx5_ib_query_pkey() 520 pkey); in mlx5_ib_query_pkey()
|
D | cq.c | 232 u16 pkey = be32_to_cpu(cqe->imm_inval_pkey) & 0xffff; in handle_responder() local 234 ib_find_cached_pkey(&dev->ib_dev, qp->port, pkey, in handle_responder()
|
D | mlx5_ib.h | 583 u16 *pkey);
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_file_ops.c | 709 u64 pkey; in ipath_set_part_key() local 714 pkey = in ipath_set_part_key() 722 (unsigned long long) pkey); in ipath_set_part_key() 724 dd, dd->ipath_kregs->kr_partitionkey, pkey); in ipath_set_part_key() 839 u64 pkey = (u64) dd->ipath_pkeys[0] | in ipath_clean_part_key() local 846 (unsigned long long) pkey); in ipath_clean_part_key() 848 pkey); in ipath_clean_part_key()
|
D | ipath_mad.c | 761 u64 pkey; in set_pkeys() local 764 pkey = (u64) dd->ipath_pkeys[0] | in set_pkeys() 769 (unsigned long long) pkey); in set_pkeys() 771 pkey); in set_pkeys()
|
D | ipath_verbs.c | 1892 u16 *pkey) in ipath_query_pkey() argument 1902 *pkey = ipath_get_pkey(dev->dd, index); in ipath_query_pkey()
|
/linux-4.4.14/Documentation/ABI/stable/ |
D | sysfs-driver-ib_srp | 18 * pkey, a four-digit hexadecimal number specifying the 153 What: /sys/class/scsi_host/host<n>/pkey
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
D | sysfs.c | 146 u16 pkey; in show_phys_port_pkey() local 150 mlx4_ib_iov_dentry->entry_num, &pkey, 1); in show_phys_port_pkey() 154 return sprintf(buf, "0x%04x\n", pkey); in show_phys_port_pkey()
|
D | mcg.c | 92 __be16 pkey; member 402 if (comp_mask & IB_SA_MCMEMBER_REC_PKEY && src->pkey != dst->pkey) in cmp_rec() 1030 be16_to_cpu(group->rec.pkey), in sysfs_show_group()
|
D | qp.c | 2151 u16 pkey; in build_sriov_qp0_header() local 2190 ib_get_cached_pkey(ib_dev, sqp->qp.port, 0, &pkey); in build_sriov_qp0_header() 2191 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_sriov_qp0_header() 2274 u16 pkey; in build_mlx_header() local 2420 ib_get_cached_pkey(ib_dev, sqp->qp.port, sqp->pkey_index, &pkey); in build_mlx_header() 2422 ib_get_cached_pkey(ib_dev, sqp->qp.port, wr->pkey_index, &pkey); in build_mlx_header() 2423 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_mlx_header()
|
D | mad.c | 149 __be16 pkey; in mlx4_MAD_IFC() member 162 ext_info->pkey = cpu_to_be16(in_wc->pkey_index); in mlx4_MAD_IFC() 415 u8 port, u16 pkey, u16 *ix) in find_slave_port_pkey_ix() argument 422 return ib_find_cached_pkey(&dev->ib_dev, port, pkey, ix); in find_slave_port_pkey_ix() 435 if ((slot_pkey & 0x7FFF) == (pkey & 0x7FFF)) { in find_slave_port_pkey_ix()
|
D | main.c | 769 u16 *pkey, int netw_view) in __mlx4_ib_query_pkey() argument 793 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); in __mlx4_ib_query_pkey() 801 static int mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in mlx4_ib_query_pkey() argument 803 return __mlx4_ib_query_pkey(ibdev, port, index, pkey, 0); in mlx4_ib_query_pkey()
|
D | mlx4_ib.h | 776 u16 *pkey, int netw_view);
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
D | provider.c | 287 u16 *pkey) in c4iw_query_pkey() argument 290 *pkey = 0; in c4iw_query_pkey()
|
/linux-4.4.14/Documentation/infiniband/ |
D | ipoib.txt | 24 The P_Key for any interface is given by the "pkey" file, and the
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
D | c2_provider.c | 106 u8 port, u16 index, u16 * pkey) in c2_query_pkey() argument 109 *pkey = 0; in c2_query_pkey()
|
/linux-4.4.14/drivers/infiniband/hw/mthca/ |
D | mthca_qp.c | 1485 u16 pkey; in build_mlx_header() local 1522 sqp->pkey_index, &pkey); in build_mlx_header() 1525 wr->pkey_index, &pkey); in build_mlx_header() 1526 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); in build_mlx_header()
|
D | mthca_provider.c | 233 u8 port, u16 index, u16 *pkey) in mthca_query_pkey() argument 253 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); in mthca_query_pkey()
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_l3_main.c | 2728 __be32 *pkey = &ip_hdr(skb)->daddr; in qeth_l3_fill_header() local 2731 pkey = &rt->rt_gateway; in qeth_l3_fill_header() 2736 *((__be32 *) (&hdr->hdr.l3.dest_addr[12])) = *pkey; in qeth_l3_fill_header() 2739 struct in6_addr *pkey = &ipv6_hdr(skb)->daddr; in qeth_l3_fill_header() local 2742 pkey = &rt->rt6i_gateway; in qeth_l3_fill_header() 2748 memcpy(hdr->hdr.l3.dest_addr, pkey, 16); in qeth_l3_fill_header()
|
/linux-4.4.14/drivers/infiniband/hw/cxgb3/ |
D | iwch_provider.c | 1135 u8 port, u16 index, u16 * pkey) in iwch_query_pkey() argument 1138 *pkey = 0; in iwch_query_pkey()
|
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/ |
D | cmd.c | 839 static int query_pkey_block(struct mlx4_dev *dev, u8 port, u16 index, u16 *pkey, in query_pkey_block() argument 860 pkey[i] = be16_to_cpu(((__be16 *) out_mad->data)[i]); in query_pkey_block()
|
/linux-4.4.14/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 593 static int nes_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in nes_query_pkey() argument 595 *pkey = 0; in nes_query_pkey()
|
/linux-4.4.14/tools/lib/traceevent/ |
D | event-parse.c | 3449 struct event_format *pkey = &key; in pevent_find_event() local 3457 eventptr = bsearch(&pkey, pevent->events, pevent->nr_events, in pevent_find_event()
|
/linux-4.4.14/drivers/net/wireless/ |
D | airo.c | 1293 static void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, 1632 static void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, in emmh32_setseed() argument 1642 crypto_cipher_setkey(tfm, pkey, 16); in emmh32_setseed()
|