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

12

/drivers/infiniband/ulp/ipoib/
H A Dipoib_vlan.c52 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) argument
71 if (ppriv->pkey == pkey) {
78 if (priv->pkey == pkey) {
86 ppriv->dev->name, pkey);
103 priv->pkey = pkey;
106 priv->dev->broadcast[8] = pkey >> 8;
107 priv->dev->broadcast[9] = pkey
160 ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) argument
[all...]
H A Dipoib_main.c520 path->pathrec.pkey = cpu_to_be16(priv->pkey);
650 n->ha[8] = (priv->pkey >> 8) & 0xff;
651 n->ha[9] = priv->pkey & 0xff;
777 cb->hwaddr[8] = (priv->pkey >> 8) & 0xff;
778 cb->hwaddr[9] = priv->pkey & 0xff;
1061 return sprintf(buf, "0x%04x\n", priv->pkey);
1063 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL);
1100 int pkey; local
1103 if (sscanf(buf, "%i", &pkey) !
1125 int pkey; local
[all...]
H A Dipoib.h297 u16 pkey; member in struct:ipoib_dev_priv
493 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey);
494 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey);
H A Dipoib_ib.c667 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &priv->pkey_index)) {
668 ipoib_warn(priv, "P_Key 0x%04x not found\n", priv->pkey);
709 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &pkey_index))
959 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &new_index)) {
1070 /* Look for the interface pkey value in the IB Port P_Key table and */
1071 /* set the interface pkey assigment flag */
H A Dipoib_multicast.c338 rec.pkey = cpu_to_be16(priv->pkey);
461 rec.pkey = cpu_to_be16(priv->pkey);
780 /* 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,
181 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) {
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
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)) {
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.c229 __be16 pkey; member in struct:cm_id_private
371 be16_to_cpu(path->pkey), &av->pkey_index);
1022 req_msg->pkey = param->primary_path->pkey;
1098 (param->alternate_path->pkey != param->primary_path->pkey ||
1154 cm_id_priv->pkey = param->primary_path->pkey;
1244 primary_path->pkey = req_msg->pkey;
[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.h86 __be16 pkey; member in struct:cm_req_msg
812 __be16 pkey; member in struct:cm_sidr_req_msg
H A Dud_header.c175 { STRUCT_FIELD(bth, pkey),
H A Dcma.c610 u16 pkey; local
614 pkey = ib_addr_get_pkey(dev_addr);
616 pkey = 0xffff;
619 pkey, &qp_attr->pkey_index);
1113 ib_addr_set_pkey(&rt->addr.dev_addr, be16_to_cpu(rt->path_rec[0].pkey));
1632 path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(&addr->dev_addr));
1827 route->path_rec->pkey = cpu_to_be16(0xffff);
1905 u16 pkey; local
1928 ret = ib_get_cached_pkey(cma_dev->device, p, 0, &pkey);
1937 ib_addr_set_pkey(&id_priv->id.route.addr.dev_addr, pkey);
[all...]
H A Dsa_query.c172 { PATH_REC_FIELD(pkey),
252 { MCMEMBER_REC_FIELD(pkey),
316 { SERVICE_REC_FIELD(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/qib/
H A Dqib_ud.c392 static unsigned qib_lookup_pkey(struct qib_ibport *ibp, u16 pkey) argument
399 pkey &= 0x7fff; /* remove limited/full membership bit */
402 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/mlx4/
H A Dmad.c87 __be16 pkey; member in struct:__anon970
100 ext_info->pkey = cpu_to_be16(in_wc->pkey_index);
/drivers/infiniband/hw/cxgb4/
H A Dprovider.c230 u16 *pkey)
233 *pkey = 0;
229 c4iw_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) argument
/drivers/infiniband/hw/ipath/
H A Dipath_mad.c348 * @pkeys: the pkey table is placed here
761 u64 pkey; local
763 pkey = (u64) dd->ipath_pkeys[0] |
767 ipath_cdbg(VERBOSE, "p0 new pkey reg %llx\n",
768 (unsigned long long) pkey);
770 pkey);
H A Dipath_file_ops.c598 * error for a process to set the same pkey multiple times. We provide no
599 * mechanism to de-allocate a pkey at this time, we may eventually need to
618 ipath_cdbg(VERBOSE, "p%u try to set pkey %hx, current keys "
645 ipath_cdbg(VERBOSE, "p%u tries to set same pkey "
704 u64 pkey; local
709 pkey =
715 "portidx %d, new pkey reg %llx\n",
717 (unsigned long long) pkey);
719 dd, dd->ipath_kregs->kr_partitionkey, pkey);
834 u64 pkey local
[all...]
/drivers/infiniband/ulp/srp/
H A Dib_srp.c185 be16_to_cpu(target->path.pkey),
1459 target->path.pkey = cpi->redirect_pkey;
1724 return sprintf(buf, "0x%04x\n", be16_to_cpu(target->path.pkey));
1794 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL);
1886 * pkey=<P_Key>,service_id=<service ID>
1915 { SRP_OPT_PKEY, "pkey=%x" },
1996 target->path.pkey = cpu_to_be16(token);
2179 "new target: id_ext %016llx ioc_guid %016llx pkey %04x "
2183 be16_to_cpu(target->path.pkey),
/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

Completed in 247 milliseconds

12