/freebsd-12-stable/sys/dev/mthca/ |
H A D | mthca_mcg.c | 120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 122 struct mthca_dev *dev = to_mdev(ibqp->device); 165 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) { 167 ibqp->qp_num); 171 mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1 << 31)); 214 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 216 struct mthca_dev *dev = to_mdev(ibqp->device); 242 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) 249 mthca_err(dev, "QP %06x not found in MGM\n", ibqp->qp_num);
|
H A D | mthca_provider.h | 264 struct ib_qp ibqp; member in struct:mthca_qp 336 static inline struct mthca_qp *to_mqp(struct ib_qp *ibqp) argument 338 return container_of(ibqp, struct mthca_qp, ibqp);
|
H A D | mthca_qp.c | 260 event.element.qp = &qp->ibqp; 261 if (qp->ibqp.event_handler) 262 qp->ibqp.event_handler(&event, qp->ibqp.qp_context); 424 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, argument 427 struct mthca_dev *dev = to_mdev(ibqp->device); 428 struct mthca_qp *qp = to_mqp(ibqp); 543 static int __mthca_modify_qp(struct ib_qp *ibqp, argument 547 struct mthca_dev *dev = to_mdev(ibqp->device); 548 struct mthca_qp *qp = to_mqp(ibqp); 842 mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 1602 mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument 1805 mthca_tavor_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument 1916 mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument 2156 mthca_arbel_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument [all...] |
H A D | mthca_dev.h | 531 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 533 int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, 535 int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 537 int mthca_tavor_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, 539 int mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 541 int mthca_arbel_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, 575 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); 576 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
|
/freebsd-12-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_qp.c | 255 if (qp->ibqp.qp_type == IB_QPT_UD) { 259 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn); 296 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; local 301 if (ibqp->event_handler) { 302 event.device = ibqp->device; 303 event.element.qp = ibqp; 335 ibqp->event_handler(&event, ibqp->qp_context); 999 if (qp->ibqp 1246 struct ib_qp *ibqp; local 1619 __mlx4_ib_modify_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state) argument 2159 _mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 2263 mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 2931 mlx4_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument 3266 mlx4_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument 3428 mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr) argument [all...] |
H A D | mlx4_ib.h | 299 struct ib_qp ibqp; member in struct:mlx4_ib_qp 684 static inline struct mlx4_ib_qp *to_mqp(struct ib_qp *ibqp) argument 686 return container_of(ibqp, struct mlx4_ib_qp, ibqp); 770 int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 772 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 774 int mlx4_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 776 int mlx4_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr,
|
H A D | mlx4_ib_cq.c | 585 ib_dma_sync_single_for_cpu(qp->ibqp.device, 625 wc->qp = &qp->ibqp; 719 wc->qp = &(*cur_qp)->ibqp; 738 } else if ((*cur_qp)->ibqp.srq) { 739 srq = to_msrq((*cur_qp)->ibqp.srq);
|
/freebsd-12-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | ev.c | 78 event.element.qp = &qhp->ibqp; 79 if (qhp->ibqp.event_handler) 80 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); 122 c4iw_qp_add_ref(&qhp->ibqp); 187 c4iw_qp_rem_ref(&qhp->ibqp);
|
H A D | iw_cxgbe.h | 473 struct ib_qp ibqp; member in struct:c4iw_qp 488 static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp) argument 490 return container_of(ibqp, struct c4iw_qp, ibqp); 924 int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 926 int c4iw_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, 958 int c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 960 int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
H A D | qp.c | 619 schp = to_c4iw_cq(qhp->ibqp.send_cq); 649 rchp = to_c4iw_cq(qhp->ibqp.recv_cq); 775 int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, argument 790 qhp = to_c4iw_qp(ibqp); 915 int c4iw_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, argument 926 qhp = to_c4iw_qp(ibqp); 1223 rchp = to_c4iw_cq(qhp->ibqp.recv_cq); 1224 schp = to_c4iw_cq(qhp->ibqp.send_cq); 1227 if (qhp->ibqp.uobject) { 1392 if (!qhp->ibqp 1913 c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 1958 c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_qp_init_attr *init_attr) argument [all...] |
/freebsd-12-stable/contrib/ofed/libmlx4/ |
H A D | verbs.c | 956 int mlx4_query_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, argument 961 struct mlx4_qp *qp = to_mqp(ibqp); 964 ret = ibv_cmd_query_qp(ibqp, attr, attr_mask, init_attr, &cmd, sizeof cmd); 1085 int mlx4_destroy_qp(struct ibv_qp *ibqp) argument 1087 struct mlx4_qp *qp = to_mqp(ibqp); 1090 pthread_mutex_lock(&to_mctx(ibqp->context)->qp_table_mutex); 1091 ret = ibv_cmd_destroy_qp(ibqp); 1093 pthread_mutex_unlock(&to_mctx(ibqp->context)->qp_table_mutex); 1097 mlx4_lock_cqs(ibqp); 1099 if (ibqp [all...] |
H A D | mlx4.h | 335 static inline struct mlx4_qp *to_mqp(struct ibv_qp *ibqp) argument 337 return container_of(container_of(ibqp, struct verbs_qp, qp), 439 int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 441 int mlx4_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|
H A D | qp.c | 213 int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, argument 217 struct mlx4_qp *qp = to_mqp(ibqp); 234 if (wq_overflow(&qp->sq, nreq, to_mcq(ibqp->send_cq))) { 271 switch (ibqp->qp_type) { 469 ctx = to_mctx(ibqp->context); 512 int mlx4_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, argument 515 struct mlx4_qp *qp = to_mqp(ibqp); 529 if (wq_overflow(&qp->rq, nreq, to_mcq(ibqp->recv_cq))) {
|
/freebsd-12-stable/contrib/ofed/libcxgb4/ |
H A D | verbs.c | 580 int c4iw_modify_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, argument 584 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); 587 PDBG("%s enter qp %p new state %d\n", __func__, ibqp, attr_mask & IBV_QP_STATE ? attr->qp_state : -1); 591 ret = ibv_cmd_modify_qp(ibqp, attr, attr_mask, &cmd, sizeof cmd); 598 int c4iw_destroy_qp(struct ibv_qp *ibqp) argument 601 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); 602 struct c4iw_dev *dev = to_c4iw_dev(ibqp->context->device); 604 PDBG("%s enter qp %p\n", __func__, ibqp); 609 ret = ibv_cmd_destroy_qp(ibqp); 632 int c4iw_query_qp(struct ibv_qp *ibqp, struc argument 657 c4iw_attach_mcast(struct ibv_qp *ibqp, const union ibv_gid *gid, uint16_t lid) argument 671 c4iw_detach_mcast(struct ibv_qp *ibqp, const union ibv_gid *gid, uint16_t lid) argument [all...] |
H A D | libcxgb4.h | 146 static inline struct c4iw_qp *to_c4iw_qp(struct ibv_qp *ibqp) argument 217 int c4iw_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 219 int c4iw_post_receive(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|
H A D | qp.c | 309 int c4iw_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, argument 322 qhp = to_c4iw_qp(ibqp); 417 int c4iw_post_receive(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, argument 427 qhp = to_c4iw_qp(ibqp);
|
/freebsd-12-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_qp.c | 134 struct ib_device *ibdev = qp->ibqp.device; 146 qp->ibqp.qp_type); 187 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; local 195 if (ibqp->event_handler) { 196 event.device = ibqp->device; 197 event.element.qp = ibqp; 228 ibqp->event_handler(&event, ibqp->qp_context); 1859 return to_mpd(qp->ibqp 2562 __mlx5_ib_modify_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state) argument 2842 mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 3805 mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument 4140 mlx5_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument 4480 mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr) argument [all...] |
H A D | mlx5_ib_gsi.c | 38 struct ib_qp ibqp; member in struct:mlx5_ib_gsi_qp 59 return container_of(qp, struct mlx5_ib_gsi_qp, ibqp); 70 struct ib_cq *gsi_cq = gsi->ibqp.send_cq; 104 wr->wc.qp = &gsi->ibqp; 163 gsi->ibqp.qp_num = 1; 194 return &gsi->ibqp; 447 .qp = &gsi->ibqp,
|
H A D | mlx5_ib.h | 331 struct ib_qp ibqp; member in struct:mlx5_ib_qp 746 static inline struct mlx5_ib_qp *to_mqp(struct ib_qp *ibqp) argument 748 return container_of(ibqp, struct mlx5_ib_qp, ibqp); 811 int mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 813 int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 816 int mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 818 int mlx5_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr,
|
H A D | mlx5_ib_cq.c | 165 enum rdma_link_layer ll = rdma_port_get_link_layer(qp->ibqp.device, 1); 166 struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); 174 if (qp->ibqp.srq || qp->ibqp.xrcd) { 177 if (qp->ibqp.xrcd) { 182 srq = to_msrq(qp->ibqp.srq); 227 if (unlikely(is_qp1(qp->ibqp.qp_type))) { 457 wc->qp = &qp->ibqp; 485 wc->qp = &qp->ibqp; 558 if (!*cur_qp || (qpn != (*cur_qp)->ibqp [all...] |
/freebsd-12-stable/contrib/ofed/libmlx5/ |
H A D | qp.c | 358 static inline int copy_eth_inline_headers(struct ibv_qp *ibqp, argument 366 FILE *fp = to_mctx(ibqp->context)->dbg_fp; 612 static inline int _mlx5_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, argument 616 struct mlx5_qp *qp = to_mqp(ibqp); 636 FILE *fp = to_mctx(ibqp->context)->dbg_fp; /* The compiler ignores in non-debug mode */ 685 switch (ibqp->qp_type) { 733 ibqp->qp_num, &seg, &size); 747 &bind_info, ibqp->qp_num, 778 ibqp->qp_num, &seg, &size); 792 &bind_info, ibqp 969 mlx5_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, struct ibv_send_wr **bad_wr) argument 1134 mlx5_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, struct ibv_recv_wr **bad_wr) argument [all...] |
H A D | verbs.c | 1238 struct ibv_qp *ibqp; local 1255 ibqp = (struct ibv_qp *)&qp->verbs_qp; 1256 qp->ibv_qp = ibqp; 1267 return ibqp; 1361 ret = mlx5_store_qp(ctx, ibqp->qp_num, qp); 1385 usr_idx : ibqp->qp_num; 1387 return ibqp; 1390 ibv_cmd_destroy_qp(ibqp); 1471 int mlx5_destroy_qp(struct ibv_qp *ibqp) argument 1473 struct mlx5_qp *qp = to_mqp(ibqp); 1520 mlx5_query_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, int attr_mask, struct ibv_qp_init_attr *init_attr) argument [all...] |
H A D | mlx5.h | 507 static inline struct mlx5_qp *to_mqp(struct ibv_qp *ibqp) argument 509 struct verbs_qp *vqp = (struct verbs_qp *)ibqp; 635 int mlx5_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 637 int mlx5_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|
/freebsd-12-stable/sys/ofed/include/rdma/ |
H A D | rdma_vt.h | 424 static inline struct rvt_qp *ibqp_to_rvtqp(struct ib_qp *ibqp) argument 426 return container_of(ibqp, struct rvt_qp, ibqp); 481 if (qp->ibqp.qp_num == qpn)
|
/freebsd-12-stable/contrib/ofed/libibverbs/ |
H A D | driver.h | 261 int ibv_cmd_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 263 int ibv_cmd_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|