Lines Matching refs:qp_context
263 qp->ibqp.event_handler(&event, qp->ibqp.qp_context); in mthca_qp_event()
556 struct mthca_qp_context *qp_context; in __mthca_modify_qp() local
566 qp_context = &qp_param->context; in __mthca_modify_qp()
569 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) | in __mthca_modify_qp()
571 qp_context->flags |= cpu_to_be32(MTHCA_QP_BIT_DE); in __mthca_modify_qp()
573 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11); in __mthca_modify_qp()
578 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11); in __mthca_modify_qp()
581 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_REARM << 11); in __mthca_modify_qp()
584 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_ARMED << 11); in __mthca_modify_qp()
592 qp_context->mtu_msgmax = (IB_MTU_2048 << 5) | 11; in __mthca_modify_qp()
599 qp_context->mtu_msgmax = (attr->path_mtu << 5) | 31; in __mthca_modify_qp()
604 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3; in __mthca_modify_qp()
605 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4; in __mthca_modify_qp()
608 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3; in __mthca_modify_qp()
609 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mthca_modify_qp()
615 qp_context->usr_page = cpu_to_be32(context->uar.index); in __mthca_modify_qp()
617 qp_context->usr_page = cpu_to_be32(dev->driver_uar.index); in __mthca_modify_qp()
618 qp_context->local_qpn = cpu_to_be32(qp->qpn); in __mthca_modify_qp()
620 qp_context->remote_qpn = cpu_to_be32(attr->dest_qp_num); in __mthca_modify_qp()
624 qp_context->pri_path.port_pkey |= in __mthca_modify_qp()
628 qp_context->pri_path.port_pkey |= in __mthca_modify_qp()
635 qp_context->pri_path.port_pkey |= in __mthca_modify_qp()
641 qp_context->alt_path.rnr_retry = qp_context->pri_path.rnr_retry = in __mthca_modify_qp()
648 if (mthca_path_set(dev, &attr->ah_attr, &qp_context->pri_path, in __mthca_modify_qp()
660 qp_context->rlkey_arbel_sched_queue |= sched_queue; in __mthca_modify_qp()
662 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue); in __mthca_modify_qp()
669 qp_context->pri_path.ackto = attr->timeout << 3; in __mthca_modify_qp()
686 if (mthca_path_set(dev, &attr->alt_ah_attr, &qp_context->alt_path, in __mthca_modify_qp()
690 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index | in __mthca_modify_qp()
692 qp_context->alt_path.ackto = attr->alt_timeout << 3; in __mthca_modify_qp()
697 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num); in __mthca_modify_qp()
699 qp_context->wqe_lkey = cpu_to_be32(qp->mr.ibmr.lkey); in __mthca_modify_qp()
700 qp_context->params1 = cpu_to_be32((MTHCA_ACK_REQ_FREQ << 28) | in __mthca_modify_qp()
704 qp_context->params1 |= cpu_to_be32(MTHCA_QP_BIT_SSC); in __mthca_modify_qp()
706 qp_context->params1 |= cpu_to_be32(attr->retry_cnt << 16); in __mthca_modify_qp()
712 qp_context->params1 |= in __mthca_modify_qp()
715 qp_context->params1 |= in __mthca_modify_qp()
722 qp_context->next_send_psn = cpu_to_be32(attr->sq_psn); in __mthca_modify_qp()
723 qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn); in __mthca_modify_qp()
726 qp_context->snd_wqe_base_l = cpu_to_be32(qp->send_wqe_offset); in __mthca_modify_qp()
727 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index); in __mthca_modify_qp()
732 qp_context->params2 |= in __mthca_modify_qp()
739 qp_context->params2 |= get_hw_access_flags(qp, attr, attr_mask); in __mthca_modify_qp()
745 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RSC); in __mthca_modify_qp()
748 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RIC); in __mthca_modify_qp()
751 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24); in __mthca_modify_qp()
755 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn); in __mthca_modify_qp()
757 qp_context->ra_buff_indx = in __mthca_modify_qp()
762 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); in __mthca_modify_qp()
765 qp_context->rcv_db_index = cpu_to_be32(qp->rq.db_index); in __mthca_modify_qp()
768 qp_context->qkey = cpu_to_be32(attr->qkey); in __mthca_modify_qp()
773 qp_context->srqn = cpu_to_be32(1 << 24 | in __mthca_modify_qp()