Lines Matching refs:cpu_to_be32

355 	return cpu_to_be32(hw_access_flags);
544 cpu_to_be32((rdma_ah_get_sl(ah) << 28) |
549 path->sl_tclass_flowlabel = cpu_to_be32(rdma_ah_get_sl(ah) <<
581 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) |
583 qp_context->flags |= cpu_to_be32(MTHCA_QP_BIT_DE);
585 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11);
587 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PM_STATE);
590 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11);
593 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_REARM << 11);
596 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_ARMED << 11);
627 qp_context->usr_page = cpu_to_be32(context->uar.index);
629 qp_context->usr_page = cpu_to_be32(dev->driver_uar.index);
630 qp_context->local_qpn = cpu_to_be32(qp->qpn);
632 qp_context->remote_qpn = cpu_to_be32(attr->dest_qp_num);
637 cpu_to_be32(qp->port << 24);
641 cpu_to_be32(attr->port_num << 24);
642 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PORT_NUM);
648 cpu_to_be32(attr->pkey_index);
649 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PKEY_INDEX);
655 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_RETRY |
664 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PRIMARY_ADDR_PATH);
674 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue);
677 cpu_to_be32(MTHCA_QP_OPTPAR_SCHED_QUEUE);
682 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ACK_TIMEOUT);
702 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index |
705 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ALT_ADDR_PATH);
709 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num);
711 qp_context->wqe_lkey = cpu_to_be32(qp->mr.ibmr.lkey);
712 qp_context->params1 = cpu_to_be32((MTHCA_ACK_REQ_FREQ << 28) |
716 qp_context->params1 |= cpu_to_be32(MTHCA_QP_BIT_SSC);
718 qp_context->params1 |= cpu_to_be32(attr->retry_cnt << 16);
719 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RETRY_COUNT);
725 cpu_to_be32(MTHCA_QP_BIT_SRE |
728 cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21);
730 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_SRA_MAX);
734 qp_context->next_send_psn = cpu_to_be32(attr->sq_psn);
735 qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn);
738 qp_context->snd_wqe_base_l = cpu_to_be32(qp->send_wqe_offset);
739 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index);
745 cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21);
747 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RRA_MAX);
752 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RWE |
757 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RSC);
760 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RIC);
763 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24);
764 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_TIMEOUT);
767 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn);
770 cpu_to_be32(dev->qp_table.rdb_base +
774 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn);
777 qp_context->rcv_db_index = cpu_to_be32(qp->rq.db_index);
780 qp_context->qkey = cpu_to_be32(attr->qkey);
781 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_Q_KEY);
785 qp_context->srqn = cpu_to_be32(1 << 24 |
1221 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) <<
1223 next->ee_nds = cpu_to_be32(size);
1228 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
1233 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) <<
1517 mlx->flags &= ~cpu_to_be32(MTHCA_NEXT_SOLICIT | 1);
1518 mlx->flags |= cpu_to_be32((!qp->ibqp.qp_num ? MTHCA_MLX_VL15 : 0) |
1550 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn);
1551 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1));
1552 sqp->ud_header.deth.qkey = cpu_to_be32(wr->remote_qkey & 0x80000000 ?
1554 sqp->ud_header.deth.source_qpn = cpu_to_be32(qp->ibqp.qp_num);
1560 data->byte_count = cpu_to_be32(header_size);
1561 data->lkey = cpu_to_be32(to_mpd(qp->ibqp.pd)->ntmr.ibmr.lkey);
1590 rseg->rkey = cpu_to_be32(rkey);
1610 useg->lkey = cpu_to_be32(to_mah(wr->ah)->key);
1612 useg->dqpn = cpu_to_be32(wr->remote_qpn);
1613 useg->qkey = cpu_to_be32(wr->remote_qkey);
1621 useg->dqpn = cpu_to_be32(wr->remote_qpn);
1622 useg->qkey = cpu_to_be32(wr->remote_qkey);
1674 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) |
1676 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) |
1677 cpu_to_be32(1);
1768 cpu_to_be32((1 << 31) | 4);
1784 cpu_to_be32(((ind << qp->sq.wqe_shift) +
1789 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size |
1867 cpu_to_be32(MTHCA_NEXT_DBD);
1888 cpu_to_be32(MTHCA_NEXT_DBD | size);
1973 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff);
2002 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) |
2004 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) |
2006 cpu_to_be32(MTHCA_NEXT_IP_CSUM | MTHCA_NEXT_TCP_UDP_CSUM) : 0) |
2007 cpu_to_be32(1);
2098 cpu_to_be32((1 << 31) | 4);
2114 cpu_to_be32(((ind << qp->sq.wqe_shift) +
2119 cpu_to_be32(MTHCA_NEXT_DBD | size |
2146 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff);
2226 *qp->rq.db = cpu_to_be32(qp->rq.head & 0xffff);
2252 *dbd = !!(next->ee_nds & cpu_to_be32(MTHCA_NEXT_DBD));
2253 if (next->ee_nds & cpu_to_be32(0x3f))
2254 *new_wqe = (next->nda_op & cpu_to_be32(~0x3f)) |
2255 (next->ee_nds & cpu_to_be32(0x3f));