Lines Matching refs:qp_attr
2728 struct ib_qp_attr *qp_attr, in qedr_query_qp() argument
2737 memset(qp_attr, 0, sizeof(*qp_attr)); in qedr_query_qp()
2744 qp_attr->qp_state = qedr_get_ibqp_state(params.state); in qedr_query_qp()
2746 qp_attr->qp_state = qedr_get_ibqp_state(QED_ROCE_QP_STATE_RTS); in qedr_query_qp()
2749 qp_attr->cur_qp_state = qedr_get_ibqp_state(params.state); in qedr_query_qp()
2750 qp_attr->path_mtu = ib_mtu_int_to_enum(params.mtu); in qedr_query_qp()
2751 qp_attr->path_mig_state = IB_MIG_MIGRATED; in qedr_query_qp()
2752 qp_attr->rq_psn = params.rq_psn; in qedr_query_qp()
2753 qp_attr->sq_psn = params.sq_psn; in qedr_query_qp()
2754 qp_attr->dest_qp_num = params.dest_qp; in qedr_query_qp()
2756 qp_attr->qp_access_flags = qedr_to_ib_qp_acc_flags(¶ms); in qedr_query_qp()
2758 qp_attr->cap.max_send_wr = qp->sq.max_wr; in qedr_query_qp()
2759 qp_attr->cap.max_recv_wr = qp->rq.max_wr; in qedr_query_qp()
2760 qp_attr->cap.max_send_sge = qp->sq.max_sges; in qedr_query_qp()
2761 qp_attr->cap.max_recv_sge = qp->rq.max_sges; in qedr_query_qp()
2762 qp_attr->cap.max_inline_data = dev->attr.max_inline; in qedr_query_qp()
2763 qp_init_attr->cap = qp_attr->cap; in qedr_query_qp()
2765 qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; in qedr_query_qp()
2766 rdma_ah_set_grh(&qp_attr->ah_attr, NULL, in qedr_query_qp()
2769 rdma_ah_set_dgid_raw(&qp_attr->ah_attr, ¶ms.dgid.bytes[0]); in qedr_query_qp()
2770 rdma_ah_set_port_num(&qp_attr->ah_attr, 1); in qedr_query_qp()
2771 rdma_ah_set_sl(&qp_attr->ah_attr, 0); in qedr_query_qp()
2772 qp_attr->timeout = params.timeout; in qedr_query_qp()
2773 qp_attr->rnr_retry = params.rnr_retry; in qedr_query_qp()
2774 qp_attr->retry_cnt = params.retry_cnt; in qedr_query_qp()
2775 qp_attr->min_rnr_timer = params.min_rnr_nak_timer; in qedr_query_qp()
2776 qp_attr->pkey_index = params.pkey_index; in qedr_query_qp()
2777 qp_attr->port_num = 1; in qedr_query_qp()
2778 rdma_ah_set_path_bits(&qp_attr->ah_attr, 0); in qedr_query_qp()
2779 rdma_ah_set_static_rate(&qp_attr->ah_attr, 0); in qedr_query_qp()
2780 qp_attr->alt_pkey_index = 0; in qedr_query_qp()
2781 qp_attr->alt_port_num = 0; in qedr_query_qp()
2782 qp_attr->alt_timeout = 0; in qedr_query_qp()
2783 memset(&qp_attr->alt_ah_attr, 0, sizeof(qp_attr->alt_ah_attr)); in qedr_query_qp()
2785 qp_attr->sq_draining = (params.state == QED_ROCE_QP_STATE_SQD) ? 1 : 0; in qedr_query_qp()
2786 qp_attr->max_dest_rd_atomic = params.max_dest_rd_atomic; in qedr_query_qp()
2787 qp_attr->max_rd_atomic = params.max_rd_atomic; in qedr_query_qp()
2788 qp_attr->en_sqd_async_notify = (params.sqd_async) ? 1 : 0; in qedr_query_qp()
2791 qp_attr->cap.max_inline_data); in qedr_query_qp()