Lines Matching refs:qp_attr
4795 struct ib_qp_attr *qp_attr) in query_qp_attr() argument
4814 qp_attr->sq_draining = 1; in query_qp_attr()
4816 qp_attr->path_mtu = MLX5_GET(qpc, qpc, mtu); in query_qp_attr()
4817 qp_attr->path_mig_state = to_ib_mig_state(MLX5_GET(qpc, qpc, pm_state)); in query_qp_attr()
4818 qp_attr->qkey = MLX5_GET(qpc, qpc, q_key); in query_qp_attr()
4819 qp_attr->rq_psn = MLX5_GET(qpc, qpc, next_rcv_psn); in query_qp_attr()
4820 qp_attr->sq_psn = MLX5_GET(qpc, qpc, next_send_psn); in query_qp_attr()
4821 qp_attr->dest_qp_num = MLX5_GET(qpc, qpc, remote_qpn); in query_qp_attr()
4824 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ; in query_qp_attr()
4826 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_WRITE; in query_qp_attr()
4828 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_ATOMIC; in query_qp_attr()
4830 qp_attr->max_rd_atomic = 1 << MLX5_GET(qpc, qpc, log_sra_max); in query_qp_attr()
4831 qp_attr->max_dest_rd_atomic = 1 << MLX5_GET(qpc, qpc, log_rra_max); in query_qp_attr()
4832 qp_attr->min_rnr_timer = MLX5_GET(qpc, qpc, min_rnr_nak); in query_qp_attr()
4833 qp_attr->retry_cnt = MLX5_GET(qpc, qpc, retry_count); in query_qp_attr()
4834 qp_attr->rnr_retry = MLX5_GET(qpc, qpc, rnr_retry); in query_qp_attr()
4841 to_rdma_ah_attr(dev, &qp_attr->ah_attr, pri_path); in query_qp_attr()
4842 to_rdma_ah_attr(dev, &qp_attr->alt_ah_attr, alt_path); in query_qp_attr()
4843 qp_attr->alt_pkey_index = MLX5_GET(ads, alt_path, pkey_index); in query_qp_attr()
4844 qp_attr->alt_port_num = MLX5_GET(ads, alt_path, vhca_port_num); in query_qp_attr()
4847 qp_attr->pkey_index = MLX5_GET(ads, pri_path, pkey_index); in query_qp_attr()
4848 qp_attr->port_num = MLX5_GET(ads, pri_path, vhca_port_num); in query_qp_attr()
4849 qp_attr->timeout = MLX5_GET(ads, pri_path, ack_timeout); in query_qp_attr()
4850 qp_attr->alt_timeout = MLX5_GET(ads, alt_path, ack_timeout); in query_qp_attr()
4858 struct ib_qp_attr *qp_attr, int qp_attr_mask, in mlx5_ib_dct_query_qp() argument
4891 qp_attr->qp_state = IB_QPS_RTR; in mlx5_ib_dct_query_qp()
4900 qp_attr->qp_access_flags = access_flags; in mlx5_ib_dct_query_qp()
4904 qp_attr->port_num = MLX5_GET(dctc, dctc, port); in mlx5_ib_dct_query_qp()
4906 qp_attr->min_rnr_timer = MLX5_GET(dctc, dctc, min_rnr_nak); in mlx5_ib_dct_query_qp()
4908 qp_attr->ah_attr.grh.traffic_class = MLX5_GET(dctc, dctc, tclass); in mlx5_ib_dct_query_qp()
4909 qp_attr->ah_attr.grh.flow_label = MLX5_GET(dctc, dctc, flow_label); in mlx5_ib_dct_query_qp()
4910 qp_attr->ah_attr.grh.sgid_index = MLX5_GET(dctc, dctc, my_addr_index); in mlx5_ib_dct_query_qp()
4911 qp_attr->ah_attr.grh.hop_limit = MLX5_GET(dctc, dctc, hop_limit); in mlx5_ib_dct_query_qp()
4914 qp_attr->path_mtu = MLX5_GET(dctc, dctc, mtu); in mlx5_ib_dct_query_qp()
4916 qp_attr->pkey_index = MLX5_GET(dctc, dctc, pkey_index); in mlx5_ib_dct_query_qp()
4922 int mlx5_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, in mlx5_ib_query_qp() argument
4934 return mlx5_ib_gsi_query_qp(ibqp, qp_attr, qp_attr_mask, in mlx5_ib_query_qp()
4939 memset(qp_attr, 0, sizeof(*qp_attr)); in mlx5_ib_query_qp()
4942 return mlx5_ib_dct_query_qp(dev, qp, qp_attr, in mlx5_ib_query_qp()
4953 qp_attr->port_num = 1; in mlx5_ib_query_qp()
4955 err = query_qp_attr(dev, qp, qp_attr); in mlx5_ib_query_qp()
4960 qp_attr->qp_state = qp->state; in mlx5_ib_query_qp()
4961 qp_attr->cur_qp_state = qp_attr->qp_state; in mlx5_ib_query_qp()
4962 qp_attr->cap.max_recv_wr = qp->rq.wqe_cnt; in mlx5_ib_query_qp()
4963 qp_attr->cap.max_recv_sge = qp->rq.max_gs; in mlx5_ib_query_qp()
4966 qp_attr->cap.max_send_wr = qp->sq.max_post; in mlx5_ib_query_qp()
4967 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mlx5_ib_query_qp()
4970 qp_attr->cap.max_send_wr = 0; in mlx5_ib_query_qp()
4971 qp_attr->cap.max_send_sge = 0; in mlx5_ib_query_qp()
4978 qp_attr->cap.max_inline_data = qp->max_inline_data; in mlx5_ib_query_qp()
4980 qp_init_attr->cap = qp_attr->cap; in mlx5_ib_query_qp()