Home
last modified time | relevance | path

Searched refs:ibqp (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_qp.c256 if (qp->ibqp.qp_type == IB_QPT_UD) { in post_nop_wqe()
260 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn); in post_nop_wqe()
297 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx4_ib_qp_event() local
302 if (ibqp->event_handler) { in mlx4_ib_qp_event()
303 event.device = ibqp->device; in mlx4_ib_qp_event()
304 event.element.qp = ibqp; in mlx4_ib_qp_event()
336 ibqp->event_handler(&event, ibqp->qp_context); in mlx4_ib_qp_event()
1000 if (qp->ibqp.qp_type == IB_QPT_XRC_TGT) in get_pd()
1001 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
1003 return to_mpd(qp->ibqp.pd); in get_pd()
[all …]
H A Dmlx4_ib.h294 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 Dmthca_qp.c261 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()
425 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, in mthca_query_qp() argument
428 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_query_qp()
429 struct mthca_qp *qp = to_mqp(ibqp); in mthca_query_qp()
544 static int __mthca_modify_qp(struct ib_qp *ibqp, in __mthca_modify_qp() argument
550 struct mthca_dev *dev = to_mdev(ibqp->device); in __mthca_modify_qp()
551 struct mthca_qp *qp = to_mqp(ibqp); in __mthca_modify_qp()
614 if (qp->ibqp.uobject) in __mthca_modify_qp()
[all …]
H A Dmthca_mcg.c120 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 Dmthca_provider.h264 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 Dmthca_dev.h532 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 Dverbs.c969 int mlx4_query_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, in mlx4_query_qp() argument
974 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_query_qp()
977 ret = ibv_cmd_query_qp(ibqp, attr, attr_mask, init_attr, &cmd, sizeof cmd); in mlx4_query_qp()
1098 int mlx4_destroy_qp(struct ibv_qp *ibqp) in mlx4_destroy_qp() argument
1100 struct mlx4_qp *qp = to_mqp(ibqp); in mlx4_destroy_qp()
1103 pthread_mutex_lock(&to_mctx(ibqp->context)->qp_table_mutex); in mlx4_destroy_qp()
1104 ret = ibv_cmd_destroy_qp(ibqp); in mlx4_destroy_qp()
1106 pthread_mutex_unlock(&to_mctx(ibqp->context)->qp_table_mutex); in mlx4_destroy_qp()
1110 mlx4_lock_cqs(ibqp); in mlx4_destroy_qp()
1112 if (ibqp->recv_cq) in mlx4_destroy_qp()
[all …]
H A Dqp.c213 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 Dmlx4.h335 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 Dmlx5_ib_qp.c136 struct ib_device *ibdev = qp->ibqp.device; in mlx5_ib_read_user_wqe()
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
197 if (ibqp->event_handler) { in mlx5_ib_qp_event()
198 event.device = ibqp->device; in mlx5_ib_qp_event()
199 event.element.qp = ibqp; in mlx5_ib_qp_event()
230 ibqp->event_handler(&event, ibqp->qp_context); in mlx5_ib_qp_event()
1334 destroy_raw_packet_qp_tir(dev, rq, qp->ibqp.pd); in destroy_raw_packet_qp()
1340 destroy_raw_packet_qp_tis(dev, sq, qp->ibqp.pd); in destroy_raw_packet_qp()
1359 to_mpd(qp->ibqp.pd)->uid); in destroy_rss_raw_qp_tir()
[all …]
H A Dmlx5_ib_gsi.c39 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 Dmlx5_ib_cq.c167 enum rdma_link_layer ll = rdma_port_get_link_layer(qp->ibqp.device, 1); in handle_responder()
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 in mlx5_poll_one()
[all...]
/freebsd/contrib/ofed/libcxgb4/
H A Dverbs.c594 int c4iw_modify_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, in c4iw_modify_qp() argument
598 struct c4iw_qp *qhp = to_c4iw_qp(ibqp); in c4iw_modify_qp()
601 …PDBG("%s enter qp %p new state %d\n", __func__, ibqp, attr_mask & IBV_QP_STATE ? attr->qp_state : … in c4iw_modify_qp()
605 ret = ibv_cmd_modify_qp(ibqp, attr, attr_mask, &cmd, sizeof cmd); 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()
647 int c4iw_query_qp(struct ibv_qp *ibqp, struct ibv_qp_attr *attr, in c4iw_query_qp() argument
[all …]
H A Dlibcxgb4.h146 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 Dev.c148 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 Diw_cxgbe.h485 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 Dqp.c358 static inline int copy_eth_inline_headers(struct ibv_qp *ibqp, in copy_eth_inline_headers() argument
366 FILE *fp = to_mctx(ibqp->context)->dbg_fp; in copy_eth_inline_headers()
612 static inline int _mlx5_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr, in _mlx5_post_send() argument
616 struct mlx5_qp *qp = to_mqp(ibqp); in _mlx5_post_send()
636 FILE *fp = to_mctx(ibqp->context)->dbg_fp; /* The compiler ignores in non-debug mode */ 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()
[all …]
H A Dverbs.c1254 struct ibv_qp *ibqp; in create_qp() local
1271 ibqp = (struct ibv_qp *)&qp->verbs_qp; in create_qp()
1272 qp->ibv_qp = ibqp; in create_qp()
1283 return ibqp; in create_qp()
1379 ret = mlx5_store_qp(ctx, ibqp->qp_num, qp); 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()
1495 int mlx5_destroy_qp(struct ibv_qp *ibqp) in mlx5_destroy_qp() argument
1497 struct mlx5_qp *qp = to_mqp(ibqp); in mlx5_destroy_qp()
1546 mlx5_query_qp(struct ibv_qp * ibqp,struct ibv_qp_attr * attr,int attr_mask,struct ibv_qp_init_attr * init_attr) mlx5_query_qp() argument
[all...]
/freebsd/sys/dev/irdma/
H A Dirdma_main.h452 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 Dirdma_verbs.c527 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()
698 if (rdma_protocol_roce(iwqp->ibqp.device, 1)) { in irdma_get_ib_acc_flags()
724 irdma_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in irdma_query_qp() argument
727 struct irdma_qp *iwqp = to_iwqp(ibqp); in irdma_query_qp()
742 if (rdma_protocol_roce(ibqp->device, 1)) { in irdma_query_qp()
755 init_attr->event_handler = iwqp->ibqp.event_handler; in irdma_query_qp()
756 init_attr->qp_context = iwqp->ibqp.qp_context; in irdma_query_qp()
[all …]
H A Dirdma_utils.c672 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()
692 iwdev->rf->qp_table[iwqp->ibqp.qp_num] = NULL; in irdma_qp_rem_ref()
742 return &iwdev->rf->qp_table[qpn]->ibqp; in irdma_get_qp()
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()
2190 if (rdma_protocol_roce(qp->ibqp.device, 1)) in irdma_modify_qp_to_err()
[all …]
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_cm.h77 extern int qlnxr_gsi_post_recv(struct ib_qp *ibqp,
81 extern int qlnxr_gsi_post_send(struct ib_qp *ibqp,
H A Dqlnxr_cm.c410 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 Dqlnxr_verbs.c836 get_gid_info(struct ib_qp *ibqp, struct ib_qp_attr *attr, in get_gid_info() argument
3109 qp->ibqp.qp_num = qp->qp_id; in qlnxr_create_qp()
3118 QL_DPRINT12(ha, "exit [%p]\n", &qp->ibqp); in qlnxr_create_qp()
3120 return &qp->ibqp; in qlnxr_create_qp()
3356 qlnxr_modify_qp(struct ib_qp *ibqp, in qlnxr_modify_qp() argument
3362 struct qlnxr_qp *qp = get_qlnxr_qp(ibqp); in qlnxr_modify_qp()
3384 ibqp->qp_type, in qlnxr_modify_qp()
3390 attr_mask, qp->qp_id, ibqp->qp_type, in qlnxr_modify_qp()
3470 get_gid_info(ibqp, attr, attr_mask, dev, qp, &qp_params); in qlnxr_modify_qp()
3684 qlnxr_query_qp(struct ib_qp *ibqp, in qlnxr_query_qp() argument
[all …]
/freebsd/sys/ofed/include/rdma/
H A Drdma_vt.h422 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()

12