| /linux-6.15/drivers/infiniband/hw/mana/ |
| H A D | qp.c | 95 struct mana_ib_qp *qp = container_of(ibqp, struct mana_ib_qp, ibqp); in mana_ib_create_qp_rss() 267 struct mana_ib_qp *qp = container_of(ibqp, struct mana_ib_qp, ibqp); in mana_ib_create_qp_raw() 531 struct mana_ib_qp *qp = container_of(ibqp, struct mana_ib_qp, ibqp); in mana_ib_create_rc_qp() 637 struct mana_ib_qp *qp = container_of(ibqp, struct mana_ib_qp, ibqp); in mana_ib_create_ud_qp() 709 return mana_ib_create_qp_rss(ibqp, ibqp->pd, attr, in mana_ib_create_qp() 712 return mana_ib_create_qp_raw(ibqp, ibqp->pd, attr, udata); in mana_ib_create_qp() 714 return mana_ib_create_rc_qp(ibqp, ibqp->pd, attr, udata); in mana_ib_create_qp() 717 return mana_ib_create_ud_qp(ibqp, ibqp->pd, attr, udata); in mana_ib_create_qp() 730 struct mana_ib_qp *qp = container_of(ibqp, struct mana_ib_qp, ibqp); in mana_ib_gd_modify_qp() 756 ibqp->port, ibqp->qp_num); in mana_ib_gd_modify_qp() [all …]
|
| H A D | wr.c | 49 int mana_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, in mana_ib_post_recv() argument 52 struct mana_ib_qp *qp = container_of(ibqp, struct mana_ib_qp, ibqp); in mana_ib_post_recv() 56 switch (ibqp->qp_type) { in mana_ib_post_recv() 67 ibqp->qp_type); in mana_ib_post_recv() 90 qp->port, qp->ibqp.qp_num); in mana_ib_post_send_ud() 104 gdma_sgl[0].mem_key = qp->ibqp.pd->local_dma_lkey; in mana_ib_post_send_ud() 126 qp->ibqp.qp_type == IB_QPT_GSI ? IB_QP1_QKEY : wr->remote_qkey; in mana_ib_post_send_ud() 144 int mana_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, in mana_ib_post_send() argument 148 struct mana_ib_qp *qp = container_of(ibqp, struct mana_ib_qp, ibqp); in mana_ib_post_send() 151 switch (ibqp->qp_type) { in mana_ib_post_send() [all …]
|
| /linux-6.15/drivers/infiniband/hw/mlx5/ |
| H A D | wr.h | 104 int mlx5_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, 106 int mlx5_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, 109 static inline int mlx5_ib_post_send_nodrain(struct ib_qp *ibqp, in mlx5_ib_post_send_nodrain() argument 113 return mlx5_ib_post_send(ibqp, wr, bad_wr, false); in mlx5_ib_post_send_nodrain() 116 static inline int mlx5_ib_post_send_drain(struct ib_qp *ibqp, in mlx5_ib_post_send_drain() argument 120 return mlx5_ib_post_send(ibqp, wr, bad_wr, true); in mlx5_ib_post_send_drain() 123 static inline int mlx5_ib_post_recv_nodrain(struct ib_qp *ibqp, in mlx5_ib_post_recv_nodrain() argument 127 return mlx5_ib_post_recv(ibqp, wr, bad_wr, false); in mlx5_ib_post_recv_nodrain() 130 static inline int mlx5_ib_post_recv_drain(struct ib_qp *ibqp, in mlx5_ib_post_recv_drain() argument 134 return mlx5_ib_post_recv(ibqp, wr, bad_wr, true); in mlx5_ib_post_recv_drain()
|
| /linux-6.15/drivers/infiniband/hw/hfi1/ |
| H A D | qp.c | 163 struct ib_qp *ibqp = &qp->ibqp; in hfi1_check_modify_qp() local 225 struct ib_qp *ibqp = &qp->ibqp; in hfi1_modify_qp() local 270 switch (qp->ibqp.qp_type) { in hfi1_setup_wqe() 546 switch (qp->ibqp.qp_type) { in qp_to_sdma_engine() 568 switch (qp->ibqp.qp_type) { in qp_to_send_context() 618 qp->ibqp.qp_num, in qp_iter_print() 788 ev.device = qp->ibqp.device; in hfi1_migrate_qp() 789 ev.element.qp = &qp->ibqp; in hfi1_migrate_qp() 791 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in hfi1_migrate_qp() 904 ev.element.qp = &qp->ibqp; in hfi1_qp_iter_cb() [all …]
|
| H A D | ud.c | 58 IB_QPT_UD : qp->ibqp.qp_type; in ud_loopback() 69 if (qp->ibqp.qp_num > 1) { in ud_loopback() 82 sqp->ibqp.qp_num, qp->ibqp.qp_num, in ud_loopback() 93 if (qp->ibqp.qp_num) { in ud_loopback() 131 if (qp->ibqp.qp_num == 0) in ud_loopback() 196 wc.qp = &qp->ibqp; in ud_loopback() 198 if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) { in ud_loopback() 242 if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) in hfi1_make_bth_deth() 870 if (qp->ibqp.qp_num) { in hfi1_ud_rcv() 988 wc.qp = &qp->ibqp; in hfi1_ud_rcv() [all …]
|
| H A D | trace_tid.h | 208 __entry->qpn = qp->ibqp.qp_num; 266 __entry->qpn = qp->ibqp.qp_num; 318 __entry->qpn = qp->ibqp.qp_num; 430 __entry->qpn = qp->ibqp.qp_num; 468 __entry->qpn = qp->ibqp.qp_num; 515 __entry->qpn = qp->ibqp.qp_num; 653 __entry->qpn = qp->ibqp.qp_num; 695 __entry->qpn = qp->ibqp.qp_num; 769 __entry->qpn = qp->ibqp.qp_num; 890 __entry->qpn = qp->ibqp.qp_num; [all …]
|
| H A D | trace_rc.h | 21 DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) 32 DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); 33 __entry->qpn = qp->ibqp.qp_num; 83 DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) 92 DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); 93 __entry->qpn = qp->ibqp.qp_num;
|
| /linux-6.15/drivers/infiniband/sw/rdmavt/ |
| H A D | qp.c | 717 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_qp_mr_clean() 1315 wc.qp = &qp->ibqp; in rvt_error_qp() 1649 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_modify_qp() 1655 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_modify_qp() 1787 !qp->ibqp.srq; in rvt_post_recv() 2276 pd = ibpd_to_rvtpd(qp->ibqp.srq ? qp->ibqp.srq->pd : qp->ibqp.pd); in init_sge() 2458 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_comm_est() 2478 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in rvt_rc_error() 2508 struct ib_qp *ibqp = &qp->ibqp; in rvt_add_retry_timer_ext() local 2969 qp->ibqp.qp_type != sqp->ibqp.qp_type) { in rvt_ruc_loopback() [all …]
|
| H A D | qp.h | 13 int rvt_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *init_attr, 15 int rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 17 int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); 18 int rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, 20 int rvt_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, 22 int rvt_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr,
|
| H A D | trace_qp.h | 21 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) 26 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)); 27 __entry->qpn = qp->ibqp.qp_num; 51 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) 58 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)); 59 __entry->qpn = qp->ibqp.qp_num;
|
| H A D | trace_tx.h | 52 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) 72 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)); 75 __entry->qpn = qp->ibqp.qp_num; 76 __entry->qpt = qp->ibqp.qp_type; 119 RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) 131 RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)); 134 __entry->qpn = qp->ibqp.qp_num; 135 __entry->qpt = qp->ibqp.qp_type;
|
| H A D | mcast.c | 238 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_attach_mcast() argument 240 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_attach_mcast() 241 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_attach_mcast() 247 if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) in rvt_attach_mcast() 301 int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_detach_mcast() argument 303 struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); in rvt_detach_mcast() 304 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_detach_mcast() 312 if (ibqp->qp_num <= 1) in rvt_detach_mcast()
|
| /linux-6.15/drivers/infiniband/hw/qib/ |
| H A D | qib_ud.c | 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() 205 wc.src_qp = sqp->ibqp.qp_num; in qib_ud_loopback() 464 if (qp->ibqp.qp_num) { in qib_ud_rcv() 468 if (qp->ibqp.qp_num > 1) { in qib_ud_rcv() 509 if (qp->ibqp.qp_num > 1 && in qib_ud_rcv() 539 if (qp->ibqp.qp_num == 0) in qib_ud_rcv() [all …]
|
| H A D | qib_ruc.c | 53 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-6.15/drivers/infiniband/hw/vmw_pvrdma/ |
| H A D | pvrdma_qp.c | 61 *send_cq = to_vcq(qp->ibqp.send_cq); in get_cqs() 62 *recv_cq = to_vcq(qp->ibqp.recv_cq); in get_cqs() 194 struct pvrdma_qp *qp = to_vqp(ibqp); in pvrdma_create_qp() 394 qp->ibqp.qp_num = resp_v2->qpn; in pvrdma_create_qp() 397 qp->ibqp.qp_num = resp->qpn; in pvrdma_create_qp() 406 qp_resp.qpn = qp->ibqp.qp_num; in pvrdma_create_qp() 529 struct pvrdma_qp *qp = to_vqp(ibqp); in pvrdma_modify_qp() 674 struct pvrdma_qp *qp = to_vqp(ibqp); in pvrdma_post_send() 766 switch (qp->ibqp.qp_type) { in pvrdma_post_send() 878 struct pvrdma_qp *qp = to_vqp(ibqp); in pvrdma_post_recv() [all …]
|
| /linux-6.15/drivers/infiniband/hw/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() 626 if (qp->ibqp.uobject) in __mthca_modify_qp() 759 if (ibqp->srq) in __mthca_modify_qp() 784 if (ibqp->srq) in __mthca_modify_qp() 836 qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); in __mthca_modify_qp() 837 if (qp->ibqp.send_cq != qp->ibqp.recv_cq) in __mthca_modify_qp() 1479 if (!qp->ibqp.uobject) { in mthca_free_qp() 1481 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()
|
| /linux-6.15/drivers/infiniband/hw/usnic/ |
| H A D | usnic_ib_qp_grp.h | 49 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-6.15/drivers/infiniband/hw/mlx4/ |
| H A D | qp.c | 215 struct ib_qp *ibqp = &to_mibqp(qpe_work->qp)->ibqp; in mlx4_ib_handle_qp_event() local 219 event.element.qp = ibqp; in mlx4_ib_handle_qp_event() 252 ibqp->event_handler(&event, ibqp->qp_context); in mlx4_ib_handle_qp_event() 261 struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; in mlx4_ib_qp_event() local 267 if (!ibqp->event_handler) in mlx4_ib_qp_event() 1454 qp->ibqp.srq ? to_msrq(qp->ibqp.srq): NULL); in destroy_qp_common() 2150 struct ib_qp *ibqp; in __mlx4_ib_modify_qp() local 3203 !qp->ibqp.qp_num ? in build_mlx_header() 3214 if (!qp->ibqp.qp_num) in build_mlx_header() 4057 if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC || in mlx4_ib_query_qp() [all …]
|
| /linux-6.15/drivers/infiniband/hw/erdma/ |
| H A D | erdma_verbs.h | 297 struct ib_qp ibqp; member 351 #define QP_ID(qp) ((qp)->ibqp.qp_num) 401 return container_of(qp, struct erdma_qp, ibqp); in to_eqp() 444 int erdma_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attr, 446 int erdma_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int mask, 448 int erdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int mask, 450 int erdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); 460 void erdma_qp_get_ref(struct ib_qp *ibqp); 461 void erdma_qp_put_ref(struct ib_qp *ibqp); 463 int erdma_post_send(struct ib_qp *ibqp, const struct ib_send_wr *send_wr, [all …]
|
| /linux-6.15/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_hw_v2.c | 2683 qp = &hr_qp->ibqp; in free_mr_init_qp() 3970 wc->qp = &qp->ibqp; in hns_roce_v2_poll_one() 4347 if (ibqp->srq) { in modify_qp_reset_to_init() 4385 if (ibqp->srq) { in modify_qp_init_to_init() 4530 if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_UD) in get_mtu() 5283 struct ib_qp *ibqp = &hr_qp->ibqp; in clear_qp() local 5285 if (ibqp->send_cq) in clear_qp() 5289 if (ibqp->recv_cq && ibqp->recv_cq != ibqp->send_cq) in clear_qp() 5321 if (ibqp->srq || ibqp->qp_type == IB_QPT_XRC_INI) /* no RQ */ in v2_set_flushed_fields() 5372 ibqp->srq); in hns_roce_v2_modify_qp() [all …]
|
| H A D | hns_roce_qp.c | 154 struct ib_qp *ibqp = &hr_qp->ibqp; in hns_roce_ib_qp_event() local 157 if (ibqp->event_handler) { in hns_roce_ib_qp_event() 158 event.device = ibqp->device; in hns_roce_ib_qp_event() 159 event.element.qp = ibqp; in hns_roce_ib_qp_event() 192 ibqp->event_handler(&event, ibqp->qp_context); in hns_roce_ib_qp_event() 258 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) { in alloc_qpn() 428 if (hr_qp->ibqp.qp_type == IB_QPT_GSI) in free_qpn() 577 hr_qp->ibqp.qp_type == IB_QPT_UD); in set_ext_sge_param() 1039 hr_qp->ibqp.qp_type == IB_QPT_GSI) in default_congest_type() 1233 hr_qp->ibqp.qp_num = hr_qp->qpn; in hns_roce_create_qp_common() [all …]
|
| /linux-6.15/drivers/infiniband/sw/rxe/ |
| H A D | rxe_comp.c | 404 wc->qp = &qp->ibqp; in make_send_cqe() 408 uwc->qp_num = qp->ibqp.qp_num; in make_send_cqe() 484 if (qp->ibqp.event_handler) { in comp_check_sq_drain_done() 487 ev.device = qp->ibqp.device; in comp_check_sq_drain_done() 488 ev.element.qp = &qp->ibqp; in comp_check_sq_drain_done() 490 qp->ibqp.event_handler(&ev, in comp_check_sq_drain_done() 491 qp->ibqp.qp_context); in comp_check_sq_drain_done() 552 ib_device_put(qp->ibqp.device); in drain_resp_pkts() 567 uwc->qp_num = qp->ibqp.qp_num; in flush_send_wqe() 571 wc->qp = &qp->ibqp; in flush_send_wqe() [all …]
|
| /linux-6.15/drivers/infiniband/hw/cxgb4/ |
| H A D | ev.c | 109 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() 217 c4iw_qp_rem_ref(&qhp->ibqp); in c4iw_ev_dispatch()
|
| /linux-6.15/include/rdma/ |
| H A D | rdmavt_qp.h | 334 struct ib_qp ibqp; member 465 static inline struct rvt_qp *ibqp_to_rvtqp(struct ib_qp *ibqp) in ibqp_to_rvtqp() argument 467 return container_of(ibqp, struct rvt_qp, ibqp); in ibqp_to_rvtqp() 712 if (qp->ibqp.qp_num == qpn) in rvt_lookup_qpn() 726 struct ib_qp *ibqp = &qp->ibqp; in rvt_mod_retry_timer_ext() local 727 struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); in rvt_mod_retry_timer_ext() 786 struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.recv_cq); in rvt_recv_cq() 806 struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.send_cq); in rvt_send_cq() 860 .qp = &qp->ibqp, in rvt_qp_complete_swqe() 969 struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); in rvt_to_iport()
|