Lines Matching refs:init_attr

1031 int rvt_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *init_attr,  in rvt_create_qp()  argument
1047 if (init_attr->create_flags & ~IB_QP_CREATE_NETDEV_USE) in rvt_create_qp()
1050 if (init_attr->cap.max_send_sge > rdi->dparms.props.max_send_sge || in rvt_create_qp()
1051 init_attr->cap.max_send_wr > rdi->dparms.props.max_qp_wr) in rvt_create_qp()
1055 if (!init_attr->srq) { in rvt_create_qp()
1056 if (init_attr->cap.max_recv_sge > in rvt_create_qp()
1058 init_attr->cap.max_recv_wr > rdi->dparms.props.max_qp_wr) in rvt_create_qp()
1061 if (init_attr->cap.max_send_sge + in rvt_create_qp()
1062 init_attr->cap.max_send_wr + in rvt_create_qp()
1063 init_attr->cap.max_recv_sge + in rvt_create_qp()
1064 init_attr->cap.max_recv_wr == 0) in rvt_create_qp()
1068 init_attr->cap.max_send_wr + 1 + in rvt_create_qp()
1070 switch (init_attr->qp_type) { in rvt_create_qp()
1073 if (init_attr->port_num == 0 || in rvt_create_qp()
1074 init_attr->port_num > ibqp->device->phys_port_cnt) in rvt_create_qp()
1080 sz = struct_size(swq, sg_list, init_attr->cap.max_send_sge); in rvt_create_qp()
1085 if (init_attr->srq) { in rvt_create_qp()
1086 struct rvt_srq *srq = ibsrq_to_rvtsrq(init_attr->srq); in rvt_create_qp()
1091 } else if (init_attr->cap.max_recv_sge > 1) in rvt_create_qp()
1093 (init_attr->cap.max_recv_sge - 1); in rvt_create_qp()
1098 qp->allowed_ops = get_allowed_ops(init_attr->qp_type); in rvt_create_qp()
1101 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp()
1129 if (init_attr->srq) { in rvt_create_qp()
1132 qp->r_rq.size = init_attr->cap.max_recv_wr + 1; in rvt_create_qp()
1133 qp->r_rq.max_sge = init_attr->cap.max_recv_sge; in rvt_create_qp()
1156 qp->s_avail = init_attr->cap.max_send_wr; in rvt_create_qp()
1157 qp->s_max_sge = init_attr->cap.max_send_sge; in rvt_create_qp()
1158 if (init_attr->sq_sig_type == IB_SIGNAL_REQ_WR) in rvt_create_qp()
1164 if (init_attr->create_flags & IB_QP_CREATE_NETDEV_USE) in rvt_create_qp()
1168 init_attr->qp_type, in rvt_create_qp()
1169 init_attr->port_num, in rvt_create_qp()
1175 if (init_attr->create_flags & IB_QP_CREATE_NETDEV_USE) in rvt_create_qp()
1177 qp->port_num = init_attr->port_num; in rvt_create_qp()
1178 rvt_init_qp(rdi, qp, init_attr->qp_type); in rvt_create_qp()
1180 ret = rdi->driver_f.qp_priv_init(rdi, qp, init_attr); in rvt_create_qp()
1191 init_attr->cap.max_inline_data = 0; in rvt_create_qp()
1240 if (init_attr->qp_type == IB_QPT_RC) { in rvt_create_qp()
1721 int attr_mask, struct ib_qp_init_attr *init_attr) in rvt_query_qp() argument
1758 init_attr->event_handler = qp->ibqp.event_handler; in rvt_query_qp()
1759 init_attr->qp_context = qp->ibqp.qp_context; in rvt_query_qp()
1760 init_attr->send_cq = qp->ibqp.send_cq; in rvt_query_qp()
1761 init_attr->recv_cq = qp->ibqp.recv_cq; in rvt_query_qp()
1762 init_attr->srq = qp->ibqp.srq; in rvt_query_qp()
1763 init_attr->cap = attr->cap; in rvt_query_qp()
1765 init_attr->sq_sig_type = IB_SIGNAL_REQ_WR; in rvt_query_qp()
1767 init_attr->sq_sig_type = IB_SIGNAL_ALL_WR; in rvt_query_qp()
1768 init_attr->qp_type = qp->ibqp.qp_type; in rvt_query_qp()
1769 init_attr->port_num = qp->port_num; in rvt_query_qp()