/linux-4.1.27/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_vlan.c | 53 u16 pkey, int type) __ipoib_vlan_add() 68 priv->pkey = pkey; __ipoib_vlan_add() 71 priv->dev->broadcast[8] = pkey >> 8; __ipoib_vlan_add() 72 priv->dev->broadcast[9] = pkey & 0xff; __ipoib_vlan_add() 120 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) ipoib_vlan_add() argument 133 ppriv->dev->name, pkey); ipoib_vlan_add() 148 if (ppriv->pkey == pkey) { ipoib_vlan_add() 154 if (tpriv->pkey == pkey && ipoib_vlan_add() 161 result = __ipoib_vlan_add(ppriv, priv, pkey, IPOIB_LEGACY_CHILD); ipoib_vlan_add() 174 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) ipoib_vlan_delete() argument 189 if (priv->pkey == pkey && ipoib_vlan_delete() 52 __ipoib_vlan_add(struct ipoib_dev_priv *ppriv, struct ipoib_dev_priv *priv, u16 pkey, int type) __ipoib_vlan_add() argument
|
H A D | ipoib_netlink.c | 50 if (nla_put_u16(skb, IFLA_IPOIB_PKEY, priv->pkey)) ipoib_fill_info() 118 ipoib_dbg(ppriv, "no pkey specified, using parent pkey\n"); ipoib_new_child_link() 119 child_pkey = ppriv->pkey; ipoib_new_child_link()
|
H A D | ipoib_ib.c | 700 ipoib_warn(priv, "P_Key 0x%04x is %s\n", priv->pkey, ipoib_ib_dev_open() 701 (!(priv->pkey & 0x7fff) ? "Invalid" : "not found")); ipoib_ib_dev_open() 742 if (!(priv->pkey & 0x7fff) || ipoib_pkey_dev_check_presence() 743 ib_find_pkey(priv->ca, priv->port, priv->pkey, ipoib_pkey_dev_check_presence() 939 * Takes whatever value which is in pkey index 0 and updates priv->pkey 940 * returns 0 if the pkey value was changed. 947 prev_pkey = priv->pkey; update_parent_pkey() 948 result = ib_query_pkey(priv->ca, priv->port, 0, &priv->pkey); update_parent_pkey() 955 priv->pkey |= 0x8000; update_parent_pkey() 957 if (prev_pkey != priv->pkey) { update_parent_pkey() 958 ipoib_dbg(priv, "pkey changed from 0x%x to 0x%x\n", update_parent_pkey() 959 prev_pkey, priv->pkey); update_parent_pkey() 961 * Update the pkey in the broadcast address, while making sure to set update_parent_pkey() 964 priv->dev->broadcast[8] = priv->pkey >> 8; update_parent_pkey() 965 priv->dev->broadcast[9] = priv->pkey & 0xff; update_parent_pkey() 972 * returns 0 if pkey value was found in a different slot. 1012 /* interface is down. update pkey and leave. */ __ipoib_ib_dev_flush() 1024 /* child devices chase their origin pkey value, while non-child __ipoib_ib_dev_flush() 1025 * (parent) devices should always takes what present in pkey index 0 __ipoib_ib_dev_flush()
|
H A D | ipoib_main.c | 548 path->pathrec.pkey = cpu_to_be16(priv->pkey); path_rec_create() 745 cb->hwaddr[8] = (priv->pkey >> 8) & 0xff; ipoib_start_xmit() 746 cb->hwaddr[9] = priv->pkey & 0xff; ipoib_start_xmit() 1439 return sprintf(buf, "0x%04x\n", priv->pkey); show_pkey() 1441 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL); 1484 int pkey; create_child() local 1487 if (sscanf(buf, "%i", &pkey) != 1) create_child() 1490 if (pkey <= 0 || pkey > 0xffff || pkey == 0x8000) create_child() 1497 pkey |= 0x8000; create_child() 1499 ret = ipoib_vlan_add(to_net_dev(dev), pkey); create_child() 1509 int pkey; delete_child() local 1512 if (sscanf(buf, "%i", &pkey) != 1) delete_child() 1515 if (pkey < 0 || pkey > 0xffff) delete_child() 1518 ret = ipoib_vlan_delete(to_net_dev(dev), pkey); delete_child() 1594 result = ib_query_pkey(hca, port, 0, &priv->pkey); ipoib_add_port() 1608 priv->pkey |= 0x8000; ipoib_add_port() 1610 priv->dev->broadcast[8] = priv->pkey >> 8; ipoib_add_port() 1611 priv->dev->broadcast[9] = priv->pkey & 0xff; ipoib_add_port()
|
H A D | ipoib.h | 342 u16 pkey; member in struct:ipoib_dev_priv 533 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey); 534 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey); 537 u16 pkey, int child_type);
|
H A D | ipoib_verbs.c | 45 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &pkey_index)) { ipoib_mcast_attach()
|
H A D | ipoib_multicast.c | 466 rec.pkey = cpu_to_be16(priv->pkey); ipoib_mcast_join() 798 /* signature lower, pkey */ ipoib_mcast_addr_is_valid()
|
H A D | ipoib_cm.c | 1092 ret = ib_find_pkey(priv->ca, priv->port, priv->pkey, &qp_attr.pkey_index); ipoib_cm_modify_tx_init() 1094 ipoib_warn(priv, "pkey 0x%x not found: %d\n", priv->pkey, ret); ipoib_cm_modify_tx_init()
|
/linux-4.1.27/include/net/ |
H A D | neighbour.h | 194 __u32 (*hash)(const void *pkey, 197 bool (*key_eq)(const struct neighbour *, const void *pkey); 250 static inline bool neigh_key_eq16(const struct neighbour *n, const void *pkey) neigh_key_eq16() argument 252 return *(const u16 *)n->primary_key == *(const u16 *)pkey; neigh_key_eq16() 255 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) neigh_key_eq32() argument 257 return *(const u32 *)n->primary_key == *(const u32 *)pkey; neigh_key_eq32() 260 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey) neigh_key_eq128() argument 263 const u32 *p32 = pkey; neigh_key_eq128() 271 bool (*key_eq)(const struct neighbour *n, const void *pkey), ___neigh_lookup_noref() 272 __u32 (*hash)(const void *pkey, ___neigh_lookup_noref() 275 const void *pkey, ___neigh_lookup_noref() 282 hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); ___neigh_lookup_noref() 286 if (n->dev == dev && key_eq(n, pkey)) ___neigh_lookup_noref() 294 const void *pkey, __neigh_lookup_noref() 297 return ___neigh_lookup_noref(tbl, tbl->key_eq, tbl->hash, pkey, dev); __neigh_lookup_noref() 302 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey, 305 const void *pkey); 306 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey, 309 const void *pkey, neigh_create() 312 return __neigh_create(tbl, pkey, dev, true); neigh_create() 471 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat) __neigh_lookup() argument 473 struct neighbour *n = neigh_lookup(tbl, pkey, dev); __neigh_lookup() 478 n = neigh_create(tbl, pkey, dev); __neigh_lookup() 483 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey, __neigh_lookup_errno() argument 486 struct neighbour *n = neigh_lookup(tbl, pkey, dev); __neigh_lookup_errno() 491 return neigh_create(tbl, pkey, dev); __neigh_lookup_errno() 269 ___neigh_lookup_noref( struct neigh_table *tbl, bool (*key_eq)(const struct neighbour *n, const void *pkey), __u32 (*hash)(const void *pkey, const struct net_device *dev, __u32 *hash_rnd), const void *pkey, struct net_device *dev) ___neigh_lookup_noref() argument 293 __neigh_lookup_noref(struct neigh_table *tbl, const void *pkey, struct net_device *dev) __neigh_lookup_noref() argument 308 neigh_create(struct neigh_table *tbl, const void *pkey, struct net_device *dev) neigh_create() argument
|
H A D | ndisc.h | 147 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) ndisc_hashfn() argument 149 const u32 *p32 = pkey; ndisc_hashfn() 157 static inline struct neighbour *__ipv6_neigh_lookup_noref(struct net_device *dev, const void *pkey) __ipv6_neigh_lookup_noref() argument 159 return ___neigh_lookup_noref(&nd_tbl, neigh_key_eq128, ndisc_hashfn, pkey, dev); __ipv6_neigh_lookup_noref() 162 static inline struct neighbour *__ipv6_neigh_lookup(struct net_device *dev, const void *pkey) __ipv6_neigh_lookup() argument 167 n = __ipv6_neigh_lookup_noref(dev, pkey); __ipv6_neigh_lookup()
|
H A D | arp.h | 12 static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32 *hash_rnd) arp_hashfn() argument 14 u32 key = *(const u32 *)pkey; arp_hashfn()
|
/linux-4.1.27/lib/ |
H A D | digsig.c | 81 MPI in = NULL, res = NULL, pkey[2]; digsig_verify_rsa() local 110 pkey[i] = mpi_read_from_buffer(datap, &remaining); digsig_verify_rsa() 111 if (!pkey[i]) digsig_verify_rsa() 116 mblen = mpi_get_nbits(pkey[0]); digsig_verify_rsa() 135 err = mpi_powm(res, in, pkey[1], pkey[0]); digsig_verify_rsa() 167 mpi_free(pkey[i]); digsig_verify_rsa()
|
/linux-4.1.27/include/rdma/ |
H A D | ib_cache.h | 77 * @pkey: The PKey value found at the specified index. 85 u16 *pkey); 92 * @pkey: The PKey value to search for. 100 u16 pkey, 108 * @pkey: The PKey value to search for. 116 u16 pkey,
|
H A D | ib_addr.h | 122 static inline void ib_addr_set_pkey(struct rdma_dev_addr *dev_addr, u16 pkey) ib_addr_set_pkey() argument 124 dev_addr->broadcast[8] = pkey >> 8; ib_addr_set_pkey() 125 dev_addr->broadcast[9] = (unsigned char) pkey; ib_addr_set_pkey()
|
H A D | ib_sa.h | 147 __be16 pkey; member in struct:ib_sa_path_rec 189 __be16 pkey; member in struct:ib_sa_mcmember_rec 246 __be16 pkey; member in struct:ib_sa_service_rec
|
H A D | ib_pack.h | 205 __be16 pkey; member in struct:ib_unpacked_bth
|
H A D | ib_cm.h | 227 u16 pkey; member in struct:ib_cm_sidr_req_event_param
|
H A D | ib_verbs.h | 1510 u8 port_num, u16 index, u16 *pkey); 1750 u8 port_num, u16 index, u16 *pkey); 1764 u8 port_num, u16 pkey, u16 *index);
|
/linux-4.1.27/drivers/infiniband/core/ |
H A D | uverbs_marshall.c | 108 dst->pkey = src->pkey; ib_copy_path_rec_to_user() 134 dst->pkey = src->pkey; ib_copy_path_rec_from_user()
|
H A D | cache.c | 137 u16 *pkey) ib_get_cached_pkey() 153 *pkey = cache->table[index]; ib_get_cached_pkey() 163 u16 pkey, ib_find_cached_pkey() 182 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) { ib_find_cached_pkey() 204 u16 pkey, ib_find_exact_cached_pkey() 222 if (cache->table[i] == pkey) { ib_find_exact_cached_pkey() 134 ib_get_cached_pkey(struct ib_device *device, u8 port_num, int index, u16 *pkey) ib_get_cached_pkey() argument 161 ib_find_cached_pkey(struct ib_device *device, u8 port_num, u16 pkey, u16 *index) ib_find_cached_pkey() argument 202 ib_find_exact_cached_pkey(struct ib_device *device, u8 port_num, u16 pkey, u16 *index) ib_find_exact_cached_pkey() argument
|
H A D | device.c | 606 * @pkey:Returned P_Key 611 u8 port_num, u16 index, u16 *pkey) ib_query_pkey() 613 return device->query_pkey(device, port_num, index, pkey); ib_query_pkey() 702 * @pkey: The PKey value to search for. 706 u8 port_num, u16 pkey, u16 *index) ib_find_pkey() 716 if ((pkey & 0x7fff) == (tmp_pkey & 0x7fff)) { ib_find_pkey() 717 /* if there is full-member pkey take it.*/ ib_find_pkey() 610 ib_query_pkey(struct ib_device *device, u8 port_num, u16 index, u16 *pkey) ib_query_pkey() argument 705 ib_find_pkey(struct ib_device *device, u8 port_num, u16 pkey, u16 *index) ib_find_pkey() argument
|
H A D | cm.c | 232 __be16 pkey; member in struct:cm_id_private 374 be16_to_cpu(path->pkey), &av->pkey_index); cm_init_av_by_path() 1030 req_msg->pkey = param->primary_path->pkey; cm_format_req() 1106 (param->alternate_path->pkey != param->primary_path->pkey || cm_validate_req_param() 1162 cm_id_priv->pkey = param->primary_path->pkey; ib_send_cm_req() 1252 primary_path->pkey = req_msg->pkey; cm_format_paths_from_req() 1273 alt_path->pkey = req_msg->pkey; cm_format_paths_from_req() 1596 cm_id_priv->pkey = req_msg->pkey; cm_req_handler() 2679 path->pkey = cm_id_priv->pkey; cm_format_path_from_lap() 2918 sidr_req_msg->pkey = param->path->pkey; cm_format_sidr_req() 2984 param->pkey = __be16_to_cpu(sidr_req_msg->pkey); cm_format_sidr_req_event()
|
H A D | cma.c | 428 u16 pkey, index; cma_resolve_ib_dev() local 435 pkey = ntohs(addr->sib_pkey); cma_resolve_ib_dev() 442 if (ib_find_cached_pkey(cur_dev->device, p, pkey, &index)) cma_resolve_ib_dev() 701 u16 pkey; cma_ib_init_qp_attr() local 705 pkey = ib_addr_get_pkey(dev_addr); cma_ib_init_qp_attr() 707 pkey = 0xffff; cma_ib_init_qp_attr() 710 pkey, &qp_attr->pkey_index); cma_ib_init_qp_attr() 849 ib->sib_pkey = path->pkey; cma_save_ib_info() 864 ib->sib_pkey = path->pkey; cma_save_ib_info() 1230 ib_addr_set_pkey(&rt->addr.dev_addr, be16_to_cpu(rt->path_rec[0].pkey)); cma_new_conn_id() 1725 path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr)); cma_query_ib_route() 1946 route->path_rec->pkey = cpu_to_be16(0xffff); cma_resolve_iboe_route() 2040 u16 pkey; cma_bind_loopback() local 2075 ret = ib_get_cached_pkey(cma_dev->device, p, 0, &pkey); cma_bind_loopback() 2084 ib_addr_set_pkey(&id_priv->id.route.addr.dev_addr, pkey); cma_bind_loopback() 3236 rec.pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr)); cma_join_ib_multicast() 3321 mc->multicast.ib->rec.pkey = cpu_to_be16(0xffff); cma_iboe_join_multicast()
|
H A D | multicast.c | 302 if (comp_mask & IB_SA_MCMEMBER_REC_PKEY && src->pkey != dst->pkey) cmp_rec() 402 be16_to_cpu(group->rec.pkey), &pkey_index); process_group_error() 530 be16_to_cpu(rec->pkey), &pkey_index); join_handler()
|
H A D | sysfs.c | 304 u16 pkey; show_port_pkey() local 307 ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey); show_port_pkey() 311 return sprintf(buf, "0x%04x\n", pkey); show_port_pkey()
|
H A D | ud_header.c | 175 { STRUCT_FIELD(bth, pkey),
|
H A D | ucma.c | 640 resp->ib_route[0].pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr)); ucma_copy_ib_route() 666 resp->ib_route[0].pkey = cpu_to_be16(0xffff); ucma_copy_iboe_route() 763 resp->pkey = (__force __u16) cpu_to_be16( ucma_query_device_addr() 847 addr->sib_pkey = (__force __be16) resp.pkey; ucma_query_gid() 860 addr->sib_pkey = (__force __be16) resp.pkey; ucma_query_gid()
|
H A D | cm_msgs.h | 74 __be16 pkey; member in struct:cm_req_msg 800 __be16 pkey; member in struct:cm_sidr_req_msg
|
H A D | sa_query.c | 178 { PATH_REC_FIELD(pkey), 258 { MCMEMBER_REC_FIELD(pkey), 322 { SERVICE_REC_FIELD(pkey),
|
H A D | ucm.c | 307 uvt->resp.u.sidr_req_resp.pkey = ib_ucm_event_process() 308 evt->param.sidr_req_rcvd.pkey; ib_ucm_event_process()
|
/linux-4.1.27/include/uapi/rdma/ |
H A D | ib_user_sa.h | 63 __be16 pkey; member in struct:ib_user_path_rec
|
H A D | rdma_user_cm.h | 164 __u16 pkey; member in struct:rdma_ucm_query_addr_resp
|
H A D | ib_user_cm.h | 287 __u16 pkey; member in struct:ib_ucm_sidr_req_event_resp
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
H A D | sysfs.c | 146 u16 pkey; show_phys_port_pkey() local 150 mlx4_ib_iov_dentry->entry_num, &pkey, 1); show_phys_port_pkey() 154 return sprintf(buf, "0x%04x\n", pkey); show_phys_port_pkey() 229 /* get the physical gid and pkey table sizes.*/ add_port_entries() 293 /* physical port pkey table */ add_port_entries() 467 /* do not allow remapping Dom0 virtual pkey table */ store_port_pkey()
|
H A D | mcg.c | 88 __be16 pkey; member in struct:ib_sa_mcmember_data 398 if (comp_mask & IB_SA_MCMEMBER_REC_PKEY && src->pkey != dst->pkey) cmp_rec() 1026 be16_to_cpu(group->rec.pkey), sysfs_show_group()
|
H A D | qp.c | 1979 pr_debug("qpn 0x%x: invalid pkey index (%d) specified " mlx4_ib_modify_qp() 2042 u16 pkey; build_sriov_qp0_header() local 2081 ib_get_cached_pkey(ib_dev, sqp->qp.port, 0, &pkey); build_sriov_qp0_header() 2082 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); build_sriov_qp0_header() 2165 u16 pkey; build_mlx_header() local 2308 ib_get_cached_pkey(ib_dev, sqp->qp.port, sqp->pkey_index, &pkey); build_mlx_header() 2310 ib_get_cached_pkey(ib_dev, sqp->qp.port, wr->wr.ud.pkey_index, &pkey); build_mlx_header() 2311 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); build_mlx_header()
|
H A D | mad.c | 156 __be16 pkey; mlx4_MAD_IFC() member in struct:__anon4866 169 ext_info->pkey = cpu_to_be16(in_wc->pkey_index); mlx4_MAD_IFC() 421 u8 port, u16 pkey, u16 *ix) find_slave_port_pkey_ix() 428 return ib_find_cached_pkey(&dev->ib_dev, port, pkey, ix); find_slave_port_pkey_ix() 441 if ((slot_pkey & 0x7FFF) == (pkey & 0x7FFF)) { find_slave_port_pkey_ix() 446 /* take first partial pkey index found */ find_slave_port_pkey_ix() 420 find_slave_port_pkey_ix(struct mlx4_ib_dev *dev, int slave, u8 port, u16 pkey, u16 *ix) find_slave_port_pkey_ix() argument
|
H A D | main.c | 499 u16 *pkey, int netw_view) __mlx4_ib_query_pkey() 523 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); __mlx4_ib_query_pkey() 531 static int mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) mlx4_ib_query_pkey() argument 533 return __mlx4_ib_query_pkey(ibdev, port, index, pkey, 0); mlx4_ib_query_pkey() 2023 /* master has the identity virt2phys pkey mapping */ init_pkeys() 2031 /* initialize pkey cache */ init_pkeys() 498 __mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey, int netw_view) __mlx4_ib_query_pkey() argument
|
H A D | mlx4_ib.h | 726 u16 *pkey, int netw_view);
|
/linux-4.1.27/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_verbs.h | 47 int ocrdma_query_pkey(struct ib_device *, u8 port, u16 index, u16 *pkey);
|
H A D | ocrdma_verbs.c | 40 int ocrdma_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) ocrdma_query_pkey() argument 45 *pkey = 0xffff; ocrdma_query_pkey()
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
H A D | usnic_ib_verbs.h | 36 u16 *pkey);
|
H A D | usnic_ib_verbs.c | 409 u16 *pkey) usnic_ib_query_pkey() 414 *pkey = 0xffff; usnic_ib_query_pkey() 408 usnic_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) usnic_ib_query_pkey() argument
|
/linux-4.1.27/net/decnet/ |
H A D | dn_neigh.c | 65 static u32 dn_neigh_hash(const void *pkey, dn_neigh_hash() argument 69 return jhash_2words(*(__u16 *)pkey, 0, hash_rnd[0]); dn_neigh_hash() 72 static bool dn_key_eq(const struct neighbour *neigh, const void *pkey) dn_key_eq() argument 74 return neigh_key_eq16(neigh, pkey); dn_key_eq()
|
/linux-4.1.27/net/core/ |
H A D | neighbour.c | 396 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey, neigh_lookup() argument 404 n = __neigh_lookup_noref(tbl, pkey, dev); neigh_lookup() 417 const void *pkey) neigh_lookup_nodev() 428 hash_val = tbl->hash(pkey, NULL, nht->hash_rnd) >> (32 - nht->hash_shift); neigh_lookup_nodev() 433 if (!memcmp(n->primary_key, pkey, key_len) && neigh_lookup_nodev() 447 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey, __neigh_create() argument 461 memcpy(n->primary_key, pkey, key_len); __neigh_create() 495 hash_val = tbl->hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); __neigh_create() 507 if (dev == n1->dev && !memcmp(n1->primary_key, pkey, key_len)) { __neigh_create() 535 static u32 pneigh_hash(const void *pkey, int key_len) pneigh_hash() argument 537 u32 hash_val = *(u32 *)(pkey + key_len - 4); pneigh_hash() 547 const void *pkey, __pneigh_lookup_1() 552 if (!memcmp(n->key, pkey, key_len) && __pneigh_lookup_1() 562 struct net *net, const void *pkey, struct net_device *dev) __pneigh_lookup() 565 u32 hash_val = pneigh_hash(pkey, key_len); __pneigh_lookup() 568 net, pkey, key_len, dev); __pneigh_lookup() 573 struct net *net, const void *pkey, pneigh_lookup() 578 u32 hash_val = pneigh_hash(pkey, key_len); pneigh_lookup() 582 net, pkey, key_len, dev); pneigh_lookup() 595 memcpy(n->key, pkey, key_len); pneigh_lookup() 618 int pneigh_delete(struct neigh_table *tbl, struct net *net, const void *pkey, pneigh_delete() argument 623 u32 hash_val = pneigh_hash(pkey, key_len); pneigh_delete() 628 if (!memcmp(n->key, pkey, key_len) && n->dev == dev && pneigh_delete() 416 neigh_lookup_nodev(struct neigh_table *tbl, struct net *net, const void *pkey) neigh_lookup_nodev() argument 545 __pneigh_lookup_1(struct pneigh_entry *n, struct net *net, const void *pkey, int key_len, struct net_device *dev) __pneigh_lookup_1() argument 561 __pneigh_lookup(struct neigh_table *tbl, struct net *net, const void *pkey, struct net_device *dev) __pneigh_lookup() argument 572 pneigh_lookup(struct neigh_table *tbl, struct net *net, const void *pkey, struct net_device *dev, int creat) pneigh_lookup() argument
|
/linux-4.1.27/drivers/infiniband/hw/ehca/ |
H A D | ehca_hca.c | 281 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) ehca_query_pkey() argument 307 memcpy(pkey, &rblock->pkey_entries + index, sizeof(u16)); ehca_query_pkey()
|
H A D | ehca_iverbs.h | 55 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey);
|
/linux-4.1.27/net/ipv6/ |
H A D | ndisc.c | 84 static u32 ndisc_hash(const void *pkey, 87 static bool ndisc_key_eq(const struct neighbour *neigh, const void *pkey); 293 static u32 ndisc_hash(const void *pkey, ndisc_hash() argument 297 return ndisc_hashfn(pkey, dev, hash_rnd); ndisc_hash() 300 static bool ndisc_key_eq(const struct neighbour *n, const void *pkey) ndisc_key_eq() argument 302 return neigh_key_eq128(n, pkey); ndisc_key_eq() 687 static int pndisc_is_router(const void *pkey, pndisc_is_router() argument 694 n = __pneigh_lookup(&nd_tbl, dev_net(dev), pkey, dev); pndisc_is_router()
|
/linux-4.1.27/net/ipv4/ |
H A D | arp.c | 124 static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd); 125 static bool arp_key_eq(const struct neighbour *n, const void *pkey); 210 static u32 arp_hash(const void *pkey, arp_hash() argument 214 return arp_hashfn(pkey, dev, hash_rnd); arp_hash() 217 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) arp_key_eq() argument 219 return neigh_key_eq32(neigh, pkey); arp_key_eq()
|
H A D | fib_trie.c | 1355 t_key pkey = pn->key; fib_table_lookup() local 1368 cindex = get_index(pkey, pn); fib_table_lookup() 1569 t_key pkey = pn->key; leaf_walk_rcu() local 1572 cindex = get_index(pkey, pn) + 1; leaf_walk_rcu() 1611 t_key pkey = pn->key; fib_trie_free() local 1623 cindex = get_index(pkey, pn); fib_trie_free() 1727 t_key pkey = pn->key; fib_table_flush_external() local 1735 cindex = get_index(pkey, pn); fib_table_flush_external() 1803 t_key pkey = pn->key; fib_table_flush() local 1811 cindex = get_index(pkey, pn); fib_table_flush() 2014 t_key pkey; fib_trie_get_next() local 2040 pkey = pn->key; fib_trie_get_next() 2042 cindex = get_index(pkey, pn) + 1; fib_trie_get_next()
|
H A D | route.c | 444 const __be32 *pkey = daddr; ipv4_neigh_lookup() local 450 pkey = (const __be32 *) &rt->rt_gateway; ipv4_neigh_lookup() 452 pkey = &ip_hdr(skb)->daddr; ipv4_neigh_lookup() 454 n = __ipv4_neigh_lookup(dev, *(__force u32 *)pkey); ipv4_neigh_lookup() 457 return neigh_create(&arp_tbl, pkey, dev); ipv4_neigh_lookup()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_file_ops.c | 603 * error for a process to set the same pkey multiple times. We provide no 604 * mechanism to de-allocate a pkey at this time, we may eventually need to 623 ipath_cdbg(VERBOSE, "p%u try to set pkey %hx, current keys " ipath_set_part_key() 650 ipath_cdbg(VERBOSE, "p%u tries to set same pkey " ipath_set_part_key() 709 u64 pkey; ipath_set_part_key() local 714 pkey = ipath_set_part_key() 720 "portidx %d, new pkey reg %llx\n", ipath_set_part_key() 722 (unsigned long long) pkey); ipath_set_part_key() 724 dd, dd->ipath_kregs->kr_partitionkey, pkey); ipath_set_part_key() 839 u64 pkey = (u64) dd->ipath_pkeys[0] | ipath_clean_part_key() local 843 ipath_cdbg(VERBOSE, "p%u old pkey reg %llx, " ipath_clean_part_key() 844 "new pkey reg %llx\n", pd->port_port, ipath_clean_part_key() 846 (unsigned long long) pkey); ipath_clean_part_key() 848 pkey); ipath_clean_part_key()
|
H A D | ipath_mad.c | 348 * @pkeys: the pkey table is placed here 761 u64 pkey; set_pkeys() local 764 pkey = (u64) dd->ipath_pkeys[0] | set_pkeys() 768 ipath_cdbg(VERBOSE, "p0 new pkey reg %llx\n", set_pkeys() 769 (unsigned long long) pkey); set_pkeys() 771 pkey); set_pkeys()
|
H A D | ipath_ud.c | 217 /* XXX do we know which pkey matched? Only needed for GSI. */ ipath_ud_loopback() 563 /* XXX do we know which pkey matched? Only needed for GSI. */ ipath_ud_rcv()
|
H A D | ipath_verbs.c | 1875 u16 *pkey) ipath_query_pkey() 1885 *pkey = ipath_get_pkey(dev->dd, index); ipath_query_pkey() 1874 ipath_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) ipath_query_pkey() argument
|
H A D | ipath_init_chip.c | 219 /* The port 0 pkey table is used by the layer interface. */ create_portdata0()
|
H A D | ipath_kernel.h | 469 /* ref count for each pkey */
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | main.c | 275 pr_warn("invalid pkey table size %d\n", size); to_fw_pkey_sz() 297 static u16 get_pkey_table_size(int pkey) get_pkey_table_size() argument 299 if (pkey > MLX5_MAX_LOG_PKEY_TABLE) get_pkey_table_size() 302 return MLX5_MIN_PKEY_TABLE_SIZE << pkey; get_pkey_table_size() 437 /* we limit the size of the pkey table to 128 entries for now */ handle_hca_cap()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_ud.c | 395 static unsigned qib_lookup_pkey(struct qib_ibport *ibp, u16 pkey) qib_lookup_pkey() argument 402 pkey &= 0x7fff; /* remove limited/full membership bit */ qib_lookup_pkey() 405 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) qib_lookup_pkey()
|
H A D | qib_verbs.c | 1953 u16 *pkey) qib_query_pkey() 1963 *pkey = qib_get_pkey(to_iport(ibdev, port), index); qib_query_pkey() 1952 qib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) qib_query_pkey() argument
|
H A D | qib_file_ops.c | 561 * error for a process to set the same pkey multiple times. We provide no 562 * mechanism to de-allocate a pkey at this time, we may eventually need to
|
H A D | qib.h | 555 /* ref count for each pkey */
|
H A D | qib_mad.c | 576 * @pkeys: the pkey table is placed here
|
H A D | qib_iba7322.c | 6246 /* driver sends get pkey, lid, etc. checking also, to catch bugs */ qib_late_7322_initreg()
|
/linux-4.1.27/drivers/infiniband/ulp/srp/ |
H A D | ib_srp.c | 271 be16_to_cpu(target->pkey), srp_init_qp() 307 ch->path.pkey = target->pkey; srp_new_cm_id() 2266 ch->path.pkey = cpi->redirect_pkey; srp_cm_rej_handler() 2588 return sprintf(buf, "0x%04x\n", be16_to_cpu(target->pkey)); show_pkey() 2697 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL); 2872 * pkey=<P_Key>,service_id=<service ID> 2904 { SRP_OPT_PKEY, "pkey=%x" }, 2992 target->pkey = cpu_to_be16(token); srp_parse_options() 3295 "new target: id_ext %016llx ioc_guid %016llx pkey %04x service_id %016llx sgid %pI6 dgid %pI6\n", 3298 be16_to_cpu(target->pkey),
|
H A D | ib_srp.h | 215 __be16 pkey; member in struct:srp_target_port
|
/linux-4.1.27/drivers/infiniband/hw/amso1100/ |
H A D | c2_provider.c | 103 u8 port, u16 index, u16 * pkey) c2_query_pkey() 106 *pkey = 0; c2_query_pkey() 102 c2_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey) c2_query_pkey() argument
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
H A D | provider.c | 283 u16 *pkey) c4iw_query_pkey() 286 *pkey = 0; c4iw_query_pkey() 282 c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) c4iw_query_pkey() argument
|
/linux-4.1.27/crypto/asymmetric_keys/ |
H A D | pkcs7_parser.c | 222 printk("Unsupported pkey algo: %u\n", ctx->last_oid); pkcs7_sig_note_pkey_algo()
|
H A D | x509_cert_parser.c | 237 pr_warn("Got cert with pkey (%u) and sig (%u) algorithm OIDs\n", x509_note_signature()
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
H A D | mthca_qp.c | 1485 u16 pkey; build_mlx_header() local 1522 sqp->pkey_index, &pkey); build_mlx_header() 1525 wr->wr.ud.pkey_index, &pkey); build_mlx_header() 1526 sqp->ud_header.bth.pkey = cpu_to_be16(pkey); build_mlx_header()
|
H A D | mthca_provider.c | 229 u8 port, u16 index, u16 *pkey) mthca_query_pkey() 249 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]); mthca_query_pkey() 228 mthca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) mthca_query_pkey() argument
|
/linux-4.1.27/drivers/s390/net/ |
H A D | qeth_l3_main.c | 2838 __be32 *pkey = &ip_hdr(skb)->daddr; qeth_l3_fill_header() local 2841 pkey = &rt->rt_gateway; qeth_l3_fill_header() 2846 *((__be32 *) (&hdr->hdr.l3.dest_addr[12])) = *pkey; qeth_l3_fill_header() 2849 struct in6_addr *pkey = &ipv6_hdr(skb)->daddr; qeth_l3_fill_header() local 2852 pkey = &rt->rt6i_gateway; qeth_l3_fill_header() 2858 memcpy(hdr->hdr.l3.dest_addr, pkey, 16); qeth_l3_fill_header()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
H A D | main.c | 304 u16 *pkey) mlx5_ib_query_pkey() 323 *pkey = be16_to_cpu(((__be16 *)out_mad->data)[index % 32]); mlx5_ib_query_pkey() 303 mlx5_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) mlx5_ib_query_pkey() argument
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | cmd.c | 825 static int query_pkey_block(struct mlx4_dev *dev, u8 port, u16 index, u16 *pkey, query_pkey_block() argument 846 pkey[i] = be16_to_cpu(((__be16 *) out_mad->data)[i]); query_pkey_block() 917 /* need to get the full pkey table because the paravirtualized mlx4_MAD_IFC_wrapper() 918 * pkeys may be scattered among several pkey blocks. mlx4_MAD_IFC_wrapper()
|
H A D | main.c | 268 /* set gid and pkey table operating lengths by default _mlx4_dev_port()
|
/linux-4.1.27/drivers/infiniband/hw/cxgb3/ |
H A D | iwch_provider.c | 1106 u8 port, u16 index, u16 * pkey) iwch_query_pkey() 1109 *pkey = 0; iwch_query_pkey() 1105 iwch_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey) iwch_query_pkey() argument
|
/linux-4.1.27/drivers/infiniband/hw/nes/ |
H A D | nes_verbs.c | 613 static int nes_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) nes_query_pkey() argument 615 *pkey = 0; nes_query_pkey()
|
/linux-4.1.27/tools/lib/traceevent/ |
H A D | event-parse.c | 3334 struct event_format *pkey = &key; pevent_find_event() local 3342 eventptr = bsearch(&pkey, pevent->events, pevent->nr_events, pevent_find_event()
|
/linux-4.1.27/drivers/net/wireless/ |
H A D | airo.c | 1292 static void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, 1631 static void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, emmh32_setseed() argument 1641 crypto_cipher_setkey(tfm, pkey, 16); emmh32_setseed()
|
/linux-4.1.27/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.c | 3193 "pkey=ffff,service_id=%016llx\n", srpt_service_guid, srpt_add_one()
|