| /NextBSD/sys/ofed/drivers/infiniband/hw/mthca/ |
| HD | mthca_qp.c | 260 event.element.qp = &qp->ibqp; in mthca_qp_event() 261 if (qp->ibqp.event_handler) in mthca_qp_event() 262 qp->ibqp.event_handler(&event, qp->ibqp.qp_context); in mthca_qp_event() 427 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, in mthca_query_qp() argument 430 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_query_qp() 431 struct mthca_qp *qp = to_mqp(ibqp); in mthca_query_qp() 549 static int __mthca_modify_qp(struct ib_qp *ibqp, in __mthca_modify_qp() argument 553 struct mthca_dev *dev = to_mdev(ibqp->device); in __mthca_modify_qp() 554 struct mthca_qp *qp = to_mqp(ibqp); in __mthca_modify_qp() 616 if (qp->ibqp.uobject) in __mthca_modify_qp() [all …]
|
| HD | mthca_mcg.c | 127 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument 129 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_multicast_attach() 176 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1U << 31))) { in mthca_multicast_attach() 178 ibqp->qp_num); in mthca_multicast_attach() 182 mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1U << 31)); in mthca_multicast_attach() 234 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_detach() argument 236 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_multicast_detach() 263 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1U << 31))) in mthca_multicast_detach() 270 mthca_err(dev, "QP %06x not found in MGM\n", ibqp->qp_num); in mthca_multicast_detach()
|
| HD | mthca_provider.h | 261 struct ib_qp ibqp; member 333 static inline struct mthca_qp *to_mqp(struct ib_qp *ibqp) in to_mqp() argument 335 return container_of(ibqp, struct mthca_qp, ibqp); in to_mqp()
|
| HD | 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);
|
| /NextBSD/contrib/ofed/libmlx4/src/ |
| HD | verbs.c | 563 int mlx4_query_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, in mlx4_query_qp() argument 568 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_query_qp() 571 ret = ibv_cmd_query_qp(ibqp, attr, attr_mask, init_attr, &cmd, sizeof cmd); in mlx4_query_qp() 646 int mlx4_destroy_qp(struct ibv_qp *ibqp) in mlx4_destroy_qp() argument 648 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_destroy_qp() 651 pthread_mutex_lock(&to_mctx(ibqp->context)->qp_table_mutex); in mlx4_destroy_qp() 652 ret = ibv_cmd_destroy_qp(ibqp); in mlx4_destroy_qp() 654 pthread_mutex_unlock(&to_mctx(ibqp->context)->qp_table_mutex); in mlx4_destroy_qp() 658 mlx4_lock_cqs(ibqp); in mlx4_destroy_qp() 660 __mlx4_cq_clean(to_mcq(ibqp->recv_cq), ibqp->qp_num, in mlx4_destroy_qp() [all …]
|
| HD | qp.c | 189 int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, in mlx4_post_send() argument 193 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_post_send() 247 switch (ibqp->qp_type) { in mlx4_post_send() 402 ctx = to_mctx(ibqp->context); in mlx4_post_send() 445 int mlx4_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, in mlx4_post_recv() argument 448 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_post_recv()
|
| HD | mlx4.h | 333 static inline struct mlx4_qp *to_mqp(struct ibv_qp *ibqp) in to_mqp() 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,
|
| /NextBSD/sys/ofed/drivers/infiniband/hw/mlx4/ |
| HD | qp.c | 255 if (qp->ibqp.qp_type == IB_QPT_UD) { in post_nop_wqe() 259 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn); in post_nop_wqe() 296 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx4_ib_qp_event() local 301 if (ibqp->event_handler) { in mlx4_ib_qp_event() 302 event.device = ibqp->device; in mlx4_ib_qp_event() 303 event.element.qp = ibqp; in mlx4_ib_qp_event() 335 ibqp->event_handler(&event, ibqp->qp_context); in mlx4_ib_qp_event() 1185 if (qp->ibqp.qp_type == IB_QPT_XRC_TGT) in get_pd() 1186 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd() 1188 return to_mpd(qp->ibqp.pd); in get_pd() [all …]
|
| HD | mlx4_ib.h | 302 struct ib_qp ibqp; member 653 static inline struct mlx4_ib_qp *to_mqp(struct ib_qp *ibqp) in to_mqp() argument 655 return container_of(ibqp, struct mlx4_ib_qp, ibqp); in to_mqp() 739 int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 741 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 743 int mlx4_ib_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 745 int mlx4_ib_post_recv(struct ib_qp *ibqp, struct ib_recv_wr *wr,
|
| HD | main.c | 983 static int add_gid_entry(struct ib_qp *ibqp, union ib_gid *gid) in add_gid_entry() argument 985 struct mlx4_ib_qp *mqp = to_mqp(ibqp); in add_gid_entry() 986 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); in add_gid_entry() 1271 static int del_gid_entry(struct ib_qp *ibqp, union ib_gid *gid) in del_gid_entry() argument 1273 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); in del_gid_entry() 1274 struct mlx4_ib_qp *mqp = to_mqp(ibqp); in del_gid_entry() 1303 static int _mlx4_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid, in _mlx4_ib_mcg_detach() argument 1307 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); in _mlx4_ib_mcg_detach() 1308 struct mlx4_ib_qp *mqp = to_mqp(ibqp); in _mlx4_ib_mcg_detach() 1337 (ibqp->qp_type == IB_QPT_RAW_PACKET) ? in _mlx4_ib_mcg_detach() [all …]
|
| /NextBSD/contrib/ofed/libmthca/src/ |
| HD | qp.c | 101 int mthca_tavor_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, in mthca_tavor_post_send() argument 104 struct mthca_qp *qp = to_mqp(ibqp); in mthca_tavor_post_send() 152 switch (ibqp->qp_type) { in mthca_tavor_post_send() 322 doorbell[1] = htonl((ibqp->qp_num << 8) | size0); in mthca_tavor_post_send() 324 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_SEND_DOORBELL); in mthca_tavor_post_send() 334 int mthca_tavor_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, in mthca_tavor_post_recv() argument 337 struct mthca_qp *qp = to_mqp(ibqp); in mthca_tavor_post_recv() 405 doorbell[1] = htonl(ibqp->qp_num << 8); in mthca_tavor_post_recv() 413 mthca_write64(doorbell, to_mctx(ibqp->context), MTHCA_RECV_DOORBELL); in mthca_tavor_post_recv() 424 doorbell[1] = htonl((ibqp->qp_num << 8) | nreq); in mthca_tavor_post_recv() [all …]
|
| HD | mthca.h | 278 static inline struct mthca_qp *to_mqp(struct ibv_qp *ibqp) in to_mqp() 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,
|
| /NextBSD/sys/dev/cxgbe/iw_cxgbe/ |
| HD | ev.c | 76 event.element.qp = &qhp->ibqp; in post_qp_event() 77 if (qhp->ibqp.event_handler) in post_qp_event() 78 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); in post_qp_event() 120 c4iw_qp_add_ref(&qhp->ibqp); in c4iw_ev_dispatch() 185 c4iw_qp_rem_ref(&qhp->ibqp); in c4iw_ev_dispatch()
|
| HD | iw_cxgbe.h | 428 struct ib_qp ibqp; member 440 static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp) in to_c4iw_qp() argument 442 return container_of(ibqp, struct c4iw_qp, ibqp); in to_c4iw_qp() 846 int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, 848 int c4iw_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, 891 int c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 893 int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
| HD | qp.c | 579 int c4iw_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, in c4iw_post_send() argument 593 qhp = to_c4iw_qp(ibqp); in c4iw_post_send() 694 int c4iw_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, in c4iw_post_receive() argument 705 qhp = to_c4iw_qp(ibqp); in c4iw_post_receive() 982 if (qhp->ibqp.uobject) { in flush_qp() 1133 if (!qhp->ibqp.uobject) in rdma_init() 1268 if (qhp->ibqp.uobject) in c4iw_modify_qp() 1278 if (qhp->ibqp.uobject) in c4iw_modify_qp() 1288 if (qhp->ibqp.uobject) in c4iw_modify_qp() 1616 qhp->ibqp.qp_num = qhp->wq.sq.qid; in c4iw_create_qp() [all …]
|
| /NextBSD/sys/dev/cxgb/ulp/iw_cxgb/ |
| HD | iw_cxgb_ev.c | 128 event.element.qp = &qhp->ibqp; in post_qp_event() 130 if (qhp->ibqp.event_handler) in post_qp_event() 131 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); in post_qp_event() 157 iwch_qp_add_ref(&qhp->ibqp); in iwch_ev_dispatch() 260 iwch_qp_rem_ref(&qhp->ibqp); in iwch_ev_dispatch()
|
| HD | iw_cxgb_provider.h | 157 struct ib_qp ibqp; member 175 to_iwch_qp(struct ib_qp *ibqp) in to_iwch_qp() argument 177 return container_of(ibqp, struct iwch_qp, ibqp); in to_iwch_qp() 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,
|
| HD | iw_cxgb_provider.c | 104 static int iwch_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in iwch_multicast_attach() argument 110 iwch_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in iwch_multicast_detach() argument 872 iwch_destroy_qp(&qhp->ibqp); in iwch_create_qp() 879 iwch_destroy_qp(&qhp->ibqp); in iwch_create_qp() 896 iwch_destroy_qp(&qhp->ibqp); in iwch_create_qp() 908 qhp->ibqp.qp_num = qhp->wq.qpid; in iwch_create_qp() 915 return &qhp->ibqp; in iwch_create_qp() 918 static int iwch_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in iwch_ib_modify_qp() argument 926 CTR2(KTR_IW_CXGB, "%s ib_qp %p", __FUNCTION__, ibqp); in iwch_ib_modify_qp() 937 qhp = to_iwch_qp(ibqp); in iwch_ib_modify_qp()
|
| HD | iw_cxgb_qp.c | 353 int iwch_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr, in iwch_post_send() argument 366 qhp = to_iwch_qp(ibqp); in iwch_post_send() 452 int iwch_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr, in iwch_post_receive() argument 461 qhp = to_iwch_qp(ibqp); in iwch_post_receive() 810 if (qhp->ibqp.uobject) { in flush_qp() 865 if (!qhp->ibqp.uobject) in rdma_init() 996 if (qhp->ibqp.uobject) in iwch_modify_qp()
|
| /NextBSD/contrib/ofed/libcxgb4/src/ |
| HD | verbs.c | 572 int c4iw_modify_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, in c4iw_modify_qp() argument 576 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); in c4iw_modify_qp() 579 …PDBG("%s enter qp %p new state %d\n", __func__, ibqp, attr_mask & IBV_QP_STATE ? attr->qp_state : … in c4iw_modify_qp() 583 ret = ibv_cmd_modify_qp(ibqp, attr, attr_mask, &cmd, sizeof cmd); in c4iw_modify_qp() 590 int c4iw_destroy_qp(struct ibv_qp *ibqp) in c4iw_destroy_qp() argument 593 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); in c4iw_destroy_qp() 594 struct c4iw_dev *dev = to_c4iw_dev(ibqp->context->device); in c4iw_destroy_qp() 596 PDBG("%s enter qp %p\n", __func__, ibqp); in c4iw_destroy_qp() 601 ret = ibv_cmd_destroy_qp(ibqp); in c4iw_destroy_qp() 624 int c4iw_query_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, in c4iw_query_qp() argument [all …]
|
| HD | libcxgb4.h | 136 static inline struct c4iw_qp *to_c4iw_qp(struct ibv_qp *ibqp) in to_c4iw_qp() argument 207 int c4iw_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 209 int c4iw_post_receive(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|
| HD | qp.c | 304 int c4iw_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, in c4iw_post_send() argument 317 qhp = to_c4iw_qp(ibqp); in c4iw_post_send() 406 int c4iw_post_receive(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, in c4iw_post_receive() argument 416 qhp = to_c4iw_qp(ibqp); in c4iw_post_receive()
|
| /NextBSD/contrib/ofed/libmlx4/fixes/ |
| HD | xrc_consolidated_v2.patch | 309 @@ -226,7 +226,7 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 318 @@ -243,6 +243,9 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 321 switch (ibqp->qp_type) { 495 @@ -603,7 +621,7 @@ int mlx4_destroy_qp(struct ibv_qp *ibqp) 496 mlx4_unlock_cqs(ibqp); 497 pthread_mutex_unlock(&to_mctx(ibqp->context)->qp_table_mutex); 499 - if (!ibqp->srq) 500 + if (!ibqp->srq && ibqp->qp_type != IBV_QPT_XRC) 501 mlx4_free_db(to_mctx(ibqp->context), MLX4_DB_TYPE_RQ, qp->db);
|
| HD | rocee_add_support.patch | 48 @@ -284,6 +286,11 @@ int mlx4_post_send(struct ibv_qp *ibqp, 73 @@ -643,12 +643,14 @@ int mlx4_destroy_qp(struct ibv_qp *ibqp)
|
| /NextBSD/contrib/ofed/libibverbs/include/infiniband/ |
| HD | 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,
|