/drivers/infiniband/ulp/ipoib/ |
D | ipoib_vlan.c | 52 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_add() argument 71 if (ppriv->pkey == pkey) { in ipoib_vlan_add() 78 if (priv->pkey == pkey) { in ipoib_vlan_add() 86 ppriv->dev->name, pkey); in ipoib_vlan_add() 103 priv->pkey = pkey; in ipoib_vlan_add() 106 priv->dev->broadcast[8] = pkey >> 8; in ipoib_vlan_add() 107 priv->dev->broadcast[9] = pkey & 0xff; in ipoib_vlan_add() 160 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey) in ipoib_vlan_delete() argument 174 if (priv->pkey == pkey) { in ipoib_vlan_delete()
|
D | ipoib_main.c | 520 path->pathrec.pkey = cpu_to_be16(priv->pkey); in path_rec_create() 650 n->ha[8] = (priv->pkey >> 8) & 0xff; in ipoib_path_lookup() 651 n->ha[9] = priv->pkey & 0xff; in ipoib_path_lookup() 777 cb->hwaddr[8] = (priv->pkey >> 8) & 0xff; in ipoib_start_xmit() 778 cb->hwaddr[9] = priv->pkey & 0xff; in ipoib_start_xmit() 1061 return sprintf(buf, "0x%04x\n", priv->pkey); in show_pkey() 1063 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL); 1100 int pkey; in create_child() local 1103 if (sscanf(buf, "%i", &pkey) != 1) in create_child() 1106 if (pkey < 0 || pkey > 0xffff) in create_child() [all …]
|
D | ipoib.h | 297 u16 pkey; member 493 int ipoib_vlan_add(struct net_device *pdev, unsigned short pkey); 494 int ipoib_vlan_delete(struct net_device *pdev, unsigned short pkey);
|
D | ipoib_multicast.c | 347 rec.pkey = cpu_to_be16(priv->pkey); in ipoib_mcast_sendonly_join() 470 rec.pkey = cpu_to_be16(priv->pkey); in ipoib_mcast_join()
|
D | ipoib_ib.c | 667 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &priv->pkey_index)) { in ipoib_ib_dev_open() 668 ipoib_warn(priv, "P_Key 0x%04x not found\n", priv->pkey); in ipoib_ib_dev_open() 709 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &pkey_index)) in ipoib_pkey_dev_check_presence() 959 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &new_index)) { in __ipoib_ib_dev_flush()
|
D | ipoib_verbs.c | 45 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &pkey_index)) { in ipoib_mcast_attach()
|
/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 | cache.c | 137 u16 *pkey) in ib_get_cached_pkey() argument 153 *pkey = cache->table[index]; in ib_get_cached_pkey() 163 u16 pkey, in ib_find_cached_pkey() argument 181 if ((cache->table[i] & 0x7fff) == (pkey & 0x7fff)) { in ib_find_cached_pkey()
|
D | device.c | 611 u8 port_num, u16 index, u16 *pkey) in ib_query_pkey() argument 613 return device->query_pkey(device, port_num, index, pkey); in ib_query_pkey() 706 u8 port_num, u16 pkey, u16 *index) in ib_find_pkey() argument 716 if ((pkey & 0x7fff) == (tmp_pkey & 0x7fff)) { in ib_find_pkey()
|
D | cm.c | 229 __be16 pkey; member 371 be16_to_cpu(path->pkey), &av->pkey_index); in cm_init_av_by_path() 1022 req_msg->pkey = param->primary_path->pkey; in cm_format_req() 1098 (param->alternate_path->pkey != param->primary_path->pkey || in cm_validate_req_param() 1154 cm_id_priv->pkey = param->primary_path->pkey; in ib_send_cm_req() 1244 primary_path->pkey = req_msg->pkey; in cm_format_paths_from_req() 1265 alt_path->pkey = req_msg->pkey; in cm_format_paths_from_req() 1585 cm_id_priv->pkey = req_msg->pkey; in cm_req_handler() 2668 path->pkey = cm_id_priv->pkey; in cm_format_path_from_lap() 2907 sidr_req_msg->pkey = param->path->pkey; in cm_format_sidr_req() [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() 529 be16_to_cpu(rec->pkey), &pkey_index); in join_handler()
|
D | cma.c | 610 u16 pkey; in cma_ib_init_qp_attr() local 614 pkey = ib_addr_get_pkey(dev_addr); in cma_ib_init_qp_attr() 616 pkey = 0xffff; in cma_ib_init_qp_attr() 619 pkey, &qp_attr->pkey_index); in cma_ib_init_qp_attr() 1113 ib_addr_set_pkey(&rt->addr.dev_addr, be16_to_cpu(rt->path_rec[0].pkey)); in cma_new_conn_id() 1632 path_rec.pkey = cpu_to_be16(ib_addr_get_pkey(&addr->dev_addr)); in cma_query_ib_route() 1827 route->path_rec->pkey = cpu_to_be16(0xffff); in cma_resolve_iboe_route() 1905 u16 pkey; in cma_bind_loopback() local 1928 ret = ib_get_cached_pkey(cma_dev->device, p, 0, &pkey); in cma_bind_loopback() 1937 ib_addr_set_pkey(&id_priv->id.route.addr.dev_addr, pkey); in cma_bind_loopback() [all …]
|
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 | sa_query.c | 172 { PATH_REC_FIELD(pkey), 252 { MCMEMBER_REC_FIELD(pkey), 316 { SERVICE_REC_FIELD(pkey),
|
D | cm_msgs.h | 86 __be16 pkey; member 812 __be16 pkey; member
|
D | ud_header.c | 175 { STRUCT_FIELD(bth, pkey),
|
/drivers/infiniband/hw/ehca/ |
D | ehca_hca.c | 281 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) in ehca_query_pkey() argument 307 memcpy(pkey, &rblock->pkey_entries + index, sizeof(u16)); in ehca_query_pkey()
|
D | ehca_iverbs.h | 55 int ehca_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 * pkey);
|
/drivers/infiniband/hw/qib/ |
D | qib_ud.c | 392 static unsigned qib_lookup_pkey(struct qib_ibport *ibp, u16 pkey) in qib_lookup_pkey() argument 399 pkey &= 0x7fff; /* remove limited/full membership bit */ in qib_lookup_pkey() 402 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) in qib_lookup_pkey()
|
/drivers/infiniband/hw/mlx4/ |
D | mad.c | 87 __be16 pkey; in mlx4_MAD_IFC() member 100 ext_info->pkey = cpu_to_be16(in_wc->pkey_index); in mlx4_MAD_IFC()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_file_ops.c | 704 u64 pkey; in ipath_set_part_key() local 709 pkey = in ipath_set_part_key() 717 (unsigned long long) pkey); in ipath_set_part_key() 719 dd, dd->ipath_kregs->kr_partitionkey, pkey); in ipath_set_part_key() 834 u64 pkey = (u64) dd->ipath_pkeys[0] | in ipath_clean_part_key() local 841 (unsigned long long) pkey); in ipath_clean_part_key() 843 pkey); in ipath_clean_part_key()
|
D | ipath_mad.c | 761 u64 pkey; in set_pkeys() local 763 pkey = (u64) dd->ipath_pkeys[0] | in set_pkeys() 768 (unsigned long long) pkey); in set_pkeys() 770 pkey); in set_pkeys()
|
/drivers/infiniband/hw/cxgb4/ |
D | provider.c | 230 u16 *pkey) in c4iw_query_pkey() argument 233 *pkey = 0; in c4iw_query_pkey()
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 185 be16_to_cpu(target->path.pkey), in srp_init_qp() 1506 target->path.pkey = cpi->redirect_pkey; in srp_cm_rej_handler() 1764 return sprintf(buf, "0x%04x\n", be16_to_cpu(target->path.pkey)); in show_pkey() 1834 static DEVICE_ATTR(pkey, S_IRUGO, show_pkey, NULL); 2036 target->path.pkey = cpu_to_be16(token); in srp_parse_options() 2223 be16_to_cpu(target->path.pkey), in srp_create_target()
|
/drivers/infiniband/hw/amso1100/ |
D | c2_provider.c | 103 u8 port, u16 index, u16 * pkey) in c2_query_pkey() argument 106 *pkey = 0; in c2_query_pkey()
|