Searched refs:pkey (Results 1 - 25 of 49) sorted by relevance

12

/drivers/infiniband/ulp/ipoib/
H A Dipoib_vlan.c53 u16 pkey, int type)
67 priv->pkey = pkey;
70 priv->dev->broadcast[8] = pkey >> 8;
71 priv->dev->broadcast[9] = pkey & 0xff;
122 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) argument
135 ppriv->dev->name, pkey);
150 if (ppriv->pkey == pkey) {
156 if (tpriv->pkey
52 __ipoib_vlan_add(struct ipoib_dev_priv *ppriv, struct ipoib_dev_priv *priv, u16 pkey, int type) argument
176 ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) argument
[all...]
H A Dipoib_netlink.c50 if (nla_put_u16(skb, IFLA_IPOIB_PKEY, priv->pkey))
118 ipoib_dbg(ppriv, "no pkey specified, using parent pkey\n");
119 child_pkey = ppriv->pkey;
H A Dipoib_main.c548 path->pathrec.pkey = cpu_to_be16(priv->pkey);
738 cb->hwaddr[8] = (priv->pkey >> 8) & 0xff;
739 cb->hwaddr[9] = priv->pkey & 0xff;
1409 return sprintf(buf, "0x%04x\n", priv->pkey);
1411 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL);
1454 int pkey; local
1457 if (sscanf(buf, "%i", &pkey) != 1)
1460 if (pkey <= 0 || pkey >
1479 int pkey; local
[all...]
H A Dipoib_ib.c675 ipoib_warn(priv, "P_Key 0x%04x is %s\n", priv->pkey,
676 (!(priv->pkey & 0x7fff) ? "Invalid" : "not found"));
717 if (!(priv->pkey & 0x7fff) ||
718 ib_find_pkey(priv->ca, priv->port, priv->pkey,
931 * Takes whatever value which is in pkey index 0 and updates priv->pkey
932 * returns 0 if the pkey value was changed.
939 prev_pkey = priv->pkey;
940 result = ib_query_pkey(priv->ca, priv->port, 0, &priv->pkey);
947 priv->pkey |
[all...]
H A Dipoib.h330 u16 pkey; member in struct:ipoib_dev_priv
526 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey);
527 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey);
530 u16 pkey, int child_type);
H A Dipoib_multicast.c332 rec.pkey = cpu_to_be16(priv->pkey);
459 rec.pkey = cpu_to_be16(priv->pkey);
778 /* signature lower, pkey */
H A Dipoib_verbs.c45 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &pkey_index)) {
/drivers/infiniband/core/
H A Duverbs_marshall.c108 dst->pkey = src->pkey;
134 dst->pkey = src->pkey;
H A Dcache.c137 u16 *pkey)
153 *pkey = cache->table[index];
163 u16 pkey,
182 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) {
204 u16 pkey,
222 if (cache->table[i] == pkey) {
134 ib_get_cached_pkey(struct ib_device *device, u8 port_num, int index, u16 *pkey) argument
161 ib_find_cached_pkey(struct ib_device *device, u8 port_num, u16 pkey, u16 *index) argument
202 ib_find_exact_cached_pkey(struct ib_device *device, u8 port_num, u16 pkey, u16 *index) argument
H A Ddevice.c606 * @pkey:Returned P_Key
611 u8 port_num, u16 index, u16 *pkey)
613 return device->query_pkey(device, port_num, index, pkey);
702 * @pkey: The PKey value to search for.
706 u8 port_num, u16 pkey, u16 *index)
716 if ((pkey & 0x7fff) == (tmp_pkey & 0x7fff)) {
717 /* if there is full-member pkey take it.*/
610 ib_query_pkey(struct ib_device *device, u8 port_num, u16 index, u16 *pkey) argument
705 ib_find_pkey(struct ib_device *device, u8 port_num, u16 pkey, u16 *index) argument
H A Dcm.c232 __be16 pkey; member in struct:cm_id_private
374 be16_to_cpu(path->pkey), &av->pkey_index);
1026 req_msg->pkey = param->primary_path->pkey;
1102 (param->alternate_path->pkey != param->primary_path->pkey ||
1158 cm_id_priv->pkey = param->primary_path->pkey;
1248 primary_path->pkey = req_msg->pkey;
[all...]
H A Dcma.c428 u16 pkey, index; local
435 pkey = ntohs(addr->sib_pkey);
442 if (ib_find_cached_pkey(cur_dev->device, p, pkey, &index))
701 u16 pkey; local
705 pkey = ib_addr_get_pkey(dev_addr);
707 pkey = 0xffff;
710 pkey, &qp_attr->pkey_index);
848 ib->sib_pkey = path->pkey;
857 ib->sib_pkey = path->pkey;
1213 ib_addr_set_pkey(&rt->addr.dev_addr, be16_to_cpu(rt->path_rec[0].pkey));
2023 u16 pkey; local
[all...]
H A Dmulticast.c302 if (comp_mask & IB_SA_MCMEMBER_REC_PKEY && src->pkey != dst->pkey)
402 be16_to_cpu(group->rec.pkey), &pkey_index);
529 be16_to_cpu(rec->pkey), &pkey_index);
H A Dcm_msgs.h74 __be16 pkey; member in struct:cm_req_msg
800 __be16 pkey; member in struct:cm_sidr_req_msg
H A Dud_header.c175 { STRUCT_FIELD(bth, pkey),
H A Dsysfs.c304 u16 pkey; local
307 ret = ib_query_pkey(p->ibdev, p->port_num, tab_attr->index, &pkey);
311 return sprintf(buf, "0x%04x\n", pkey);
/drivers/infiniband/hw/usnic/
H A Dusnic_ib_verbs.h36 u16 *pkey);
/drivers/infiniband/hw/ocrdma/
H A Docrdma_verbs.h47 int ocrdma_query_pkey(struct ib_device *, u8 port, u16 index, u16 *pkey);
/drivers/infiniband/hw/qib/
H A Dqib_ud.c395 static unsigned qib_lookup_pkey(struct qib_ibport *ibp, u16 pkey) argument
402 pkey &= 0x7fff; /* remove limited/full membership bit */
405 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey)
/drivers/infiniband/hw/ehca/
H A Dehca_hca.c281 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
307 memcpy(pkey, &rblock->pkey_entries + index, sizeof(u16));
H A Dehca_iverbs.h55 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey);
/drivers/infiniband/hw/ipath/
H A Dipath_mad.c348 * @pkeys: the pkey table is placed here
761 u64 pkey; local
764 pkey = (u64) dd->ipath_pkeys[0] |
768 ipath_cdbg(VERBOSE, "p0 new pkey reg %llx\n",
769 (unsigned long long) pkey);
771 pkey);
/drivers/infiniband/hw/mlx4/
H A Dmcg.c88 __be16 pkey; member in struct:ib_sa_mcmember_data
397 if (comp_mask & IB_SA_MCMEMBER_REC_PKEY && src->pkey != dst->pkey)
1025 be16_to_cpu(group->rec.pkey),
H A Dsysfs.c166 u16 pkey; local
170 mlx4_ib_iov_dentry->entry_num, &pkey, 1);
174 return sprintf(buf, "0x%04x\n", pkey);
249 /* get the physical gid and pkey table sizes.*/
313 /* physical port pkey table */
487 /* do not allow remapping Dom0 virtual pkey table */
/drivers/net/ethernet/mellanox/mlx5/core/
H A Dmain.c274 pr_warn("invalid pkey table size %d\n", size);
297 static u16 get_pkey_table_size(int pkey) argument
299 if (pkey > MLX5_MAX_LOG_PKEY_TABLE)
302 return MLX5_MIN_PKEY_TABLE_SIZE << pkey;
437 /* we limit the size of the pkey table to 128 entries for now */

Completed in 2202 milliseconds

12