Home
last modified time | relevance | path

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

12345

/Linux-v4.19/drivers/infiniband/hw/hfi1/
Dqp.c201 struct ib_qp *ibqp = &qp->ibqp; in hfi1_check_modify_qp() local
202 struct hfi1_ibdev *dev = to_idev(ibqp->device); in hfi1_check_modify_qp()
207 sc = ah_to_sc(ibqp->device, &attr->ah_attr); in hfi1_check_modify_qp()
220 sc = ah_to_sc(ibqp->device, &attr->alt_ah_attr); in hfi1_check_modify_qp()
247 hfi1_update_ah_attr(qp->ibqp.device, &qp->remote_ah_attr); in qp_set_16b()
255 ibp = to_iport(qp->ibqp.device, qp->port_num); in qp_set_16b()
263 struct ib_qp *ibqp = &qp->ibqp; in hfi1_modify_qp() local
267 priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); in hfi1_modify_qp()
277 priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); in hfi1_modify_qp()
300 struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); in hfi1_check_send_wqe()
[all …]
Dud.c74 struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in ud_loopback()
88 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, in ud_loopback()
96 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
97 IB_QPT_UD : sqp->ibqp.qp_type; in ud_loopback()
98 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in ud_loopback()
99 IB_QPT_UD : qp->ibqp.qp_type; in ud_loopback()
110 if (qp->ibqp.qp_num > 1) { in ud_loopback()
123 sqp->ibqp.qp_num, qp->ibqp.qp_num, in ud_loopback()
134 if (qp->ibqp.qp_num) { in ud_loopback()
172 if (qp->ibqp.qp_num == 0) in ud_loopback()
[all …]
Druc.c106 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr()
143 hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, in hfi1_ruc_check_hdr()
171 struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in ruc_loopback()
191 qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, in ruc_loopback()
229 qp->ibqp.qp_type != sqp->ibqp.qp_type) { in ruc_loopback()
235 if (sqp->ibqp.qp_type == IB_QPT_RC) in ruc_loopback()
399 wc.qp = &qp->ibqp; in ruc_loopback()
405 rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, in ruc_loopback()
422 if (qp->ibqp.qp_type == IB_QPT_UC) in ruc_loopback()
462 if (sqp->ibqp.qp_type == IB_QPT_RC) { in ruc_loopback()
[all …]
/Linux-v4.19/drivers/infiniband/sw/rdmavt/
Dqp.c433 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_clear_mr_refs()
446 if (qp->ibqp.qp_type == IB_QPT_UD || in rvt_clear_mr_refs()
447 qp->ibqp.qp_type == IB_QPT_SMI || in rvt_clear_mr_refs()
448 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_clear_mr_refs()
523 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_qp_acks_has_lkey()
549 if (qp->ibqp.qp_type == IB_QPT_SMI || in rvt_qp_mr_clean()
550 qp->ibqp.qp_type == IB_QPT_GSI) in rvt_qp_mr_clean()
571 ev.device = qp->ibqp.device; in rvt_qp_mr_clean()
572 ev.element.qp = &qp->ibqp; in rvt_qp_mr_clean()
574 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_qp_mr_clean()
[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);
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;
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;
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;
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_ud.c52 struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in qib_ud_loopback()
72 sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
73 IB_QPT_UD : sqp->ibqp.qp_type; in qib_ud_loopback()
74 dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? in qib_ud_loopback()
75 IB_QPT_UD : qp->ibqp.qp_type; in qib_ud_loopback()
86 if (qp->ibqp.qp_num > 1) { in qib_ud_loopback()
98 sqp->ibqp.qp_num, qp->ibqp.qp_num, in qib_ud_loopback()
110 if (qp->ibqp.qp_num) { in qib_ud_loopback()
148 if (qp->ibqp.qp_num == 0) in qib_ud_loopback()
208 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()
186 struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); in qib_ruc_loopback()
245 qp->ibqp.qp_type != sqp->ibqp.qp_type) { in qib_ruc_loopback()
251 if (sqp->ibqp.qp_type == IB_QPT_RC) in qib_ruc_loopback()
392 wc.qp = &qp->ibqp; in qib_ruc_loopback()
398 rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, in qib_ruc_loopback()
[all …]
/Linux-v4.19/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()
386 qp->ibqp.qp_num = resp->qpn; in pvrdma_create_qp()
391 return &qp->ibqp; in pvrdma_create_qp()
411 struct pvrdma_dev *dev = to_vdev(qp->ibqp.device); in pvrdma_free_qp()
484 int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in pvrdma_modify_qp() argument
487 struct pvrdma_dev *dev = to_vdev(ibqp->device); in pvrdma_modify_qp()
488 struct pvrdma_qp *qp = to_vqp(ibqp); in pvrdma_modify_qp()
501 if (!ib_modify_qp_is_ok(cur_state, next_state, ibqp->qp_type, in pvrdma_modify_qp()
509 attr->port_num > ibqp->device->phys_port_cnt) { in pvrdma_modify_qp()
[all …]
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_qp.c260 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()
429 int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, in mthca_query_qp() argument
432 struct mthca_dev *dev = to_mdev(ibqp->device); in mthca_query_qp()
433 struct mthca_qp *qp = to_mqp(ibqp); in mthca_query_qp()
555 static int __mthca_modify_qp(struct ib_qp *ibqp, in __mthca_modify_qp() argument
559 struct mthca_dev *dev = to_mdev(ibqp->device); in __mthca_modify_qp()
560 struct mthca_qp *qp = to_mqp(ibqp); in __mthca_modify_qp()
621 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-v4.19/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-v4.19/drivers/infiniband/hw/mlx4/
Dqp.c230 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx4_ib_qp_event() local
235 if (ibqp->event_handler) { in mlx4_ib_qp_event()
236 event.device = ibqp->device; in mlx4_ib_qp_event()
237 event.element.qp = ibqp; in mlx4_ib_qp_event()
269 ibqp->event_handler(&event, ibqp->qp_context); in mlx4_ib_qp_event()
768 qp->ibqp.qp_num = qp->mqp.qpn; in _mlx4_ib_create_qp_rss()
770 return &qp->ibqp; in _mlx4_ib_create_qp_rss()
1277 if (qp->ibqp.qp_type == IB_QPT_XRC_TGT) in get_pd()
1278 return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); in get_pd()
1280 return to_mpd(qp->ibqp.pd); in get_pd()
[all …]
/Linux-v4.19/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()
217 } else if (ibqp->qp_type == IB_QPT_RC) { in hns_roce_v1_post_send()
350 static int hns_roce_v1_post_recv(struct ib_qp *ibqp, in hns_roce_v1_post_recv() argument
362 struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); in hns_roce_v1_post_recv()
[all …]
Dhns_roce_hw_v2.c69 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) in set_extend_sge()
104 static int set_rwqe_data_seg(struct ib_qp *ibqp, const struct ib_send_wr *wr, in set_rwqe_data_seg() argument
109 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in set_rwqe_data_seg()
111 struct hns_roce_qp *qp = to_hr_qp(ibqp); in set_rwqe_data_seg()
168 static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
173 static int hns_roce_v2_post_send(struct ib_qp *ibqp, in hns_roce_v2_post_send() argument
177 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_v2_post_send()
181 struct hns_roce_qp *qp = to_hr_qp(ibqp); in hns_roce_v2_post_send()
198 if (unlikely(ibqp->qp_type != IB_QPT_RC && in hns_roce_v2_post_send()
199 ibqp->qp_type != IB_QPT_GSI && in hns_roce_v2_post_send()
[all …]
Dhns_roce_qp.c74 struct ib_qp *ibqp = &hr_qp->ibqp; in hns_roce_ib_qp_event() local
76 if (ibqp->event_handler) { in hns_roce_ib_qp_event()
77 event.device = ibqp->device; in hns_roce_ib_qp_event()
78 event.element.qp = ibqp; in hns_roce_ib_qp_event()
105 dev_dbg(ibqp->device->dev.parent, "roce_ib: Unexpected event type %d on QP %06lx\n", in hns_roce_ib_qp_event()
109 ibqp->event_handler(&event, ibqp->qp_context); in hns_roce_ib_qp_event()
259 if ((hr_qp->ibqp.qp_type) != IB_QPT_GSI) { in hns_roce_qp_free()
462 if (hr_dev->caps.max_sq_sg > 2 && hr_qp->ibqp.qp_type == IB_QPT_GSI) { in hns_roce_set_kernel_sq_size()
533 hr_qp->ibqp.qp_type = init_attr->qp_type; in hns_roce_create_qp_common()
861 hr_qp->ibqp.qp_num = hr_qp->qpn; in hns_roce_create_qp()
[all …]
/Linux-v4.19/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-v4.19/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-v4.19/include/rdma/
Drdma_vt.h460 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()
517 if (qp->ibqp.qp_num == qpn) in rvt_lookup_qpn()
530 struct ib_qp *ibqp = &qp->ibqp; in rvt_mod_retry_timer() local
531 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_mod_retry_timer()
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dqp.c146 struct ib_device *ibdev = qp->ibqp.device; in mlx5_ib_read_user_wqe()
158 qp->ibqp.qp_type); in mlx5_ib_read_user_wqe()
199 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx5_ib_qp_event() local
207 if (ibqp->event_handler) { in mlx5_ib_qp_event()
208 event.device = ibqp->device; in mlx5_ib_qp_event()
209 event.element.qp = ibqp; in mlx5_ib_qp_event()
240 ibqp->event_handler(&event, ibqp->qp_context); in mlx5_ib_qp_event()
2019 return to_mpd(qp->ibqp.pd); in get_pd()
2068 if (qp->ibqp.rwq_ind_tbl) { in destroy_qp_common()
2073 base = (qp->ibqp.qp_type == IB_QPT_RAW_PACKET || in destroy_qp_common()
[all …]
/Linux-v4.19/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()
728 void qedr_iw_qp_add_ref(struct ib_qp *ibqp) in qedr_iw_qp_add_ref() argument
730 struct qedr_qp *qp = get_qedr_qp(ibqp); in qedr_iw_qp_add_ref()
[all …]

12345