Lines Matching refs:cpu_to_be32

355 	return cpu_to_be32(hw_access_flags);  in get_hw_access_flags()
544 cpu_to_be32((rdma_ah_get_sl(ah) << 28) | in mthca_path_set()
549 path->sl_tclass_flowlabel = cpu_to_be32(rdma_ah_get_sl(ah) << in mthca_path_set()
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()
587 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PM_STATE); 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()
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()
637 cpu_to_be32(qp->port << 24); in __mthca_modify_qp()
641 cpu_to_be32(attr->port_num << 24); in __mthca_modify_qp()
642 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PORT_NUM); in __mthca_modify_qp()
648 cpu_to_be32(attr->pkey_index); in __mthca_modify_qp()
649 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PKEY_INDEX); in __mthca_modify_qp()
655 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_RETRY | in __mthca_modify_qp()
664 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PRIMARY_ADDR_PATH); in __mthca_modify_qp()
674 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue); in __mthca_modify_qp()
677 cpu_to_be32(MTHCA_QP_OPTPAR_SCHED_QUEUE); in __mthca_modify_qp()
682 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ACK_TIMEOUT); in __mthca_modify_qp()
702 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index | in __mthca_modify_qp()
705 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ALT_ADDR_PATH); 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()
719 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RETRY_COUNT); in __mthca_modify_qp()
725 cpu_to_be32(MTHCA_QP_BIT_SRE | in __mthca_modify_qp()
728 cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); in __mthca_modify_qp()
730 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_SRA_MAX); 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()
745 cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); in __mthca_modify_qp()
747 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RRA_MAX); in __mthca_modify_qp()
752 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RWE | 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()
764 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_TIMEOUT); in __mthca_modify_qp()
767 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn); in __mthca_modify_qp()
770 cpu_to_be32(dev->qp_table.rdb_base + 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()
781 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_Q_KEY); in __mthca_modify_qp()
785 qp_context->srqn = cpu_to_be32(1 << 24 | in __mthca_modify_qp()
1221 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) << in mthca_alloc_qp_common()
1223 next->ee_nds = cpu_to_be32(size); in mthca_alloc_qp_common()
1228 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY); in mthca_alloc_qp_common()
1233 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) << in mthca_alloc_qp_common()
1517 mlx->flags &= ~cpu_to_be32(MTHCA_NEXT_SOLICIT | 1); in build_mlx_header()
1518 mlx->flags |= cpu_to_be32((!qp->ibqp.qp_num ? MTHCA_MLX_VL15 : 0) | in build_mlx_header()
1550 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_mlx_header()
1551 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_mlx_header()
1552 sqp->ud_header.deth.qkey = cpu_to_be32(wr->remote_qkey & 0x80000000 ? in build_mlx_header()
1554 sqp->ud_header.deth.source_qpn = cpu_to_be32(qp->ibqp.qp_num); in build_mlx_header()
1560 data->byte_count = cpu_to_be32(header_size); in build_mlx_header()
1561 data->lkey = cpu_to_be32(to_mpd(qp->ibqp.pd)->ntmr.ibmr.lkey); in build_mlx_header()
1590 rseg->rkey = cpu_to_be32(rkey); in set_raddr_seg()
1610 useg->lkey = cpu_to_be32(to_mah(wr->ah)->key); in set_tavor_ud_seg()
1612 useg->dqpn = cpu_to_be32(wr->remote_qpn); in set_tavor_ud_seg()
1613 useg->qkey = cpu_to_be32(wr->remote_qkey); in set_tavor_ud_seg()
1621 useg->dqpn = cpu_to_be32(wr->remote_qpn); in set_arbel_ud_seg()
1622 useg->qkey = cpu_to_be32(wr->remote_qkey); in set_arbel_ud_seg()
1674 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) | in mthca_tavor_post_send()
1676 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) | in mthca_tavor_post_send()
1677 cpu_to_be32(1); in mthca_tavor_post_send()
1768 cpu_to_be32((1 << 31) | 4); in mthca_tavor_post_send()
1784 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1789 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size | in mthca_tavor_post_send()
1867 cpu_to_be32(MTHCA_NEXT_DBD); in mthca_tavor_post_receive()
1888 cpu_to_be32(MTHCA_NEXT_DBD | size); in mthca_tavor_post_receive()
1973 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff); in mthca_arbel_post_send()
2002 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) | in mthca_arbel_post_send()
2004 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) | in mthca_arbel_post_send()
2006 cpu_to_be32(MTHCA_NEXT_IP_CSUM | MTHCA_NEXT_TCP_UDP_CSUM) : 0) | in mthca_arbel_post_send()
2007 cpu_to_be32(1); in mthca_arbel_post_send()
2098 cpu_to_be32((1 << 31) | 4); in mthca_arbel_post_send()
2114 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_arbel_post_send()
2119 cpu_to_be32(MTHCA_NEXT_DBD | size | in mthca_arbel_post_send()
2146 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff); in mthca_arbel_post_send()
2226 *qp->rq.db = cpu_to_be32(qp->rq.head & 0xffff); in mthca_arbel_post_receive()
2252 *dbd = !!(next->ee_nds & cpu_to_be32(MTHCA_NEXT_DBD)); in mthca_free_err_wqe()
2253 if (next->ee_nds & cpu_to_be32(0x3f)) in mthca_free_err_wqe()
2254 *new_wqe = (next->nda_op & cpu_to_be32(~0x3f)) | in mthca_free_err_wqe()
2255 (next->ee_nds & cpu_to_be32(0x3f)); in mthca_free_err_wqe()