Lines Matching refs:qp_attr

287 int efa_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr,  in efa_query_qp()  argument
308 memset(qp_attr, 0, sizeof(*qp_attr)); in efa_query_qp()
316 qp_attr->qp_state = result.qp_state; in efa_query_qp()
317 qp_attr->qkey = result.qkey; in efa_query_qp()
318 qp_attr->sq_psn = result.sq_psn; in efa_query_qp()
319 qp_attr->sq_draining = result.sq_draining; in efa_query_qp()
320 qp_attr->port_num = 1; in efa_query_qp()
321 qp_attr->rnr_retry = result.rnr_retry; in efa_query_qp()
323 qp_attr->cap.max_send_wr = qp->max_send_wr; in efa_query_qp()
324 qp_attr->cap.max_recv_wr = qp->max_recv_wr; in efa_query_qp()
325 qp_attr->cap.max_send_sge = qp->max_send_sge; in efa_query_qp()
326 qp_attr->cap.max_recv_sge = qp->max_recv_sge; in efa_query_qp()
327 qp_attr->cap.max_inline_data = qp->max_inline_data; in efa_query_qp()
333 qp_init_attr->cap = qp_attr->cap; in efa_query_qp()
872 struct ib_qp_attr *qp_attr, int qp_attr_mask, in efa_modify_qp_validate() argument
902 if ((qp_attr_mask & IB_QP_PORT) && qp_attr->port_num != 1) { in efa_modify_qp_validate()
907 if ((qp_attr_mask & IB_QP_PKEY_INDEX) && qp_attr->pkey_index) { in efa_modify_qp_validate()
915 int efa_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, in efa_modify_qp() argument
935 cur_state = qp_attr_mask & IB_QP_CUR_STATE ? qp_attr->cur_qp_state : in efa_modify_qp()
937 new_state = qp_attr_mask & IB_QP_STATE ? qp_attr->qp_state : cur_state; in efa_modify_qp()
939 err = efa_modify_qp_validate(dev, qp, qp_attr, qp_attr_mask, cur_state, in efa_modify_qp()
958 params.sq_drained_async_notify = qp_attr->en_sqd_async_notify; in efa_modify_qp()
963 params.qkey = qp_attr->qkey; in efa_modify_qp()
968 params.sq_psn = qp_attr->sq_psn; in efa_modify_qp()
974 params.rnr_retry = qp_attr->rnr_retry; in efa_modify_qp()