Lines Matching refs:init_attr

191 int pvrdma_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *init_attr,  in pvrdma_create_qp()  argument
205 bool is_srq = !!init_attr->srq; in pvrdma_create_qp()
207 if (init_attr->create_flags) { in pvrdma_create_qp()
210 init_attr->create_flags); in pvrdma_create_qp()
214 if (init_attr->qp_type != IB_QPT_RC && in pvrdma_create_qp()
215 init_attr->qp_type != IB_QPT_UD && in pvrdma_create_qp()
216 init_attr->qp_type != IB_QPT_GSI) { in pvrdma_create_qp()
218 init_attr->qp_type); in pvrdma_create_qp()
231 switch (init_attr->qp_type) { in pvrdma_create_qp()
233 if (init_attr->port_num == 0 || in pvrdma_create_qp()
234 init_attr->port_num > ibqp->device->phys_port_cnt) { in pvrdma_create_qp()
281 qp->srq = to_vsrq(init_attr->srq); in pvrdma_create_qp()
303 &init_attr->cap, qp); in pvrdma_create_qp()
308 &init_attr->cap, qp); in pvrdma_create_qp()
354 init_attr->cap.max_inline_data = 0; in pvrdma_create_qp()
359 cmd->send_cq_handle = to_vcq(init_attr->send_cq)->cq_handle; in pvrdma_create_qp()
360 cmd->recv_cq_handle = to_vcq(init_attr->recv_cq)->cq_handle; in pvrdma_create_qp()
362 cmd->srq_handle = to_vsrq(init_attr->srq)->srq_handle; in pvrdma_create_qp()
365 cmd->max_send_wr = init_attr->cap.max_send_wr; in pvrdma_create_qp()
366 cmd->max_recv_wr = init_attr->cap.max_recv_wr; in pvrdma_create_qp()
367 cmd->max_send_sge = init_attr->cap.max_send_sge; in pvrdma_create_qp()
368 cmd->max_recv_sge = init_attr->cap.max_recv_sge; in pvrdma_create_qp()
369 cmd->max_inline_data = init_attr->cap.max_inline_data; in pvrdma_create_qp()
370 cmd->sq_sig_all = (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) ? 1 : 0; in pvrdma_create_qp()
371 cmd->qp_type = ib_qp_type_to_pvrdma(init_attr->qp_type); in pvrdma_create_qp()
391 qp->port = init_attr->port_num; in pvrdma_create_qp()
975 int attr_mask, struct ib_qp_init_attr *init_attr) in pvrdma_query_qp() argument
1040 init_attr->event_handler = qp->ibqp.event_handler; in pvrdma_query_qp()
1041 init_attr->qp_context = qp->ibqp.qp_context; in pvrdma_query_qp()
1042 init_attr->send_cq = qp->ibqp.send_cq; in pvrdma_query_qp()
1043 init_attr->recv_cq = qp->ibqp.recv_cq; in pvrdma_query_qp()
1044 init_attr->srq = qp->ibqp.srq; in pvrdma_query_qp()
1045 init_attr->xrcd = NULL; in pvrdma_query_qp()
1046 init_attr->cap = attr->cap; in pvrdma_query_qp()
1047 init_attr->sq_sig_type = 0; in pvrdma_query_qp()
1048 init_attr->qp_type = qp->ibqp.qp_type; in pvrdma_query_qp()
1049 init_attr->create_flags = 0; in pvrdma_query_qp()
1050 init_attr->port_num = qp->port; in pvrdma_query_qp()