/freebsd-10-stable/sys/ofed/drivers/infiniband/hw/mthca/ |
H A D | mthca_mcg.c | 127 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 129 struct mthca_dev *dev = to_mdev(ibqp->device); 176 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1U << 31))) { 178 ibqp->qp_num); 182 mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1U << 31)); 234 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 236 struct mthca_dev *dev = to_mdev(ibqp->device); 263 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1U << 31))) 270 mthca_err(dev, "QP %06x not found in MGM\n", ibqp->qp_num);
|
H A D | mthca_provider.h | 261 struct ib_qp ibqp; member in struct:mthca_qp 333 static inline struct mthca_qp *to_mqp(struct ib_qp *ibqp) argument 335 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); 427 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, argument 430 struct mthca_dev *dev = to_mdev(ibqp->device); 431 struct mthca_qp *qp = to_mqp(ibqp); 549 static int __mthca_modify_qp(struct ib_qp *ibqp, argument 553 struct mthca_dev *dev = to_mdev(ibqp->device); 554 struct mthca_qp *qp = to_mqp(ibqp); 852 mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 1616 mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument 1819 mthca_tavor_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument 1930 mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument 2170 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 | 529 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 531 int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, 533 int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 535 int mthca_tavor_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, 537 int mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 539 int mthca_arbel_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, 573 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); 574 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
|
/freebsd-10-stable/contrib/ofed/libmlx4/src/ |
H A D | verbs.c | 563 int mlx4_query_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, argument 568 struct mlx4_qp *qp = to_mqp(ibqp); 571 ret = ibv_cmd_query_qp(ibqp, attr, attr_mask, init_attr, &cmd, sizeof cmd); 646 int mlx4_destroy_qp(struct ibv_qp *ibqp) argument 648 struct mlx4_qp *qp = to_mqp(ibqp); 651 pthread_mutex_lock(&to_mctx(ibqp->context)->qp_table_mutex); 652 ret = ibv_cmd_destroy_qp(ibqp); 654 pthread_mutex_unlock(&to_mctx(ibqp->context)->qp_table_mutex); 658 mlx4_lock_cqs(ibqp); 660 __mlx4_cq_clean(to_mcq(ibqp [all...] |
H A D | qp.c | 189 int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, argument 193 struct mlx4_qp *qp = to_mqp(ibqp); 247 switch (ibqp->qp_type) { 402 ctx = to_mctx(ibqp->context); 445 int mlx4_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, argument 448 struct mlx4_qp *qp = to_mqp(ibqp);
|
H A D | mlx4.h | 333 static inline struct mlx4_qp *to_mqp(struct ibv_qp *ibqp) argument 411 int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 413 int mlx4_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|
/freebsd-10-stable/sys/dev/cxgb/ulp/iw_cxgb/ |
H A D | iw_cxgb_ev.c | 128 event.element.qp = &qhp->ibqp; 130 if (qhp->ibqp.event_handler) 131 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); 157 iwch_qp_add_ref(&qhp->ibqp); 260 iwch_qp_rem_ref(&qhp->ibqp);
|
H A D | iw_cxgb_provider.h | 157 struct ib_qp ibqp; member in struct:iwch_qp 175 to_iwch_qp(struct ib_qp *ibqp) argument 177 return container_of(ibqp, struct iwch_qp, ibqp); 329 int iwch_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 331 int iwch_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr,
|
H A D | iw_cxgb_provider.c | 104 static int iwch_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 110 iwch_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 863 iwch_destroy_qp(&qhp->ibqp); 870 iwch_destroy_qp(&qhp->ibqp); 887 iwch_destroy_qp(&qhp->ibqp); 899 qhp->ibqp.qp_num = qhp->wq.qpid; 906 return &qhp->ibqp; 909 static int iwch_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, argument 917 CTR2(KTR_IW_CXGB, "%s ib_qp %p", __FUNCTION__, ibqp); 928 qhp = to_iwch_qp(ibqp); [all...] |
/freebsd-10-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | ev.c | 76 event.element.qp = &qhp->ibqp; 77 if (qhp->ibqp.event_handler) 78 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); 120 c4iw_qp_add_ref(&qhp->ibqp); 185 c4iw_qp_rem_ref(&qhp->ibqp);
|
H A D | iw_cxgbe.h | 438 struct ib_qp ibqp; member in struct:c4iw_qp 451 static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp) argument 453 return container_of(ibqp, struct c4iw_qp, ibqp); 874 int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 876 int c4iw_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, 920 int c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 922 int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
H A D | qp.c | 585 schp = to_c4iw_cq(qhp->ibqp.send_cq); 615 rchp = to_c4iw_cq(qhp->ibqp.recv_cq); 638 int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, argument 652 qhp = to_c4iw_qp(ibqp); 755 int c4iw_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, argument 766 qhp = to_c4iw_qp(ibqp); 1049 if (qhp->ibqp.uobject) { 1209 if (!qhp->ibqp.uobject) 1348 if (qhp->ibqp.uobject) 1358 if (qhp->ibqp 1700 c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 1745 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-10-stable/sys/ofed/drivers/infiniband/hw/mlx4/ |
H A D | 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); 1185 if (qp->ibqp 1747 __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 2264 mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 2989 mlx4_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument 3327 mlx4_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument 3481 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 | 286 struct ib_qp ibqp; member in struct:mlx4_ib_qp 607 static inline struct mlx4_ib_qp *to_mqp(struct ib_qp *ibqp) argument 609 return container_of(ibqp, struct mlx4_ib_qp, ibqp); 686 int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 688 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 690 int mlx4_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 692 int mlx4_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr,
|
/freebsd-10-stable/contrib/ofed/libmthca/src/ |
H A D | qp.c | 101 int mthca_tavor_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, argument 104 struct mthca_qp *qp = to_mqp(ibqp); 152 switch (ibqp->qp_type) { 322 doorbell[1] = htonl((ibqp->qp_num << 8) | size0); 324 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_SEND_DOORBELL); 334 int mthca_tavor_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, argument 337 struct mthca_qp *qp = to_mqp(ibqp); 405 doorbell[1] = htonl(ibqp->qp_num << 8); 413 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_RECV_DOORBELL); 424 doorbell[1] = htonl((ibqp 442 mthca_arbel_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, struct ibv_send_wr **bad_wr) argument 707 mthca_arbel_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, struct ibv_recv_wr **bad_wr) argument [all...] |
H A D | mthca.h | 278 static inline struct mthca_qp *to_mqp(struct ibv_qp *ibqp) argument 355 int mthca_tavor_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 357 int mthca_tavor_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, 359 int mthca_arbel_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 361 int mthca_arbel_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|
/freebsd-10-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_qp.c | 39 static int __mlx5_ib_modify_qp(struct ib_qp *ibqp, 128 struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); 164 struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); 190 if (__mlx5_ib_modify_qp(&qp->ibqp, &qp_attr, 0, IB_QPS_SQD, IB_QPS_RTS)) 212 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; local 224 if (ibqp->event_handler) { 225 event.device = ibqp->device; 226 event.element.qp = ibqp; 257 ibqp 1808 __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 2076 mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata) argument 2469 mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr) argument 2701 mlx5_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr) argument 2848 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.h | 206 struct ib_qp ibqp; member in struct:mlx5_ib_qp 617 static inline struct mlx5_ib_qp *to_mqp(struct ib_qp *ibqp) argument 619 return container_of(ibqp, struct mlx5_ib_qp, ibqp); 674 int mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 676 int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 679 int mlx5_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 681 int mlx5_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr,
|
H A D | mlx5_ib_cq.c | 167 struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); 176 if (qp->ibqp.srq || qp->ibqp.xrcd) { 179 if (qp->ibqp.xrcd) { 184 srq = to_msrq(qp->ibqp.srq); 395 wc->qp = &qp->ibqp; 423 wc->qp = &qp->ibqp; 501 if (!*cur_qp || (qpn != (*cur_qp)->ibqp.qp_num)) { 516 wc->qp = &(*cur_qp)->ibqp; 559 if ((*cur_qp)->ibqp [all...] |
H A D | mlx5_ib_main.c | 1192 static int mlx5_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 1194 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); 1197 if (ibqp->qp_type == IB_QPT_RAW_PACKET) 1200 err = mlx5_core_attach_mcg(dev->mdev, gid, ibqp->qp_num); 1203 ibqp->qp_num, gid->raw); 1208 static int mlx5_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) argument 1210 struct mlx5_ib_dev *dev = to_mdev(ibqp->device); 1213 if (ibqp->qp_type == IB_QPT_RAW_PACKET) 1216 err = mlx5_core_detach_mcg(dev->mdev, gid, ibqp->qp_num); 1219 ibqp [all...] |
/freebsd-10-stable/contrib/ofed/libcxgb4/src/ |
H A D | verbs.c | 584 int c4iw_modify_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, argument 588 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); 591 PDBG("%s enter qp %p new state %d\n", __func__, ibqp, attr_mask & IBV_QP_STATE ? attr->qp_state : -1); 595 ret = ibv_cmd_modify_qp(ibqp, attr, attr_mask, &cmd, sizeof cmd); 602 int c4iw_destroy_qp(struct ibv_qp *ibqp) argument 605 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); 606 struct c4iw_dev *dev = to_c4iw_dev(ibqp->context->device); 608 PDBG("%s enter qp %p\n", __func__, ibqp); 613 ret = ibv_cmd_destroy_qp(ibqp); 636 int c4iw_query_qp(struct ibv_qp *ibqp, struc argument 661 c4iw_attach_mcast(struct ibv_qp *ibqp, const union ibv_gid *gid, uint16_t lid) argument 675 c4iw_detach_mcast(struct ibv_qp *ibqp, const union ibv_gid *gid, uint16_t lid) argument [all...] |
H A D | libcxgb4.h | 141 static inline struct c4iw_qp *to_c4iw_qp(struct ibv_qp *ibqp) argument 212 int c4iw_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 214 int c4iw_post_receive(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|
H A D | qp.c | 314 int c4iw_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, argument 327 qhp = to_c4iw_qp(ibqp); 414 int c4iw_post_receive(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, argument 424 qhp = to_c4iw_qp(ibqp);
|
/freebsd-10-stable/contrib/ofed/libibverbs/include/infiniband/ |
H A D | driver.h | 128 int ibv_cmd_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 130 int ibv_cmd_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|