Lines Matching refs:qp
466 ah = ib_create_ah_from_wc(mad_agent->qp->pd, mad_wc->wc, in srpt_mad_recv_handler()
829 ret = ib_post_send(ch->qp, &wr, &bad_wr); in srpt_post_send()
950 static int srpt_init_ch_qp(struct srpt_rdma_ch *ch, struct ib_qp *qp) in srpt_init_ch_qp() argument
965 ret = ib_modify_qp(qp, attr, in srpt_init_ch_qp()
984 static int srpt_ch_qp_rtr(struct srpt_rdma_ch *ch, struct ib_qp *qp) in srpt_ch_qp_rtr() argument
997 ret = ib_modify_qp(qp, &qp_attr, attr_mask); in srpt_ch_qp_rtr()
1014 static int srpt_ch_qp_rts(struct srpt_rdma_ch *ch, struct ib_qp *qp) in srpt_ch_qp_rts() argument
1027 ret = ib_modify_qp(qp, &qp_attr, attr_mask); in srpt_ch_qp_rts()
1041 return ib_modify_qp(ch->qp, &qp_attr, IB_QP_STATE); in srpt_ch_qp_err()
2053 ch->qp = ib_create_qp(sdev->pd, qp_init); in srpt_create_ch_ib()
2054 if (IS_ERR(ch->qp)) { in srpt_create_ch_ib()
2055 ret = PTR_ERR(ch->qp); in srpt_create_ch_ib()
2073 ret = srpt_init_ch_qp(ch, ch->qp); in srpt_create_ch_ib()
2094 ib_destroy_qp(ch->qp); in srpt_create_ch_ib()
2105 ib_destroy_qp(ch->qp); in srpt_destroy_ch_ib()
2504 ret = srpt_ch_qp_rtr(ch, ch->qp); in srpt_cm_req_recv()
2555 rep_param->qp_num = ch->qp->qp_num; in srpt_cm_req_recv()
2636 ret = srpt_ch_qp_rts(ch, ch->qp); in srpt_cm_rtu_recv()
2817 ret = ib_post_send(ch->qp, &wr.wr, &bad_wr); in srpt_perform_rdmas()
2830 ib_post_send(ch->qp, &wr.wr, &bad_wr) != 0) { in srpt_perform_rdmas()