Home
last modified time | relevance | path

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

12345

/Linux-v5.10/drivers/infiniband/hw/mlx5/
Dwr.h44 int mlx5_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
46 int mlx5_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr,
49 static inline int mlx5_ib_post_send_nodrain(struct ib_qp *ibqp, in mlx5_ib_post_send_nodrain() argument
53 return mlx5_ib_post_send(ibqp, wr, bad_wr, false); in mlx5_ib_post_send_nodrain()
56 static inline int mlx5_ib_post_send_drain(struct ib_qp *ibqp, in mlx5_ib_post_send_drain() argument
60 return mlx5_ib_post_send(ibqp, wr, bad_wr, true); in mlx5_ib_post_send_drain()
63 static inline int mlx5_ib_post_recv_nodrain(struct ib_qp *ibqp, in mlx5_ib_post_recv_nodrain() argument
67 return mlx5_ib_post_recv(ibqp, wr, bad_wr, false); in mlx5_ib_post_recv_nodrain()
70 static inline int mlx5_ib_post_recv_drain(struct ib_qp *ibqp, in mlx5_ib_post_recv_drain() argument
74 return mlx5_ib_post_recv(ibqp, wr, bad_wr, true); in mlx5_ib_post_recv_drain()
Dqp.c306 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx5_ib_qp_event() local
314 if (ibqp->event_handler) { in mlx5_ib_qp_event()
315 event.device = ibqp->device; in mlx5_ib_qp_event()
316 event.element.qp = ibqp; in mlx5_ib_qp_event()
347 ibqp->event_handler(&event, ibqp->qp_context); in mlx5_ib_qp_event()
1522 destroy_raw_packet_qp_tir(dev, rq, qp->flags_en, qp->ibqp.pd); in destroy_raw_packet_qp()
1528 destroy_raw_packet_qp_tis(dev, sq, qp->ibqp.pd); in destroy_raw_packet_qp()
1550 to_mpd(qp->ibqp.pd)->uid); in destroy_rss_raw_qp_tir()
2369 get_cqs(qp->type, qp->ibqp.send_cq, qp->ibqp.recv_cq, &send_cq, in destroy_qp_common()
2384 qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); in destroy_qp_common()
[all …]
/Linux-v5.10/drivers/infiniband/hw/hfi1/
Dqp.c205 struct ib_qp *ibqp = &qp->ibqp; in hfi1_check_modify_qp() local
206 struct hfi1_ibdev *dev = to_idev(ibqp->device); in hfi1_check_modify_qp()
211 sc = ah_to_sc(ibqp->device, &attr->ah_attr); in hfi1_check_modify_qp()
224 sc = ah_to_sc(ibqp->device, &attr->alt_ah_attr); in hfi1_check_modify_qp()
251 hfi1_update_ah_attr(qp->ibqp.device, &qp->remote_ah_attr); in qp_set_16b()
259 ibp = to_iport(qp->ibqp.device, qp->port_num); in qp_set_16b()
267 struct ib_qp *ibqp = &qp->ibqp; in hfi1_modify_qp() local
271 priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); in hfi1_modify_qp()
281 priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); in hfi1_modify_qp()
307 struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_setup_wqe()
[all …]
Dud.c75 struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in ud_loopback()
89 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, in ud_loopback()
97 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
98 IB_QPT_UD : sqp->ibqp.qp_type; in ud_loopback()
99 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
100 IB_QPT_UD : qp->ibqp.qp_type; in ud_loopback()
111 if (qp->ibqp.qp_num > 1) { in ud_loopback()
124 sqp->ibqp.qp_num, qp->ibqp.qp_num, in ud_loopback()
135 if (qp->ibqp.qp_num) { in ud_loopback()
173 if (qp->ibqp.qp_num == 0) in ud_loopback()
[all …]
Dtrace_tid.h198 DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device))
207 DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device));
208 __entry->qpn = qp->ibqp.qp_num;
258 DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device))
265 DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device));
266 __entry->qpn = qp->ibqp.qp_num;
305 DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device))
317 DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device));
318 __entry->qpn = qp->ibqp.qp_num;
360 __entry->qpn = qp ? qp->ibqp.qp_num : 0;
[all …]
Dtrace_rc.h62 DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device))
73 DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device))
74 __entry->qpn = qp->ibqp.qp_num;
124 DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device))
133 DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device))
134 __entry->qpn = qp->ibqp.qp_num;
/Linux-v5.10/drivers/infiniband/sw/rdmavt/
Dqp.c467 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_free_qp_cb()
470 rvt_reset_qp(rdi, qp, qp->ibqp.qp_type); in rvt_free_qp_cb()
624 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_clear_mr_refs()
708 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_qp_acks_has_lkey()
734 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean()
735 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean()
756 ev.device = qp->ibqp.device; in rvt_qp_mr_clean()
757 ev.element.qp = &qp->ibqp; in rvt_qp_mr_clean()
759 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_qp_mr_clean()
774 u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); in rvt_remove_qp()
[all …]
Dqp.h58 int rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
60 int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata);
61 int rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
63 int rvt_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr,
65 int rvt_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
Dtrace_qp.h63 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device))
68 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device))
69 __entry->qpn = qp->ibqp.qp_num;
93 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device))
100 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device))
101 __entry->qpn = qp->ibqp.qp_num;
Dtrace_tx.h94 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device))
114 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device))
117 __entry->qpn = qp->ibqp.qp_num;
118 __entry->qpt = qp->ibqp.qp_type;
161 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device))
173 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device))
176 __entry->qpn = qp->ibqp.qp_num;
177 __entry->qpt = qp->ibqp.qp_type;
Dmcast.c280 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_attach_mcast() argument
282 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_attach_mcast()
283 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_attach_mcast()
289 if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) in rvt_attach_mcast()
343 int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_detach_mcast() argument
345 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_detach_mcast()
346 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_detach_mcast()
354 if (ibqp->qp_num <= 1) in rvt_detach_mcast()
Dtrace_rc.h63 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device))
74 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device))
75 __entry->qpn = qp->ibqp.qp_num;
Dmcast.h54 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
55 int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
/Linux-v5.10/drivers/infiniband/hw/qib/
Dqib_ud.c53 struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in qib_ud_loopback()
73 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
74 IB_QPT_UD : sqp->ibqp.qp_type; in qib_ud_loopback()
75 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
76 IB_QPT_UD : qp->ibqp.qp_type; in qib_ud_loopback()
87 if (qp->ibqp.qp_num > 1) { in qib_ud_loopback()
99 sqp->ibqp.qp_num, qp->ibqp.qp_num, in qib_ud_loopback()
111 if (qp->ibqp.qp_num) { in qib_ud_loopback()
149 if (qp->ibqp.qp_num == 0) in qib_ud_loopback()
204 wc.qp = &qp->ibqp; in qib_ud_loopback()
[all …]
Dqib_ruc.c53 ev.device = qp->ibqp.device; in qib_migrate_qp()
54 ev.element.qp = &qp->ibqp; in qib_migrate_qp()
56 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in qib_migrate_qp()
114 0, qp->ibqp.qp_num, in qib_ruc_check_hdr()
153 0, qp->ibqp.qp_num, in qib_ruc_check_hdr()
210 struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in qib_make_ruc_header()
266 struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in qib_do_send()
271 if ((qp->ibqp.qp_type == IB_QPT_RC || in qib_do_send()
272 qp->ibqp.qp_type == IB_QPT_UC) && in qib_do_send()
279 if (qp->ibqp.qp_type == IB_QPT_RC) in qib_do_send()
[all …]
/Linux-v5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c61 *send_cq = to_vcq(qp->ibqp.send_cq); in get_cqs()
62 *recv_cq = to_vcq(qp->ibqp.recv_cq); in get_cqs()
401 qp->ibqp.qp_num = resp_v2->qpn; in pvrdma_create_qp()
404 qp->ibqp.qp_num = resp->qpn; in pvrdma_create_qp()
413 qp_resp.qpn = qp->ibqp.qp_num; in pvrdma_create_qp()
425 return &qp->ibqp; in pvrdma_create_qp()
442 struct pvrdma_dev *dev = to_vdev(qp->ibqp.device); in _pvrdma_free_qp()
536 int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in pvrdma_modify_qp() argument
539 struct pvrdma_dev *dev = to_vdev(ibqp->device); in pvrdma_modify_qp()
540 struct pvrdma_qp *qp = to_vqp(ibqp); in pvrdma_modify_qp()
[all …]
/Linux-v5.10/drivers/infiniband/hw/mthca/
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()
430 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, in mthca_query_qp() argument
433 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_query_qp()
434 struct mthca_qp *qp = to_mqp(ibqp); in mthca_query_qp()
556 static int __mthca_modify_qp(struct ib_qp *ibqp, in __mthca_modify_qp() argument
562 struct mthca_dev *dev = to_mdev(ibqp->device); in __mthca_modify_qp()
563 struct mthca_qp *qp = to_mqp(ibqp); in __mthca_modify_qp()
626 if (qp->ibqp.uobject) in __mthca_modify_qp()
[all …]
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()
/Linux-v5.10/drivers/infiniband/hw/usnic/
Dusnic_ib_qp_grp.h49 struct ib_qp ibqp; member
105 struct usnic_ib_qp_grp *to_uqp_grp(struct ib_qp *ibqp) in to_uqp_grp() argument
107 return container_of(ibqp, struct usnic_ib_qp_grp, ibqp); in to_uqp_grp()
/Linux-v5.10/drivers/infiniband/hw/hns/
Dhns_roce_hw_v1.c61 static int hns_roce_v1_post_send(struct ib_qp *ibqp, in hns_roce_v1_post_send() argument
65 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v1_post_send()
70 struct hns_roce_qp *qp = to_hr_qp(ibqp); in hns_roce_v1_post_send()
83 if (unlikely(ibqp->qp_type != IB_QPT_GSI && in hns_roce_v1_post_send()
84 ibqp->qp_type != IB_QPT_RC)) { in hns_roce_v1_post_send()
93 if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { in hns_roce_v1_post_send()
113 if (ibqp->qp_type == IB_QPT_GSI) { in hns_roce_v1_post_send()
214 } else if (ibqp->qp_type == IB_QPT_RC) { in hns_roce_v1_post_send()
342 static int hns_roce_v1_post_recv(struct ib_qp *ibqp, in hns_roce_v1_post_recv() argument
348 struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); in hns_roce_v1_post_recv()
[all …]
Dhns_roce_qp.c59 ret = hns_roce_modify_qp(&hr_qp->ibqp, &attr, attr_mask, NULL); in flush_work_handle()
118 struct ib_qp *ibqp = &hr_qp->ibqp; in hns_roce_ib_qp_event() local
120 if (ibqp->event_handler) { in hns_roce_ib_qp_event()
121 event.device = ibqp->device; in hns_roce_ib_qp_event()
122 event.element.qp = ibqp; in hns_roce_ib_qp_event()
149 dev_dbg(ibqp->device->dev.parent, "roce_ib: Unexpected event type %d on QP %06lx\n", in hns_roce_ib_qp_event()
153 ibqp->event_handler(&event, ibqp->qp_context); in hns_roce_ib_qp_event()
162 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) { in alloc_qpn()
261 if (hr_qp->ibqp.qp_type == IB_QPT_GSI && in alloc_qpc()
334 if (hr_qp->ibqp.qp_type == IB_QPT_GSI && in free_qpc()
[all …]
Dhns_roce_hw_v2.c160 struct ib_device *ibdev = &(to_hr_dev(qp->ibqp.device))->ib_dev; in fill_ext_sge_inl_data()
225 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) { in set_extend_sge()
243 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in check_inl_data_len()
260 struct hns_roce_dev *hr_dev = to_hr_dev(qp->ibqp.device); in set_rc_inl()
308 static int set_rwqe_data_seg(struct ib_qp *ibqp, const struct ib_send_wr *wr, in set_rwqe_data_seg() argument
315 struct hns_roce_qp *qp = to_hr_qp(ibqp); in set_rwqe_data_seg()
357 struct ib_qp *ibqp = &hr_qp->ibqp; in check_send_valid() local
359 if (unlikely(ibqp->qp_type != IB_QPT_RC && in check_send_valid()
360 ibqp->qp_type != IB_QPT_GSI && in check_send_valid()
361 ibqp->qp_type != IB_QPT_UD)) { in check_send_valid()
[all …]
/Linux-v5.10/drivers/infiniband/hw/mlx4/
Dqp.c206 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx4_ib_qp_event() local
211 if (ibqp->event_handler) { in mlx4_ib_qp_event()
212 event.device = ibqp->device; in mlx4_ib_qp_event()
213 event.element.qp = ibqp; in mlx4_ib_qp_event()
245 ibqp->event_handler(&event, ibqp->qp_context); in mlx4_ib_qp_event()
735 qp->ibqp.qp_num = qp->mqp.qpn; in _mlx4_ib_create_qp_rss()
1303 if (qp->ibqp.qp_type == IB_QPT_XRC_TGT) in get_pd()
1304 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
1306 return to_mpd(qp->ibqp.pd); in get_pd()
1312 switch (qp->ibqp.qp_type) { in get_cqs()
[all …]
/Linux-v5.10/drivers/infiniband/hw/cxgb4/
Dev.c109 event.element.qp = &qhp->ibqp; in post_qp_event()
110 if (qhp->ibqp.event_handler) in post_qp_event()
111 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); in post_qp_event()
153 c4iw_qp_add_ref(&qhp->ibqp); in c4iw_ev_dispatch()
218 c4iw_qp_rem_ref(&qhp->ibqp); in c4iw_ev_dispatch()
/Linux-v5.10/include/rdma/
Drdmavt_qp.h333 struct ib_qp ibqp; member
464 static inline struct rvt_qp *ibqp_to_rvtqp(struct ib_qp *ibqp) in ibqp_to_rvtqp() argument
466 return container_of(ibqp, struct rvt_qp, ibqp); in ibqp_to_rvtqp()
711 if (qp->ibqp.qp_num == qpn) in rvt_lookup_qpn()
725 struct ib_qp *ibqp = &qp->ibqp; in rvt_mod_retry_timer_ext() local
726 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_mod_retry_timer_ext()
785 struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.recv_cq); in rvt_recv_cq()
805 struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.send_cq); in rvt_send_cq()
859 .qp = &qp->ibqp, in rvt_qp_complete_swqe()
968 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_to_iport()

12345