/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_qp.c | 297 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx4_ib_qp_event() local 336 ibqp->event_handler(&event, ibqp->qp_context); in mlx4_ib_qp_event() 1070 qp->ibqp.srq ? to_msrq(qp->ibqp.srq): NULL); in destroy_qp_common() 1246 return &qp->ibqp; in _mlx4_ib_create_qp() 1253 struct ib_qp *ibqp; in mlx4_ib_create_qp() local 1280 return ibqp; in mlx4_ib_create_qp() 1673 if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI) in __mlx4_ib_modify_qp() 1887 if (ibqp->srq) in __mlx4_ib_modify_qp() 1918 if (ibqp->srq) in __mlx4_ib_modify_qp() 1926 (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI || in __mlx4_ib_modify_qp() [all …]
|
H A D | mlx4_ib.h | 294 struct ib_qp ibqp; member 679 static inline struct mlx4_ib_qp *to_mqp(struct ib_qp *ibqp) in to_mqp() argument 681 return container_of(ibqp, struct mlx4_ib_qp, ibqp); in to_mqp() 763 int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 765 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 767 int mlx4_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, 769 int mlx4_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr,
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_qp.c | 261 event.element.qp = &qp->ibqp; in mthca_qp_event() 262 if (qp->ibqp.event_handler) in mthca_qp_event() 263 qp->ibqp.event_handler(&event, qp->ibqp.qp_context); in mthca_qp_event() 614 if (qp->ibqp.uobject) in __mthca_modify_qp() 747 if (ibqp->srq) in __mthca_modify_qp() 772 if (ibqp->srq) in __mthca_modify_qp() 824 qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); in __mthca_modify_qp() 825 if (qp->ibqp.send_cq != qp->ibqp.recv_cq) in __mthca_modify_qp() 1461 if (!qp->ibqp.uobject) { in mthca_free_qp() 1463 qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); in mthca_free_qp() [all …]
|
H A D | mthca_mcg.c | 120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument 122 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_multicast_attach() 165 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) { in mthca_multicast_attach() 167 ibqp->qp_num); in mthca_multicast_attach() 171 mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1 << 31)); in mthca_multicast_attach() 214 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_detach() argument 216 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_multicast_detach() 242 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) in mthca_multicast_detach() 249 mthca_err(dev, "QP %06x not found in MGM\n", ibqp->qp_num); in mthca_multicast_detach()
|
H A D | mthca_provider.h | 264 struct ib_qp ibqp; member 336 static inline struct mthca_qp *to_mqp(struct ib_qp *ibqp) in to_mqp() argument 338 return container_of(ibqp, struct mthca_qp, ibqp); in to_mqp()
|
H A D | mthca_dev.h | 532 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, 534 int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, 536 int mthca_tavor_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, 538 int mthca_tavor_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, 540 int mthca_arbel_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, 542 int mthca_arbel_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, 578 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); 579 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | verbs.c | 974 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_query_qp() 1100 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_destroy_qp() 1104 ret = ibv_cmd_destroy_qp(ibqp); in mlx4_destroy_qp() 1110 mlx4_lock_cqs(ibqp); in mlx4_destroy_qp() 1112 if (ibqp->recv_cq) in mlx4_destroy_qp() 1113 __mlx4_cq_clean(to_mcq(ibqp->recv_cq), ibqp->qp_num, in mlx4_destroy_qp() 1114 ibqp->srq ? to_msrq(ibqp->srq) : NULL); in mlx4_destroy_qp() 1115 if (ibqp->send_cq && ibqp->send_cq != ibqp->recv_cq) in mlx4_destroy_qp() 1116 __mlx4_cq_clean(to_mcq(ibqp->send_cq), ibqp->qp_num, NULL); in mlx4_destroy_qp() 1119 mlx4_clear_qp(to_mctx(ibqp->context), ibqp->qp_num); in mlx4_destroy_qp() [all …]
|
H A D | qp.c | 213 int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, in mlx4_post_send() argument 217 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_post_send() 234 if (wq_overflow(&qp->sq, nreq, to_mcq(ibqp->send_cq))) { in mlx4_post_send() 271 switch (ibqp->qp_type) { in mlx4_post_send() 469 ctx = to_mctx(ibqp->context); in mlx4_post_send() 512 int mlx4_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, in mlx4_post_recv() argument 515 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_post_recv() 529 if (wq_overflow(&qp->rq, nreq, to_mcq(ibqp->recv_cq))) { in mlx4_post_recv()
|
H A D | mlx4.h | 335 static inline struct mlx4_qp *to_mqp(struct ibv_qp *ibqp) in to_mqp() argument 337 return container_of(container_of(ibqp, struct verbs_qp, qp), in to_mqp() 440 int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, 442 int mlx4_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_qp.c | 148 qp->ibqp.qp_type); in mlx5_ib_read_user_wqe() 189 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx5_ib_qp_event() local 199 event.element.qp = ibqp; in mlx5_ib_qp_event() 230 ibqp->event_handler(&event, ibqp->qp_context); in mlx5_ib_qp_event() 2025 get_cqs(qp->ibqp.qp_type, qp->ibqp.send_cq, qp->ibqp.recv_cq, in destroy_qp_common() 2040 qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); in destroy_qp_common() 2187 return &qp->ibqp; in mlx5_ib_create_qp() 2811 get_cqs(qp->ibqp.qp_type, qp->ibqp.send_cq, qp->ibqp.recv_cq, in __mlx5_ib_modify_qp() 2938 ibqp->srq ? to_msrq(ibqp->srq) : NULL); in __mlx5_ib_modify_qp() 3922 qp = to_mqp(ibqp); in mlx5_ib_post_send() [all …]
|
H A D | mlx5_ib_gsi.c | 39 struct ib_qp ibqp; member 60 return container_of(qp, struct mlx5_ib_gsi_qp, ibqp); in gsi_qp() 71 struct ib_cq *gsi_cq = gsi->ibqp.send_cq; in generate_completions() 105 wr->wc.qp = &gsi->ibqp; in handle_single_completion() 164 gsi->ibqp.qp_num = 1; in mlx5_ib_gsi_create_qp() 195 return &gsi->ibqp; in mlx5_ib_gsi_create_qp() 448 .qp = &gsi->ibqp, in mlx5_ib_gsi_silent_drop()
|
H A D | mlx5_ib_cq.c | 168 struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); in handle_responder() 176 if (qp->ibqp.srq || qp->ibqp.xrcd) { in handle_responder() 179 if (qp->ibqp.xrcd) { in handle_responder() 184 srq = to_msrq(qp->ibqp.srq); in handle_responder() 228 if (unlikely(is_qp1(qp->ibqp.qp_type))) { in handle_responder() 460 wc->qp = &qp->ibqp; in sw_send_comp() 488 wc->qp = &qp->ibqp; in sw_recv_comp() 561 if (!*cur_qp || (qpn != (*cur_qp)->ibqp.qp_num)) { in mlx5_poll_one() 570 wc->qp = &(*cur_qp)->ibqp; in mlx5_poll_one() 609 if ((*cur_qp)->ibqp.srq) { in mlx5_poll_one() [all …]
|
/freebsd/contrib/ofed/libcxgb4/ |
H A D | verbs.c | 598 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); in c4iw_modify_qp() 612 int c4iw_destroy_qp(struct ibv_qp *ibqp) in c4iw_destroy_qp() argument 615 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); in c4iw_destroy_qp() 616 struct c4iw_dev *dev = to_c4iw_dev(ibqp->context->device); in c4iw_destroy_qp() 618 PDBG("%s enter qp %p\n", __func__, ibqp); in c4iw_destroy_qp() 623 ret = ibv_cmd_destroy_qp(ibqp); in c4iw_destroy_qp() 651 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); in c4iw_query_qp() 675 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); in c4iw_attach_mcast() 681 ret = ibv_cmd_attach_mcast(ibqp, gid, lid); in c4iw_attach_mcast() 689 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); in c4iw_detach_mcast() [all …]
|
H A D | libcxgb4.h | 146 static inline struct c4iw_qp *to_c4iw_qp(struct ibv_qp *ibqp) in to_c4iw_qp() 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,
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | ev.c | 148 event.element.qp = &qhp->ibqp; in post_qp_event() 149 if (qhp->ibqp.event_handler) in post_qp_event() 150 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); in post_qp_event() 192 c4iw_qp_add_ref(&qhp->ibqp); in c4iw_ev_dispatch() 257 c4iw_qp_rem_ref(&qhp->ibqp); in c4iw_ev_dispatch()
|
H A D | iw_cxgbe.h | 485 struct ib_qp ibqp; member 500 static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp) in to_c4iw_qp() argument 502 return container_of(ibqp, struct c4iw_qp, ibqp); in to_c4iw_qp() 924 int c4iw_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, 926 int c4iw_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, 957 int c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 959 int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | qp.c | 366 FILE *fp = to_mctx(ibqp->context)->dbg_fp; in copy_eth_inline_headers() 616 struct mlx5_qp *qp = to_mqp(ibqp); in _mlx5_post_send() 685 switch (ibqp->qp_type) { in _mlx5_post_send() 733 ibqp->qp_num, &seg, &size); in _mlx5_post_send() 747 &bind_info, ibqp->qp_num, in _mlx5_post_send() 778 ibqp->qp_num, &seg, &size); in _mlx5_post_send() 792 &bind_info, ibqp->qp_num, in _mlx5_post_send() 933 ctx = to_mctx(ibqp->context); in _mlx5_post_send() 987 return _mlx5_post_send(ibqp, wr, bad_wr); in mlx5_post_send() 1137 struct mlx5_qp *qp = to_mqp(ibqp); in mlx5_post_recv() [all …]
|
H A D | verbs.c | 1254 struct ibv_qp *ibqp; in create_qp() local 1272 qp->ibv_qp = ibqp; in create_qp() 1283 return ibqp; in create_qp() 1403 usr_idx : ibqp->qp_num; in create_qp() 1405 return ibqp; in create_qp() 1408 ibv_cmd_destroy_qp(ibqp); in create_qp() 1511 ret = ibv_cmd_destroy_qp(ibqp); in mlx5_destroy_qp() 1518 mlx5_lock_cqs(ibqp); in mlx5_destroy_qp() 1521 ibqp->srq ? to_msrq(ibqp->srq) : NULL); in mlx5_destroy_qp() 1522 if (ibqp->send_cq != ibqp->recv_cq) in mlx5_destroy_qp() [all …]
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_cm.h | 77 extern int qlnxr_gsi_post_recv(struct ib_qp *ibqp, 81 extern int qlnxr_gsi_post_send(struct ib_qp *ibqp,
|
H A D | qlnxr_cm.c | 410 qp->ibqp.qp_num = 1; in qlnxr_create_gsi_qp() 436 QL_DPRINT12(dev->ha, "exit &qp->ibqp = %p\n", &qp->ibqp); in qlnxr_create_gsi_qp() 438 return &qp->ibqp; in qlnxr_create_gsi_qp() 669 qlnxr_gsi_post_send(struct ib_qp *ibqp, in qlnxr_gsi_post_send() argument 674 struct qlnxr_qp *qp = get_qlnxr_qp(ibqp); in qlnxr_gsi_post_send() 743 qlnxr_gsi_post_recv(struct ib_qp *ibqp, in qlnxr_gsi_post_recv() argument 747 struct qlnxr_dev *dev = get_qlnxr_dev((ibqp->device)); in qlnxr_gsi_post_recv() 748 struct qlnxr_qp *qp = get_qlnxr_qp(ibqp); in qlnxr_gsi_post_recv() 819 wc[i].qp = &qp->ibqp; in qlnxr_gsi_poll_cq() 844 wc[i].qp = &qp->ibqp; in qlnxr_gsi_poll_cq()
|
H A D | qlnxr_verbs.c | 3120 return &qp->ibqp; in qlnxr_create_qp() 3384 ibqp->qp_type, in qlnxr_modify_qp() 4268 ibqp, wr, bad_wr); in qlnxr_post_send() 4597 ibqp, wr, bad_wr); in qlnxr_post_send() 4785 wc->qp = &qp->ibqp; in process_req() 5000 wc->qp = &qp->ibqp; in __process_resp_one() 5029 wc->qp = &qp->ibqp; in process_resp_one_srq() 5085 wc->qp = &qp->ibqp; in process_resp_flush() 5259 wc->qp = &qp->ibqp; in qlnxr_poll_cq() 5920 struct ib_qp *ibqp = &(ep->qp->ibqp); in qlnxr_iw_qp_event() local [all …]
|
/freebsd/sys/dev/irdma/ |
H A D | irdma_main.h | 452 static inline struct irdma_qp *to_iwqp(struct ib_qp *ibqp) in to_iwqp() argument 454 return container_of(ibqp, struct irdma_qp, ibqp); in to_iwqp() 520 void irdma_qp_add_ref(struct ib_qp *ibqp); 521 void irdma_qp_rem_ref(struct ib_qp *ibqp); 550 int irdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, 552 int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
H A D | irdma_verbs.c | 527 ukinfo->qp_id = iwqp->ibqp.qp_num; in irdma_setup_kmode_qp() 674 irdma_qp_add_ref(&iwqp->ibqp); in irdma_sched_qp_flush_work() 678 irdma_qp_rem_ref(&iwqp->ibqp); in irdma_sched_qp_flush_work() 690 irdma_qp_rem_ref(&iwqp->ibqp); in irdma_flush_worker() 866 ibqp->qp_num, in irdma_modify_qp_roce() 976 iwqp->ibqp.qp_type, attr_mask)) { in irdma_modify_qp_roce() 2441 irdma_post_send(struct ib_qp *ibqp, in irdma_post_send() argument 2454 iwqp = to_iwqp(ibqp); in irdma_post_send() 2618 irdma_post_recv(struct ib_qp *ibqp, in irdma_post_recv() argument 3123 mcg_info.qp_id = iwqp->ibqp.qp_num; in irdma_attach_mcast() [all …]
|
H A D | irdma_utils.c | 672 irdma_qp_add_ref(struct ib_qp *ibqp) in irdma_qp_add_ref() argument 674 struct irdma_qp *iwqp = to_iwqp(ibqp); in irdma_qp_add_ref() 680 irdma_qp_rem_ref(struct ib_qp *ibqp) in irdma_qp_rem_ref() argument 682 struct irdma_qp *iwqp = to_iwqp(ibqp); in irdma_qp_rem_ref() 883 irdma_qp_rem_ref(&iwqp->ibqp); in irdma_terminate_timeout() 896 irdma_qp_add_ref(&iwqp->ibqp); in irdma_terminate_start_timer() 916 irdma_qp_rem_ref(&iwqp->ibqp); in irdma_terminate_del_timer() 2201 if (!iwqp->ibqp.event_handler) in irdma_ib_qp_event() 2215 ibevent.device = iwqp->ibqp.device; in irdma_ib_qp_event() 2216 ibevent.element.qp = &iwqp->ibqp; in irdma_ib_qp_event() [all …]
|
/freebsd/sys/ofed/include/rdma/ |
H A D | rdma_vt.h | 422 static inline struct rvt_qp *ibqp_to_rvtqp(struct ib_qp *ibqp) in ibqp_to_rvtqp() argument 424 return container_of(ibqp, struct rvt_qp, ibqp); in ibqp_to_rvtqp() 479 if (qp->ibqp.qp_num == qpn) in rvt_lookup_qpn()
|