/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | vport.c | 159 u8 port_num, u16 vf_num, u16 pkey_index, mlx5_query_hca_vport_pkey() 176 if (pkey_index > tbsz && pkey_index != 0xffff) mlx5_query_hca_vport_pkey() 179 if (pkey_index == 0xffff) mlx5_query_hca_vport_pkey() 203 MLX5_SET(query_hca_vport_pkey_in, in, pkey_index, pkey_index); mlx5_query_hca_vport_pkey() 158 mlx5_query_hca_vport_pkey(struct mlx5_core_dev *dev, u8 other_vport, u8 port_num, u16 vf_num, u16 pkey_index, u16 *pkey) mlx5_query_hca_vport_pkey() argument
|
/linux-4.4.14/drivers/infiniband/core/ |
H A D | multicast.c | 110 u16 pkey_index; member in struct:mcast_group 397 u16 pkey_index; process_group_error() local 402 be16_to_cpu(group->rec.pkey), &pkey_index); process_group_error() 406 group->pkey_index == pkey_index) process_group_error() 523 u16 pkey_index = MCAST_INVALID_PKEY_INDEX; join_handler() local 530 be16_to_cpu(rec->pkey), &pkey_index); join_handler() 534 group->pkey_index == MCAST_INVALID_PKEY_INDEX) join_handler() 535 group->pkey_index = pkey_index; join_handler() 585 group->pkey_index = MCAST_INVALID_PKEY_INDEX; acquire_group()
|
H A D | uverbs_marshall.c | 77 dst->pkey_index = src->pkey_index; ib_copy_qp_attr_to_user()
|
H A D | mad.c | 693 u64 wr_id, u16 slid, u16 pkey_index, u8 port_num, build_smp_wc() 700 wc->pkey_index = pkey_index; build_smp_wc() 836 send_wr->pkey_index, handle_outgoing_dr_smp() 897 local->mad_send_wr->send_wr.pkey_index = out_mad_pkey_index; handle_outgoing_dr_smp() 984 u32 remote_qpn, u16 pkey_index, ib_create_send_mad() 1049 mad_send_wr->send_wr.pkey_index = pkey_index; ib_create_send_mad() 2258 wc->pkey_index = resp_mad_pkey_index; ib_mad_recv_done_handler() 2721 local->mad_send_wr->send_wr.pkey_index, local_completions() 2987 u16 pkey_index; ib_mad_port_start() local 2997 IB_DEFAULT_PKEY_FULL, &pkey_index); ib_mad_port_start() 2999 pkey_index = 0; ib_mad_port_start() 3011 attr->pkey_index = pkey_index; ib_mad_port_start() 692 build_smp_wc(struct ib_qp *qp, u64 wr_id, u16 slid, u16 pkey_index, u8 port_num, struct ib_wc *wc) build_smp_wc() argument 983 ib_create_send_mad(struct ib_mad_agent *mad_agent, u32 remote_qpn, u16 pkey_index, int rmpp_active, int hdr_len, int data_len, gfp_t gfp_mask, u8 base_version) ib_create_send_mad() argument
|
H A D | agent.c | 112 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, agent_send_response()
|
H A D | cm.c | 180 u16 pkey_index; member in struct:cm_av 269 cm_id_priv->av.pkey_index, cm_alloc_msg() 300 m = ib_create_send_mad(port->mad_agent, 1, mad_recv_wc->wc->pkey_index, cm_alloc_response_msg() 350 av->pkey_index = wc->pkey_index; cm_init_av_for_response() 381 be16_to_cpu(path->pkey), &av->pkey_index); cm_init_av_by_path() 1345 u16 pkey_index = work->mad_recv_wc->wc->pkey_index; cm_get_bth_pkey() local 1349 ret = ib_get_cached_pkey(ib_dev, port_num, pkey_index, &pkey); cm_get_bth_pkey() 1352 port_num, pkey_index, ret); cm_get_bth_pkey() 3590 qp_attr->pkey_index = cm_id_priv->av.pkey_index; cm_init_qp_init_attr() 3635 qp_attr->alt_pkey_index = cm_id_priv->alt_av.pkey_index; cm_init_qp_rtr_attr() 3693 qp_attr->alt_pkey_index = cm_id_priv->alt_av.pkey_index; cm_init_qp_rts_attr()
|
H A D | mad_rmpp.c | 143 recv_wc->wc->pkey_index, 1, hdr_len, ack_recv() 170 recv_wc->wc->pkey_index, 1, alloc_response_msg()
|
H A D | sa_query.c | 66 u16 pkey_index; member in struct:ib_sa_sm_ah 874 new_ah->pkey_index = 0; update_sm_ah() 876 IB_DEFAULT_PKEY_FULL, &new_ah->pkey_index)) update_sm_ah() 1053 query->sm_ah->pkey_index, alloc_mad()
|
H A D | user_mad.c | 234 packet->mad.hdr.pkey_index = mad_recv_wc->wc->pkey_index; recv_handler() 527 packet->mad.hdr.pkey_index, rmpp_active, ib_umad_write()
|
H A D | uverbs_cmd.c | 1605 tmp.pkey_index = wc->pkey_index; copy_wc_to_user() 2207 resp.pkey_index = attr->pkey_index; ib_uverbs_query_qp() 2312 attr->pkey_index = cmd.pkey_index; ib_uverbs_modify_qp()
|
H A D | cma.c | 816 pkey, &qp_attr->pkey_index); cma_ib_init_qp_attr()
|
/linux-4.4.14/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_verbs.c | 43 u16 pkey_index; ipoib_mcast_attach() local 45 if (ib_find_pkey(priv->ca, priv->port, priv->pkey, &pkey_index)) { ipoib_mcast_attach() 90 qp_attr.pkey_index = priv->pkey_index; ipoib_init_qp()
|
H A D | ipoib_main.c | 327 * pkey_index and address, if one exists. 333 u16 pkey_index, ipoib_match_gid_pkey_addr() 342 if (priv->pkey_index == pkey_index && ipoib_match_gid_pkey_addr() 364 pkey_index, addr, ipoib_match_gid_pkey_addr() 379 u16 pkey_index, __ipoib_get_net_dev_by_params() 393 matches += ipoib_match_gid_pkey_addr(priv, gid, pkey_index, list_for_each_entry() 409 u16 pkey_index; ipoib_get_net_dev_by_params() local 416 ret = ib_find_cached_pkey(dev, port, pkey, &pkey_index); ipoib_get_net_dev_by_params() 424 matches = __ipoib_get_net_dev_by_params(dev_list, port, pkey_index, ipoib_get_net_dev_by_params() 438 matches = __ipoib_get_net_dev_by_params(dev_list, port, pkey_index, ipoib_get_net_dev_by_params() 331 ipoib_match_gid_pkey_addr(struct ipoib_dev_priv *priv, const union ib_gid *gid, u16 pkey_index, const struct sockaddr *addr, int nesting, struct net_device **found_net_dev) ipoib_match_gid_pkey_addr() argument 378 __ipoib_get_net_dev_by_params(struct list_head *dev_list, u8 port, u16 pkey_index, const union ib_gid *gid, const struct sockaddr *addr, struct net_device **net_dev) __ipoib_get_net_dev_by_params() argument
|
H A D | ipoib_ib.c | 730 &priv->pkey_index)) ipoib_pkey_dev_check_presence() 962 u16 old_index = priv->pkey_index; update_child_pkey() 964 priv->pkey_index = 0; update_child_pkey() 968 (old_index == priv->pkey_index)) update_child_pkey()
|
H A D | ipoib.h | 343 u16 pkey_index; member in struct:ipoib_dev_priv
|
H A D | ipoib_cm.c | 1089 ret = ib_find_pkey(priv->ca, priv->port, priv->pkey, &qp_attr.pkey_index); ipoib_cm_modify_tx_init()
|
/linux-4.4.14/include/linux/mlx5/ |
H A D | vport.h | 44 u8 port_num, u16 vf_num, u16 pkey_index,
|
H A D | qp.h | 450 u8 pkey_index; member in struct:mlx5_qp_path
|
H A D | mlx5_ifc.h | 394 u8 pkey_index[0x10]; member in struct:mlx5_ifc_ads_bits 2378 u8 pkey_index[0x10]; member in struct:mlx5_ifc_dctc_bits 3506 u8 pkey_index[0x10]; member in struct:mlx5_ifc_query_hca_vport_pkey_in_bits
|
/linux-4.4.14/include/uapi/rdma/ |
H A D | ib_user_mad.h | 53 * ib_user_mad_hdr_old - Old version of MAD packet header without pkey_index 114 * @pkey_index - P_Key index 133 __u16 pkey_index; member in struct:ib_user_mad_hdr
|
H A D | ib_user_verbs.h | 413 __u16 pkey_index; member in struct:ib_uverbs_wc 485 __u16 pkey_index; member in struct:ib_uverbs_qp_attr 606 __u16 pkey_index; member in struct:ib_uverbs_query_qp_resp 637 __u16 pkey_index; member in struct:ib_uverbs_modify_qp
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
H A D | ud.c | 237 wc.pkey_index = swqe->ud_wr.pkey_index; ud_loopback() 239 wc.pkey_index = sqp->s_pkey_index; ud_loopback() 241 wc.pkey_index = 0; ud_loopback() 404 bth0 |= hfi1_get_pkey(ibp, wqe->ud_wr.pkey_index); hfi1_make_ud_req() 862 wc.pkey_index = (unsigned)mgmt_pkey_idx; hfi1_ud_rcv() 864 wc.pkey_index = 0; hfi1_ud_rcv()
|
H A D | cq.c | 110 wc->uqueue[head].pkey_index = entry->pkey_index; hfi1_cq_enter()
|
H A D | qp.c | 650 if (attr->pkey_index >= hfi1_get_npkeys(dd_from_dev(dev))) hfi1_modify_qp() 769 qp->s_pkey_index = attr->pkey_index; hfi1_modify_qp() 912 attr->pkey_index = qp->s_pkey_index; hfi1_query_qp()
|
H A D | uc.c | 464 wc.pkey_index = 0; hfi1_uc_rcv()
|
H A D | rc.c | 723 /* read pkey_index w/o lock (its atomic) */ hfi1_send_rc_ack() 2136 wc.pkey_index = 0; hfi1_rc_rcv()
|
H A D | mad.c | 3816 if (in_wc->pkey_index >= ARRAY_SIZE(ppd->pkeys)) opa_local_smp_check() 3819 pkey = ppd->pkeys[in_wc->pkey_index]; opa_local_smp_check()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
H A D | qib_ud.c | 212 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? qib_ud_loopback() 213 swqe->ud_wr.pkey_index : 0; qib_ud_loopback() 366 wqe->ud_wr.pkey_index : qp->s_pkey_index); qib_make_ud_req() 571 wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? qib_ud_rcv()
|
H A D | qib_cq.c | 94 wc->uqueue[head].pkey_index = entry->pkey_index; qib_cq_enter()
|
H A D | qib_qp.c | 609 if (attr->pkey_index >= qib_get_npkeys(dd_from_dev(dev))) qib_modify_qp() 750 qp->s_pkey_index = attr->pkey_index; qib_modify_qp() 876 attr->pkey_index = qp->s_pkey_index; qib_query_qp()
|
H A D | qib_uc.c | 413 wc.pkey_index = 0; qib_uc_rcv()
|
H A D | qib_rc.c | 686 /* read pkey_index w/o lock (its atomic) */ qib_send_rc_ack() 2046 wc.pkey_index = 0; qib_rc_rcv()
|
/linux-4.4.14/drivers/infiniband/hw/mlx4/ |
H A D | qp.c | 83 int pkey_index; member in struct:mlx4_ib_sqp 1286 sqp->pkey_index = attr->pkey_index; store_sqp_attrs() 1641 context->pri_path.pkey_index = attr->pkey_index; __mlx4_ib_modify_qp() 1698 context->alt_path.pkey_index = attr->alt_pkey_index; __mlx4_ib_modify_qp() 2087 if (attr->pkey_index >= dev->dev->caps.pkey_table_len[p]) { mlx4_ib_modify_qp() 2090 ibqp->qp_num, attr->pkey_index, cur_state, mlx4_ib_modify_qp() 2420 ib_get_cached_pkey(ib_dev, sqp->qp.port, sqp->pkey_index, &pkey); build_mlx_header() 2422 ib_get_cached_pkey(ib_dev, sqp->qp.port, wr->pkey_index, &pkey); build_mlx_header() 2633 hdr.pkey_index = cpu_to_be16(wr->pkey_index); build_tunnel_header() 3268 qp_attr->alt_pkey_index = context.alt_path.pkey_index & 0x7f; mlx4_ib_query_qp() 3272 qp_attr->pkey_index = context.pri_path.pkey_index & 0x7f; mlx4_ib_query_qp()
|
H A D | mad.c | 162 ext_info->pkey = cpu_to_be16(in_wc->pkey_index); mlx4_MAD_IFC() 492 ret = ib_get_cached_pkey(&dev->ib_dev, port, wc->pkey_index, &cached_pkey); mlx4_ib_send_to_slave() 546 tun_mad->hdr.pkey_index = cpu_to_be16(tun_pkey_ix); mlx4_ib_send_to_slave() 1185 enum ib_qp_type dest_qpt, u16 pkey_index, mlx4_ib_send_to_wire() 1217 wire_pkey_ix = dev->pkeys.virt2phys_pkey[slave][port - 1][pkey_index]; mlx4_ib_send_to_wire() 1264 wr.pkey_index = wire_pkey_ix; mlx4_ib_send_to_wire() 1411 be16_to_cpu(tunnel->hdr.pkey_index), mlx4_ib_multiplex_mad() 1665 &attr.pkey_index); create_pv_sqp() 1667 attr.pkey_index = create_pv_sqp() 1184 mlx4_ib_send_to_wire(struct mlx4_ib_dev *dev, int slave, u8 port, enum ib_qp_type dest_qpt, u16 pkey_index, u32 remote_qpn, u32 qkey, struct ib_ah_attr *attr, u8 *s_mac, u16 vlan_id, struct ib_mad *mad) mlx4_ib_send_to_wire() argument
|
H A D | mlx4_ib.h | 244 __be16 pkey_index; member in struct:mlx4_ib_tunnel_header 259 __be16 pkey_index; member in struct:mlx4_rcv_tunnel_hdr 817 enum ib_qp_type dest_qpt, u16 pkey_index, u32 remote_qpn,
|
H A D | cq.c | 589 wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index); use_tunnel_data() 868 wc->pkey_index = be32_to_cpu(cqe->immed_rss_invalid) & 0x7f; mlx4_ib_poll_one()
|
H A D | mcg.c | 242 if (ib_find_cached_pkey(&dev->ib_dev, ctx->port, IB_DEFAULT_PKEY_FULL, &wc.pkey_index)) send_mad_to_slave()
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
H A D | ipath_cq.c | 90 wc->uqueue[head].pkey_index = entry->pkey_index; ipath_cq_enter()
|
H A D | ipath_ud.c | 217 wc.pkey_index = 0; ipath_ud_loopback() 563 wc.pkey_index = 0; ipath_ud_rcv()
|
H A D | ipath_qp.c | 479 if (attr->pkey_index >= ipath_get_npkeys(dev->dd)) ipath_modify_qp() 550 qp->s_pkey_index = attr->pkey_index; ipath_modify_qp() 641 attr->pkey_index = qp->s_pkey_index; ipath_query_qp()
|
H A D | ipath_rc.c | 664 /* read pkey_index w/o lock (its atomic) */ send_rc_ack()
|
/linux-4.4.14/drivers/infiniband/hw/mthca/ |
H A D | mthca_qp.c | 302 sqp->pkey_index = attr->pkey_index; store_attrs() 478 qp_attr->pkey_index = be32_to_cpu(context->pri_path.port_pkey) & 0x7f; mthca_query_qp() 632 cpu_to_be32(attr->pkey_index); __mthca_modify_qp() 873 attr->pkey_index >= dev->limits.pkey_table_len) { mthca_modify_qp() 875 attr->pkey_index, dev->limits.pkey_table_len-1); mthca_modify_qp() 1522 sqp->pkey_index, &pkey); build_mlx_header() 1525 wr->pkey_index, &pkey); build_mlx_header()
|
H A D | mthca_provider.h | 290 int pkey_index; member in struct:mthca_sqp
|
H A D | mthca_cq.c | 642 entry->pkey_index = be32_to_cpu(cqe->imm_etype_pkey_eec) >> 16; mthca_poll_one()
|
H A D | mthca_cmd.c | 1917 MTHCA_PUT(inbox, in_wc->pkey_index, MAD_IFC_PKEY_OFFSET); mthca_MAD_IFC()
|
/linux-4.4.14/drivers/staging/rdma/ehca/ |
H A D | ehca_qes.h | 235 u16 pkey_index; member in struct:ehca_cqe
|
H A D | ehca_sqp.c | 185 ehca_query_pkey(ibdev, port_num, in_wc->pkey_index, ehca_process_perf()
|
H A D | ehca_qp.c | 1298 .pkey_index = 0, internal_modify_qp() 1435 if (attr->pkey_index >= 16) { internal_modify_qp() 1437 ehca_err(ibqp->device, "Invalid pkey_index=%x. " internal_modify_qp() 1439 attr->pkey_index, my_qp, ibqp->qp_num); internal_modify_qp() 1442 mqpcb->prim_p_key_idx = attr->pkey_index; internal_modify_qp() 1585 attr->pkey_index, my_qp, ibqp->qp_num); internal_modify_qp() 1964 qp_attr->pkey_index = qpcb->prim_p_key_idx; ehca_query_qp()
|
H A D | ehca_reqs.c | 259 wqe_p->pkeyi = ud_wr(send_wr)->pkey_index; ehca_write_swqe() 780 wc->pkey_index = cqe->pkey_index; ehca_poll_cq_one()
|
/linux-4.4.14/include/linux/mlx4/ |
H A D | qp.h | 143 u8 pkey_index; member in struct:mlx4_qp_path
|
/linux-4.4.14/drivers/infiniband/hw/mlx5/ |
H A D | qp.c | 1373 path->pkey_index = attr->pkey_index; mlx5_set_path() 1615 context->pri_path.pkey_index = attr->pkey_index; __mlx5_ib_modify_qp() 1786 if (attr->pkey_index >= mlx5_ib_modify_qp() 3070 qp_attr->alt_pkey_index = context->alt_path.pkey_index & 0x7f; mlx5_ib_query_qp() 3074 qp_attr->pkey_index = context->pri_path.pkey_index & 0x7f; mlx5_ib_query_qp()
|
H A D | cq.c | 235 &wc->pkey_index); handle_responder() 237 wc->pkey_index = 0; handle_responder()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
H A D | c2_cq.c | 164 entry->pkey_index = 0; c2_poll_one()
|
/linux-4.4.14/include/rdma/ |
H A D | ib_mad.h | 720 * @pkey_index: Specifies which PKey the MAD will be sent using. This field 743 u32 remote_qpn, u16 pkey_index,
|
H A D | ib_verbs.h | 773 u16 pkey_index; member in struct:ib_wc 1000 u16 pkey_index; member in struct:ib_qp_attr 1129 u16 pkey_index; /* valid for GSI only */ member in struct:ib_ud_wr
|
/linux-4.4.14/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_verbs.c | 1634 qp_attr->pkey_index = 0; ocrdma_query_qp() 2729 ibwc->pkey_index = le32_to_cpu(cqe->ud.rxlen_pkey) & ocrdma_update_ud_rcqe()
|
H A D | ocrdma_hw.c | 2573 cmd->params.path_mtu_pkey_indx |= (attrs->pkey_index & ocrdma_set_qp_params()
|
/linux-4.4.14/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.c | 474 mad_wc->wc->pkey_index, 0, srpt_mad_recv_handler() 963 attr->pkey_index = 0; srpt_init_ch_qp()
|
/linux-4.4.14/drivers/infiniband/ulp/srp/ |
H A D | ib_srp.c | 271 &attr->pkey_index); srp_init_qp()
|