Searched defs:pkey (Results 1 - 25 of 33) 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_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...]
/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));
/drivers/infiniband/core/
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 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);
H A Dcm_msgs.h74 __be16 pkey; member in struct:cm_req_msg
800 __be16 pkey; member in struct:cm_sidr_req_msg
/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/cxgb4/
H A Dprovider.c283 u16 *pkey)
286 *pkey = 0;
282 c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
/drivers/infiniband/hw/mlx4/
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 */
H A Dmad.c148 __be16 pkey; member in struct:__anon1480
161 ext_info->pkey = cpu_to_be16(in_wc->pkey_index);
413 u8 port, u16 pkey, u16 *ix)
420 return ib_find_cached_pkey(&dev->ib_dev, port, pkey, ix);
433 if ((slot_pkey & 0x7FFF) == (pkey & 0x7FFF)) {
438 /* take first partial pkey index found */
412 find_slave_port_pkey_ix(struct mlx4_ib_dev *dev, int slave, u8 port, u16 pkey, u16 *ix) argument
H A Dmain.c492 u16 *pkey, int netw_view)
516 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
524 static int mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
526 return __mlx4_ib_query_pkey(ibdev, port, index, pkey, 0);
1946 /* master has the identity virt2phys pkey mapping */
1954 /* initialize pkey cache */
491 __mlx4_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey, int netw_view) argument
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 Dqp.c1930 pr_debug("qpn 0x%x: invalid pkey index (%d) specified "
1990 u16 pkey; local
2029 ib_get_cached_pkey(ib_dev, sqp->qp.port, 0, &pkey);
2030 sqp->ud_header.bth.pkey = cpu_to_be16(pkey);
2113 u16 pkey; local
2256 ib_get_cached_pkey(ib_dev, sqp->qp.port, sqp->pkey_index, &pkey);
2258 ib_get_cached_pkey(ib_dev, sqp->qp.port, wr->wr.ud.pkey_index, &pkey);
2259 sqp->ud_header.bth.pkey = cpu_to_be16(pkey);
[all...]
/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 */
/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);
H A Dipath_file_ops.c599 * error for a process to set the same pkey multiple times. We provide no
600 * mechanism to de-allocate a pkey at this time, we may eventually need to
619 ipath_cdbg(VERBOSE, "p%u try to set pkey %hx, current keys "
646 ipath_cdbg(VERBOSE, "p%u tries to set same pkey "
705 u64 pkey; local
710 pkey =
716 "portidx %d, new pkey reg %llx\n",
718 (unsigned long long) pkey);
720 dd, dd->ipath_kregs->kr_partitionkey, pkey);
835 u64 pkey local
[all...]
H A Dipath_verbs.c1875 u16 *pkey)
1885 *pkey = ipath_get_pkey(dev->dd, index);
1874 ipath_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
/drivers/infiniband/hw/mthca/
H A Dmthca_provider.c229 u8 port, u16 index, u16 *pkey)
249 *pkey = be16_to_cpu(((__be16 *) out_mad->data)[index % 32]);
228 mthca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
H A Dmthca_qp.c1485 u16 pkey; local
1522 sqp->pkey_index, &pkey);
1525 wr->wr.ud.pkey_index, &pkey);
1526 sqp->ud_header.bth.pkey = cpu_to_be16(pkey);
/drivers/infiniband/hw/usnic/
H A Dusnic_ib_verbs.c409 u16 *pkey)
414 *pkey = 0xffff;
408 usnic_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
/drivers/infiniband/hw/amso1100/
H A Dc2_provider.c103 u8 port, u16 index, u16 * pkey)
106 *pkey = 0;
102 c2_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey) argument
/drivers/infiniband/hw/cxgb3/
H A Diwch_provider.c1106 u8 port, u16 index, u16 * pkey)
1109 *pkey = 0;
1105 iwch_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey) argument
/drivers/infiniband/hw/mlx5/
H A Dmain.c387 u16 *pkey)
406 *pkey = be16_to_cpu(((__be16 *)out_mad->data)[index % 32]);
386 mlx5_ib_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
/drivers/infiniband/hw/nes/
H A Dnes_verbs.c613 static int nes_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
615 *pkey = 0;

Completed in 388 milliseconds

12