Home
last modified time | relevance | path

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

12345

/Linux-v5.4/drivers/infiniband/hw/hfi1/
Dqp.c219 struct ib_qp *ibqp = &qp->ibqp; in hfi1_check_modify_qp() local
220 struct hfi1_ibdev *dev = to_idev(ibqp->device); in hfi1_check_modify_qp()
225 sc = ah_to_sc(ibqp->device, &attr->ah_attr); in hfi1_check_modify_qp()
238 sc = ah_to_sc(ibqp->device, &attr->alt_ah_attr); in hfi1_check_modify_qp()
265 hfi1_update_ah_attr(qp->ibqp.device, &qp->remote_ah_attr); in qp_set_16b()
273 ibp = to_iport(qp->ibqp.device, qp->port_num); in qp_set_16b()
281 struct ib_qp *ibqp = &qp->ibqp; in hfi1_modify_qp() local
285 priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); in hfi1_modify_qp()
295 priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); in hfi1_modify_qp()
321 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.4/drivers/infiniband/sw/rdmavt/
Dqp.c618 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_clear_mr_refs()
702 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_qp_acks_has_lkey()
728 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean()
729 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean()
750 ev.device = qp->ibqp.device; in rvt_qp_mr_clean()
751 ev.element.qp = &qp->ibqp; in rvt_qp_mr_clean()
753 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_qp_mr_clean()
768 u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); in rvt_remove_qp()
1185 qp->ibqp.qp_num = err; in rvt_create_qp()
1267 ret = &qp->ibqp; in rvt_create_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()
/Linux-v5.4/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.4/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c58 *send_cq = to_vcq(qp->ibqp.send_cq); in get_cqs()
59 *recv_cq = to_vcq(qp->ibqp.recv_cq); in get_cqs()
384 qp->ibqp.qp_num = resp->qpn; in pvrdma_create_qp()
389 return &qp->ibqp; in pvrdma_create_qp()
405 struct pvrdma_dev *dev = to_vdev(qp->ibqp.device); in pvrdma_free_qp()
475 int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in pvrdma_modify_qp() argument
478 struct pvrdma_dev *dev = to_vdev(ibqp->device); in pvrdma_modify_qp()
479 struct pvrdma_qp *qp = to_vqp(ibqp); in pvrdma_modify_qp()
492 if (!ib_modify_qp_is_ok(cur_state, next_state, ibqp->qp_type, in pvrdma_modify_qp()
500 attr->port_num > ibqp->device->phys_port_cnt) { in pvrdma_modify_qp()
[all …]
/Linux-v5.4/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.4/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.4/drivers/infiniband/hw/mlx4/
Dqp.c232 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx4_ib_qp_event() local
237 if (ibqp->event_handler) { in mlx4_ib_qp_event()
238 event.device = ibqp->device; in mlx4_ib_qp_event()
239 event.element.qp = ibqp; in mlx4_ib_qp_event()
271 ibqp->event_handler(&event, ibqp->qp_context); in mlx4_ib_qp_event()
770 qp->ibqp.qp_num = qp->mqp.qpn; in _mlx4_ib_create_qp_rss()
772 return &qp->ibqp; in _mlx4_ib_create_qp_rss()
1359 if (qp->ibqp.qp_type == IB_QPT_XRC_TGT) in get_pd()
1360 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
1362 return to_mpd(qp->ibqp.pd); in get_pd()
[all …]
/Linux-v5.4/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()
112 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()
347 static int hns_roce_v1_post_recv(struct ib_qp *ibqp, in hns_roce_v1_post_recv() argument
359 struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); in hns_roce_v1_post_recv()
[all …]
Dhns_roce_qp.c72 struct ib_qp *ibqp = &hr_qp->ibqp; in hns_roce_ib_qp_event() local
74 if (ibqp->event_handler) { in hns_roce_ib_qp_event()
75 event.device = ibqp->device; in hns_roce_ib_qp_event()
76 event.element.qp = ibqp; in hns_roce_ib_qp_event()
103 dev_dbg(ibqp->device->dev.parent, "roce_ib: Unexpected event type %d on QP %06lx\n", in hns_roce_ib_qp_event()
107 ibqp->event_handler(&event, ibqp->qp_context); in hns_roce_ib_qp_event()
252 if ((hr_qp->ibqp.qp_type) != IB_QPT_GSI) { in hns_roce_qp_free()
531 if (hr_dev->caps.max_sq_sg > 2 && hr_qp->ibqp.qp_type == IB_QPT_GSI) { in set_extend_sge_param()
707 hr_qp->ibqp.qp_type = init_attr->qp_type; in hns_roce_create_qp_common()
1039 hr_qp->ibqp.qp_num = hr_qp->qpn; in hns_roce_create_qp()
[all …]
Dhns_roce_hw_v2.c124 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) in set_extend_sge()
159 static int set_rwqe_data_seg(struct ib_qp *ibqp, const struct ib_send_wr *wr, in set_rwqe_data_seg() argument
164 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in set_rwqe_data_seg()
166 struct hns_roce_qp *qp = to_hr_qp(ibqp); in set_rwqe_data_seg()
224 static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
229 static int hns_roce_v2_post_send(struct ib_qp *ibqp, in hns_roce_v2_post_send() argument
233 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send()
237 struct hns_roce_qp *qp = to_hr_qp(ibqp); in hns_roce_v2_post_send()
256 if (unlikely(ibqp->qp_type != IB_QPT_RC && in hns_roce_v2_post_send()
257 ibqp->qp_type != IB_QPT_GSI && in hns_roce_v2_post_send()
[all …]
/Linux-v5.4/drivers/infiniband/hw/cxgb3/
Diwch_ev.c94 event.element.qp = &qhp->ibqp; in post_qp_event()
96 if (qhp->ibqp.event_handler) in post_qp_event()
97 (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); in post_qp_event()
129 iwch_qp_add_ref(&qhp->ibqp); in iwch_ev_dispatch()
229 iwch_qp_rem_ref(&qhp->ibqp); in iwch_ev_dispatch()
Diwch_provider.h162 struct ib_qp ibqp; member
178 static inline struct iwch_qp *to_iwch_qp(struct ib_qp *ibqp) in to_iwch_qp() argument
180 return container_of(ibqp, struct iwch_qp, ibqp); in to_iwch_qp()
329 int iwch_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
331 int iwch_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr,
/Linux-v5.4/include/rdma/
Drdmavt_qp.h329 struct ib_qp ibqp; member
460 static inline struct rvt_qp *ibqp_to_rvtqp(struct ib_qp *ibqp) in ibqp_to_rvtqp() argument
462 return container_of(ibqp, struct rvt_qp, ibqp); in ibqp_to_rvtqp()
727 if (qp->ibqp.qp_num == qpn) in rvt_lookup_qpn()
741 struct ib_qp *ibqp = &qp->ibqp; in rvt_mod_retry_timer_ext() local
742 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_mod_retry_timer_ext()
801 struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.recv_cq); in rvt_recv_cq()
821 struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.send_cq); in rvt_send_cq()
875 .qp = &qp->ibqp, in rvt_qp_complete_swqe()
984 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_to_iport()
/Linux-v5.4/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.4/drivers/infiniband/hw/mlx5/
Dqp.c285 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx5_ib_qp_event() local
293 if (ibqp->event_handler) { in mlx5_ib_qp_event()
294 event.device = ibqp->device; in mlx5_ib_qp_event()
295 event.element.qp = ibqp; in mlx5_ib_qp_event()
326 ibqp->event_handler(&event, ibqp->qp_context); in mlx5_ib_qp_event()
1555 destroy_raw_packet_qp_tir(dev, rq, qp->flags_en, qp->ibqp.pd); in destroy_raw_packet_qp()
1561 destroy_raw_packet_qp_tis(dev, sq, qp->ibqp.pd); in destroy_raw_packet_qp()
1583 to_mpd(qp->ibqp.pd)->uid); in destroy_rss_raw_qp_tir()
2390 return to_mpd(qp->ibqp.pd); in get_pd()
2440 if (qp->ibqp.rwq_ind_tbl) { in destroy_qp_common()
[all …]
/Linux-v5.4/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c159 struct ib_qp *ibqp = &ep->qp->ibqp; in qedr_iw_qp_event() local
164 if (ibqp->event_handler) { in qedr_iw_qp_event()
166 event.device = ibqp->device; in qedr_iw_qp_event()
167 event.element.qp = ibqp; in qedr_iw_qp_event()
168 ibqp->event_handler(&event, ibqp->qp_context); in qedr_iw_qp_event()
191 qedr_iw_qp_rem_ref(&qp->ibqp); in qedr_iw_disconnect_worker()
217 qedr_iw_qp_rem_ref(&qp->ibqp); in qedr_iw_disconnect_worker()
233 qedr_iw_qp_add_ref(&qp->ibqp); in qedr_iw_disconnect_event()
730 void qedr_iw_qp_add_ref(struct ib_qp *ibqp) in qedr_iw_qp_add_ref() argument
732 struct qedr_qp *qp = get_qedr_qp(ibqp); in qedr_iw_qp_add_ref()
[all …]

12345