• Home
  • Raw
  • Download

Lines Matching refs:qp_attr

4010 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
4025 qp_attr->qp_state = IB_QPS_RESET; in mlx4_ib_query_qp()
4038 qp_attr->qp_state = qp->state; in mlx4_ib_query_qp()
4039 qp_attr->path_mtu = context.mtu_msgmax >> 5; in mlx4_ib_query_qp()
4040 qp_attr->path_mig_state = in mlx4_ib_query_qp()
4042 qp_attr->qkey = be32_to_cpu(context.qkey); in mlx4_ib_query_qp()
4043 qp_attr->rq_psn = be32_to_cpu(context.rnr_nextrecvpsn) & 0xffffff; in mlx4_ib_query_qp()
4044 qp_attr->sq_psn = be32_to_cpu(context.next_send_psn) & 0xffffff; in mlx4_ib_query_qp()
4045 qp_attr->dest_qp_num = be32_to_cpu(context.remote_qpn) & 0xffffff; in mlx4_ib_query_qp()
4046 qp_attr->qp_access_flags = in mlx4_ib_query_qp()
4052 to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context.pri_path); in mlx4_ib_query_qp()
4053 to_rdma_ah_attr(dev, &qp_attr->alt_ah_attr, &context.alt_path); in mlx4_ib_query_qp()
4054 qp_attr->alt_pkey_index = context.alt_path.pkey_index & 0x7f; in mlx4_ib_query_qp()
4055 qp_attr->alt_port_num = in mlx4_ib_query_qp()
4056 rdma_ah_get_port_num(&qp_attr->alt_ah_attr); in mlx4_ib_query_qp()
4059 qp_attr->pkey_index = context.pri_path.pkey_index & 0x7f; in mlx4_ib_query_qp()
4060 if (qp_attr->qp_state == IB_QPS_INIT) in mlx4_ib_query_qp()
4061 qp_attr->port_num = qp->port; in mlx4_ib_query_qp()
4063 qp_attr->port_num = context.pri_path.sched_queue & 0x40 ? 2 : 1; in mlx4_ib_query_qp()
4066 qp_attr->sq_draining = mlx4_state == MLX4_QP_STATE_SQ_DRAINING; in mlx4_ib_query_qp()
4068 qp_attr->max_rd_atomic = 1 << ((be32_to_cpu(context.params1) >> 21) & 0x7); in mlx4_ib_query_qp()
4070 qp_attr->max_dest_rd_atomic = in mlx4_ib_query_qp()
4072 qp_attr->min_rnr_timer = in mlx4_ib_query_qp()
4074 qp_attr->timeout = context.pri_path.ackto >> 3; in mlx4_ib_query_qp()
4075 qp_attr->retry_cnt = (be32_to_cpu(context.params1) >> 16) & 0x7; in mlx4_ib_query_qp()
4076 qp_attr->rnr_retry = (be32_to_cpu(context.params1) >> 13) & 0x7; in mlx4_ib_query_qp()
4077 qp_attr->alt_timeout = context.alt_path.ackto >> 3; in mlx4_ib_query_qp()
4080 qp_attr->cur_qp_state = qp_attr->qp_state; in mlx4_ib_query_qp()
4081 qp_attr->cap.max_recv_wr = qp->rq.wqe_cnt; in mlx4_ib_query_qp()
4082 qp_attr->cap.max_recv_sge = qp->rq.max_gs; in mlx4_ib_query_qp()
4085 qp_attr->cap.max_send_wr = qp->sq.wqe_cnt; in mlx4_ib_query_qp()
4086 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mlx4_ib_query_qp()
4088 qp_attr->cap.max_send_wr = 0; in mlx4_ib_query_qp()
4089 qp_attr->cap.max_send_sge = 0; in mlx4_ib_query_qp()
4096 qp_attr->cap.max_inline_data = 0; in mlx4_ib_query_qp()
4098 qp_init_attr->cap = qp_attr->cap; in mlx4_ib_query_qp()