Lines Matching refs:qp_attr

3971 int mlx4_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask,  in mlx4_ib_query_qp()  argument
3986 qp_attr->qp_state = IB_QPS_RESET; in mlx4_ib_query_qp()
3999 qp_attr->qp_state = qp->state; in mlx4_ib_query_qp()
4000 qp_attr->path_mtu = context.mtu_msgmax >> 5; in mlx4_ib_query_qp()
4001 qp_attr->path_mig_state = in mlx4_ib_query_qp()
4003 qp_attr->qkey = be32_to_cpu(context.qkey); in mlx4_ib_query_qp()
4004 qp_attr->rq_psn = be32_to_cpu(context.rnr_nextrecvpsn) & 0xffffff; in mlx4_ib_query_qp()
4005 qp_attr->sq_psn = be32_to_cpu(context.next_send_psn) & 0xffffff; in mlx4_ib_query_qp()
4006 qp_attr->dest_qp_num = be32_to_cpu(context.remote_qpn) & 0xffffff; in mlx4_ib_query_qp()
4007 qp_attr->qp_access_flags = in mlx4_ib_query_qp()
4013 to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context.pri_path); in mlx4_ib_query_qp()
4014 to_rdma_ah_attr(dev, &qp_attr->alt_ah_attr, &context.alt_path); in mlx4_ib_query_qp()
4015 qp_attr->alt_pkey_index = context.alt_path.pkey_index & 0x7f; in mlx4_ib_query_qp()
4016 qp_attr->alt_port_num = in mlx4_ib_query_qp()
4017 rdma_ah_get_port_num(&qp_attr->alt_ah_attr); in mlx4_ib_query_qp()
4020 qp_attr->pkey_index = context.pri_path.pkey_index & 0x7f; in mlx4_ib_query_qp()
4021 if (qp_attr->qp_state == IB_QPS_INIT) in mlx4_ib_query_qp()
4022 qp_attr->port_num = qp->port; in mlx4_ib_query_qp()
4024 qp_attr->port_num = context.pri_path.sched_queue & 0x40 ? 2 : 1; in mlx4_ib_query_qp()
4027 qp_attr->sq_draining = mlx4_state == MLX4_QP_STATE_SQ_DRAINING; in mlx4_ib_query_qp()
4029 qp_attr->max_rd_atomic = 1 << ((be32_to_cpu(context.params1) >> 21) & 0x7); in mlx4_ib_query_qp()
4031 qp_attr->max_dest_rd_atomic = in mlx4_ib_query_qp()
4033 qp_attr->min_rnr_timer = in mlx4_ib_query_qp()
4035 qp_attr->timeout = context.pri_path.ackto >> 3; in mlx4_ib_query_qp()
4036 qp_attr->retry_cnt = (be32_to_cpu(context.params1) >> 16) & 0x7; in mlx4_ib_query_qp()
4037 qp_attr->rnr_retry = (be32_to_cpu(context.params1) >> 13) & 0x7; in mlx4_ib_query_qp()
4038 qp_attr->alt_timeout = context.alt_path.ackto >> 3; in mlx4_ib_query_qp()
4041 qp_attr->cur_qp_state = qp_attr->qp_state; in mlx4_ib_query_qp()
4042 qp_attr->cap.max_recv_wr = qp->rq.wqe_cnt; in mlx4_ib_query_qp()
4043 qp_attr->cap.max_recv_sge = qp->rq.max_gs; in mlx4_ib_query_qp()
4046 qp_attr->cap.max_send_wr = qp->sq.wqe_cnt; in mlx4_ib_query_qp()
4047 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mlx4_ib_query_qp()
4049 qp_attr->cap.max_send_wr = 0; in mlx4_ib_query_qp()
4050 qp_attr->cap.max_send_sge = 0; in mlx4_ib_query_qp()
4057 qp_attr->cap.max_inline_data = 0; in mlx4_ib_query_qp()
4059 qp_init_attr->cap = qp_attr->cap; in mlx4_ib_query_qp()