Lines Matching refs:qp_init
1781 struct ib_qp_init_attr *qp_init; in srpt_create_ch_ib() local
1791 qp_init = kzalloc(sizeof(*qp_init), GFP_KERNEL); in srpt_create_ch_ib()
1792 if (!qp_init) in srpt_create_ch_ib()
1806 qp_init->qp_context = (void *)ch; in srpt_create_ch_ib()
1807 qp_init->event_handler in srpt_create_ch_ib()
1809 qp_init->send_cq = ch->cq; in srpt_create_ch_ib()
1810 qp_init->recv_cq = ch->cq; in srpt_create_ch_ib()
1811 qp_init->sq_sig_type = IB_SIGNAL_REQ_WR; in srpt_create_ch_ib()
1812 qp_init->qp_type = IB_QPT_RC; in srpt_create_ch_ib()
1820 qp_init->cap.max_send_wr = min(sq_size / 2, attrs->max_qp_wr); in srpt_create_ch_ib()
1821 qp_init->cap.max_rdma_ctxs = sq_size / 2; in srpt_create_ch_ib()
1822 qp_init->cap.max_send_sge = attrs->max_send_sge; in srpt_create_ch_ib()
1823 qp_init->cap.max_recv_sge = 1; in srpt_create_ch_ib()
1824 qp_init->port_num = ch->sport->port; in srpt_create_ch_ib()
1826 qp_init->srq = sdev->srq; in srpt_create_ch_ib()
1828 qp_init->cap.max_recv_wr = ch->rq_size; in srpt_create_ch_ib()
1831 ret = rdma_create_qp(ch->rdma_cm.cm_id, sdev->pd, qp_init); in srpt_create_ch_ib()
1834 ch->qp = ib_create_qp(sdev->pd, qp_init); in srpt_create_ch_ib()
1859 atomic_set(&ch->sq_wr_avail, qp_init->cap.max_send_wr); in srpt_create_ch_ib()
1862 __func__, ch->cq->cqe, qp_init->cap.max_send_sge, in srpt_create_ch_ib()
1863 qp_init->cap.max_send_wr, ch); in srpt_create_ch_ib()
1870 kfree(qp_init); in srpt_create_ch_ib()