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