• Home
  • Raw
  • Download

Lines Matching refs:qp_attr

2742 		  struct ib_qp_attr *qp_attr,  in qedr_query_qp()  argument
2751 memset(qp_attr, 0, sizeof(*qp_attr)); in qedr_query_qp()
2758 qp_attr->qp_state = qedr_get_ibqp_state(params.state); in qedr_query_qp()
2760 qp_attr->qp_state = qedr_get_ibqp_state(QED_ROCE_QP_STATE_RTS); in qedr_query_qp()
2763 qp_attr->cur_qp_state = qedr_get_ibqp_state(params.state); in qedr_query_qp()
2764 qp_attr->path_mtu = ib_mtu_int_to_enum(params.mtu); in qedr_query_qp()
2765 qp_attr->path_mig_state = IB_MIG_MIGRATED; in qedr_query_qp()
2766 qp_attr->rq_psn = params.rq_psn; in qedr_query_qp()
2767 qp_attr->sq_psn = params.sq_psn; in qedr_query_qp()
2768 qp_attr->dest_qp_num = params.dest_qp; in qedr_query_qp()
2770 qp_attr->qp_access_flags = qedr_to_ib_qp_acc_flags(&params); in qedr_query_qp()
2772 qp_attr->cap.max_send_wr = qp->sq.max_wr; in qedr_query_qp()
2773 qp_attr->cap.max_recv_wr = qp->rq.max_wr; in qedr_query_qp()
2774 qp_attr->cap.max_send_sge = qp->sq.max_sges; in qedr_query_qp()
2775 qp_attr->cap.max_recv_sge = qp->rq.max_sges; in qedr_query_qp()
2776 qp_attr->cap.max_inline_data = dev->attr.max_inline; in qedr_query_qp()
2777 qp_init_attr->cap = qp_attr->cap; in qedr_query_qp()
2779 qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; in qedr_query_qp()
2780 rdma_ah_set_grh(&qp_attr->ah_attr, NULL, in qedr_query_qp()
2783 rdma_ah_set_dgid_raw(&qp_attr->ah_attr, &params.dgid.bytes[0]); in qedr_query_qp()
2784 rdma_ah_set_port_num(&qp_attr->ah_attr, 1); in qedr_query_qp()
2785 rdma_ah_set_sl(&qp_attr->ah_attr, 0); in qedr_query_qp()
2786 qp_attr->timeout = qp->timeout; in qedr_query_qp()
2787 qp_attr->rnr_retry = params.rnr_retry; in qedr_query_qp()
2788 qp_attr->retry_cnt = params.retry_cnt; in qedr_query_qp()
2789 qp_attr->min_rnr_timer = params.min_rnr_nak_timer; in qedr_query_qp()
2790 qp_attr->pkey_index = params.pkey_index; in qedr_query_qp()
2791 qp_attr->port_num = 1; in qedr_query_qp()
2792 rdma_ah_set_path_bits(&qp_attr->ah_attr, 0); in qedr_query_qp()
2793 rdma_ah_set_static_rate(&qp_attr->ah_attr, 0); in qedr_query_qp()
2794 qp_attr->alt_pkey_index = 0; in qedr_query_qp()
2795 qp_attr->alt_port_num = 0; in qedr_query_qp()
2796 qp_attr->alt_timeout = 0; in qedr_query_qp()
2797 memset(&qp_attr->alt_ah_attr, 0, sizeof(qp_attr->alt_ah_attr)); in qedr_query_qp()
2799 qp_attr->sq_draining = (params.state == QED_ROCE_QP_STATE_SQD) ? 1 : 0; in qedr_query_qp()
2800 qp_attr->max_dest_rd_atomic = params.max_dest_rd_atomic; in qedr_query_qp()
2801 qp_attr->max_rd_atomic = params.max_rd_atomic; in qedr_query_qp()
2802 qp_attr->en_sqd_async_notify = (params.sqd_async) ? 1 : 0; in qedr_query_qp()
2805 qp_attr->cap.max_inline_data); in qedr_query_qp()