Lines Matching refs:qp_attr

299 int efa_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr,  in efa_query_qp()  argument
320 memset(qp_attr, 0, sizeof(*qp_attr)); in efa_query_qp()
328 qp_attr->qp_state = result.qp_state; in efa_query_qp()
329 qp_attr->qkey = result.qkey; in efa_query_qp()
330 qp_attr->sq_psn = result.sq_psn; in efa_query_qp()
331 qp_attr->sq_draining = result.sq_draining; in efa_query_qp()
332 qp_attr->port_num = 1; in efa_query_qp()
333 qp_attr->rnr_retry = result.rnr_retry; in efa_query_qp()
335 qp_attr->cap.max_send_wr = qp->max_send_wr; in efa_query_qp()
336 qp_attr->cap.max_recv_wr = qp->max_recv_wr; in efa_query_qp()
337 qp_attr->cap.max_send_sge = qp->max_send_sge; in efa_query_qp()
338 qp_attr->cap.max_recv_sge = qp->max_recv_sge; in efa_query_qp()
339 qp_attr->cap.max_inline_data = qp->max_inline_data; in efa_query_qp()
345 qp_init_attr->cap = qp_attr->cap; in efa_query_qp()
884 struct ib_qp_attr *qp_attr, int qp_attr_mask, in efa_modify_qp_validate() argument
914 if ((qp_attr_mask & IB_QP_PORT) && qp_attr->port_num != 1) { in efa_modify_qp_validate()
919 if ((qp_attr_mask & IB_QP_PKEY_INDEX) && qp_attr->pkey_index) { in efa_modify_qp_validate()
927 int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, in efa_modify_qp() argument
947 cur_state = qp_attr_mask & IB_QP_CUR_STATE ? qp_attr->cur_qp_state : in efa_modify_qp()
949 new_state = qp_attr_mask & IB_QP_STATE ? qp_attr->qp_state : cur_state; in efa_modify_qp()
951 err = efa_modify_qp_validate(dev, qp, qp_attr, qp_attr_mask, cur_state, in efa_modify_qp()
970 params.sq_drained_async_notify = qp_attr->en_sqd_async_notify; in efa_modify_qp()
975 params.qkey = qp_attr->qkey; in efa_modify_qp()
980 params.sq_psn = qp_attr->sq_psn; in efa_modify_qp()
986 params.rnr_retry = qp_attr->rnr_retry; in efa_modify_qp()