Lines Matching defs:qp_context

86 	/* qp_context flags */
262 qp->ibqp.event_handler(&event, qp->ibqp.qp_context);
551 struct mthca_qp_context *qp_context;
561 qp_context = &qp_param->context;
564 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) |
566 qp_context->flags |= cpu_to_be32(MTHCA_QP_BIT_DE);
568 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11);
573 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11);
576 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_REARM << 11);
579 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_ARMED << 11);
587 qp_context->mtu_msgmax = (IB_MTU_2048 << 5) | 11;
594 qp_context->mtu_msgmax = (attr->path_mtu << 5) | 31;
599 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3;
600 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4;
603 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3;
604 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4;
610 qp_context->usr_page =
613 qp_context->usr_page = cpu_to_be32(dev->driver_uar.index);
614 qp_context->local_qpn = cpu_to_be32(qp->qpn);
616 qp_context->remote_qpn = cpu_to_be32(attr->dest_qp_num);
620 qp_context->pri_path.port_pkey |=
624 qp_context->pri_path.port_pkey |=
631 qp_context->pri_path.port_pkey |=
637 qp_context->alt_path.rnr_retry = qp_context->pri_path.rnr_retry =
644 if (mthca_path_set(dev, &attr->ah_attr, &qp_context->pri_path,
656 qp_context->rlkey_arbel_sched_queue |= sched_queue;
658 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue);
665 qp_context->pri_path.ackto = attr->timeout << 3;
682 if (mthca_path_set(dev, &attr->alt_ah_attr, &qp_context->alt_path,
686 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index |
688 qp_context->alt_path.ackto = attr->alt_timeout << 3;
693 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num);
695 qp_context->wqe_lkey = cpu_to_be32(qp->mr.ibmr.lkey);
696 qp_context->params1 = cpu_to_be32((MTHCA_ACK_REQ_FREQ << 28) |
700 qp_context->params1 |= cpu_to_be32(MTHCA_QP_BIT_SSC);
702 qp_context->params1 |= cpu_to_be32(attr->retry_cnt << 16);
708 qp_context->params1 |=
711 qp_context->params1 |=
718 qp_context->next_send_psn = cpu_to_be32(attr->sq_psn);
719 qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn);
722 qp_context->snd_wqe_base_l = cpu_to_be32(qp->send_wqe_offset);
723 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index);
728 qp_context->params2 |=
735 qp_context->params2 |= get_hw_access_flags(qp, attr, attr_mask);
741 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RSC);
744 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RIC);
747 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24);
751 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn);
753 qp_context->ra_buff_indx =
758 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn);
761 qp_context->rcv_db_index = cpu_to_be32(qp->rq.db_index);
764 qp_context->qkey = cpu_to_be32(attr->qkey);
769 qp_context->srqn = cpu_to_be32(1 << 24 |