• Home
  • Raw
  • Download

Lines Matching refs:qp_context

263 		qp->ibqp.event_handler(&event, qp->ibqp.qp_context);  in mthca_qp_event()
568 struct mthca_qp_context *qp_context; in __mthca_modify_qp() local
578 qp_context = &qp_param->context; in __mthca_modify_qp()
581 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) | in __mthca_modify_qp()
583 qp_context->flags |= cpu_to_be32(MTHCA_QP_BIT_DE); in __mthca_modify_qp()
585 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11); in __mthca_modify_qp()
590 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11); in __mthca_modify_qp()
593 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_REARM << 11); in __mthca_modify_qp()
596 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_ARMED << 11); in __mthca_modify_qp()
604 qp_context->mtu_msgmax = (IB_MTU_2048 << 5) | 11; in __mthca_modify_qp()
611 qp_context->mtu_msgmax = (attr->path_mtu << 5) | 31; in __mthca_modify_qp()
616 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3; in __mthca_modify_qp()
617 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4; in __mthca_modify_qp()
620 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3; in __mthca_modify_qp()
621 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mthca_modify_qp()
627 qp_context->usr_page = cpu_to_be32(context->uar.index); in __mthca_modify_qp()
629 qp_context->usr_page = cpu_to_be32(dev->driver_uar.index); in __mthca_modify_qp()
630 qp_context->local_qpn = cpu_to_be32(qp->qpn); in __mthca_modify_qp()
632 qp_context->remote_qpn = cpu_to_be32(attr->dest_qp_num); in __mthca_modify_qp()
636 qp_context->pri_path.port_pkey |= in __mthca_modify_qp()
640 qp_context->pri_path.port_pkey |= in __mthca_modify_qp()
647 qp_context->pri_path.port_pkey |= in __mthca_modify_qp()
653 qp_context->alt_path.rnr_retry = qp_context->pri_path.rnr_retry = in __mthca_modify_qp()
660 if (mthca_path_set(dev, &attr->ah_attr, &qp_context->pri_path, in __mthca_modify_qp()
672 qp_context->rlkey_arbel_sched_queue |= sched_queue; in __mthca_modify_qp()
674 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue); in __mthca_modify_qp()
681 qp_context->pri_path.ackto = attr->timeout << 3; in __mthca_modify_qp()
698 if (mthca_path_set(dev, &attr->alt_ah_attr, &qp_context->alt_path, in __mthca_modify_qp()
702 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index | in __mthca_modify_qp()
704 qp_context->alt_path.ackto = attr->alt_timeout << 3; in __mthca_modify_qp()
709 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num); in __mthca_modify_qp()
711 qp_context->wqe_lkey = cpu_to_be32(qp->mr.ibmr.lkey); in __mthca_modify_qp()
712 qp_context->params1 = cpu_to_be32((MTHCA_ACK_REQ_FREQ << 28) | in __mthca_modify_qp()
716 qp_context->params1 |= cpu_to_be32(MTHCA_QP_BIT_SSC); in __mthca_modify_qp()
718 qp_context->params1 |= cpu_to_be32(attr->retry_cnt << 16); in __mthca_modify_qp()
724 qp_context->params1 |= in __mthca_modify_qp()
727 qp_context->params1 |= in __mthca_modify_qp()
734 qp_context->next_send_psn = cpu_to_be32(attr->sq_psn); in __mthca_modify_qp()
735 qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn); in __mthca_modify_qp()
738 qp_context->snd_wqe_base_l = cpu_to_be32(qp->send_wqe_offset); in __mthca_modify_qp()
739 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index); in __mthca_modify_qp()
744 qp_context->params2 |= in __mthca_modify_qp()
751 qp_context->params2 |= get_hw_access_flags(qp, attr, attr_mask); in __mthca_modify_qp()
757 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RSC); in __mthca_modify_qp()
760 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RIC); in __mthca_modify_qp()
763 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24); in __mthca_modify_qp()
767 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn); in __mthca_modify_qp()
769 qp_context->ra_buff_indx = in __mthca_modify_qp()
774 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); in __mthca_modify_qp()
777 qp_context->rcv_db_index = cpu_to_be32(qp->rq.db_index); in __mthca_modify_qp()
780 qp_context->qkey = cpu_to_be32(attr->qkey); in __mthca_modify_qp()
785 qp_context->srqn = cpu_to_be32(1 << 24 | in __mthca_modify_qp()