• 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:cpu_to_be32

356 	return cpu_to_be32(hw_access_flags);
538 cpu_to_be32((ah->sl << 28) |
543 path->sl_tclass_flowlabel = cpu_to_be32(ah->sl << 28);
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);
576 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PM_STATE);
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);
617 cpu_to_be32(to_mucontext(qp->ibqp.uobject->context)->uar.index);
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);
627 cpu_to_be32(qp->port << 24);
631 cpu_to_be32(attr->port_num << 24);
632 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PORT_NUM);
638 cpu_to_be32(attr->pkey_index);
639 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PKEY_INDEX);
645 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_RETRY |
654 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PRIMARY_ADDR_PATH);
664 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue);
667 cpu_to_be32(MTHCA_QP_OPTPAR_SCHED_QUEUE);
672 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ACK_TIMEOUT);
692 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index |
695 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ALT_ADDR_PATH);
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);
709 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RETRY_COUNT);
715 cpu_to_be32(MTHCA_QP_BIT_SRE |
718 cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21);
720 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_SRA_MAX);
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);
735 cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21);
737 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RRA_MAX);
742 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RWE |
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);
754 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_TIMEOUT);
757 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn);
760 cpu_to_be32(dev->qp_table.rdb_base +
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);
771 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_Q_KEY);
775 qp_context->srqn = cpu_to_be32(1 << 24 |
1207 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) <<
1209 next->ee_nds = cpu_to_be32(size);
1214 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
1219 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) <<
1503 mlx->flags &= ~cpu_to_be32(MTHCA_NEXT_SOLICIT | 1);
1504 mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MTHCA_MLX_VL15 : 0) |
1536 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->wr.ud.remote_qpn);
1537 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1));
1538 sqp->ud_header.deth.qkey = cpu_to_be32(wr->wr.ud.remote_qkey & 0x80000000 ?
1540 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num);
1546 data->byte_count = cpu_to_be32(header_size);
1547 data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey);
1576 rseg->rkey = cpu_to_be32(rkey);
1596 useg->lkey = cpu_to_be32(to_mah(wr->wr.ud.ah)->key);
1598 useg->dqpn = cpu_to_be32(wr->wr.ud.remote_qpn);
1599 useg->qkey = cpu_to_be32(wr->wr.ud.remote_qkey);
1607 useg->dqpn = cpu_to_be32(wr->wr.ud.remote_qpn);
1608 useg->qkey = cpu_to_be32(wr->wr.ud.remote_qkey);
1659 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) |
1661 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) |
1662 cpu_to_be32(1);
1753 cpu_to_be32((1 << 31) | 4);
1769 cpu_to_be32(((ind << qp->sq.wqe_shift) +
1774 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size |
1856 cpu_to_be32(MTHCA_NEXT_DBD);
1877 cpu_to_be32(MTHCA_NEXT_DBD | size);
1967 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff);
1996 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) |
1998 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) |
2000 cpu_to_be32(MTHCA_NEXT_IP_CSUM | MTHCA_NEXT_TCP_UDP_CSUM) : 0) |
2001 cpu_to_be32(1);
2092 cpu_to_be32((1 << 31) | 4);
2108 cpu_to_be32(((ind << qp->sq.wqe_shift) +
2113 cpu_to_be32(MTHCA_NEXT_DBD | size |
2140 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff);
2225 *qp->rq.db = cpu_to_be32(qp->rq.head & 0xffff);
2251 *dbd = !!(next->ee_nds & cpu_to_be32(MTHCA_NEXT_DBD));
2252 if (next->ee_nds & cpu_to_be32(0x3f))
2253 *new_wqe = (next->nda_op & cpu_to_be32(~0x3f)) |
2254 (next->ee_nds & cpu_to_be32(0x3f));