/freebsd-12-stable/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_mcg.c | 34 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) argument 40 MLX5_SET(attach_to_mcg_in, in, qpn, qpn); 48 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) argument 54 MLX5_SET(detach_from_mcg_in, in, qpn, qpn);
|
H A D | mlx5_qp.c | 95 err = radix_tree_insert(&table->tree, qp->qpn | (rsc_type << 24), qp); 114 radix_tree_delete(&table->tree, qp->qpn | (rsc_type << 24)); 136 qp->qpn = MLX5_GET(create_qp_out, out, qpn); 137 mlx5_core_dbg(dev, "qpn = 0x%x\n", qp->qpn); 149 MLX5_SET(destroy_qp_in, in, qpn, qp->qpn); 166 MLX5_SET(destroy_qp_in, in, qpn, qp->qpn); 204 modify_qp_mbox_alloc(struct mlx5_core_dev *dev, u16 opcode, int qpn, u32 opt_param_mask, void *qpc, struct mbox_info *mbox) argument [all...] |
/freebsd-12-stable/sys/ofed/drivers/infiniband/core/ |
H A D | agent.h | 53 int port_num, int qpn, size_t resp_mad_len, bool opa);
|
H A D | cm_msgs.h | 120 static inline void cm_req_set_local_qpn(struct cm_req_msg *req_msg, __be32 qpn) argument 122 req_msg->offset32 = cpu_to_be32((be32_to_cpu(qpn) << 8) | 528 static inline void cm_rep_set_local_qpn(struct cm_rep_msg *rep_msg, __be32 qpn) argument 530 rep_msg->offset12 = cpu_to_be32((be32_to_cpu(qpn) << 8) | 648 static inline void cm_dreq_set_remote_qpn(struct cm_dreq_msg *dreq_msg, __be32 qpn) argument 650 dreq_msg->offset8 = cpu_to_be32((be32_to_cpu(qpn) << 8) | 697 static inline void cm_lap_set_remote_qpn(struct cm_lap_msg *lap_msg, __be32 qpn) argument 699 lap_msg->offset12 = cpu_to_be32((be32_to_cpu(qpn) << 8) | 834 __be32 qpn) 836 sidr_rep_msg->offset8 = cpu_to_be32((be32_to_cpu(qpn) << 833 cm_sidr_rep_set_qpn(struct cm_sidr_rep_msg *sidr_rep_msg, __be32 qpn) argument [all...] |
H A D | ib_agent.c | 87 int port_num, int qpn, size_t resp_mad_len, bool opa) 105 agent = port_priv->agent[qpn]; 85 agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, const struct ib_wc *wc, const struct ib_device *device, int port_num, int qpn, size_t resp_mad_len, bool opa) argument
|
/freebsd-12-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_qp.c | 50 void mlx4_qp_event(struct mlx4_dev *dev, u32 qpn, int event_type) argument 57 qp = __mlx4_qp_lookup(dev, qpn); 64 mlx4_dbg(dev, "Async event for none existent QP %08x\n", qpn); 80 *proxy_qp0 = qp->qpn >= pf_proxy_offset && qp->qpn <= pf_proxy_offset + 1; 82 *real_qp0 = qp->qpn >= dev->phys_caps.base_sqpn && 83 qp->qpn <= dev->phys_caps.base_sqpn + 1; 146 ret = mlx4_cmd(dev, 0, qp->qpn, 2, 151 port = (qp->qpn & 1) + 1; 175 cpu_to_be16(mlx4_qp_roce_entropy(dev, qp->qpn)); 305 __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) argument 349 mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) argument 362 __mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn) argument 374 mlx4_qp_free_icm(struct mlx4_dev *dev, int qpn) argument 388 mlx4_qp_alloc(struct mlx4_dev *dev, int qpn, struct mlx4_qp *qp, gfp_t gfp) argument 422 mlx4_update_qp(struct mlx4_dev *dev, u32 qpn, enum mlx4_update_qp_attr attr, struct mlx4_update_qp_params *params) argument 932 mlx4_qp_roce_entropy(struct mlx4_dev *dev, u32 qpn) argument [all...] |
H A D | mlx4_mcg.c | 125 u32 qpn) 136 if (pqp->qpn == qpn) 149 unsigned int index, u32 qpn) 173 /* If the given qpn is also a promisc qp, 176 pqp = get_promisc_qp(dev, port, steer, qpn); 183 dqp->qpn = qpn; 208 /* don't add already existing qpn */ 209 if (pqp->qpn 123 get_promisc_qp(struct mlx4_dev *dev, u8 port, enum mlx4_steer_type steer, u32 qpn) argument 147 new_steering_entry(struct mlx4_dev *dev, u8 port, enum mlx4_steer_type steer, unsigned int index, u32 qpn) argument 239 existing_steering_entry(struct mlx4_dev *dev, u8 port, enum mlx4_steer_type steer, unsigned int index, u32 qpn) argument 288 check_duplicate_entry(struct mlx4_dev *dev, u8 port, enum mlx4_steer_type steer, unsigned int index, u32 qpn) argument 355 u32 qpn = be32_to_cpu(mgm->qp[i]) & MGM_QPN_MASK; local 418 add_promisc_qp(struct mlx4_dev *dev, u8 port, enum mlx4_steer_type steer, u32 qpn) argument 548 remove_promisc_qp(struct mlx4_dev *dev, u8 port, enum mlx4_steer_type steer, u32 qpn) argument 1049 mlx4_tunnel_steer_add(struct mlx4_dev *dev, unsigned char *addr, int port, int qpn, u16 prio, u64 *reg_id) argument 1342 int qpn; local 1465 mlx4_flow_steer_promisc_add(struct mlx4_dev *dev, u8 port, u32 qpn, enum mlx4_net_trans_promisc_mode mode) argument 1563 u32 qpn = (u32) vhcr->in_param & 0xffffffff; local 1580 mlx4_PROMISC(struct mlx4_dev *dev, u32 qpn, enum mlx4_steer_type steer, u8 add, u8 port) argument 1588 mlx4_multicast_promisc_add(struct mlx4_dev *dev, u32 qpn, u8 port) argument 1597 mlx4_multicast_promisc_remove(struct mlx4_dev *dev, u32 qpn, u8 port) argument 1606 mlx4_unicast_promisc_add(struct mlx4_dev *dev, u32 qpn, u8 port) argument 1615 mlx4_unicast_promisc_remove(struct mlx4_dev *dev, u32 qpn, u8 port) argument [all...] |
H A D | mlx4_resource_tracker.c | 223 int qpn; member in struct:res_fs_rule 738 u8 slave, u32 qpn) 759 if (mlx4_is_qp_reserved(dev, qpn)) 773 err = mlx4_update_qp(dev, qpn, MLX4_UPDATE_QP_VSD, ¶ms); 1119 static struct res_common *alloc_fs_rule_tr(u64 id, int qpn) argument 1129 ret->qpn = qpn; 1451 static int qp_res_start_move_to(struct mlx4_dev *dev, int slave, int qpn, argument 1461 r = res_tracker_lookup(&tracker->res_tree[RES_QP], qpn); 1722 static int valid_reserved(struct mlx4_dev *dev, int slave, int qpn) argument 736 update_vport_qp_param(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *inbox, u8 slave, u32 qpn) argument 1728 fw_reserved(struct mlx4_dev *dev, int qpn) argument 1740 int qpn; local 2312 int qpn; local 2884 u32 qpn = vhcr->in_modifier & 0xffffff; local 2905 int qpn = vhcr->in_modifier & 0x7fffff; local 3132 u32 qpn; local 3682 int qpn = vhcr->in_modifier & 0x7fffff; local 3771 int qpn = vhcr->in_modifier & 0x7fffff; local 3937 int qpn = vhcr->in_modifier & 0x7fffff; local 4093 int qpn; local 4251 u32 qpn = vhcr->in_modifier & 0xffffff; local 4337 int qpn; local 4632 int qpn; local [all...] |
/freebsd-12-stable/sys/ofed/include/uapi/rdma/ |
H A D | ib_user_mad.h | 69 * @qpn - Remote QP number received from/to be sent to 87 __be32 qpn; member in struct:ib_user_mad_hdr_old 112 * @qpn - Remote QP number received from/to be sent to 131 __be32 qpn; member in struct:ib_user_mad_hdr 180 * @qpn - Queue pair number; must be 0 or 1. 196 __u8 qpn; member in struct:ib_user_mad_reg_req 208 * @qpn - Queue pair number; must be 0 or 1. 231 __u32 qpn; member in struct:ib_user_mad_reg_req2
|
H A D | ib_user_cm.h | 141 __u32 qpn; member in struct:ib_ucm_req 166 __u32 qpn; member in struct:ib_ucm_rep 219 __u32 qpn; member in struct:ib_ucm_sidr_rep 303 __u32 qpn; member in struct:ib_ucm_sidr_rep_event_resp
|
/freebsd-12-stable/sys/ofed/include/rdma/ |
H A D | iw_cm.h | 109 u32 qpn; member in struct:iw_cm_conn_param 118 int qpn); 174 * @qpn: The queue pair number 176 struct ib_qp *iw_cm_get_qp(struct ib_device *device, int qpn);
|
H A D | rdma_vt.h | 462 * @qpn: the QP number to look up 470 u32 qpn) __must_hold(RCU) 474 if (unlikely(qpn <= 1)) { 475 qp = rcu_dereference(rvp->qp[qpn]); 477 u32 n = hash_32(qpn, rdi->qp_dev->qp_table_bits); 481 if (qp->ibqp.qp_num == qpn)
|
/freebsd-12-stable/contrib/ofed/opensm/libvendor/ |
H A D | osm_vendor_mlx_sim.c | 155 int qpn; local 194 qpn = 0; 195 p_mgr->filter.qpn = qpn; 212 qpn = 1; 213 p_mgr->filter.qpn = qpn;
|
H A D | osm_vendor_mlx_ts.c | 187 int qpn; local 219 qpn = 0; 220 p_mgr->filter.qpn = qpn; 239 qpn = 1; 240 p_mgr->filter.qpn = qpn; 376 ts_mad.sqpn = p_mgr->filter.qpn; 377 ts_mad.dqpn = p_mgr->filter.qpn;
|
/freebsd-12-stable/contrib/ofed/libibverbs/examples/ |
H A D | ud_pingpong.c | 75 int qpn; member in struct:pingpong_dest 170 sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn, 188 sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn, 267 sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn, 280 sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn, 508 static int pp_post_send(struct pingpong_context *ctx, uint32_t qpn) argument 524 .remote_qpn = qpn, 704 my_dest.qpn = ctx->qp->qp_num; 718 my_dest.lid, my_dest.qpn, my_dest.psn, gid); 731 rem_dest->lid, rem_dest->qpn, rem_des [all...] |
H A D | uc_pingpong.c | 74 int qpn; member in struct:pingpong_dest 86 .dest_qp_num = dest->qpn, 170 sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn, 189 sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn, 269 sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn, 283 sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn, 706 my_dest.qpn = ctx->qp->qp_num; 710 my_dest.lid, my_dest.qpn, my_dest.psn, gid); 724 rem_dest->lid, rem_dest->qpn, rem_dest->psn, gid);
|
H A D | srq_pingpong.c | 78 int qpn; member in struct:pingpong_dest 93 .dest_qp_num = dest[i].qpn, 194 my_dest[i].qpn, my_dest[i].psn, gid); 218 sscanf(msg, "%x:%x:%x:%s", &rem_dest[i].lid, &rem_dest[i].qpn, 311 sscanf(msg, "%x:%x:%x:%s", &rem_dest[i].lid, &rem_dest[i].qpn, 327 my_dest[i].qpn, my_dest[i].psn, gid); 590 static int find_qp(int qpn, struct pingpong_context *ctx, int num_qp) argument 595 if (ctx->qp[i]->qp_num == qpn) 806 my_dest[i].qpn = ctx->qp[i]->qp_num; 827 "GID %s\n", my_dest[i].lid, my_dest[i].qpn, [all...] |
/freebsd-12-stable/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_resources.c | 42 int is_tx, int rss, int qpn, int cqn, 59 context->local_qpn = cpu_to_be32(qpn); 41 mlx4_en_fill_qp_context(struct mlx4_en_priv *priv, int size, int stride, int is_tx, int rss, int qpn, int cqn, int user_prio, struct mlx4_qp_context *context) argument
|
H A D | mlx4_en_rx.c | 916 static int mlx4_en_config_rss_qp(struct mlx4_en_priv *priv, int qpn, argument 931 err = mlx4_qp_alloc(mdev->dev, qpn, qp, GFP_KERNEL); 933 en_err(priv, "Failed to allocate qp #%x\n", qpn); 940 qpn, ring->cqn, -1, context); 964 u32 qpn; local 966 err = mlx4_qp_reserve_range(priv->mdev->dev, 1, 1, &qpn, 0); 968 en_err(priv, "Failed reserving drop qpn\n"); 971 err = mlx4_qp_alloc(priv->mdev->dev, qpn, &priv->drop_qp, GFP_KERNEL); 974 mlx4_qp_release_range(priv->mdev->dev, qpn, 1); 983 u32 qpn; local [all...] |
/freebsd-12-stable/sys/dev/mthca/ |
H A D | mthca_qp.c | 197 return qp->qpn >= dev->qp_table.sqp_start && 198 qp->qpn <= dev->qp_table.sqp_start + 3; 203 return qp->qpn >= dev->qp_table.sqp_start && 204 qp->qpn <= dev->qp_table.sqp_start + 1; 237 void mthca_qp_event(struct mthca_dev *dev, u32 qpn, argument 244 qp = mthca_array_get(&dev->qp_table.qp, qpn & (dev->limits.num_qps - 1)); 251 event_type, qpn); 448 err = mthca_QUERY_QP(dev, qp->qpn, 0, mailbox); 614 qp_context->local_qpn = cpu_to_be32(qp->qpn); 755 ((qp->qpn 1343 mthca_alloc_sqp(struct mthca_dev *dev, struct mthca_pd *pd, struct mthca_cq *send_cq, struct mthca_cq *recv_cq, enum ib_sig_type send_policy, struct ib_qp_cap *cap, int qpn, int port, struct mthca_sqp *sqp) argument [all...] |
/freebsd-12-stable/contrib/ofed/libmlx5/ |
H A D | qp.c | 423 uint32_t qpn, void **seg, int *size) 443 uint32_t qpn, void **seg, int *size) 449 0xFFFFFF00 : qpn << 8)); 481 uint32_t qpn, void **seg, int *size) 518 uint32_t qpn, void **seg, int *size) 544 set_umr_control_seg(qp, type, rkey, bind_info, qpn, seg, size); 548 set_umr_mkey_seg(qp, type, rkey, bind_info, qpn, seg, size); 555 set_umr_data_seg(qp, type, rkey, bind_info, qpn, seg, size); 1041 uint32_t qpn = qp->ibv_qp->qp_num; local 1044 sign ^= calc_sig(&qpn, 421 set_umr_data_seg(struct mlx5_qp *qp, enum ibv_mw_type type, int32_t rkey, struct ibv_mw_bind_info *bind_info, uint32_t qpn, void **seg, int *size) argument 441 set_umr_mkey_seg(struct mlx5_qp *qp, enum ibv_mw_type type, int32_t rkey, struct ibv_mw_bind_info *bind_info, uint32_t qpn, void **seg, int *size) argument 479 set_umr_control_seg(struct mlx5_qp *qp, enum ibv_mw_type type, int32_t rkey, struct ibv_mw_bind_info *bind_info, uint32_t qpn, void **seg, int *size) argument 516 set_bind_wr(struct mlx5_qp *qp, enum ibv_mw_type type, int32_t rkey, struct ibv_mw_bind_info *bind_info, uint32_t qpn, void **seg, int *size) argument 1053 uint32_t qpn = rwq->wq.wq_num; local 1228 mlx5_find_qp(struct mlx5_context *ctx, uint32_t qpn) argument 1238 mlx5_store_qp(struct mlx5_context *ctx, uint32_t qpn, struct mlx5_qp *qp) argument 1254 mlx5_clear_qp(struct mlx5_context *ctx, uint32_t qpn) argument [all...] |
/freebsd-12-stable/sys/dev/mlx4/ |
H A D | device.h | 754 int qpn; member in struct:mlx4_qp 909 __be32 qpn; member in struct:mlx4_eqe::__anon13760::__anon13763 1038 static inline int mlx4_is_qp_reserved(struct mlx4_dev *dev, u32 qpn) argument 1040 return (qpn < dev->phys_caps.base_sqpn + 8 + 1042 qpn >= dev->phys_caps.base_sqpn) || 1043 (qpn < dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW]); 1046 static inline int mlx4_is_guest_proxy(struct mlx4_dev *dev, int slave, u32 qpn) argument 1050 if (qpn >= guest_proxy_base && qpn < guest_proxy_base + 8) 1128 int mlx4_qp_alloc(struct mlx4_dev *dev, int qpn, struc 1258 u32 qpn; member in struct:mlx4_net_trans_rule 1269 __be32 qpn; member in struct:mlx4_net_trans_rule_hw_ctrl [all...] |
H A D | qp.h | 477 int mlx4_update_qp(struct mlx4_dev *dev, u32 qpn, 492 static inline struct mlx4_qp *__mlx4_qp_lookup(struct mlx4_dev *dev, u32 qpn) argument 494 return radix_tree_lookup(&dev->qp_table_tree, qpn & (dev->caps.num_qps - 1)); 507 u16 mlx4_qp_roce_entropy(struct mlx4_dev *dev, u32 qpn);
|
/freebsd-12-stable/contrib/ofed/libibumad/ |
H A D | umad.c | 60 uint8_t qpn; member in struct:ib_user_mad_reg_req 72 uint32_t qpn; member in struct:ib_user_mad_reg_req2 780 mad->addr.qpn = htobe32(dqp); 794 mad->addr.qpn = dqp; 920 req.qpn = 1; 936 fd, req.id, req.qpn, req.mgmt_class, oui); 941 fd, req.qpn, req.mgmt_class, req.mgmt_class_version, oui); 956 req.qpn = qp = (mgmt_class == 0x1 || mgmt_class == 0x81) ? 0 : 1; 1006 req.qpn = (attr->mgmt_class == 0x1 || attr->mgmt_class == 0x81) ? 0 : 1; 1016 port_fd, req.id, req.qpn, re [all...] |
/freebsd-12-stable/contrib/ofed/libmlx4/ |
H A D | mlx4.h | 397 void __mlx4_cq_clean(struct mlx4_cq *cq, uint32_t qpn, struct mlx4_srq *srq); 398 void mlx4_cq_clean(struct mlx4_cq *cq, uint32_t qpn, struct mlx4_srq *srq); 449 struct mlx4_qp *mlx4_find_qp(struct mlx4_context *ctx, uint32_t qpn); 450 int mlx4_store_qp(struct mlx4_context *ctx, uint32_t qpn, struct mlx4_qp *qp); 451 void mlx4_clear_qp(struct mlx4_context *ctx, uint32_t qpn);
|