• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/infiniband/hw/mthca/

Lines Matching refs:qp_context

86 	/* qp_context flags */
261 qp->ibqp.event_handler(&event, qp->ibqp.qp_context);
556 struct mthca_qp_context *qp_context;
567 qp_context = &qp_param->context;
570 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) |
572 qp_context->flags |= cpu_to_be32(MTHCA_QP_BIT_DE);
574 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11);
579 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11);
582 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_REARM << 11);
585 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_ARMED << 11);
593 qp_context->mtu_msgmax = (IB_MTU_2048 << 5) | 11;
600 qp_context->mtu_msgmax = (attr->path_mtu << 5) | 31;
605 qp_context->rq_size_stride = ilog2(qp->rq.max) << 3;
606 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4;
609 qp_context->sq_size_stride = ilog2(qp->sq.max) << 3;
610 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4;
616 qp_context->usr_page =
619 qp_context->usr_page = cpu_to_be32(dev->driver_uar.index);
620 qp_context->local_qpn = cpu_to_be32(qp->qpn);
622 qp_context->remote_qpn = cpu_to_be32(attr->dest_qp_num);
626 qp_context->pri_path.port_pkey |=
630 qp_context->pri_path.port_pkey |=
637 qp_context->pri_path.port_pkey |=
643 qp_context->alt_path.rnr_retry = qp_context->pri_path.rnr_retry =
650 if (mthca_path_set(dev, &attr->ah_attr, &qp_context->pri_path,
662 qp_context->rlkey_arbel_sched_queue |= sched_queue;
664 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue);
671 qp_context->pri_path.ackto = attr->timeout << 3;
688 if (mthca_path_set(dev, &attr->alt_ah_attr, &qp_context->alt_path,
692 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index |
694 qp_context->alt_path.ackto = attr->alt_timeout << 3;
699 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num);
701 qp_context->wqe_lkey = cpu_to_be32(qp->mr.ibmr.lkey);
702 qp_context->params1 = cpu_to_be32((MTHCA_ACK_REQ_FREQ << 28) |
706 qp_context->params1 |= cpu_to_be32(MTHCA_QP_BIT_SSC);
708 qp_context->params1 |= cpu_to_be32(attr->retry_cnt << 16);
714 qp_context->params1 |=
717 qp_context->params1 |=
724 qp_context->next_send_psn = cpu_to_be32(attr->sq_psn);
725 qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn);
728 qp_context->snd_wqe_base_l = cpu_to_be32(qp->send_wqe_offset);
729 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index);
734 qp_context->params2 |=
741 qp_context->params2 |= get_hw_access_flags(qp, attr, attr_mask);
747 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RSC);
750 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RIC);
753 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24);
757 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn);
759 qp_context->ra_buff_indx =
764 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn);
767 qp_context->rcv_db_index = cpu_to_be32(qp->rq.db_index);
770 qp_context->qkey = cpu_to_be32(attr->qkey);
775 qp_context->srqn = cpu_to_be32(1 << 24 |