ibqp 60 drivers/infiniband/hw/cxgb3/iwch_cq.c wc->qp = qhp ? &qhp->ibqp : NULL; ibqp 94 drivers/infiniband/hw/cxgb3/iwch_ev.c event.element.qp = &qhp->ibqp; ibqp 96 drivers/infiniband/hw/cxgb3/iwch_ev.c if (qhp->ibqp.event_handler) ibqp 97 drivers/infiniband/hw/cxgb3/iwch_ev.c (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); ibqp 129 drivers/infiniband/hw/cxgb3/iwch_ev.c iwch_qp_add_ref(&qhp->ibqp); ibqp 229 drivers/infiniband/hw/cxgb3/iwch_ev.c iwch_qp_rem_ref(&qhp->ibqp); ibqp 808 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_destroy_qp(&qhp->ibqp, udata); ibqp 815 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_destroy_qp(&qhp->ibqp, udata); ibqp 832 drivers/infiniband/hw/cxgb3/iwch_provider.c iwch_destroy_qp(&qhp->ibqp, udata); ibqp 844 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->ibqp.qp_num = qhp->wq.qpid; ibqp 850 drivers/infiniband/hw/cxgb3/iwch_provider.c return &qhp->ibqp; ibqp 853 drivers/infiniband/hw/cxgb3/iwch_provider.c static int iwch_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 861 drivers/infiniband/hw/cxgb3/iwch_provider.c pr_debug("%s ib_qp %p\n", __func__, ibqp); ibqp 871 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp = to_iwch_qp(ibqp); ibqp 162 drivers/infiniband/hw/cxgb3/iwch_provider.h struct ib_qp ibqp; ibqp 178 drivers/infiniband/hw/cxgb3/iwch_provider.h static inline struct iwch_qp *to_iwch_qp(struct ib_qp *ibqp) ibqp 180 drivers/infiniband/hw/cxgb3/iwch_provider.h return container_of(ibqp, struct iwch_qp, ibqp); ibqp 329 drivers/infiniband/hw/cxgb3/iwch_provider.h int iwch_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 331 drivers/infiniband/hw/cxgb3/iwch_provider.h int iwch_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 351 drivers/infiniband/hw/cxgb3/iwch_qp.c int iwch_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 366 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp = to_iwch_qp(ibqp); ibqp 466 drivers/infiniband/hw/cxgb3/iwch_qp.c int iwch_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 476 drivers/infiniband/hw/cxgb3/iwch_qp.c qhp = to_iwch_qp(ibqp); ibqp 780 drivers/infiniband/hw/cxgb3/iwch_qp.c if (qhp->ibqp.uobject) { ibqp 837 drivers/infiniband/hw/cxgb3/iwch_qp.c if (!qhp->ibqp.uobject) ibqp 976 drivers/infiniband/hw/cxgb3/iwch_qp.c if (qhp->ibqp.uobject) ibqp 165 drivers/infiniband/hw/cxgb4/cm.c c4iw_qp_rem_ref(&ep->com.qp->ibqp); ibqp 174 drivers/infiniband/hw/cxgb4/cm.c c4iw_qp_add_ref(&ep->com.qp->ibqp); ibqp 1910 drivers/infiniband/hw/cxgb4/cm.c if (ep->com.qp->ibqp.uobject) ibqp 242 drivers/infiniband/hw/cxgb4/cq.c struct c4iw_cq *chp = to_c4iw_cq(qhp->ibqp.send_cq); ibqp 770 drivers/infiniband/hw/cxgb4/cq.c wc->qp = qhp ? &qhp->ibqp : NULL; ibqp 1168 drivers/infiniband/hw/cxgb4/cq.c struct c4iw_cq *rchp = to_c4iw_cq(qhp->ibqp.recv_cq); ibqp 1364 drivers/infiniband/hw/cxgb4/device.c c4iw_qp_rem_ref(&qp_list->qps[idx]->ibqp); ibqp 1450 drivers/infiniband/hw/cxgb4/device.c c4iw_qp_add_ref(&qp->ibqp); ibqp 109 drivers/infiniband/hw/cxgb4/ev.c event.element.qp = &qhp->ibqp; ibqp 110 drivers/infiniband/hw/cxgb4/ev.c if (qhp->ibqp.event_handler) ibqp 111 drivers/infiniband/hw/cxgb4/ev.c (*qhp->ibqp.event_handler)(&event, qhp->ibqp.qp_context); ibqp 153 drivers/infiniband/hw/cxgb4/ev.c c4iw_qp_add_ref(&qhp->ibqp); ibqp 218 drivers/infiniband/hw/cxgb4/ev.c c4iw_qp_rem_ref(&qhp->ibqp); ibqp 485 drivers/infiniband/hw/cxgb4/iw_cxgb4.h struct ib_qp ibqp; ibqp 502 drivers/infiniband/hw/cxgb4/iw_cxgb4.h static inline struct c4iw_qp *to_c4iw_qp(struct ib_qp *ibqp) ibqp 504 drivers/infiniband/hw/cxgb4/iw_cxgb4.h return container_of(ibqp, struct c4iw_qp, ibqp); ibqp 971 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 973 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 1009 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 1011 drivers/infiniband/hw/cxgb4/iw_cxgb4.h int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 987 drivers/infiniband/hw/cxgb4/qp.c schp = to_c4iw_cq(qhp->ibqp.send_cq); ibqp 1042 drivers/infiniband/hw/cxgb4/qp.c rchp = to_c4iw_cq(qhp->ibqp.recv_cq); ibqp 1076 drivers/infiniband/hw/cxgb4/qp.c int c4iw_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 1091 drivers/infiniband/hw/cxgb4/qp.c qhp = to_c4iw_qp(ibqp); ibqp 1260 drivers/infiniband/hw/cxgb4/qp.c int c4iw_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 1271 drivers/infiniband/hw/cxgb4/qp.c qhp = to_c4iw_qp(ibqp); ibqp 1664 drivers/infiniband/hw/cxgb4/qp.c rchp = to_c4iw_cq(qhp->ibqp.recv_cq); ibqp 1665 drivers/infiniband/hw/cxgb4/qp.c schp = to_c4iw_cq(qhp->ibqp.send_cq); ibqp 1667 drivers/infiniband/hw/cxgb4/qp.c if (qhp->ibqp.uobject) { ibqp 1795 drivers/infiniband/hw/cxgb4/qp.c if (!qhp->ibqp.uobject) ibqp 1983 drivers/infiniband/hw/cxgb4/qp.c if (!internal && (qhp->ibqp.uobject || attrs->next_state != ibqp 2334 drivers/infiniband/hw/cxgb4/qp.c qhp->ibqp.qp_num = qhp->wq.sq.qid; ibqp 2342 drivers/infiniband/hw/cxgb4/qp.c return &qhp->ibqp; ibqp 2367 drivers/infiniband/hw/cxgb4/qp.c int c4iw_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 2375 drivers/infiniband/hw/cxgb4/qp.c pr_debug("ib_qp %p\n", ibqp); ibqp 2385 drivers/infiniband/hw/cxgb4/qp.c qhp = to_c4iw_qp(ibqp); ibqp 2411 drivers/infiniband/hw/cxgb4/qp.c if (!is_t4(to_c4iw_qp(ibqp)->rhp->rdev.lldi.adapter_type) && ibqp 2463 drivers/infiniband/hw/cxgb4/qp.c int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 2466 drivers/infiniband/hw/cxgb4/qp.c struct c4iw_qp *qhp = to_c4iw_qp(ibqp); ibqp 140 drivers/infiniband/hw/cxgb4/restrack.c struct ib_qp *ibqp = container_of(res, struct ib_qp, res); ibqp 142 drivers/infiniband/hw/cxgb4/restrack.c struct c4iw_qp *qhp = to_c4iw_qp(ibqp); ibqp 99 drivers/infiniband/hw/efa/efa.h struct ib_qp ibqp; ibqp 124 drivers/infiniband/hw/efa/efa.h int efa_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 133 drivers/infiniband/hw/efa/efa.h int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); ibqp 155 drivers/infiniband/hw/efa/efa.h int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 135 drivers/infiniband/hw/efa/efa_verbs.c static inline struct efa_qp *to_eqp(struct ib_qp *ibqp) ibqp 137 drivers/infiniband/hw/efa/efa_verbs.c return container_of(ibqp, struct efa_qp, ibqp); ibqp 349 drivers/infiniband/hw/efa/efa_verbs.c int efa_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 353 drivers/infiniband/hw/efa/efa_verbs.c struct efa_dev *dev = to_edev(ibqp->device); ibqp 356 drivers/infiniband/hw/efa/efa_verbs.c struct efa_qp *qp = to_eqp(ibqp); ibqp 390 drivers/infiniband/hw/efa/efa_verbs.c qp_init_attr->qp_type = ibqp->qp_type; ibqp 391 drivers/infiniband/hw/efa/efa_verbs.c qp_init_attr->recv_cq = ibqp->recv_cq; ibqp 392 drivers/infiniband/hw/efa/efa_verbs.c qp_init_attr->send_cq = ibqp->send_cq; ibqp 393 drivers/infiniband/hw/efa/efa_verbs.c qp_init_attr->qp_context = ibqp->qp_context; ibqp 488 drivers/infiniband/hw/efa/efa_verbs.c int efa_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ibqp 490 drivers/infiniband/hw/efa/efa_verbs.c struct efa_dev *dev = to_edev(ibqp->pd->device); ibqp 491 drivers/infiniband/hw/efa/efa_verbs.c struct efa_qp *qp = to_eqp(ibqp); ibqp 494 drivers/infiniband/hw/efa/efa_verbs.c ibdev_dbg(&dev->ibdev, "Destroy qp[%u]\n", ibqp->qp_num); ibqp 747 drivers/infiniband/hw/efa/efa_verbs.c qp->ibqp.qp_num = create_qp_resp.qp_num; ibqp 748 drivers/infiniband/hw/efa/efa_verbs.c qp->ibqp.qp_type = init_attr->qp_type; ibqp 766 drivers/infiniband/hw/efa/efa_verbs.c ibdev_dbg(&dev->ibdev, "Created qp[%d]\n", qp->ibqp.qp_num); ibqp 768 drivers/infiniband/hw/efa/efa_verbs.c return &qp->ibqp; ibqp 821 drivers/infiniband/hw/efa/efa_verbs.c int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 824 drivers/infiniband/hw/efa/efa_verbs.c struct efa_dev *dev = to_edev(ibqp->device); ibqp 826 drivers/infiniband/hw/efa/efa_verbs.c struct efa_qp *qp = to_eqp(ibqp); ibqp 331 drivers/infiniband/hw/hfi1/driver.c switch (qp->ibqp.qp_type) { ibqp 380 drivers/infiniband/hw/hfi1/driver.c switch (qp->ibqp.qp_type) { ibqp 447 drivers/infiniband/hw/hfi1/driver.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 472 drivers/infiniband/hw/hfi1/driver.c dlid = qp->ibqp.qp_type != IB_QPT_UD ? ib_get_dlid(pkt->hdr) : ibqp 483 drivers/infiniband/hw/hfi1/driver.c switch (qp->ibqp.qp_type) { ibqp 351 drivers/infiniband/hw/hfi1/fault.c struct hfi1_ibdev *ibd = to_idev(qp->ibqp.device); ibqp 308 drivers/infiniband/hw/hfi1/mad.c ah = rdma_create_ah(qp0->ibqp.pd, &attr, 0); ibqp 92 drivers/infiniband/hw/hfi1/opfn.c ret = ib_post_send(&qp->ibqp, &wr.wr, NULL); ibqp 244 drivers/infiniband/hw/hfi1/opfn.c struct ib_qp *ibqp = &qp->ibqp; ibqp 252 drivers/infiniband/hw/hfi1/opfn.c if (ibqp->qp_type == IB_QPT_RC && HFI1_CAP_IS_KSET(TID_RDMA)) { ibqp 219 drivers/infiniband/hw/hfi1/qp.c struct ib_qp *ibqp = &qp->ibqp; ibqp 220 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibdev *dev = to_idev(ibqp->device); ibqp 225 drivers/infiniband/hw/hfi1/qp.c sc = ah_to_sc(ibqp->device, &attr->ah_attr); ibqp 238 drivers/infiniband/hw/hfi1/qp.c sc = ah_to_sc(ibqp->device, &attr->alt_ah_attr); ibqp 265 drivers/infiniband/hw/hfi1/qp.c hfi1_update_ah_attr(qp->ibqp.device, &qp->remote_ah_attr); ibqp 273 drivers/infiniband/hw/hfi1/qp.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 281 drivers/infiniband/hw/hfi1/qp.c struct ib_qp *ibqp = &qp->ibqp; ibqp 285 drivers/infiniband/hw/hfi1/qp.c priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); ibqp 295 drivers/infiniband/hw/hfi1/qp.c priv->s_sc = ah_to_sc(ibqp->device, &qp->remote_ah_attr); ibqp 321 drivers/infiniband/hw/hfi1/qp.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 326 drivers/infiniband/hw/hfi1/qp.c switch (qp->ibqp.qp_type) { ibqp 382 drivers/infiniband/hw/hfi1/qp.c to_iport(qp->ibqp.device, qp->port_num); ibqp 384 drivers/infiniband/hw/hfi1/qp.c struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 518 drivers/infiniband/hw/hfi1/qp.c to_iport(qp->ibqp.device, qp->port_num); ibqp 593 drivers/infiniband/hw/hfi1/qp.c struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 598 drivers/infiniband/hw/hfi1/qp.c switch (qp->ibqp.qp_type) { ibqp 604 drivers/infiniband/hw/hfi1/qp.c sde = sdma_select_engine_sc(dd, qp->ibqp.qp_num >> dd->qos_shift, sc5); ibqp 618 drivers/infiniband/hw/hfi1/qp.c struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 620 drivers/infiniband/hw/hfi1/qp.c switch (qp->ibqp.qp_type) { ibqp 628 drivers/infiniband/hw/hfi1/qp.c return pio_select_send_context_sc(dd, qp->ibqp.qp_num >> dd->qos_shift, ibqp 658 drivers/infiniband/hw/hfi1/qp.c struct rvt_srq *srq = qp->ibqp.srq ? ibqp 659 drivers/infiniband/hw/hfi1/qp.c ibsrq_to_rvtsrq(qp->ibqp.srq) : NULL; ibqp 670 drivers/infiniband/hw/hfi1/qp.c qp->ibqp.qp_num, ibqp 672 drivers/infiniband/hw/hfi1/qp.c qp_type_str[qp->ibqp.qp_type], ibqp 691 drivers/infiniband/hw/hfi1/qp.c rvt_max_atomic(&to_idev(qp->ibqp.device)->rdi), ibqp 705 drivers/infiniband/hw/hfi1/qp.c ib_cq_head(qp->ibqp.send_cq), ibqp 706 drivers/infiniband/hw/hfi1/qp.c ib_cq_tail(qp->ibqp.send_cq), ibqp 818 drivers/infiniband/hw/hfi1/qp.c if (qp->ibqp.qp_type == IB_QPT_RC) ibqp 836 drivers/infiniband/hw/hfi1/qp.c priv->s_sc = ah_to_sc(qp->ibqp.device, &qp->remote_ah_attr); ibqp 840 drivers/infiniband/hw/hfi1/qp.c ev.device = qp->ibqp.device; ibqp 841 drivers/infiniband/hw/hfi1/qp.c ev.element.qp = &qp->ibqp; ibqp 843 drivers/infiniband/hw/hfi1/qp.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 867 drivers/infiniband/hw/hfi1/qp.c mtu = verbs_mtu_enum_to_int(qp->ibqp.device, pmtu); ibqp 883 drivers/infiniband/hw/hfi1/qp.c mtu = verbs_mtu_enum_to_int(qp->ibqp.device, attr->path_mtu); ibqp 936 drivers/infiniband/hw/hfi1/qp.c to_iport(qp->ibqp.device, qp->port_num); ibqp 941 drivers/infiniband/hw/hfi1/qp.c (qp->ibqp.qp_type != IB_QPT_UC && ibqp 942 drivers/infiniband/hw/hfi1/qp.c qp->ibqp.qp_type != IB_QPT_RC) || ibqp 955 drivers/infiniband/hw/hfi1/qp.c ev.device = qp->ibqp.device; ibqp 956 drivers/infiniband/hw/hfi1/qp.c ev.element.qp = &qp->ibqp; ibqp 958 drivers/infiniband/hw/hfi1/qp.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 72 drivers/infiniband/hw/hfi1/rc.c p = rvt_size_atomic(ib_to_rvt(qp->ibqp.device)); ibqp 432 drivers/infiniband/hw/hfi1/rc.c struct hfi1_ibdev *dev = to_idev(qp->ibqp.device); ibqp 1439 drivers/infiniband/hw/hfi1/rc.c trace_ack_output_ibhdr(dd_from_ibdev(qp->ibqp.device), ibqp 1627 drivers/infiniband/hw/hfi1/rc.c to_iport(qp->ibqp.device, qp->port_num); ibqp 1658 drivers/infiniband/hw/hfi1/rc.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 2211 drivers/infiniband/hw/hfi1/rc.c rdi = ib_to_rvt(qp->ibqp.device); ibqp 2987 drivers/infiniband/hw/hfi1/rc.c wc.qp = &qp->ibqp; ibqp 3066 drivers/infiniband/hw/hfi1/rc.c if (next > rvt_size_atomic(ib_to_rvt(qp->ibqp.device))) ibqp 3141 drivers/infiniband/hw/hfi1/rc.c if (next > rvt_size_atomic(ib_to_rvt(qp->ibqp.device))) ibqp 18 drivers/infiniband/hw/hfi1/rc.h if (next > rvt_size_atomic(ib_to_rvt(qp->ibqp.device))) ibqp 106 drivers/infiniband/hw/hfi1/ruc.c hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, ibqp 143 drivers/infiniband/hw/hfi1/ruc.c hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, ibqp 540 drivers/infiniband/hw/hfi1/ruc.c ps.dev = to_idev(qp->ibqp.device); ibqp 541 drivers/infiniband/hw/hfi1/ruc.c ps.ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 548 drivers/infiniband/hw/hfi1/ruc.c switch (qp->ibqp.qp_type) { ibqp 330 drivers/infiniband/hw/hfi1/tid_rdma.c if (qp->ibqp.qp_num == 0) ibqp 333 drivers/infiniband/hw/hfi1/tid_rdma.c ctxt = hfi1_get_qp_map(dd, qp->ibqp.qp_num >> dd->qos_shift); ibqp 418 drivers/infiniband/hw/hfi1/tid_rdma.c if (qp->ibqp.qp_type == IB_QPT_RC && HFI1_CAP_IS_KSET(TID_RDMA)) { ibqp 618 drivers/infiniband/hw/hfi1/tid_rdma.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 620 drivers/infiniband/hw/hfi1/tid_rdma.c dd = dd_from_ibdev(qp->ibqp.device); ibqp 1982 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 1984 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibdev *dev = to_idev(qp->ibqp.device); ibqp 2225 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 2267 drivers/infiniband/hw/hfi1/tid_rdma.c if (next > rvt_size_atomic(ib_to_rvt(qp->ibqp.device))) ibqp 2683 drivers/infiniband/hw/hfi1/tid_rdma.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 3160 drivers/infiniband/hw/hfi1/tid_rdma.c if (qp->ibqp.qp_type != IB_QPT_RC || !HFI1_CAP_IS_KSET(TID_RDMA)) ibqp 3188 drivers/infiniband/hw/hfi1/tid_rdma.c if (++i == rvt_max_atomic(ib_to_rvt(qp->ibqp.device))) ibqp 3568 drivers/infiniband/hw/hfi1/tid_rdma.c rvt_size_atomic(ib_to_rvt(qp->ibqp.device))) ibqp 3597 drivers/infiniband/hw/hfi1/tid_rdma.c if (qp->r_head_ack_queue > rvt_size_atomic(ib_to_rvt(qp->ibqp.device))) ibqp 3648 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 3694 drivers/infiniband/hw/hfi1/tid_rdma.c rvt_size_atomic(ib_to_rvt(qp->ibqp.device)); ibqp 3698 drivers/infiniband/hw/hfi1/tid_rdma.c if (next > rvt_size_atomic(ib_to_rvt(qp->ibqp.device))) ibqp 3973 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 3980 drivers/infiniband/hw/hfi1/tid_rdma.c dd_dev_warn(dd_from_ibdev(qp->ibqp.device), "[QP%u] %s %d\n", ibqp 3981 drivers/infiniband/hw/hfi1/tid_rdma.c qp->ibqp.qp_num, __func__, __LINE__); ibqp 3998 drivers/infiniband/hw/hfi1/tid_rdma.c if (qp->ibqp.event_handler) { ibqp 4001 drivers/infiniband/hw/hfi1/tid_rdma.c ev.device = qp->ibqp.device; ibqp 4002 drivers/infiniband/hw/hfi1/tid_rdma.c ev.element.qp = &qp->ibqp; ibqp 4004 drivers/infiniband/hw/hfi1/tid_rdma.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 4265 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibdev *dev = to_idev(qp->ibqp.device); ibqp 4552 drivers/infiniband/hw/hfi1/tid_rdma.c to_iport(qp->ibqp.device, ibqp 4740 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_qp *ibqp = &qp->ibqp; ibqp 4741 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 4755 drivers/infiniband/hw/hfi1/tid_rdma.c struct ib_qp *ibqp = &qp->ibqp; ibqp 4756 drivers/infiniband/hw/hfi1/tid_rdma.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 4862 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibdev *dev = to_idev(qp->ibqp.device); ibqp 5179 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibdev *dev = to_idev(qp->ibqp.device); ibqp 5341 drivers/infiniband/hw/hfi1/tid_rdma.c ps.dev = to_idev(qp->ibqp.device); ibqp 5342 drivers/infiniband/hw/hfi1/tid_rdma.c ps.ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 5407 drivers/infiniband/hw/hfi1/tid_rdma.c to_iport(qp->ibqp.device, qp->port_num); ibqp 5409 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 5453 drivers/infiniband/hw/hfi1/tid_rdma.c struct hfi1_ibdev *dev = to_idev(qp->ibqp.device); ibqp 29 drivers/infiniband/hw/hfi1/trace_iowait.h __entry->qpn = iowait_to_qp(wait)->ibqp.qp_num; ibqp 99 drivers/infiniband/hw/hfi1/trace_misc.h TP_STRUCT__entry(DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 103 drivers/infiniband/hw/hfi1/trace_misc.h TP_fast_assign(DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 104 drivers/infiniband/hw/hfi1/trace_misc.h __entry->qpn = qp->ibqp.qp_num; ibqp 62 drivers/infiniband/hw/hfi1/trace_rc.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 73 drivers/infiniband/hw/hfi1/trace_rc.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 74 drivers/infiniband/hw/hfi1/trace_rc.h __entry->qpn = qp->ibqp.qp_num; ibqp 124 drivers/infiniband/hw/hfi1/trace_rc.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 133 drivers/infiniband/hw/hfi1/trace_rc.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 134 drivers/infiniband/hw/hfi1/trace_rc.h __entry->qpn = qp->ibqp.qp_num; ibqp 198 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 207 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 208 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 258 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 265 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 266 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 305 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 317 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 318 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 360 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp ? qp->ibqp.qp_num : 0; ibqp 420 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 429 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 430 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 460 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 467 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 468 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 494 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 514 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 515 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 642 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 652 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 653 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 686 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 694 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 695 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 747 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 768 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 769 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 871 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 889 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 890 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 981 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 998 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 999 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 1048 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 1070 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 1071 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 1275 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 1288 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 1289 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 1327 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 1334 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 1335 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 1361 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 1382 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 1383 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 1475 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 1493 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 1494 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 1569 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 1577 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 1578 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 1607 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 1614 drivers/infiniband/hw/hfi1/trace_tid.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)); ibqp 1615 drivers/infiniband/hw/hfi1/trace_tid.h __entry->qpn = qp->ibqp.qp_num; ibqp 113 drivers/infiniband/hw/hfi1/trace_tx.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 121 drivers/infiniband/hw/hfi1/trace_tx.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 123 drivers/infiniband/hw/hfi1/trace_tx.h __entry->qpn = qp->ibqp.qp_num; ibqp 783 drivers/infiniband/hw/hfi1/trace_tx.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 795 drivers/infiniband/hw/hfi1/trace_tx.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 798 drivers/infiniband/hw/hfi1/trace_tx.h __entry->qpn = qp->ibqp.qp_num; ibqp 799 drivers/infiniband/hw/hfi1/trace_tx.h __entry->qpt = qp->ibqp.qp_type; ibqp 826 drivers/infiniband/hw/hfi1/trace_tx.h DD_DEV_ENTRY(dd_from_ibdev(qp->ibqp.device)) ibqp 831 drivers/infiniband/hw/hfi1/trace_tx.h DD_DEV_ASSIGN(dd_from_ibdev(qp->ibqp.device)) ibqp 832 drivers/infiniband/hw/hfi1/trace_tx.h __entry->qpn = qp->ibqp.qp_num; ibqp 458 drivers/infiniband/hw/hfi1/uc.c wc.qp = &qp->ibqp; ibqp 75 drivers/infiniband/hw/hfi1/ud.c struct hfi1_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); ibqp 89 drivers/infiniband/hw/hfi1/ud.c qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), &ibp->rvp, ibqp 97 drivers/infiniband/hw/hfi1/ud.c sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? ibqp 98 drivers/infiniband/hw/hfi1/ud.c IB_QPT_UD : sqp->ibqp.qp_type; ibqp 99 drivers/infiniband/hw/hfi1/ud.c dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? ibqp 100 drivers/infiniband/hw/hfi1/ud.c IB_QPT_UD : qp->ibqp.qp_type; ibqp 111 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_num > 1) { ibqp 124 drivers/infiniband/hw/hfi1/ud.c sqp->ibqp.qp_num, qp->ibqp.qp_num, ibqp 135 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_num) { ibqp 173 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_num == 0) ibqp 238 drivers/infiniband/hw/hfi1/ud.c wc.qp = &qp->ibqp; ibqp 239 drivers/infiniband/hw/hfi1/ud.c wc.src_qp = sqp->ibqp.qp_num; ibqp 240 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) { ibqp 241 drivers/infiniband/hw/hfi1/ud.c if (sqp->ibqp.qp_type == IB_QPT_GSI || ibqp 242 drivers/infiniband/hw/hfi1/ud.c sqp->ibqp.qp_type == IB_QPT_SMI) ibqp 252 drivers/infiniband/hw/hfi1/ud.c if (wc.slid == 0 && sqp->ibqp.qp_type == IB_QPT_GSI) ibqp 273 drivers/infiniband/hw/hfi1/ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 284 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_type == IB_QPT_GSI || qp->ibqp.qp_type == IB_QPT_SMI) ibqp 300 drivers/infiniband/hw/hfi1/ud.c ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); ibqp 317 drivers/infiniband/hw/hfi1/ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 343 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_type == IB_QPT_SMI) { ibqp 384 drivers/infiniband/hw/hfi1/ud.c u32 src_qp = qp->ibqp.qp_num; ibqp 389 drivers/infiniband/hw/hfi1/ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 439 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_type == IB_QPT_SMI) ibqp 516 drivers/infiniband/hw/hfi1/ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 526 drivers/infiniband/hw/hfi1/ud.c (qp->ibqp.qp_type == IB_QPT_GSI))))) { ibqp 916 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_num) { ibqp 919 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_num > 1) { ibqp 929 drivers/infiniband/hw/hfi1/ud.c src_qp, qp->ibqp.qp_num, ibqp 944 drivers/infiniband/hw/hfi1/ud.c if (unlikely(qp->ibqp.qp_num == 1 && ibqp 966 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_num > 1 && ibqp 997 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_num == 0) ibqp 1034 drivers/infiniband/hw/hfi1/ud.c wc.qp = &qp->ibqp; ibqp 1037 drivers/infiniband/hw/hfi1/ud.c if (qp->ibqp.qp_type == IB_QPT_GSI || ibqp 1038 drivers/infiniband/hw/hfi1/ud.c qp->ibqp.qp_type == IB_QPT_SMI) { ibqp 1044 drivers/infiniband/hw/hfi1/ud.c qp->ibqp.qp_type); ibqp 360 drivers/infiniband/hw/hfi1/verbs.c if (packet->qp->ibqp.qp_type != IB_QPT_RC || ibqp 637 drivers/infiniband/hw/hfi1/verbs.c } else if (qp->ibqp.qp_type == IB_QPT_RC) { ibqp 653 drivers/infiniband/hw/hfi1/verbs.c struct ib_qp *ibqp = &qp->ibqp; ibqp 654 drivers/infiniband/hw/hfi1/verbs.c struct ib_device *ibdev = ibqp->device; ibqp 742 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 866 drivers/infiniband/hw/hfi1/verbs.c u32 vl = sc_to_vlt(dd_from_ibdev(qp->ibqp.device), sc5); ibqp 901 drivers/infiniband/hw/hfi1/verbs.c trace_sdma_output_ibhdr(dd_from_ibdev(qp->ibqp.device), ibqp 1011 drivers/infiniband/hw/hfi1/verbs.c switch (qp->ibqp.qp_type) { ibqp 1025 drivers/infiniband/hw/hfi1/verbs.c u8 vl = sc_to_vlt(dd_from_ibdev(qp->ibqp.device), sc5); ibqp 1098 drivers/infiniband/hw/hfi1/verbs.c trace_pio_output_ibhdr(dd_from_ibdev(qp->ibqp.device), ibqp 1105 drivers/infiniband/hw/hfi1/verbs.c } else if (qp->ibqp.qp_type == IB_QPT_RC) { ibqp 1217 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 1223 drivers/infiniband/hw/hfi1/verbs.c switch (qp->ibqp.qp_type) { ibqp 1256 drivers/infiniband/hw/hfi1/verbs.c struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 1984 drivers/infiniband/hw/hfi1/verbs.c switch (packet->qp->ibqp.qp_type) { ibqp 2007 drivers/infiniband/hw/hfi1/verbs.c lqpn = qp->ibqp.qp_num; ibqp 64 drivers/infiniband/hw/hfi1/verbs_txreq.c dev = to_idev(qp->ibqp.device); ibqp 652 drivers/infiniband/hw/hns/hns_roce_device.h struct ib_qp ibqp; ibqp 961 drivers/infiniband/hw/hns/hns_roce_device.h int (*query_qp)(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 963 drivers/infiniband/hw/hns/hns_roce_device.h int (*modify_qp)(struct ib_qp *ibqp, const struct ib_qp_attr *attr, ibqp 966 drivers/infiniband/hw/hns/hns_roce_device.h int (*destroy_qp)(struct ib_qp *ibqp, struct ib_udata *udata); ibqp 969 drivers/infiniband/hw/hns/hns_roce_device.h int (*post_send)(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 1079 drivers/infiniband/hw/hns/hns_roce_device.h static inline struct hns_roce_qp *to_hr_qp(struct ib_qp *ibqp) ibqp 1081 drivers/infiniband/hw/hns/hns_roce_device.h return container_of(ibqp, struct hns_roce_qp, ibqp); ibqp 1240 drivers/infiniband/hw/hns/hns_roce_device.h int hns_roce_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 61 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_post_send(struct ib_qp *ibqp, ibqp 65 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 70 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_qp *qp = to_hr_qp(ibqp); ibqp 83 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (unlikely(ibqp->qp_type != IB_QPT_GSI && ibqp 84 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ibqp->qp_type != IB_QPT_RC)) { ibqp 93 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { ibqp 113 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ibqp->qp_type == IB_QPT_GSI) { ibqp 214 drivers/infiniband/hw/hns/hns_roce_hw_v1.c } else if (ibqp->qp_type == IB_QPT_RC) { ibqp 345 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_post_recv(struct ib_qp *ibqp, ibqp 351 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 352 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 367 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->ibqp.recv_cq)) { ibqp 404 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ibqp->qp_type == IB_QPT_GSI) { ibqp 408 drivers/infiniband/hw/hns/hns_roce_hw_v1.c reg_val = roce_read(to_hr_dev(ibqp->device), ibqp 417 drivers/infiniband/hw/hns/hns_roce_hw_v1.c roce_write(to_hr_dev(ibqp->device), ibqp 806 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->ibqp.qp_type = IB_QPT_RC; ibqp 807 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->ibqp.device = &hr_dev->ib_dev; ibqp 808 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->ibqp.uobject = NULL; ibqp 809 drivers/infiniband/hw/hns/hns_roce_hw_v1.c atomic_set(&hr_qp->ibqp.usecnt, 0); ibqp 810 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->ibqp.pd = pd; ibqp 811 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->ibqp.recv_cq = cq; ibqp 812 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->ibqp.send_cq = cq; ibqp 831 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, attr_mask, ibqp 838 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, IB_QP_DEST_QPN, ibqp 845 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, &attr, attr_mask, ibqp 858 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (hns_roce_v1_destroy_qp(&hr_qp->ibqp, NULL)) ibqp 891 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hns_roce_v1_destroy_qp(&hr_qp->ibqp, NULL); ibqp 1004 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_dev *hr_dev = to_hr_dev(hr_qp->ibqp.device); ibqp 1018 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hns_roce_v1_post_send(&hr_qp->ibqp, &send_wr, &bad_wr); ibqp 2235 drivers/infiniband/hw/hns/hns_roce_hw_v1.c wc->qp = &(*cur_qp)->ibqp; ibqp 2568 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_m_sqp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, ibqp 2572 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 2573 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 2605 drivers/infiniband/hw/hns/hns_roce_hw_v1.c QP1C_BYTES_4_PD_S, to_hr_pd(ibqp->pd)->pdn); ibqp 2647 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->recv_cq)->cqn); ibqp 2651 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->send_cq)->cqn); ibqp 2692 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_v1_cq_clean(to_hr_cq(ibqp->recv_cq), hr_qp->qpn, ibqp 2693 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ibqp->srq ? to_hr_srq(ibqp->srq) : NULL); ibqp 2694 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ibqp->send_cq != ibqp->recv_cq) ibqp 2695 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_v1_cq_clean(to_hr_cq(ibqp->send_cq), ibqp 2712 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_m_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, ibqp 2716 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 2717 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 2763 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_qp_type(hr_qp->ibqp.qp_type)); ibqp 2791 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_pd(ibqp->pd)->pdn); ibqp 2796 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->send_cq)->cqn); ibqp 2800 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->recv_cq)->cqn); ibqp 2802 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ibqp->srq) ibqp 2806 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_srq(ibqp->srq)->srqn); ibqp 2821 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_qp_type(hr_qp->ibqp.qp_type)); ibqp 2857 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_pd(ibqp->pd)->pdn); ibqp 2862 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->send_cq)->cqn); ibqp 2866 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_cq(ibqp->recv_cq)->cqn); ibqp 2868 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ibqp->srq) ibqp 2872 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_srq(ibqp->srq)->srqn); ibqp 3286 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ibqp->uobject) { ibqp 3304 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (new_state == IB_QPS_RESET && !ibqp->uobject) { ibqp 3305 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_v1_cq_clean(to_hr_cq(ibqp->recv_cq), hr_qp->qpn, ibqp 3306 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ibqp->srq ? to_hr_srq(ibqp->srq) : NULL); ibqp 3307 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ibqp->send_cq != ibqp->recv_cq) ibqp 3308 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_v1_cq_clean(to_hr_cq(ibqp->send_cq), ibqp 3321 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_modify_qp(struct ib_qp *ibqp, ibqp 3327 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_SMI) ibqp 3328 drivers/infiniband/hw/hns/hns_roce_hw_v1.c return hns_roce_v1_m_sqp(ibqp, attr, attr_mask, cur_state, ibqp 3331 drivers/infiniband/hw/hns/hns_roce_hw_v1.c return hns_roce_v1_m_qp(ibqp, attr, attr_mask, cur_state, ibqp 3379 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_q_sqp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 3383 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 3384 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 3449 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_q_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 3453 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 3454 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 3498 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (hr_qp->ibqp.qp_type == IB_QPT_UD) ibqp 3517 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (hr_qp->ibqp.qp_type == IB_QPT_RC || ibqp 3518 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->ibqp.qp_type == IB_QPT_UC) { ibqp 3575 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!ibqp->uobject) { ibqp 3591 drivers/infiniband/hw/hns/hns_roce_hw_v1.c static int hns_roce_v1_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 3595 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 3598 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_v1_q_sqp(ibqp, qp_attr, qp_attr_mask, qp_init_attr) : ibqp 3599 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hns_roce_v1_q_qp(ibqp, qp_attr, qp_attr_mask, qp_init_attr); ibqp 3602 drivers/infiniband/hw/hns/hns_roce_hw_v1.c int hns_roce_v1_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ibqp 3604 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 3605 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 3609 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ret = hns_roce_v1_modify_qp(ibqp, NULL, 0, hr_qp->state, IB_QPS_RESET); ibqp 3613 drivers/infiniband/hw/hns/hns_roce_hw_v1.c send_cq = to_hr_cq(hr_qp->ibqp.send_cq); ibqp 3614 drivers/infiniband/hw/hns/hns_roce_hw_v1.c recv_cq = to_hr_cq(hr_qp->ibqp.recv_cq); ibqp 3618 drivers/infiniband/hw/hns/hns_roce_hw_v1.c __hns_roce_v1_cq_clean(recv_cq, hr_qp->qpn, hr_qp->ibqp.srq ? ibqp 3619 drivers/infiniband/hw/hns/hns_roce_hw_v1.c to_hr_srq(hr_qp->ibqp.srq) : NULL); ibqp 3629 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (hr_qp->ibqp.qp_type == IB_QPT_RC) ibqp 3642 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (hr_qp->ibqp.qp_type == IB_QPT_RC) ibqp 1097 drivers/infiniband/hw/hns/hns_roce_hw_v1.h int hns_roce_v1_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); ibqp 124 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) ibqp 159 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int set_rwqe_data_seg(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 165 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 167 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *qp = to_hr_qp(ibqp); ibqp 228 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_modify_qp(struct ib_qp *ibqp, ibqp 233 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_post_send(struct ib_qp *ibqp, ibqp 237 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 241 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *qp = to_hr_qp(ibqp); ibqp 261 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (unlikely(ibqp->qp_type != IB_QPT_RC && ibqp 262 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ibqp->qp_type != IB_QPT_GSI && ibqp 263 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ibqp->qp_type != IB_QPT_UD)) { ibqp 264 drivers/infiniband/hw/hns/hns_roce_hw_v2.c dev_err(dev, "Not supported QP(0x%x)type!\n", ibqp->qp_type); ibqp 280 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (hns_roce_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { ibqp 311 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ibqp->qp_type == IB_QPT_GSI) { ibqp 375 drivers/infiniband/hw/hns/hns_roce_hw_v2.c to_hr_pd(ibqp->pd)->pdn); ibqp 436 drivers/infiniband/hw/hns/hns_roce_hw_v2.c } else if (ibqp->qp_type == IB_QPT_RC) { ibqp 561 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = set_rwqe_data_seg(ibqp, wr, rc_sq_wqe, ibqp 568 drivers/infiniband/hw/hns/hns_roce_hw_v2.c dev_err(dev, "Illegal qp_type(0x%x)\n", ibqp->qp_type); ibqp 602 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_modify_qp(&qp->ibqp, &attr, attr_mask, ibqp 617 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_post_recv(struct ib_qp *ibqp, ibqp 621 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 622 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 645 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->ibqp.recv_cq)) { ibqp 702 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_modify_qp(&hr_qp->ibqp, &attr, ibqp 2737 drivers/infiniband/hw/hns/hns_roce_hw_v2.c wc->qp = &(*cur_qp)->ibqp; ibqp 2757 drivers/infiniband/hw/hns/hns_roce_hw_v2.c } else if ((*cur_qp)->ibqp.srq) { ibqp 2758 drivers/infiniband/hw/hns/hns_roce_hw_v2.c srq = to_hr_srq((*cur_qp)->ibqp.srq); ibqp 2826 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return hns_roce_v2_modify_qp(&(*cur_qp)->ibqp, ibqp 3223 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (hr_qp->ibqp.qp_type == IB_QPT_GSI) ibqp 3247 drivers/infiniband/hw/hns/hns_roce_hw_v2.c (hr_qp->ibqp.qp_type == IB_QPT_XRC_INI || ibqp 3248 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->ibqp.qp_type == IB_QPT_XRC_TGT || ibqp 3249 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->ibqp.srq) ? 0 : ibqp 3256 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static void modify_qp_reset_to_init(struct ib_qp *ibqp, ibqp 3262 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 3263 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 3272 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_4_TST_S, to_hr_qp_type(hr_qp->ibqp.qp_type)); ibqp 3282 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_16_PD_S, to_hr_pd(ibqp->pd)->pdn); ibqp 3344 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_80_RX_CQN_S, to_hr_cq(ibqp->recv_cq)->cqn); ibqp 3347 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ibqp->srq) { ibqp 3350 drivers/infiniband/hw/hns/hns_roce_hw_v2.c to_hr_srq(ibqp->srq)->srqn); ibqp 3534 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_252_TX_CQN_S, to_hr_cq(ibqp->send_cq)->cqn); ibqp 3549 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static void modify_qp_init_to_init(struct ib_qp *ibqp, ibqp 3554 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 3563 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_4_TST_S, to_hr_qp_type(hr_qp->ibqp.qp_type)); ibqp 3602 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_16_PD_S, to_hr_pd(ibqp->pd)->pdn); ibqp 3607 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_80_RX_CQN_S, to_hr_cq(ibqp->recv_cq)->cqn); ibqp 3612 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_QPC_BYTE_252_TX_CQN_S, to_hr_cq(ibqp->send_cq)->cqn); ibqp 3616 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ibqp->srq) { ibqp 3623 drivers/infiniband/hw/hns/hns_roce_hw_v2.c to_hr_srq(ibqp->srq)->srqn); ibqp 3666 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int modify_qp_init_to_rtr(struct ib_qp *ibqp, ibqp 3672 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 3673 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 3693 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (!ibqp->srq) ibqp 3743 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ((ibqp->qp_type == IB_QPT_GSI) || ibqp 3865 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ibqp->qp_type == IB_QPT_GSI || ibqp->qp_type == IB_QPT_UD) ibqp 3912 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int modify_qp_rtr_to_rts(struct ib_qp *ibqp, ibqp 3917 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 3918 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 3967 drivers/infiniband/hw/hns/hns_roce_hw_v2.c context->sq_cur_sge_blk_addr = ((ibqp->qp_type == IB_QPT_GSI) || ibqp 3974 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ((ibqp->qp_type == IB_QPT_GSI) || hr_qp->sq.max_gs > ibqp 4056 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_set_path(struct ib_qp *ibqp, ibqp 4063 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 4064 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 4158 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_set_abs_fields(struct ib_qp *ibqp, ibqp 4166 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 4171 drivers/infiniband/hw/hns/hns_roce_hw_v2.c modify_qp_reset_to_init(ibqp, attr, attr_mask, context, ibqp 4174 drivers/infiniband/hw/hns/hns_roce_hw_v2.c modify_qp_init_to_init(ibqp, attr, attr_mask, context, ibqp 4177 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = modify_qp_init_to_rtr(ibqp, attr, attr_mask, context, ibqp 4182 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = modify_qp_rtr_to_rts(ibqp, attr, attr_mask, context, ibqp 4199 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_set_opt_fields(struct ib_qp *ibqp, ibqp 4205 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 4206 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 4210 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_set_path(ibqp, attr, attr_mask, context, ibqp 4367 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static void hns_roce_v2_record_opt_fields(struct ib_qp *ibqp, ibqp 4371 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 4372 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 4385 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_modify_qp(struct ib_qp *ibqp, ibqp 4390 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 4391 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 4406 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_set_abs_fields(ibqp, attr, attr_mask, cur_state, ibqp 4421 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (!ibqp->srq) { ibqp 4433 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_set_opt_fields(ibqp, attr, attr_mask, context, ibqp 4439 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ibqp->srq ? 1 : 0); ibqp 4458 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_v2_record_opt_fields(ibqp, attr, attr_mask); ibqp 4460 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (new_state == IB_QPS_RESET && !ibqp->uobject) { ibqp 4461 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_v2_cq_clean(to_hr_cq(ibqp->recv_cq), hr_qp->qpn, ibqp 4462 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ibqp->srq ? to_hr_srq(ibqp->srq) : NULL); ibqp 4463 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (ibqp->send_cq != ibqp->recv_cq) ibqp 4464 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hns_roce_v2_cq_clean(to_hr_cq(ibqp->send_cq), ibqp 4521 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 4525 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 4526 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 4566 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (hr_qp->ibqp.qp_type == IB_QPT_UD) ibqp 4585 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (hr_qp->ibqp.qp_type == IB_QPT_RC || ibqp 4586 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->ibqp.qp_type == IB_QPT_UC) { ibqp 4634 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (!ibqp->uobject) { ibqp 4657 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (hr_qp->ibqp.qp_type == IB_QPT_RC && hr_qp->state != IB_QPS_RESET) { ibqp 4659 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_modify_qp(&hr_qp->ibqp, NULL, 0, ibqp 4665 drivers/infiniband/hw/hns/hns_roce_hw_v2.c send_cq = to_hr_cq(hr_qp->ibqp.send_cq); ibqp 4666 drivers/infiniband/hw/hns/hns_roce_hw_v2.c recv_cq = to_hr_cq(hr_qp->ibqp.recv_cq); ibqp 4671 drivers/infiniband/hw/hns/hns_roce_hw_v2.c __hns_roce_v2_cq_clean(recv_cq, hr_qp->qpn, hr_qp->ibqp.srq ? ibqp 4672 drivers/infiniband/hw/hns/hns_roce_hw_v2.c to_hr_srq(hr_qp->ibqp.srq) : NULL); ibqp 4684 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if ((hr_qp->ibqp.qp_type == IB_QPT_RC) || ibqp 4685 drivers/infiniband/hw/hns/hns_roce_hw_v2.c (hr_qp->ibqp.qp_type == IB_QPT_UC) || ibqp 4686 drivers/infiniband/hw/hns/hns_roce_hw_v2.c (hr_qp->ibqp.qp_type == IB_QPT_UD)) ibqp 4721 drivers/infiniband/hw/hns/hns_roce_hw_v2.c static int hns_roce_v2_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ibqp 4723 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 4724 drivers/infiniband/hw/hns/hns_roce_hw_v2.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 4732 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (hr_qp->ibqp.qp_type == IB_QPT_GSI) ibqp 4847 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (hr_qp->ibqp.uobject) { ibqp 4860 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ret = hns_roce_v2_modify_qp(&hr_qp->ibqp, &attr, attr_mask, ibqp 72 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp *ibqp = &hr_qp->ibqp; ibqp 74 drivers/infiniband/hw/hns/hns_roce_qp.c if (ibqp->event_handler) { ibqp 75 drivers/infiniband/hw/hns/hns_roce_qp.c event.device = ibqp->device; ibqp 76 drivers/infiniband/hw/hns/hns_roce_qp.c event.element.qp = ibqp; ibqp 103 drivers/infiniband/hw/hns/hns_roce_qp.c dev_dbg(ibqp->device->dev.parent, "roce_ib: Unexpected event type %d on QP %06lx\n", ibqp 107 drivers/infiniband/hw/hns/hns_roce_qp.c ibqp->event_handler(&event, ibqp->qp_context); ibqp 252 drivers/infiniband/hw/hns/hns_roce_qp.c if ((hr_qp->ibqp.qp_type) != IB_QPT_GSI) { ibqp 533 drivers/infiniband/hw/hns/hns_roce_qp.c if (hr_dev->caps.max_sq_sg > 2 && hr_qp->ibqp.qp_type == IB_QPT_GSI) { ibqp 709 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->ibqp.qp_type = init_attr->qp_type; ibqp 1041 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->ibqp.qp_num = hr_qp->qpn; ibqp 1062 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->ibqp.qp_num = HNS_ROCE_MAX_PORTS + ibqp 1065 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->ibqp.qp_num = 1; ibqp 1068 drivers/infiniband/hw/hns/hns_roce_qp.c hr_qp->ibqp.qp_num, hr_qp); ibqp 1084 drivers/infiniband/hw/hns/hns_roce_qp.c return &hr_qp->ibqp; ibqp 1127 drivers/infiniband/hw/hns/hns_roce_qp.c static int hns_roce_check_qp_attr(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 1130 drivers/infiniband/hw/hns/hns_roce_qp.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 1131 drivers/infiniband/hw/hns/hns_roce_qp.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 1174 drivers/infiniband/hw/hns/hns_roce_qp.c int hns_roce_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 1177 drivers/infiniband/hw/hns/hns_roce_qp.c struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); ibqp 1178 drivers/infiniband/hw/hns/hns_roce_qp.c struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); ibqp 1188 drivers/infiniband/hw/hns/hns_roce_qp.c if (ibqp->uobject && ibqp 1202 drivers/infiniband/hw/hns/hns_roce_qp.c if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, ibqp 1208 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_check_qp_attr(ibqp, attr, attr_mask); ibqp 1225 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state, ibqp 395 drivers/infiniband/hw/i40iw/i40iw.h static inline struct i40iw_qp *to_iwqp(struct ib_qp *ibqp) ibqp 397 drivers/infiniband/hw/i40iw/i40iw.h return container_of(ibqp, struct i40iw_qp, ibqp); ibqp 2325 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_rem_ref(&iwqp->ibqp); ibqp 3447 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!iwdev->qp_table[iwqp->ibqp.qp_num]) { ibqp 3451 drivers/infiniband/hw/i40iw/i40iw_cm.c __func__, iwqp->ibqp.qp_num); ibqp 3455 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_add_ref(&iwqp->ibqp); ibqp 3473 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = to_iwdev(iwqp->ibqp.device); ibqp 3534 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = to_iwdev(iwqp->ibqp.device); ibqp 3579 drivers/infiniband/hw/i40iw/i40iw_cm.c if (qp->term_flags && iwqp->ibqp.event_handler) { ibqp 3580 drivers/infiniband/hw/i40iw/i40iw_cm.c ibevent.device = iwqp->ibqp.device; ibqp 3583 drivers/infiniband/hw/i40iw/i40iw_cm.c ibevent.element.qp = &iwqp->ibqp; ibqp 3584 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp->ibqp.event_handler(&ibevent, iwqp->ibqp.qp_context); ibqp 3626 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_rem_ref(&iwqp->ibqp); ibqp 3636 drivers/infiniband/hw/i40iw/i40iw_cm.c struct ib_qp *ibqp; ibqp 3653 drivers/infiniband/hw/i40iw/i40iw_cm.c ibqp = i40iw_get_qp(cm_id->device, conn_param->qpn); ibqp 3654 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!ibqp) ibqp 3657 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = to_iwqp(ibqp); ibqp 3748 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_add_ref(&iwqp->ibqp); ibqp 3752 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL); ibqp 3821 drivers/infiniband/hw/i40iw/i40iw_cm.c struct ib_qp *ibqp; ibqp 3832 drivers/infiniband/hw/i40iw/i40iw_cm.c ibqp = i40iw_get_qp(cm_id->device, conn_param->qpn); ibqp 3833 drivers/infiniband/hw/i40iw/i40iw_cm.c if (!ibqp) ibqp 3835 drivers/infiniband/hw/i40iw/i40iw_cm.c iwqp = to_iwqp(ibqp); ibqp 3838 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = to_iwdev(iwqp->ibqp.device); ibqp 3911 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_add_ref(&iwqp->ibqp); ibqp 4094 drivers/infiniband/hw/i40iw/i40iw_cm.c iwdev = to_iwdev(iwqp->ibqp.device); ibqp 4113 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL); ibqp 4351 drivers/infiniband/hw/i40iw/i40iw_cm.c i40iw_modify_qp(&cm_node->iwqp->ibqp, &attr, IB_QP_STATE, NULL); ibqp 316 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_add_ref(&iwqp->ibqp); ibqp 430 drivers/infiniband/hw/i40iw/i40iw_hw.c i40iw_rem_ref(&iwqp->ibqp); ibqp 492 drivers/infiniband/hw/i40iw/i40iw_utils.c u32 qp_num = iwqp->ibqp.qp_num; ibqp 624 drivers/infiniband/hw/i40iw/i40iw_utils.c void i40iw_add_ref(struct ib_qp *ibqp) ibqp 626 drivers/infiniband/hw/i40iw/i40iw_utils.c struct i40iw_qp *iwqp = (struct i40iw_qp *)ibqp; ibqp 635 drivers/infiniband/hw/i40iw/i40iw_utils.c void i40iw_rem_ref(struct ib_qp *ibqp) ibqp 645 drivers/infiniband/hw/i40iw/i40iw_utils.c iwqp = to_iwqp(ibqp); ibqp 653 drivers/infiniband/hw/i40iw/i40iw_utils.c qp_num = iwqp->ibqp.qp_num; ibqp 689 drivers/infiniband/hw/i40iw/i40iw_utils.c return &iwdev->qp_table[qpn]->ibqp; ibqp 941 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_rem_ref(&iwqp->ibqp); ibqp 953 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_add_ref(&iwqp->ibqp); ibqp 969 drivers/infiniband/hw/i40iw/i40iw_utils.c i40iw_rem_ref(&iwqp->ibqp); ibqp 404 drivers/infiniband/hw/i40iw/i40iw_verbs.c static int i40iw_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ibqp 406 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); ibqp 421 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_rem_ref(&iwqp->ibqp); ibqp 507 drivers/infiniband/hw/i40iw/i40iw_verbs.c ukinfo->qp_id = iwqp->ibqp.qp_num; ibqp 608 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp->ibqp.qp_num = qp_num; ibqp 618 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.qp_uk_init_info.qp_id = iwqp->ibqp.qp_num; ibqp 720 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_add_ref(&iwqp->ibqp); ibqp 735 drivers/infiniband/hw/i40iw/i40iw_verbs.c i40iw_destroy_qp(&iwqp->ibqp, udata); ibqp 743 drivers/infiniband/hw/i40iw/i40iw_verbs.c return &iwqp->ibqp; ibqp 756 drivers/infiniband/hw/i40iw/i40iw_verbs.c static int i40iw_query_qp(struct ib_qp *ibqp, ibqp 761 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); ibqp 773 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->event_handler = iwqp->ibqp.event_handler; ibqp 774 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->qp_context = iwqp->ibqp.qp_context; ibqp 775 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->send_cq = iwqp->ibqp.send_cq; ibqp 776 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->recv_cq = iwqp->ibqp.recv_cq; ibqp 777 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->srq = iwqp->ibqp.srq; ibqp 837 drivers/infiniband/hw/i40iw/i40iw_verbs.c int i40iw_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 840 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); ibqp 1644 drivers/infiniband/hw/i40iw/i40iw_verbs.c static void i40iw_drain_sq(struct ib_qp *ibqp) ibqp 1646 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); ibqp 1657 drivers/infiniband/hw/i40iw/i40iw_verbs.c static void i40iw_drain_rq(struct ib_qp *ibqp) ibqp 1659 drivers/infiniband/hw/i40iw/i40iw_verbs.c struct i40iw_qp *iwqp = to_iwqp(ibqp); ibqp 2115 drivers/infiniband/hw/i40iw/i40iw_verbs.c static int i40iw_post_send(struct ib_qp *ibqp, ibqp 2127 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp = (struct i40iw_qp *)ibqp; ibqp 2292 drivers/infiniband/hw/i40iw/i40iw_verbs.c static int i40iw_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *ib_wr, ibqp 2303 drivers/infiniband/hw/i40iw/i40iw_verbs.c iwqp = (struct i40iw_qp *)ibqp; ibqp 134 drivers/infiniband/hw/i40iw/i40iw_verbs.h struct ib_qp ibqp; ibqp 590 drivers/infiniband/hw/mlx4/cq.c ib_dma_sync_single_for_cpu(qp->ibqp.device, ibqp 631 drivers/infiniband/hw/mlx4/cq.c wc->qp = &qp->ibqp; ibqp 725 drivers/infiniband/hw/mlx4/cq.c wc->qp = &(*cur_qp)->ibqp; ibqp 744 drivers/infiniband/hw/mlx4/cq.c } else if ((*cur_qp)->ibqp.srq) { ibqp 745 drivers/infiniband/hw/mlx4/cq.c srq = to_msrq((*cur_qp)->ibqp.srq); ibqp 1268 drivers/infiniband/hw/mlx4/main.c static int add_gid_entry(struct ib_qp *ibqp, union ib_gid *gid) ibqp 1270 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_qp *mqp = to_mqp(ibqp); ibqp 1271 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); ibqp 1856 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) ibqp 1859 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); ibqp 1861 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_qp *mqp = to_mqp(ibqp); ibqp 1893 drivers/infiniband/hw/mlx4/main.c err = add_gid_entry(ibqp, gid); ibqp 1934 drivers/infiniband/hw/mlx4/main.c static int mlx4_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) ibqp 1937 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); ibqp 1939 drivers/infiniband/hw/mlx4/main.c struct mlx4_ib_qp *mqp = to_mqp(ibqp); ibqp 3002 drivers/infiniband/hw/mlx4/main.c err = __mlx4_ib_create_flow(&mqp->ibqp, flow, ibqp 3122 drivers/infiniband/hw/mlx4/main.c send_mcq = to_mcq(mqp->ibqp.send_cq); ibqp 3125 drivers/infiniband/hw/mlx4/main.c mqp->ibqp.send_cq->comp_handler) { ibqp 3138 drivers/infiniband/hw/mlx4/main.c if (!mqp->ibqp.srq) { ibqp 3140 drivers/infiniband/hw/mlx4/main.c recv_mcq = to_mcq(mqp->ibqp.recv_cq); ibqp 3143 drivers/infiniband/hw/mlx4/main.c mqp->ibqp.recv_cq->comp_handler) { ibqp 308 drivers/infiniband/hw/mlx4/mlx4_ib.h struct ib_qp ibqp; ibqp 691 drivers/infiniband/hw/mlx4/mlx4_ib.h static inline struct mlx4_ib_qp *to_mqp(struct ib_qp *ibqp) ibqp 693 drivers/infiniband/hw/mlx4/mlx4_ib.h return container_of(ibqp, struct mlx4_ib_qp, ibqp); ibqp 777 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 779 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, ibqp 781 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 783 drivers/infiniband/hw/mlx4/mlx4_ib.h int mlx4_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 232 drivers/infiniband/hw/mlx4/qp.c struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; ibqp 237 drivers/infiniband/hw/mlx4/qp.c if (ibqp->event_handler) { ibqp 238 drivers/infiniband/hw/mlx4/qp.c event.device = ibqp->device; ibqp 239 drivers/infiniband/hw/mlx4/qp.c event.element.qp = ibqp; ibqp 271 drivers/infiniband/hw/mlx4/qp.c ibqp->event_handler(&event, ibqp->qp_context); ibqp 770 drivers/infiniband/hw/mlx4/qp.c qp->ibqp.qp_num = qp->mqp.qpn; ibqp 772 drivers/infiniband/hw/mlx4/qp.c return &qp->ibqp; ibqp 1359 drivers/infiniband/hw/mlx4/qp.c if (qp->ibqp.qp_type == IB_QPT_XRC_TGT) ibqp 1360 drivers/infiniband/hw/mlx4/qp.c return to_mpd(to_mxrcd(qp->ibqp.xrcd)->pd); ibqp 1362 drivers/infiniband/hw/mlx4/qp.c return to_mpd(qp->ibqp.pd); ibqp 1368 drivers/infiniband/hw/mlx4/qp.c switch (qp->ibqp.qp_type) { ibqp 1370 drivers/infiniband/hw/mlx4/qp.c *send_cq = to_mcq(to_mxrcd(qp->ibqp.xrcd)->cq); ibqp 1374 drivers/infiniband/hw/mlx4/qp.c *send_cq = to_mcq(qp->ibqp.send_cq); ibqp 1378 drivers/infiniband/hw/mlx4/qp.c *recv_cq = (src == MLX4_IB_QP_SRC) ? to_mcq(qp->ibqp.recv_cq) : ibqp 1380 drivers/infiniband/hw/mlx4/qp.c *send_cq = (src == MLX4_IB_QP_SRC) ? to_mcq(qp->ibqp.send_cq) : ibqp 1391 drivers/infiniband/hw/mlx4/qp.c for (i = 0; i < (1 << qp->ibqp.rwq_ind_tbl->log_ind_tbl_size); ibqp 1393 drivers/infiniband/hw/mlx4/qp.c struct ib_wq *ibwq = qp->ibqp.rwq_ind_tbl->ind_tbl[i]; ibqp 1462 drivers/infiniband/hw/mlx4/qp.c qp->ibqp.srq ? to_msrq(qp->ibqp.srq): NULL); ibqp 1604 drivers/infiniband/hw/mlx4/qp.c qp->ibqp.qp_num = qp->mqp.qpn; ibqp 1633 drivers/infiniband/hw/mlx4/qp.c qp->ibqp.qp_num = init_attr->qp_type == IB_QPT_SMI ? 0 : ibqp 1642 drivers/infiniband/hw/mlx4/qp.c return &qp->ibqp; ibqp 1649 drivers/infiniband/hw/mlx4/qp.c struct ib_qp *ibqp; ibqp 1652 drivers/infiniband/hw/mlx4/qp.c ibqp = _mlx4_ib_create_qp(pd, init_attr, udata); ibqp 1654 drivers/infiniband/hw/mlx4/qp.c if (!IS_ERR(ibqp) && ibqp 1657 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_sqp *sqp = to_msqp((to_mqp(ibqp))); ibqp 1676 drivers/infiniband/hw/mlx4/qp.c return ibqp; ibqp 2165 drivers/infiniband/hw/mlx4/qp.c struct ib_qp *ibqp; ibqp 2167 drivers/infiniband/hw/mlx4/qp.c ibqp = (struct ib_qp *)src; ibqp 2168 drivers/infiniband/hw/mlx4/qp.c ibsrq = ibqp->srq; ibqp 2169 drivers/infiniband/hw/mlx4/qp.c rwq_ind_tbl = ibqp->rwq_ind_tbl; ibqp 2170 drivers/infiniband/hw/mlx4/qp.c qp_type = ibqp->qp_type; ibqp 2171 drivers/infiniband/hw/mlx4/qp.c qp = to_mqp(ibqp); ibqp 2172 drivers/infiniband/hw/mlx4/qp.c dev = to_mdev(ibqp->device); ibqp 2718 drivers/infiniband/hw/mlx4/qp.c static int _mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 2721 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(ibqp->device); ibqp 2722 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_qp *qp = to_mqp(ibqp); ibqp 2730 drivers/infiniband/hw/mlx4/qp.c if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, ibqp 2735 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, cur_state, new_state, ibqp 2736 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_type, attr_mask); ibqp 2740 drivers/infiniband/hw/mlx4/qp.c if (ibqp->rwq_ind_tbl) { ibqp 2746 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, cur_state, new_state); ibqp 2754 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr_mask, cur_state, new_state); ibqp 2763 drivers/infiniband/hw/mlx4/qp.c if ((ibqp->qp_type == IB_QPT_RC) || ibqp 2764 drivers/infiniband/hw/mlx4/qp.c (ibqp->qp_type == IB_QPT_UD) || ibqp 2765 drivers/infiniband/hw/mlx4/qp.c (ibqp->qp_type == IB_QPT_UC) || ibqp 2766 drivers/infiniband/hw/mlx4/qp.c (ibqp->qp_type == IB_QPT_RAW_PACKET) || ibqp 2767 drivers/infiniband/hw/mlx4/qp.c (ibqp->qp_type == IB_QPT_XRC_INI)) { ibqp 2781 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr->port_num, cur_state, ibqp 2782 drivers/infiniband/hw/mlx4/qp.c new_state, ibqp->qp_type); ibqp 2786 drivers/infiniband/hw/mlx4/qp.c if ((attr_mask & IB_QP_PORT) && (ibqp->qp_type == IB_QPT_RAW_PACKET) && ibqp 2796 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr->pkey_index, cur_state, ibqp 2797 drivers/infiniband/hw/mlx4/qp.c new_state, ibqp->qp_type); ibqp 2806 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr->max_rd_atomic, cur_state, ibqp 2807 drivers/infiniband/hw/mlx4/qp.c new_state, ibqp->qp_type); ibqp 2815 drivers/infiniband/hw/mlx4/qp.c ibqp->qp_num, attr->max_dest_rd_atomic, cur_state, ibqp 2816 drivers/infiniband/hw/mlx4/qp.c new_state, ibqp->qp_type); ibqp 2825 drivers/infiniband/hw/mlx4/qp.c if (ibqp->rwq_ind_tbl && (new_state == IB_QPS_INIT)) { ibqp 2826 drivers/infiniband/hw/mlx4/qp.c err = bringup_rss_rwqs(ibqp->rwq_ind_tbl, attr->port_num, ibqp 2832 drivers/infiniband/hw/mlx4/qp.c err = __mlx4_ib_modify_qp(ibqp, MLX4_IB_QP_SRC, attr, attr_mask, ibqp 2835 drivers/infiniband/hw/mlx4/qp.c if (ibqp->rwq_ind_tbl && err) ibqp 2836 drivers/infiniband/hw/mlx4/qp.c bring_down_rss_rwqs(ibqp->rwq_ind_tbl, udata); ibqp 2846 drivers/infiniband/hw/mlx4/qp.c int mlx4_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 2849 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_qp *mqp = to_mqp(ibqp); ibqp 2852 drivers/infiniband/hw/mlx4/qp.c ret = _mlx4_ib_modify_qp(ibqp, attr, attr_mask, udata); ibqp 2884 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *mdev = to_mdev(sqp->qp.ibqp.device); ibqp 3035 drivers/infiniband/hw/mlx4/qp.c struct ib_device *ib_dev = sqp->qp.ibqp.device; ibqp 3059 drivers/infiniband/hw/mlx4/qp.c is_eth = rdma_port_get_link_layer(sqp->qp.ibqp.device, sqp->qp.port) == IB_LINK_LAYER_ETHERNET; ibqp 3158 drivers/infiniband/hw/mlx4/qp.c mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MLX4_WQE_MLX_VL15 : 0) | ibqp 3207 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.lrh.virtual_lane = !sqp->qp.ibqp.qp_num ? 15 : ibqp 3211 drivers/infiniband/hw/mlx4/qp.c if (sqp->qp.ibqp.qp_num && sqp->ud_header.lrh.virtual_lane == 15) ibqp 3217 drivers/infiniband/hw/mlx4/qp.c if (!sqp->qp.ibqp.qp_num) ibqp 3231 drivers/infiniband/hw/mlx4/qp.c sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num); ibqp 3533 drivers/infiniband/hw/mlx4/qp.c static int _mlx4_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 3536 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_qp *qp = to_mqp(ibqp); ibqp 3551 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); ibqp 3587 drivers/infiniband/hw/mlx4/qp.c if (mlx4_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { ibqp 3740 drivers/infiniband/hw/mlx4/qp.c set_tunnel_datagram_seg(to_mdev(ibqp->device), wqe, ibqp 3837 drivers/infiniband/hw/mlx4/qp.c to_mdev(ibqp->device)->uar_map + MLX4_SEND_DOORBELL); ibqp 3849 drivers/infiniband/hw/mlx4/qp.c int mlx4_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 3852 drivers/infiniband/hw/mlx4/qp.c return _mlx4_ib_post_send(ibqp, wr, bad_wr, false); ibqp 3855 drivers/infiniband/hw/mlx4/qp.c static int _mlx4_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 3858 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_qp *qp = to_mqp(ibqp); ibqp 3866 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); ibqp 3882 drivers/infiniband/hw/mlx4/qp.c if (mlx4_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { ibqp 3898 drivers/infiniband/hw/mlx4/qp.c ib_dma_sync_single_for_device(ibqp->device, ibqp 3943 drivers/infiniband/hw/mlx4/qp.c int mlx4_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 3946 drivers/infiniband/hw/mlx4/qp.c return _mlx4_ib_post_recv(ibqp, wr, bad_wr, false); ibqp 4022 drivers/infiniband/hw/mlx4/qp.c int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, ibqp 4025 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_dev *dev = to_mdev(ibqp->device); ibqp 4026 drivers/infiniband/hw/mlx4/qp.c struct mlx4_ib_qp *qp = to_mqp(ibqp); ibqp 4031 drivers/infiniband/hw/mlx4/qp.c if (ibqp->rwq_ind_tbl) ibqp 4061 drivers/infiniband/hw/mlx4/qp.c if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) { ibqp 4094 drivers/infiniband/hw/mlx4/qp.c if (!ibqp->uobject) { ibqp 168 drivers/infiniband/hw/mlx5/cq.c enum rdma_link_layer ll = rdma_port_get_link_layer(qp->ibqp.device, 1); ibqp 169 drivers/infiniband/hw/mlx5/cq.c struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); ibqp 177 drivers/infiniband/hw/mlx5/cq.c if (qp->ibqp.srq || qp->ibqp.xrcd) { ibqp 180 drivers/infiniband/hw/mlx5/cq.c if (qp->ibqp.xrcd) { ibqp 184 drivers/infiniband/hw/mlx5/cq.c srq = to_msrq(qp->ibqp.srq); ibqp 228 drivers/infiniband/hw/mlx5/cq.c if (unlikely(is_qp1(qp->ibqp.qp_type))) { ibqp 413 drivers/infiniband/hw/mlx5/cq.c wc->qp = &qp->ibqp; ibqp 485 drivers/infiniband/hw/mlx5/cq.c if (!*cur_qp || (qpn != (*cur_qp)->ibqp.qp_num)) { ibqp 494 drivers/infiniband/hw/mlx5/cq.c wc->qp = &(*cur_qp)->ibqp; ibqp 533 drivers/infiniband/hw/mlx5/cq.c if ((*cur_qp)->ibqp.srq) { ibqp 534 drivers/infiniband/hw/mlx5/cq.c srq = to_msrq((*cur_qp)->ibqp.srq); ibqp 609 drivers/infiniband/hw/mlx5/devx.c enum ib_qp_type qp_type = qp->ibqp.qp_type; ibqp 633 drivers/infiniband/hw/mlx5/devx.c qp->ibqp.qp_num) == obj_id; ibqp 43 drivers/infiniband/hw/mlx5/gsi.c struct ib_qp ibqp; ibqp 64 drivers/infiniband/hw/mlx5/gsi.c return container_of(qp, struct mlx5_ib_gsi_qp, ibqp); ibqp 75 drivers/infiniband/hw/mlx5/gsi.c struct ib_cq *gsi_cq = gsi->ibqp.send_cq; ibqp 109 drivers/infiniband/hw/mlx5/gsi.c wr->wc.qp = &gsi->ibqp; ibqp 168 drivers/infiniband/hw/mlx5/gsi.c gsi->ibqp.qp_num = 1; ibqp 199 drivers/infiniband/hw/mlx5/gsi.c return &gsi->ibqp; ibqp 452 drivers/infiniband/hw/mlx5/gsi.c .qp = &gsi->ibqp, ibqp 4340 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) ibqp 4342 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); ibqp 4343 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_qp *mqp = to_mqp(ibqp); ibqp 4347 drivers/infiniband/hw/mlx5/main.c uid = ibqp->pd ? ibqp 4348 drivers/infiniband/hw/mlx5/main.c to_mpd(ibqp->pd)->uid : 0; ibqp 4355 drivers/infiniband/hw/mlx5/main.c err = mlx5_cmd_attach_mcg(dev->mdev, gid, ibqp->qp_num, uid); ibqp 4358 drivers/infiniband/hw/mlx5/main.c ibqp->qp_num, gid->raw); ibqp 4363 drivers/infiniband/hw/mlx5/main.c static int mlx5_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) ibqp 4365 drivers/infiniband/hw/mlx5/main.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); ibqp 4369 drivers/infiniband/hw/mlx5/main.c uid = ibqp->pd ? ibqp 4370 drivers/infiniband/hw/mlx5/main.c to_mpd(ibqp->pd)->uid : 0; ibqp 4371 drivers/infiniband/hw/mlx5/main.c err = mlx5_cmd_detach_mcg(dev->mdev, gid, ibqp->qp_num, uid); ibqp 4374 drivers/infiniband/hw/mlx5/main.c ibqp->qp_num, gid->raw); ibqp 4484 drivers/infiniband/hw/mlx5/main.c send_mcq = to_mcq(mqp->ibqp.send_cq); ibqp 4487 drivers/infiniband/hw/mlx5/main.c mqp->ibqp.send_cq->comp_handler) { ibqp 4499 drivers/infiniband/hw/mlx5/main.c if (!mqp->ibqp.srq) { ibqp 4501 drivers/infiniband/hw/mlx5/main.c recv_mcq = to_mcq(mqp->ibqp.recv_cq); ibqp 4504 drivers/infiniband/hw/mlx5/main.c mqp->ibqp.recv_cq->comp_handler) { ibqp 401 drivers/infiniband/hw/mlx5/mlx5_ib.h struct ib_qp ibqp; ibqp 1058 drivers/infiniband/hw/mlx5/mlx5_ib.h static inline struct mlx5_ib_qp *to_mqp(struct ib_qp *ibqp) ibqp 1060 drivers/infiniband/hw/mlx5/mlx5_ib.h return container_of(ibqp, struct mlx5_ib_qp, ibqp); ibqp 1123 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 1125 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, ibqp 1130 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 1132 drivers/infiniband/hw/mlx5/mlx5_ib.h int mlx5_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 1054 drivers/infiniband/hw/mlx5/odp.c if (qp->ibqp.qp_type == IB_QPT_XRC_INI) ibqp 1057 drivers/infiniband/hw/mlx5/odp.c if (qp->ibqp.qp_type == IB_QPT_UD || ibqp 285 drivers/infiniband/hw/mlx5/qp.c struct ib_qp *ibqp = &to_mibqp(qp)->ibqp; ibqp 293 drivers/infiniband/hw/mlx5/qp.c if (ibqp->event_handler) { ibqp 294 drivers/infiniband/hw/mlx5/qp.c event.device = ibqp->device; ibqp 295 drivers/infiniband/hw/mlx5/qp.c event.element.qp = ibqp; ibqp 326 drivers/infiniband/hw/mlx5/qp.c ibqp->event_handler(&event, ibqp->qp_context); ibqp 1555 drivers/infiniband/hw/mlx5/qp.c destroy_raw_packet_qp_tir(dev, rq, qp->flags_en, qp->ibqp.pd); ibqp 1561 drivers/infiniband/hw/mlx5/qp.c destroy_raw_packet_qp_tis(dev, sq, qp->ibqp.pd); ibqp 1583 drivers/infiniband/hw/mlx5/qp.c to_mpd(qp->ibqp.pd)->uid); ibqp 2390 drivers/infiniband/hw/mlx5/qp.c return to_mpd(qp->ibqp.pd); ibqp 2440 drivers/infiniband/hw/mlx5/qp.c if (qp->ibqp.rwq_ind_tbl) { ibqp 2445 drivers/infiniband/hw/mlx5/qp.c base = (qp->ibqp.qp_type == IB_QPT_RAW_PACKET || ibqp 2451 drivers/infiniband/hw/mlx5/qp.c if (qp->ibqp.qp_type != IB_QPT_RAW_PACKET && ibqp 2468 drivers/infiniband/hw/mlx5/qp.c get_cqs(qp->ibqp.qp_type, qp->ibqp.send_cq, qp->ibqp.recv_cq, ibqp 2483 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); ibqp 2491 drivers/infiniband/hw/mlx5/qp.c if (qp->ibqp.qp_type == IB_QPT_RAW_PACKET || ibqp 2583 drivers/infiniband/hw/mlx5/qp.c return &qp->ibqp; ibqp 2717 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.qp_num = 0; ibqp 2719 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.qp_num = 1; ibqp 2721 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.qp_num = qp->trans_qp.base.mqp.qpn; ibqp 2724 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.qp_num, qp->trans_qp.base.mqp.qpn, ibqp 2748 drivers/infiniband/hw/mlx5/qp.c return &qp->ibqp; ibqp 2753 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(mqp->ibqp.device); ibqp 2795 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(qp->ibqp.device); ibqp 2815 drivers/infiniband/hw/mlx5/qp.c atomic_mode = get_atomic_mode(dev, qp->ibqp.qp_type); ibqp 2938 drivers/infiniband/hw/mlx5/qp.c if (qp->ibqp.qp_type == IB_QPT_RC || ibqp 2939 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.qp_type == IB_QPT_UC || ibqp 2940 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.qp_type == IB_QPT_XRC_INI || ibqp 2941 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.qp_type == IB_QPT_XRC_TGT) ibqp 2977 drivers/infiniband/hw/mlx5/qp.c if ((qp->ibqp.qp_type == IB_QPT_RAW_PACKET) && qp->sq.wqe_cnt) ibqp 2980 drivers/infiniband/hw/mlx5/qp.c sl & 0xf, qp->ibqp.pd); ibqp 3195 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_qp *ibqp = sq->base.container_mibqp; ibqp 3196 drivers/infiniband/hw/mlx5/qp.c struct mlx5_rate_limit old_rl = ibqp->rl; ibqp 3259 drivers/infiniband/hw/mlx5/qp.c ibqp->rl = new_rl; ibqp 3316 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.pd); ibqp 3327 drivers/infiniband/hw/mlx5/qp.c qp->ibqp.pd); ibqp 3338 drivers/infiniband/hw/mlx5/qp.c raw_qp_param, qp->ibqp.pd); ibqp 3408 drivers/infiniband/hw/mlx5/qp.c static int __mlx5_ib_modify_qp(struct ib_qp *ibqp, ibqp 3452 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); ibqp 3453 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_qp *qp = to_mqp(ibqp); ibqp 3466 drivers/infiniband/hw/mlx5/qp.c mlx5_st = to_mlx5_st(ibqp->qp_type == IB_QPT_DRIVER ? ibqp 3467 drivers/infiniband/hw/mlx5/qp.c qp->qp_sub_type : ibqp->qp_type); ibqp 3495 drivers/infiniband/hw/mlx5/qp.c if ((ibqp->qp_type == IB_QPT_RC) || ibqp 3496 drivers/infiniband/hw/mlx5/qp.c (ibqp->qp_type == IB_QPT_UD && ibqp 3498 drivers/infiniband/hw/mlx5/qp.c (ibqp->qp_type == IB_QPT_UC) || ibqp 3499 drivers/infiniband/hw/mlx5/qp.c (ibqp->qp_type == IB_QPT_RAW_PACKET) || ibqp 3500 drivers/infiniband/hw/mlx5/qp.c (ibqp->qp_type == IB_QPT_XRC_INI) || ibqp 3501 drivers/infiniband/hw/mlx5/qp.c (ibqp->qp_type == IB_QPT_XRC_TGT)) { ibqp 3511 drivers/infiniband/hw/mlx5/qp.c if (is_sqp(ibqp->qp_type)) { ibqp 3513 drivers/infiniband/hw/mlx5/qp.c } else if ((ibqp->qp_type == IB_QPT_UD && ibqp 3515 drivers/infiniband/hw/mlx5/qp.c ibqp->qp_type == MLX5_IB_QPT_REG_UMR) { ibqp 3536 drivers/infiniband/hw/mlx5/qp.c if (is_sqp(ibqp->qp_type)) ibqp 3563 drivers/infiniband/hw/mlx5/qp.c get_cqs(qp->ibqp.qp_type, qp->ibqp.send_cq, qp->ibqp.recv_cq, ibqp 3622 drivers/infiniband/hw/mlx5/qp.c if (ibqp->counter) ibqp 3623 drivers/infiniband/hw/mlx5/qp.c set_id = ibqp->counter->id; ibqp 3630 drivers/infiniband/hw/mlx5/qp.c if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) ibqp 3649 drivers/infiniband/hw/mlx5/qp.c if (qp->ibqp.qp_type == IB_QPT_RAW_PACKET || ibqp 3715 drivers/infiniband/hw/mlx5/qp.c !ibqp->uobject && ibqp->qp_type != IB_QPT_XRC_TGT) { ibqp 3717 drivers/infiniband/hw/mlx5/qp.c ibqp->srq ? to_msrq(ibqp->srq) : NULL); ibqp 3734 drivers/infiniband/hw/mlx5/qp.c err = __mlx5_ib_qp_set_counter(ibqp, ibqp->counter); ibqp 3797 drivers/infiniband/hw/mlx5/qp.c static int mlx5_ib_modify_dct(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 3800 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_qp *qp = to_mqp(ibqp); ibqp 3801 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); ibqp 3889 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 3892 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); ibqp 3893 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_qp *qp = to_mqp(ibqp); ibqp 3901 drivers/infiniband/hw/mlx5/qp.c if (ibqp->rwq_ind_tbl) ibqp 3926 drivers/infiniband/hw/mlx5/qp.c if (unlikely(ibqp->qp_type == IB_QPT_GSI)) ibqp 3927 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_gsi_modify_qp(ibqp, attr, attr_mask); ibqp 3929 drivers/infiniband/hw/mlx5/qp.c if (ibqp->qp_type == IB_QPT_DRIVER) ibqp 3932 drivers/infiniband/hw/mlx5/qp.c qp_type = (unlikely(ibqp->qp_type == MLX5_IB_QPT_HW_GSI)) ? ibqp 3933 drivers/infiniband/hw/mlx5/qp.c IB_QPT_GSI : ibqp->qp_type; ibqp 3936 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_modify_dct(ibqp, attr, attr_mask, udata); ibqp 3958 drivers/infiniband/hw/mlx5/qp.c cur_state, new_state, ibqp->qp_type, attr_mask); ibqp 4006 drivers/infiniband/hw/mlx5/qp.c err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, ibqp 4744 drivers/infiniband/hw/mlx5/qp.c unlikely(!sig_mr->sig) || unlikely(!qp->ibqp.integrity_en) || ibqp 4814 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_pd *pd = to_mpd(qp->ibqp.pd); ibqp 4822 drivers/infiniband/hw/mlx5/qp.c mlx5_ib_warn(to_mdev(qp->ibqp.device), ibqp 4832 drivers/infiniband/hw/mlx5/qp.c mlx5_ib_warn(to_mdev(qp->ibqp.device), ibqp 4902 drivers/infiniband/hw/mlx5/qp.c if (unlikely(mlx5_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq))) ibqp 4962 drivers/infiniband/hw/mlx5/qp.c static int _mlx5_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 4966 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); ibqp 4994 drivers/infiniband/hw/mlx5/qp.c if (unlikely(ibqp->qp_type == IB_QPT_GSI)) ibqp 4995 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_gsi_post_send(ibqp, wr, bad_wr); ibqp 4997 drivers/infiniband/hw/mlx5/qp.c qp = to_mqp(ibqp); ibqp 5042 drivers/infiniband/hw/mlx5/qp.c switch (ibqp->qp_type) { ibqp 5344 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 5347 drivers/infiniband/hw/mlx5/qp.c return _mlx5_ib_post_send(ibqp, wr, bad_wr, false); ibqp 5355 drivers/infiniband/hw/mlx5/qp.c static int _mlx5_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 5358 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_qp *qp = to_mqp(ibqp); ibqp 5361 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); ibqp 5375 drivers/infiniband/hw/mlx5/qp.c if (unlikely(ibqp->qp_type == IB_QPT_GSI)) ibqp 5376 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_gsi_post_recv(ibqp, wr, bad_wr); ibqp 5383 drivers/infiniband/hw/mlx5/qp.c if (mlx5_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { ibqp 5435 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 5438 drivers/infiniband/hw/mlx5/qp.c return _mlx5_ib_post_recv(ibqp, wr, bad_wr, false); ibqp 5661 drivers/infiniband/hw/mlx5/qp.c if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) { ibqp 5757 drivers/infiniband/hw/mlx5/qp.c int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 5760 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_dev *dev = to_mdev(ibqp->device); ibqp 5761 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_qp *qp = to_mqp(ibqp); ibqp 5765 drivers/infiniband/hw/mlx5/qp.c if (ibqp->rwq_ind_tbl) ibqp 5768 drivers/infiniband/hw/mlx5/qp.c if (unlikely(ibqp->qp_type == IB_QPT_GSI)) ibqp 5769 drivers/infiniband/hw/mlx5/qp.c return mlx5_ib_gsi_query_qp(ibqp, qp_attr, qp_attr_mask, ibqp 5782 drivers/infiniband/hw/mlx5/qp.c if (qp->ibqp.qp_type == IB_QPT_RAW_PACKET || ibqp 5800 drivers/infiniband/hw/mlx5/qp.c if (!ibqp->uobject) { ibqp 5803 drivers/infiniband/hw/mlx5/qp.c qp_init_attr->qp_context = ibqp->qp_context; ibqp 5809 drivers/infiniband/hw/mlx5/qp.c qp_init_attr->qp_type = ibqp->qp_type; ibqp 5810 drivers/infiniband/hw/mlx5/qp.c qp_init_attr->recv_cq = ibqp->recv_cq; ibqp 5811 drivers/infiniband/hw/mlx5/qp.c qp_init_attr->send_cq = ibqp->send_cq; ibqp 5812 drivers/infiniband/hw/mlx5/qp.c qp_init_attr->srq = ibqp->srq; ibqp 531 drivers/infiniband/hw/mthca/mthca_cq.c entry->qp = &(*cur_qp)->ibqp; ibqp 539 drivers/infiniband/hw/mthca/mthca_cq.c } else if ((*cur_qp)->ibqp.srq) { ibqp 540 drivers/infiniband/hw/mthca/mthca_cq.c struct mthca_srq *srq = to_msrq((*cur_qp)->ibqp.srq); ibqp 530 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, ibqp 532 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, ibqp 534 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_tavor_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 536 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_tavor_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 538 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_arbel_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 540 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_arbel_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 576 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); ibqp 577 drivers/infiniband/hw/mthca/mthca_dev.h int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); ibqp 120 drivers/infiniband/hw/mthca/mthca_mcg.c int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) ibqp 122 drivers/infiniband/hw/mthca/mthca_mcg.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 165 drivers/infiniband/hw/mthca/mthca_mcg.c if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) { ibqp 167 drivers/infiniband/hw/mthca/mthca_mcg.c ibqp->qp_num); ibqp 171 drivers/infiniband/hw/mthca/mthca_mcg.c mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1 << 31)); ibqp 214 drivers/infiniband/hw/mthca/mthca_mcg.c int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) ibqp 216 drivers/infiniband/hw/mthca/mthca_mcg.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 242 drivers/infiniband/hw/mthca/mthca_mcg.c if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) ibqp 249 drivers/infiniband/hw/mthca/mthca_mcg.c mthca_err(dev, "QP %06x not found in MGM\n", ibqp->qp_num); ibqp 538 drivers/infiniband/hw/mthca/mthca_provider.c qp->ibqp.qp_num = qp->qpn; ibqp 552 drivers/infiniband/hw/mthca/mthca_provider.c qp->ibqp.qp_num = init_attr->qp_type == IB_QPT_SMI ? 0 : 1; ibqp 558 drivers/infiniband/hw/mthca/mthca_provider.c qp->ibqp.qp_num, init_attr->port_num, ibqp 578 drivers/infiniband/hw/mthca/mthca_provider.c return &qp->ibqp; ibqp 262 drivers/infiniband/hw/mthca/mthca_provider.h struct ib_qp ibqp; ibqp 334 drivers/infiniband/hw/mthca/mthca_provider.h static inline struct mthca_qp *to_mqp(struct ib_qp *ibqp) ibqp 336 drivers/infiniband/hw/mthca/mthca_provider.h return container_of(ibqp, struct mthca_qp, ibqp); ibqp 261 drivers/infiniband/hw/mthca/mthca_qp.c event.element.qp = &qp->ibqp; ibqp 262 drivers/infiniband/hw/mthca/mthca_qp.c if (qp->ibqp.event_handler) ibqp 263 drivers/infiniband/hw/mthca/mthca_qp.c qp->ibqp.event_handler(&event, qp->ibqp.qp_context); ibqp 430 drivers/infiniband/hw/mthca/mthca_qp.c int mthca_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, ibqp 433 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 434 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp *qp = to_mqp(ibqp); ibqp 556 drivers/infiniband/hw/mthca/mthca_qp.c static int __mthca_modify_qp(struct ib_qp *ibqp, ibqp 562 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 563 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp *qp = to_mqp(ibqp); ibqp 626 drivers/infiniband/hw/mthca/mthca_qp.c if (qp->ibqp.uobject) ibqp 667 drivers/infiniband/hw/mthca/mthca_qp.c if (ibqp->qp_type == IB_QPT_RC && ibqp 669 drivers/infiniband/hw/mthca/mthca_qp.c u8 sched_queue = ibqp->uobject ? 0x2 : 0x1; ibqp 709 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num); ibqp 735 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn); ibqp 759 drivers/infiniband/hw/mthca/mthca_qp.c if (ibqp->srq) ibqp 774 drivers/infiniband/hw/mthca/mthca_qp.c qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); ibqp 784 drivers/infiniband/hw/mthca/mthca_qp.c if (ibqp->srq) ibqp 786 drivers/infiniband/hw/mthca/mthca_qp.c to_msrq(ibqp->srq)->srqn); ibqp 834 drivers/infiniband/hw/mthca/mthca_qp.c if (new_state == IB_QPS_RESET && !qp->ibqp.uobject) { ibqp 835 drivers/infiniband/hw/mthca/mthca_qp.c mthca_cq_clean(dev, to_mcq(qp->ibqp.recv_cq), qp->qpn, ibqp 836 drivers/infiniband/hw/mthca/mthca_qp.c qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); ibqp 837 drivers/infiniband/hw/mthca/mthca_qp.c if (qp->ibqp.send_cq != qp->ibqp.recv_cq) ibqp 838 drivers/infiniband/hw/mthca/mthca_qp.c mthca_cq_clean(dev, to_mcq(qp->ibqp.send_cq), qp->qpn, NULL); ibqp 858 drivers/infiniband/hw/mthca/mthca_qp.c int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, ibqp 861 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 862 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp *qp = to_mqp(ibqp); ibqp 879 drivers/infiniband/hw/mthca/mthca_qp.c if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, ibqp 920 drivers/infiniband/hw/mthca/mthca_qp.c err = __mthca_modify_qp(ibqp, attr, attr_mask, cur_state, new_state, ibqp 1448 drivers/infiniband/hw/mthca/mthca_qp.c send_cq = to_mcq(qp->ibqp.send_cq); ibqp 1449 drivers/infiniband/hw/mthca/mthca_qp.c recv_cq = to_mcq(qp->ibqp.recv_cq); ibqp 1476 drivers/infiniband/hw/mthca/mthca_qp.c if (!qp->ibqp.uobject) { ibqp 1478 drivers/infiniband/hw/mthca/mthca_qp.c qp->ibqp.srq ? to_msrq(qp->ibqp.srq) : NULL); ibqp 1489 drivers/infiniband/hw/mthca/mthca_qp.c atomic_dec(&(to_mpd(qp->ibqp.pd)->sqp_count)); ibqp 1516 drivers/infiniband/hw/mthca/mthca_qp.c mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MTHCA_MLX_VL15 : 0) | ibqp 1537 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.lrh.virtual_lane = !sqp->qp.ibqp.qp_num ? 15 : 0; ibqp 1541 drivers/infiniband/hw/mthca/mthca_qp.c if (!sqp->qp.ibqp.qp_num) ibqp 1552 drivers/infiniband/hw/mthca/mthca_qp.c sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num); ibqp 1559 drivers/infiniband/hw/mthca/mthca_qp.c data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey); ibqp 1623 drivers/infiniband/hw/mthca/mthca_qp.c int mthca_tavor_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 1626 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 1627 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp *qp = to_mqp(ibqp); ibqp 1654 drivers/infiniband/hw/mthca/mthca_qp.c if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { ibqp 1821 drivers/infiniband/hw/mthca/mthca_qp.c int mthca_tavor_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 1824 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 1825 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp *qp = to_mqp(ibqp); ibqp 1850 drivers/infiniband/hw/mthca/mthca_qp.c if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { ibqp 1926 drivers/infiniband/hw/mthca/mthca_qp.c int mthca_arbel_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 1929 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 1930 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp *qp = to_mqp(ibqp); ibqp 1984 drivers/infiniband/hw/mthca/mthca_qp.c if (mthca_wq_overflow(&qp->sq, nreq, qp->ibqp.send_cq)) { ibqp 2160 drivers/infiniband/hw/mthca/mthca_qp.c int mthca_arbel_post_receive(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 2163 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_dev *dev = to_mdev(ibqp->device); ibqp 2164 drivers/infiniband/hw/mthca/mthca_qp.c struct mthca_qp *qp = to_mqp(ibqp); ibqp 2179 drivers/infiniband/hw/mthca/mthca_qp.c if (mthca_wq_overflow(&qp->rq, nreq, qp->ibqp.recv_cq)) { ibqp 2240 drivers/infiniband/hw/mthca/mthca_qp.c if (qp->ibqp.srq && !is_send) { ibqp 391 drivers/infiniband/hw/ocrdma/ocrdma.h struct ib_qp ibqp; ibqp 478 drivers/infiniband/hw/ocrdma/ocrdma.h static inline struct ocrdma_qp *get_ocrdma_qp(struct ib_qp *ibqp) ibqp 480 drivers/infiniband/hw/ocrdma/ocrdma.h return container_of(ibqp, struct ocrdma_qp, ibqp); ibqp 733 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ib_evt.element.qp = &qp->ibqp; ibqp 738 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ib_evt.element.qp = &qp->ibqp; ibqp 742 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ib_evt.element.qp = &qp->ibqp; ibqp 746 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ib_evt.element.qp = &qp->ibqp; ibqp 768 drivers/infiniband/hw/ocrdma/ocrdma_hw.c ib_evt.element.qp = &qp->ibqp; ibqp 784 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (qp->ibqp.event_handler) ibqp 785 drivers/infiniband/hw/ocrdma/ocrdma_hw.c qp->ibqp.event_handler(&ib_evt, qp->ibqp.qp_context); ibqp 2112 drivers/infiniband/hw/ocrdma/ocrdma_hw.c struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); ibqp 2501 drivers/infiniband/hw/ocrdma/ocrdma_hw.c struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); ibqp 2578 drivers/infiniband/hw/ocrdma/ocrdma_hw.c struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); ibqp 1362 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp->ibqp.qp_num = qp->id; ibqp 1364 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c return &qp->ibqp; ibqp 1380 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int _ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 1388 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp = get_ocrdma_qp(ibqp); ibqp 1389 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c dev = get_ocrdma_dev(ibqp->device); ibqp 1400 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 1409 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp = get_ocrdma_qp(ibqp); ibqp 1410 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c dev = get_ocrdma_dev(ibqp->device); ibqp 1423 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (!ib_modify_qp_is_ok(old_qps, new_qps, ibqp->qp_type, attr_mask)) { ibqp 1426 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, attr_mask, qp->id, ibqp->qp_type, ibqp 1431 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c status = _ocrdma_modify_qp(ibqp, attr, attr_mask); ibqp 1468 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_query_qp(struct ib_qp *ibqp, ibqp 1475 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_qp *qp = get_ocrdma_qp(ibqp); ibqp 1476 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_dev *dev = get_ocrdma_dev(ibqp->device); ibqp 1669 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); ibqp 1684 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ibqp 1693 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp = get_ocrdma_qp(ibqp); ibqp 1694 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c dev = get_ocrdma_dev(ibqp->device); ibqp 1702 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c _ocrdma_modify_qp(ibqp, &attrs, attr_mask); ibqp 2101 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 2105 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_qp *qp = get_ocrdma_qp(ibqp); ibqp 2234 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c int ocrdma_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 2239 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_qp *qp = get_ocrdma_qp(ibqp); ibqp 2491 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c ibwc->qp = &qp->ibqp; ibqp 2532 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); ibqp 2584 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c ibwc->qp = &qp->ibqp; ibqp 2648 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c srq = get_ocrdma_srq(qp->ibqp.srq); ibqp 2665 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c struct ocrdma_dev *dev = get_ocrdma_dev(qp->ibqp.device); ibqp 2700 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c dev = get_ocrdma_dev(qp->ibqp.device); ibqp 2702 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c ibwc->qp = &qp->ibqp; ibqp 2721 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (qp->ibqp.srq) { ibqp 89 drivers/infiniband/hw/ocrdma/ocrdma_verbs.h int ocrdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); ibqp 673 drivers/infiniband/hw/qedr/main.c struct ib_qp *ibqp; ibqp 747 drivers/infiniband/hw/qedr/main.c ibqp = &qp->ibqp; ibqp 748 drivers/infiniband/hw/qedr/main.c if (ibqp->event_handler) { ibqp 749 drivers/infiniband/hw/qedr/main.c event.device = ibqp->device; ibqp 750 drivers/infiniband/hw/qedr/main.c event.element.qp = ibqp; ibqp 751 drivers/infiniband/hw/qedr/main.c ibqp->event_handler(&event, ibqp->qp_context); ibqp 393 drivers/infiniband/hw/qedr/qedr.h struct ib_qp ibqp; /* must be first */ ibqp 573 drivers/infiniband/hw/qedr/qedr.h static inline struct qedr_qp *get_qedr_qp(struct ib_qp *ibqp) ibqp 575 drivers/infiniband/hw/qedr/qedr.h return container_of(ibqp, struct qedr_qp, ibqp); ibqp 179 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct ib_qp *ibqp = &ep->qp->ibqp; ibqp 184 drivers/infiniband/hw/qedr/qedr_iw_cm.c if (ibqp->event_handler) { ibqp 186 drivers/infiniband/hw/qedr/qedr_iw_cm.c event.device = ibqp->device; ibqp 187 drivers/infiniband/hw/qedr/qedr_iw_cm.c event.element.qp = ibqp; ibqp 188 drivers/infiniband/hw/qedr/qedr_iw_cm.c ibqp->event_handler(&event, ibqp->qp_context); ibqp 785 drivers/infiniband/hw/qedr/qedr_iw_cm.c void qedr_iw_qp_add_ref(struct ib_qp *ibqp) ibqp 787 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 792 drivers/infiniband/hw/qedr/qedr_iw_cm.c void qedr_iw_qp_rem_ref(struct ib_qp *ibqp) ibqp 794 drivers/infiniband/hw/qedr/qedr_iw_cm.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 339 drivers/infiniband/hw/qedr/qedr_roce_cm.c qp->ibqp.qp_num = 1; ibqp 362 drivers/infiniband/hw/qedr/qedr_roce_cm.c return &qp->ibqp; ibqp 543 drivers/infiniband/hw/qedr/qedr_roce_cm.c int qedr_gsi_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 547 drivers/infiniband/hw/qedr/qedr_roce_cm.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 613 drivers/infiniband/hw/qedr/qedr_roce_cm.c int qedr_gsi_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 616 drivers/infiniband/hw/qedr/qedr_roce_cm.c struct qedr_dev *dev = get_qedr_dev(ibqp->device); ibqp 617 drivers/infiniband/hw/qedr/qedr_roce_cm.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 686 drivers/infiniband/hw/qedr/qedr_roce_cm.c wc[i].qp = &qp->ibqp; ibqp 714 drivers/infiniband/hw/qedr/qedr_roce_cm.c wc[i].qp = &qp->ibqp; ibqp 728 drivers/infiniband/hw/qedr/qedr_roce_cm.c qp->sq.gsi_cons, qp->ibqp.qp_num); ibqp 49 drivers/infiniband/hw/qedr/qedr_roce_cm.h int qedr_gsi_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 51 drivers/infiniband/hw/qedr/qedr_roce_cm.h int qedr_gsi_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 1008 drivers/infiniband/hw/qedr/verbs.c static inline int get_gid_info_from_table(struct ib_qp *ibqp, ibqp 1891 drivers/infiniband/hw/qedr/verbs.c struct ib_qp *ibqp; ibqp 1918 drivers/infiniband/hw/qedr/verbs.c ibqp = qedr_create_gsi_qp(dev, attrs, qp); ibqp 1919 drivers/infiniband/hw/qedr/verbs.c if (IS_ERR(ibqp)) ibqp 1921 drivers/infiniband/hw/qedr/verbs.c return ibqp; ibqp 1932 drivers/infiniband/hw/qedr/verbs.c qp->ibqp.qp_num = qp->qp_id; ibqp 1940 drivers/infiniband/hw/qedr/verbs.c return &qp->ibqp; ibqp 2105 drivers/infiniband/hw/qedr/verbs.c int qedr_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 2108 drivers/infiniband/hw/qedr/verbs.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 2128 drivers/infiniband/hw/qedr/verbs.c ibqp->qp_type, attr_mask)) { ibqp 2132 drivers/infiniband/hw/qedr/verbs.c attr_mask, qp->qp_id, ibqp->qp_type, ibqp 2205 drivers/infiniband/hw/qedr/verbs.c rc = get_gid_info_from_table(ibqp, attr, attr_mask, &qp_params); ibqp 2376 drivers/infiniband/hw/qedr/verbs.c int qedr_query_qp(struct ib_qp *ibqp, ibqp 2381 drivers/infiniband/hw/qedr/verbs.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 2462 drivers/infiniband/hw/qedr/verbs.c int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ibqp 2464 drivers/infiniband/hw/qedr/verbs.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 2481 drivers/infiniband/hw/qedr/verbs.c qedr_modify_qp(ibqp, &attr, attr_mask, NULL); ibqp 2520 drivers/infiniband/hw/qedr/verbs.c qedr_iw_qp_rem_ref(&qp->ibqp); ibqp 3177 drivers/infiniband/hw/qedr/verbs.c static int __qedr_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 3180 drivers/infiniband/hw/qedr/verbs.c struct qedr_dev *dev = get_qedr_dev(ibqp->device); ibqp 3181 drivers/infiniband/hw/qedr/verbs.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 3392 drivers/infiniband/hw/qedr/verbs.c int qedr_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 3395 drivers/infiniband/hw/qedr/verbs.c struct qedr_dev *dev = get_qedr_dev(ibqp->device); ibqp 3396 drivers/infiniband/hw/qedr/verbs.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 3403 drivers/infiniband/hw/qedr/verbs.c return qedr_gsi_post_send(ibqp, wr, bad_wr); ibqp 3421 drivers/infiniband/hw/qedr/verbs.c rc = __qedr_post_send(ibqp, wr, bad_wr); ibqp 3551 drivers/infiniband/hw/qedr/verbs.c int qedr_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 3554 drivers/infiniband/hw/qedr/verbs.c struct qedr_qp *qp = get_qedr_qp(ibqp); ibqp 3560 drivers/infiniband/hw/qedr/verbs.c return qedr_gsi_post_recv(ibqp, wr, bad_wr); ibqp 3716 drivers/infiniband/hw/qedr/verbs.c wc->qp = &qp->ibqp; ibqp 3934 drivers/infiniband/hw/qedr/verbs.c wc->qp = &qp->ibqp; ibqp 3954 drivers/infiniband/hw/qedr/verbs.c wc->qp = &qp->ibqp; ibqp 3991 drivers/infiniband/hw/qedr/verbs.c wc->qp = &qp->ibqp; ibqp 4090 drivers/infiniband/hw/qedr/verbs.c wc->qp = &qp->ibqp; ibqp 64 drivers/infiniband/hw/qedr/verbs.h int qedr_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); ibqp 370 drivers/infiniband/hw/qib/qib_driver.c switch (qp->ibqp.qp_type) { ibqp 243 drivers/infiniband/hw/qib/qib_qp.c struct qib_ibdev *dev = to_idev(qp->ibqp.device); ibqp 369 drivers/infiniband/hw/qib/qib_qp.c struct qib_ibdev *dev = to_idev(qp->ibqp.device); ibqp 390 drivers/infiniband/hw/qib/qib_qp.c switch (qp->ibqp.qp_type) { ibqp 434 drivers/infiniband/hw/qib/qib_qp.c qp->ibqp.qp_num, ibqp 435 drivers/infiniband/hw/qib/qib_qp.c qp_type_str[qp->ibqp.qp_type], ibqp 218 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibdev *dev = to_idev(qp->ibqp.device); ibqp 599 drivers/infiniband/hw/qib/qib_rc.c struct qib_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 600 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 838 drivers/infiniband/hw/qib/qib_rc.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 1026 drivers/infiniband/hw/qib/qib_rc.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 1498 drivers/infiniband/hw/qib/qib_rc.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 1878 drivers/infiniband/hw/qib/qib_rc.c wc.qp = &qp->ibqp; ibqp 53 drivers/infiniband/hw/qib/qib_ruc.c ev.device = qp->ibqp.device; ibqp 54 drivers/infiniband/hw/qib/qib_ruc.c ev.element.qp = &qp->ibqp; ibqp 56 drivers/infiniband/hw/qib/qib_ruc.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 114 drivers/infiniband/hw/qib/qib_ruc.c 0, qp->ibqp.qp_num, ibqp 153 drivers/infiniband/hw/qib/qib_ruc.c 0, qp->ibqp.qp_num, ibqp 210 drivers/infiniband/hw/qib/qib_ruc.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 266 drivers/infiniband/hw/qib/qib_ruc.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 271 drivers/infiniband/hw/qib/qib_ruc.c if ((qp->ibqp.qp_type == IB_QPT_RC || ibqp 272 drivers/infiniband/hw/qib/qib_ruc.c qp->ibqp.qp_type == IB_QPT_UC) && ibqp 279 drivers/infiniband/hw/qib/qib_ruc.c if (qp->ibqp.qp_type == IB_QPT_RC) ibqp 281 drivers/infiniband/hw/qib/qib_ruc.c else if (qp->ibqp.qp_type == IB_QPT_UC) ibqp 628 drivers/infiniband/hw/qib/qib_sdma.c if (qp->ibqp.qp_type == IB_QPT_RC) { ibqp 393 drivers/infiniband/hw/qib/qib_uc.c wc.qp = &qp->ibqp; ibqp 53 drivers/infiniband/hw/qib/qib_ud.c struct qib_ibport *ibp = to_iport(sqp->ibqp.device, sqp->port_num); ibqp 73 drivers/infiniband/hw/qib/qib_ud.c sqptype = sqp->ibqp.qp_type == IB_QPT_GSI ? ibqp 74 drivers/infiniband/hw/qib/qib_ud.c IB_QPT_UD : sqp->ibqp.qp_type; ibqp 75 drivers/infiniband/hw/qib/qib_ud.c dqptype = qp->ibqp.qp_type == IB_QPT_GSI ? ibqp 76 drivers/infiniband/hw/qib/qib_ud.c IB_QPT_UD : qp->ibqp.qp_type; ibqp 87 drivers/infiniband/hw/qib/qib_ud.c if (qp->ibqp.qp_num > 1) { ibqp 99 drivers/infiniband/hw/qib/qib_ud.c sqp->ibqp.qp_num, qp->ibqp.qp_num, ibqp 111 drivers/infiniband/hw/qib/qib_ud.c if (qp->ibqp.qp_num) { ibqp 149 drivers/infiniband/hw/qib/qib_ud.c if (qp->ibqp.qp_num == 0) ibqp 204 drivers/infiniband/hw/qib/qib_ud.c wc.qp = &qp->ibqp; ibqp 205 drivers/infiniband/hw/qib/qib_ud.c wc.src_qp = sqp->ibqp.qp_num; ibqp 206 drivers/infiniband/hw/qib/qib_ud.c wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? ibqp 272 drivers/infiniband/hw/qib/qib_ud.c ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 345 drivers/infiniband/hw/qib/qib_ud.c if (qp->ibqp.qp_type == IB_QPT_SMI) ibqp 364 drivers/infiniband/hw/qib/qib_ud.c bth0 |= qp->ibqp.qp_type == IB_QPT_SMI ? QIB_DEFAULT_P_KEY : ibqp 365 drivers/infiniband/hw/qib/qib_ud.c qib_get_pkey(ibp, qp->ibqp.qp_type == IB_QPT_GSI ? ibqp 384 drivers/infiniband/hw/qib/qib_ud.c ohdr->u.ud.deth[1] = cpu_to_be32(qp->ibqp.qp_num); ibqp 463 drivers/infiniband/hw/qib/qib_ud.c if (qp->ibqp.qp_num) { ibqp 467 drivers/infiniband/hw/qib/qib_ud.c if (qp->ibqp.qp_num > 1) { ibqp 477 drivers/infiniband/hw/qib/qib_ud.c src_qp, qp->ibqp.qp_num, ibqp 486 drivers/infiniband/hw/qib/qib_ud.c if (unlikely(qp->ibqp.qp_num == 1 && ibqp 508 drivers/infiniband/hw/qib/qib_ud.c if (qp->ibqp.qp_num > 1 && ibqp 538 drivers/infiniband/hw/qib/qib_ud.c if (qp->ibqp.qp_num == 0) ibqp 563 drivers/infiniband/hw/qib/qib_ud.c wc.qp = &qp->ibqp; ibqp 565 drivers/infiniband/hw/qib/qib_ud.c wc.pkey_index = qp->ibqp.qp_type == IB_QPT_GSI ? ibqp 236 drivers/infiniband/hw/qib/qib_verbs.c switch (qp->ibqp.qp_type) { ibqp 622 drivers/infiniband/hw/qib/qib_verbs.c dev = to_idev(qp->ibqp.device); ibqp 722 drivers/infiniband/hw/qib/qib_verbs.c else if (qp->ibqp.qp_type == IB_QPT_RC) { ibqp 728 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibdev *dev = to_idev(qp->ibqp.device); ibqp 776 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibdev *dev = to_idev(qp->ibqp.device); ibqp 778 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibport *ibp = to_iport(qp->ibqp.device, qp->port_num); ibqp 878 drivers/infiniband/hw/qib/qib_verbs.c struct qib_ibdev *dev = to_idev(qp->ibqp.device); ibqp 911 drivers/infiniband/hw/qib/qib_verbs.c struct qib_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 996 drivers/infiniband/hw/qib/qib_verbs.c } else if (qp->ibqp.qp_type == IB_QPT_RC) { ibqp 1018 drivers/infiniband/hw/qib/qib_verbs.c struct qib_devdata *dd = dd_from_ibdev(qp->ibqp.device); ibqp 1034 drivers/infiniband/hw/qib/qib_verbs.c if (qp->ibqp.qp_type == IB_QPT_SMI || ibqp 1355 drivers/infiniband/hw/qib/qib_verbs.c ah = rdma_create_ah(qp0->ibqp.pd, &attr, 0); ibqp 1691 drivers/infiniband/hw/qib/qib_verbs.c to_iport(qp->ibqp.device, qp->port_num); ibqp 85 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c qp_grp->ibqp.qp_num, ibqp 487 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c ib_event.element.qp = &qp_grp->ibqp; ibqp 492 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c qp_grp->ibqp.event_handler(&ib_event, ibqp 493 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c qp_grp->ibqp.qp_context); ibqp 497 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c qp_grp->ibqp.event_handler(&ib_event, ibqp 498 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c qp_grp->ibqp.qp_context); ibqp 504 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c qp_grp->ibqp.event_handler(&ib_event, ibqp 505 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c qp_grp->ibqp.qp_context); ibqp 723 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c qp_grp->ibqp.qp_num = qp_grp->grp_id; ibqp 49 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.h struct ib_qp ibqp; ibqp 105 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.h struct usnic_ib_qp_grp *to_uqp_grp(struct ib_qp *ibqp) ibqp 107 drivers/infiniband/hw/usnic/usnic_ib_qp_grp.h return container_of(ibqp, struct usnic_ib_qp_grp, ibqp); ibqp 236 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c qp_grp->ibqp.qp_num, ibqp 404 drivers/infiniband/hw/usnic/usnic_ib_verbs.c switch (qp_grp->ibqp.qp_type) { ibqp 409 drivers/infiniband/hw/usnic/usnic_ib_verbs.c usnic_err("Unexpected qp_type %d\n", qp_grp->ibqp.qp_type); ibqp 533 drivers/infiniband/hw/usnic/usnic_ib_verbs.c return &qp_grp->ibqp; ibqp 564 drivers/infiniband/hw/usnic/usnic_ib_verbs.c int usnic_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 571 drivers/infiniband/hw/usnic/usnic_ib_verbs.c qp_grp = to_uqp_grp(ibqp); ibqp 59 drivers/infiniband/hw/usnic/usnic_ib_verbs.h int usnic_ib_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 182 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h struct ib_qp ibqp; ibqp 289 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h static inline struct pvrdma_qp *to_vqp(struct ib_qp *ibqp) ibqp 291 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h return container_of(ibqp, struct pvrdma_qp, ibqp); ibqp 355 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c wc->qp = &(*cur_qp)->ibqp; ibqp 322 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c if (qp && qp->ibqp.event_handler) { ibqp 323 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c struct ib_qp *ibqp = &qp->ibqp; ibqp 326 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c e.device = ibqp->device; ibqp 327 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c e.element.qp = ibqp; ibqp 329 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c ibqp->event_handler(&e, ibqp->qp_context); ibqp 58 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c *send_cq = to_vcq(qp->ibqp.send_cq); ibqp 59 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c *recv_cq = to_vcq(qp->ibqp.recv_cq); ibqp 384 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->ibqp.qp_num = resp->qpn; ibqp 389 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c return &qp->ibqp; ibqp 405 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_dev *dev = to_vdev(qp->ibqp.device); ibqp 475 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 478 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_dev *dev = to_vdev(ibqp->device); ibqp 479 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_qp *qp = to_vqp(ibqp); ibqp 492 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (!ib_modify_qp_is_ok(cur_state, next_state, ibqp->qp_type, ibqp 500 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c attr->port_num > ibqp->device->phys_port_cnt) { ibqp 618 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int pvrdma_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 621 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_qp *qp = to_vqp(ibqp); ibqp 622 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_dev *dev = to_vdev(ibqp->device); ibqp 685 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c if (qp->ibqp.qp_type != IB_QPT_UD && ibqp 686 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->ibqp.qp_type != IB_QPT_RC && ibqp 693 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c } else if (qp->ibqp.qp_type == IB_QPT_UD || ibqp 694 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c qp->ibqp.qp_type == IB_QPT_GSI) { ibqp 721 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c switch (qp->ibqp.qp_type) { ibqp 828 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int pvrdma_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 831 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_dev *dev = to_vdev(ibqp->device); ibqp 833 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_qp *qp = to_vqp(ibqp); ibqp 921 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c int pvrdma_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 924 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_dev *dev = to_vdev(ibqp->device); ibqp 925 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c struct pvrdma_qp *qp = to_vqp(ibqp); ibqp 987 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->event_handler = qp->ibqp.event_handler; ibqp 988 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->qp_context = qp->ibqp.qp_context; ibqp 989 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->send_cq = qp->ibqp.send_cq; ibqp 990 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->recv_cq = qp->ibqp.recv_cq; ibqp 991 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->srq = qp->ibqp.srq; ibqp 995 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->qp_type = qp->ibqp.qp_type; ibqp 431 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 433 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, ibqp 436 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 438 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h int pvrdma_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 280 drivers/infiniband/sw/rdmavt/mcast.c int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) ibqp 282 drivers/infiniband/sw/rdmavt/mcast.c struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); ibqp 283 drivers/infiniband/sw/rdmavt/mcast.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 289 drivers/infiniband/sw/rdmavt/mcast.c if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) ibqp 343 drivers/infiniband/sw/rdmavt/mcast.c int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) ibqp 345 drivers/infiniband/sw/rdmavt/mcast.c struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); ibqp 346 drivers/infiniband/sw/rdmavt/mcast.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 354 drivers/infiniband/sw/rdmavt/mcast.c if (ibqp->qp_num <= 1) ibqp 54 drivers/infiniband/sw/rdmavt/mcast.h int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); ibqp 55 drivers/infiniband/sw/rdmavt/mcast.h int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); ibqp 456 drivers/infiniband/sw/rdmavt/mr.c if (mr->pd != qp->ibqp.pd) ibqp 663 drivers/infiniband/sw/rdmavt/mr.c if (qp->ibqp.pd != mr->mr.pd) ibqp 693 drivers/infiniband/sw/rdmavt/mr.c struct rvt_dev_info *dev = ib_to_rvt(qp->ibqp.device); ibqp 703 drivers/infiniband/sw/rdmavt/mr.c if (unlikely(!mr || mr->lkey != rkey || qp->ibqp.pd != mr->pd)) ibqp 1027 drivers/infiniband/sw/rdmavt/mr.c struct rvt_dev_info *dev = ib_to_rvt(qp->ibqp.device); ibqp 1039 drivers/infiniband/sw/rdmavt/mr.c struct rvt_pd *pd = ibpd_to_rvtpd(qp->ibqp.pd); ibqp 1067 drivers/infiniband/sw/rdmavt/mr.c mr->lkey != rkey || qp->ibqp.pd != mr->pd)) ibqp 467 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 470 drivers/infiniband/sw/rdmavt/qp.c rvt_reset_qp(rdi, qp, qp->ibqp.qp_type); ibqp 621 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 705 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 731 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.qp_type == IB_QPT_SMI || ibqp 732 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.qp_type == IB_QPT_GSI) ibqp 753 drivers/infiniband/sw/rdmavt/qp.c ev.device = qp->ibqp.device; ibqp 754 drivers/infiniband/sw/rdmavt/qp.c ev.element.qp = &qp->ibqp; ibqp 756 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 771 drivers/infiniband/sw/rdmavt/qp.c u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); ibqp 1209 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.qp_num = err; ibqp 1291 drivers/infiniband/sw/rdmavt/qp.c ret = &qp->ibqp; ibqp 1300 drivers/infiniband/sw/rdmavt/qp.c rvt_free_qpn(&rdi->qp_dev->qpn_table, qp->ibqp.qp_num); ibqp 1334 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 1360 drivers/infiniband/sw/rdmavt/qp.c wc.qp = &qp->ibqp; ibqp 1366 drivers/infiniband/sw/rdmavt/qp.c rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, 1); ibqp 1396 drivers/infiniband/sw/rdmavt/qp.c rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, 1); ibqp 1403 drivers/infiniband/sw/rdmavt/qp.c } else if (qp->ibqp.event_handler) { ibqp 1424 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.qp_num <= 1) { ibqp 1425 drivers/infiniband/sw/rdmavt/qp.c rcu_assign_pointer(rvp->qp[qp->ibqp.qp_num], qp); ibqp 1427 drivers/infiniband/sw/rdmavt/qp.c u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); ibqp 1446 drivers/infiniband/sw/rdmavt/qp.c int rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 1449 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 1450 drivers/infiniband/sw/rdmavt/qp.c struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); ibqp 1465 drivers/infiniband/sw/rdmavt/qp.c opa_ah = rdma_cap_opa_ah(ibqp->device, qp->port_num); ibqp 1467 drivers/infiniband/sw/rdmavt/qp.c if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, ibqp 1486 drivers/infiniband/sw/rdmavt/qp.c if (rvt_check_ah(qp->ibqp.device, &attr->ah_attr)) ibqp 1501 drivers/infiniband/sw/rdmavt/qp.c if (rvt_check_ah(qp->ibqp.device, &attr->alt_ah_attr)) ibqp 1516 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.qp_type == IB_QPT_SMI || ibqp 1517 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.qp_type == IB_QPT_GSI || ibqp 1519 drivers/infiniband/sw/rdmavt/qp.c attr->port_num > ibqp->device->phys_port_cnt) ibqp 1573 drivers/infiniband/sw/rdmavt/qp.c _rvt_reset_qp(rdi, qp, ibqp->qp_type); ibqp 1588 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.qp_type == IB_QPT_RC) ibqp 1688 drivers/infiniband/sw/rdmavt/qp.c ev.device = qp->ibqp.device; ibqp 1689 drivers/infiniband/sw/rdmavt/qp.c ev.element.qp = &qp->ibqp; ibqp 1691 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 1694 drivers/infiniband/sw/rdmavt/qp.c ev.device = qp->ibqp.device; ibqp 1695 drivers/infiniband/sw/rdmavt/qp.c ev.element.qp = &qp->ibqp; ibqp 1697 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 1717 drivers/infiniband/sw/rdmavt/qp.c int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ibqp 1719 drivers/infiniband/sw/rdmavt/qp.c struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); ibqp 1720 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 1722 drivers/infiniband/sw/rdmavt/qp.c rvt_reset_qp(rdi, qp, ibqp->qp_type); ibqp 1726 drivers/infiniband/sw/rdmavt/qp.c rvt_free_qpn(&rdi->qp_dev->qpn_table, qp->ibqp.qp_num); ibqp 1730 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.qp_type == IB_QPT_RC) { ibqp 1758 drivers/infiniband/sw/rdmavt/qp.c int rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 1761 drivers/infiniband/sw/rdmavt/qp.c struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); ibqp 1762 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 1775 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_recv_wr = qp->ibqp.srq ? 0 : qp->r_rq.size - 1; ibqp 1796 drivers/infiniband/sw/rdmavt/qp.c init_attr->event_handler = qp->ibqp.event_handler; ibqp 1797 drivers/infiniband/sw/rdmavt/qp.c init_attr->qp_context = qp->ibqp.qp_context; ibqp 1798 drivers/infiniband/sw/rdmavt/qp.c init_attr->send_cq = qp->ibqp.send_cq; ibqp 1799 drivers/infiniband/sw/rdmavt/qp.c init_attr->recv_cq = qp->ibqp.recv_cq; ibqp 1800 drivers/infiniband/sw/rdmavt/qp.c init_attr->srq = qp->ibqp.srq; ibqp 1806 drivers/infiniband/sw/rdmavt/qp.c init_attr->qp_type = qp->ibqp.qp_type; ibqp 1821 drivers/infiniband/sw/rdmavt/qp.c int rvt_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 1824 drivers/infiniband/sw/rdmavt/qp.c struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); ibqp 1828 drivers/infiniband/sw/rdmavt/qp.c !qp->ibqp.srq; ibqp 1859 drivers/infiniband/sw/rdmavt/qp.c wc.qp = &qp->ibqp; ibqp 1863 drivers/infiniband/sw/rdmavt/qp.c rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, 1); ibqp 1911 drivers/infiniband/sw/rdmavt/qp.c if (!(post_parms[wr->opcode].qpt_support & BIT(qp->ibqp.qp_type))) ibqp 1914 drivers/infiniband/sw/rdmavt/qp.c ibpd_to_rvtpd(qp->ibqp.pd)->user) ibqp 1926 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.qp_type != IB_QPT_UC && ibqp 1927 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.qp_type != IB_QPT_RC) { ibqp 1928 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.pd != ud_wr(wr)->ah->pd) ibqp 1988 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.qp_num, qp->s_size, qp->s_avail, ibqp 2010 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 2076 drivers/infiniband/sw/rdmavt/qp.c pd = ibpd_to_rvtpd(qp->ibqp.pd); ibqp 2182 drivers/infiniband/sw/rdmavt/qp.c int rvt_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 2185 drivers/infiniband/sw/rdmavt/qp.c struct rvt_qp *qp = ibqp_to_rvtqp(ibqp); ibqp 2186 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 2313 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 2316 drivers/infiniband/sw/rdmavt/qp.c pd = ibpd_to_rvtpd(qp->ibqp.srq ? qp->ibqp.srq->pd : qp->ibqp.pd); ibqp 2347 drivers/infiniband/sw/rdmavt/qp.c wc.qp = &qp->ibqp; ibqp 2349 drivers/infiniband/sw/rdmavt/qp.c rvt_cq_enter(ibcq_to_rvtcq(qp->ibqp.recv_cq), &wc, 1); ibqp 2421 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.srq) { ibqp 2422 drivers/infiniband/sw/rdmavt/qp.c srq = ibsrq_to_rvtsrq(qp->ibqp.srq); ibqp 2493 drivers/infiniband/sw/rdmavt/qp.c ev.device = qp->ibqp.device; ibqp 2494 drivers/infiniband/sw/rdmavt/qp.c ev.element.srq = qp->ibqp.srq; ibqp 2515 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.event_handler) { ibqp 2518 drivers/infiniband/sw/rdmavt/qp.c ev.device = qp->ibqp.device; ibqp 2519 drivers/infiniband/sw/rdmavt/qp.c ev.element.qp = &qp->ibqp; ibqp 2521 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 2538 drivers/infiniband/sw/rdmavt/qp.c ev.device = qp->ibqp.device; ibqp 2539 drivers/infiniband/sw/rdmavt/qp.c ev.element.qp = &qp->ibqp; ibqp 2541 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); ibqp 2571 drivers/infiniband/sw/rdmavt/qp.c struct ib_qp *ibqp = &qp->ibqp; ibqp 2572 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 2653 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 2681 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 2848 drivers/infiniband/sw/rdmavt/qp.c rdi = ib_to_rvt(qp->ibqp.device); ibqp 2882 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 2950 drivers/infiniband/sw/rdmavt/qp.c return sqp->ibqp.qp_type == IB_QPT_RC ? ibqp 2967 drivers/infiniband/sw/rdmavt/qp.c struct rvt_dev_info *rdi = ib_to_rvt(sqp->ibqp.device); ibqp 2989 drivers/infiniband/sw/rdmavt/qp.c qp = rvt_lookup_qpn(ib_to_rvt(sqp->ibqp.device), rvp, ibqp 3032 drivers/infiniband/sw/rdmavt/qp.c qp->ibqp.qp_type != sqp->ibqp.qp_type) { ibqp 3181 drivers/infiniband/sw/rdmavt/qp.c wc.qp = &qp->ibqp; ibqp 3204 drivers/infiniband/sw/rdmavt/qp.c if (qp->ibqp.qp_type == IB_QPT_UC) ibqp 3232 drivers/infiniband/sw/rdmavt/qp.c sqp->ibqp.qp_type == IB_QPT_RC ? ibqp 3250 drivers/infiniband/sw/rdmavt/qp.c if (sqp->ibqp.qp_type == IB_QPT_RC) { ibqp 3258 drivers/infiniband/sw/rdmavt/qp.c ev.device = sqp->ibqp.device; ibqp 3259 drivers/infiniband/sw/rdmavt/qp.c ev.element.qp = &sqp->ibqp; ibqp 3261 drivers/infiniband/sw/rdmavt/qp.c sqp->ibqp.event_handler(&ev, sqp->ibqp.qp_context); ibqp 58 drivers/infiniband/sw/rdmavt/qp.h int rvt_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 60 drivers/infiniband/sw/rdmavt/qp.h int rvt_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); ibqp 61 drivers/infiniband/sw/rdmavt/qp.h int rvt_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 63 drivers/infiniband/sw/rdmavt/qp.h int rvt_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 65 drivers/infiniband/sw/rdmavt/qp.h int rvt_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 98 drivers/infiniband/sw/rdmavt/rc.c if (qp->ibqp.srq) { ibqp 167 drivers/infiniband/sw/rdmavt/rc.c struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device); ibqp 63 drivers/infiniband/sw/rdmavt/trace_qp.h RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) ibqp 68 drivers/infiniband/sw/rdmavt/trace_qp.h RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)) ibqp 69 drivers/infiniband/sw/rdmavt/trace_qp.h __entry->qpn = qp->ibqp.qp_num; ibqp 93 drivers/infiniband/sw/rdmavt/trace_qp.h RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) ibqp 100 drivers/infiniband/sw/rdmavt/trace_qp.h RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)) ibqp 101 drivers/infiniband/sw/rdmavt/trace_qp.h __entry->qpn = qp->ibqp.qp_num; ibqp 63 drivers/infiniband/sw/rdmavt/trace_rc.h RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) ibqp 74 drivers/infiniband/sw/rdmavt/trace_rc.h RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)) ibqp 75 drivers/infiniband/sw/rdmavt/trace_rc.h __entry->qpn = qp->ibqp.qp_num; ibqp 94 drivers/infiniband/sw/rdmavt/trace_tx.h RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) ibqp 114 drivers/infiniband/sw/rdmavt/trace_tx.h RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)) ibqp 117 drivers/infiniband/sw/rdmavt/trace_tx.h __entry->qpn = qp->ibqp.qp_num; ibqp 118 drivers/infiniband/sw/rdmavt/trace_tx.h __entry->qpt = qp->ibqp.qp_type; ibqp 161 drivers/infiniband/sw/rdmavt/trace_tx.h RDI_DEV_ENTRY(ib_to_rvt(qp->ibqp.device)) ibqp 173 drivers/infiniband/sw/rdmavt/trace_tx.h RDI_DEV_ASSIGN(ib_to_rvt(qp->ibqp.device)) ibqp 176 drivers/infiniband/sw/rdmavt/trace_tx.h __entry->qpn = qp->ibqp.qp_num; ibqp 177 drivers/infiniband/sw/rdmavt/trace_tx.h __entry->qpt = qp->ibqp.qp_type; ibqp 242 drivers/infiniband/sw/rxe/rxe_comp.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 417 drivers/infiniband/sw/rxe/rxe_comp.c wc->qp = &qp->ibqp; ibqp 428 drivers/infiniband/sw/rxe/rxe_comp.c uwc->qp_num = qp->ibqp.qp_num; ibqp 442 drivers/infiniband/sw/rxe/rxe_comp.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 494 drivers/infiniband/sw/rxe/rxe_comp.c if (qp->ibqp.event_handler) { ibqp 497 drivers/infiniband/sw/rxe/rxe_comp.c ev.device = qp->ibqp.device; ibqp 498 drivers/infiniband/sw/rxe/rxe_comp.c ev.element.qp = &qp->ibqp; ibqp 500 drivers/infiniband/sw/rxe/rxe_comp.c qp->ibqp.event_handler(&ev, ibqp 501 drivers/infiniband/sw/rxe/rxe_comp.c qp->ibqp.qp_context); ibqp 560 drivers/infiniband/sw/rxe/rxe_comp.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 180 drivers/infiniband/sw/rxe/rxe_loc.h return qp->ibqp.qp_num; ibqp 185 drivers/infiniband/sw/rxe/rxe_loc.h return qp->ibqp.qp_type; ibqp 195 drivers/infiniband/sw/rxe/rxe_loc.h if (qp->ibqp.qp_type == IB_QPT_RC || qp->ibqp.qp_type == IB_QPT_UC) ibqp 247 drivers/infiniband/sw/rxe/rxe_loc.h return rxe_wr_opcode_info[opcode].mask[qp->ibqp.qp_type]; ibqp 255 drivers/infiniband/sw/rxe/rxe_loc.h struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 192 drivers/infiniband/sw/rxe/rxe_qp.c qp->ibqp.qp_num = 0; ibqp 198 drivers/infiniband/sw/rxe/rxe_qp.c qp->ibqp.qp_num = 1; ibqp 204 drivers/infiniband/sw/rxe/rxe_qp.c qp->ibqp.qp_num = qpn; ibqp 388 drivers/infiniband/sw/rxe/rxe_qp.c init->event_handler = qp->ibqp.event_handler; ibqp 389 drivers/infiniband/sw/rxe/rxe_qp.c init->qp_context = qp->ibqp.qp_context; ibqp 390 drivers/infiniband/sw/rxe/rxe_qp.c init->send_cq = qp->ibqp.send_cq; ibqp 391 drivers/infiniband/sw/rxe/rxe_qp.c init->recv_cq = qp->ibqp.recv_cq; ibqp 392 drivers/infiniband/sw/rxe/rxe_qp.c init->srq = qp->ibqp.srq; ibqp 405 drivers/infiniband/sw/rxe/rxe_qp.c init->qp_type = qp->ibqp.qp_type; ibqp 162 drivers/infiniband/sw/rxe/rxe_req.c if (qp->ibqp.event_handler) { ibqp 165 drivers/infiniband/sw/rxe/rxe_req.c ev.device = qp->ibqp.device; ibqp 166 drivers/infiniband/sw/rxe/rxe_req.c ev.element.qp = &qp->ibqp; ibqp 168 drivers/infiniband/sw/rxe/rxe_req.c qp->ibqp.event_handler(&ev, ibqp 169 drivers/infiniband/sw/rxe/rxe_req.c qp->ibqp.qp_context); ibqp 370 drivers/infiniband/sw/rxe/rxe_req.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 383 drivers/infiniband/sw/rxe/rxe_req.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 463 drivers/infiniband/sw/rxe/rxe_req.c if (qp->ibqp.qp_num == 1) ibqp 467 drivers/infiniband/sw/rxe/rxe_req.c deth_set_sqp(pkt, qp->ibqp.qp_num); ibqp 477 drivers/infiniband/sw/rxe/rxe_req.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 629 drivers/infiniband/sw/rxe/rxe_req.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 148 drivers/infiniband/sw/rxe/rxe_resp.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 351 drivers/infiniband/sw/rxe/rxe_resp.c ev.device = qp->ibqp.device; ibqp 352 drivers/infiniband/sw/rxe/rxe_resp.c ev.element.srq = qp->ibqp.srq; ibqp 594 drivers/infiniband/sw/rxe/rxe_resp.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 736 drivers/infiniband/sw/rxe/rxe_resp.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 844 drivers/infiniband/sw/rxe/rxe_resp.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 853 drivers/infiniband/sw/rxe/rxe_resp.c uwc->qp_num = qp->ibqp.qp_num; ibqp 857 drivers/infiniband/sw/rxe/rxe_resp.c wc->qp = &qp->ibqp; ibqp 887 drivers/infiniband/sw/rxe/rxe_resp.c uwc->qp_num = qp->ibqp.qp_num; ibqp 929 drivers/infiniband/sw/rxe/rxe_resp.c wc->qp = &qp->ibqp; ibqp 1223 drivers/infiniband/sw/rxe/rxe_resp.c struct rxe_dev *rxe = to_rdev(qp->ibqp.device); ibqp 451 drivers/infiniband/sw/rxe/rxe_verbs.c return &qp->ibqp; ibqp 461 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 465 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_dev *rxe = to_rdev(ibqp->device); ibqp 466 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_qp *qp = to_rqp(ibqp); ibqp 482 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, ibqp 485 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_qp *qp = to_rqp(ibqp); ibqp 493 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) ibqp 495 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_qp *qp = to_rqp(ibqp); ibqp 718 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, ibqp 721 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_qp *qp = to_rqp(ibqp); ibqp 741 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, ibqp 745 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_qp *qp = to_rqp(ibqp); ibqp 1046 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_attach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid) ibqp 1049 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_dev *rxe = to_rdev(ibqp->device); ibqp 1050 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_qp *qp = to_rqp(ibqp); ibqp 1064 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_detach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid) ibqp 1066 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_dev *rxe = to_rdev(ibqp->device); ibqp 1067 drivers/infiniband/sw/rxe/rxe_verbs.c struct rxe_qp *qp = to_rqp(ibqp); ibqp 237 drivers/infiniband/sw/rxe/rxe_verbs.h struct ib_qp ibqp; ibqp 450 drivers/infiniband/sw/rxe/rxe_verbs.h return qp ? container_of(qp, struct rxe_qp, ibqp) : NULL; ibqp 329 include/rdma/rdmavt_qp.h struct ib_qp ibqp; ibqp 460 include/rdma/rdmavt_qp.h static inline struct rvt_qp *ibqp_to_rvtqp(struct ib_qp *ibqp) ibqp 462 include/rdma/rdmavt_qp.h return container_of(ibqp, struct rvt_qp, ibqp); ibqp 727 include/rdma/rdmavt_qp.h if (qp->ibqp.qp_num == qpn) ibqp 741 include/rdma/rdmavt_qp.h struct ib_qp *ibqp = &qp->ibqp; ibqp 742 include/rdma/rdmavt_qp.h struct rvt_dev_info *rdi = ib_to_rvt(ibqp->device); ibqp 801 include/rdma/rdmavt_qp.h struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.recv_cq); ibqp 821 include/rdma/rdmavt_qp.h struct rvt_cq *cq = ibcq_to_rvtcq(qp->ibqp.send_cq); ibqp 875 include/rdma/rdmavt_qp.h .qp = &qp->ibqp, ibqp 984 include/rdma/rdmavt_qp.h struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device);