Lines Matching refs:cpu_to_be32

354 	return cpu_to_be32(hw_access_flags);  in get_hw_access_flags()
533 cpu_to_be32((ah->sl << 28) | in mthca_path_set()
538 path->sl_tclass_flowlabel = cpu_to_be32(ah->sl << 28); in mthca_path_set()
564 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) | in __mthca_modify_qp()
566 qp_context->flags |= cpu_to_be32(MTHCA_QP_BIT_DE); in __mthca_modify_qp()
568 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11); in __mthca_modify_qp()
570 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PM_STATE); in __mthca_modify_qp()
573 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11); in __mthca_modify_qp()
576 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_REARM << 11); in __mthca_modify_qp()
579 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_ARMED << 11); in __mthca_modify_qp()
611 cpu_to_be32(to_mucontext(qp->ibqp.uobject->context)->uar.index); in __mthca_modify_qp()
613 qp_context->usr_page = cpu_to_be32(dev->driver_uar.index); in __mthca_modify_qp()
614 qp_context->local_qpn = cpu_to_be32(qp->qpn); in __mthca_modify_qp()
616 qp_context->remote_qpn = cpu_to_be32(attr->dest_qp_num); in __mthca_modify_qp()
621 cpu_to_be32(qp->port << 24); in __mthca_modify_qp()
625 cpu_to_be32(attr->port_num << 24); in __mthca_modify_qp()
626 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PORT_NUM); in __mthca_modify_qp()
632 cpu_to_be32(attr->pkey_index); in __mthca_modify_qp()
633 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PKEY_INDEX); in __mthca_modify_qp()
639 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_RETRY | in __mthca_modify_qp()
648 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PRIMARY_ADDR_PATH); in __mthca_modify_qp()
658 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue); in __mthca_modify_qp()
661 cpu_to_be32(MTHCA_QP_OPTPAR_SCHED_QUEUE); in __mthca_modify_qp()
666 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ACK_TIMEOUT); in __mthca_modify_qp()
686 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index | in __mthca_modify_qp()
689 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ALT_ADDR_PATH); in __mthca_modify_qp()
693 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num); in __mthca_modify_qp()
695 qp_context->wqe_lkey = cpu_to_be32(qp->mr.ibmr.lkey); in __mthca_modify_qp()
696 qp_context->params1 = cpu_to_be32((MTHCA_ACK_REQ_FREQ << 28) | in __mthca_modify_qp()
700 qp_context->params1 |= cpu_to_be32(MTHCA_QP_BIT_SSC); in __mthca_modify_qp()
702 qp_context->params1 |= cpu_to_be32(attr->retry_cnt << 16); in __mthca_modify_qp()
703 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RETRY_COUNT); in __mthca_modify_qp()
709 cpu_to_be32(MTHCA_QP_BIT_SRE | in __mthca_modify_qp()
712 cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); in __mthca_modify_qp()
714 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_SRA_MAX); in __mthca_modify_qp()
718 qp_context->next_send_psn = cpu_to_be32(attr->sq_psn); in __mthca_modify_qp()
719 qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn); in __mthca_modify_qp()
722 qp_context->snd_wqe_base_l = cpu_to_be32(qp->send_wqe_offset); in __mthca_modify_qp()
723 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index); in __mthca_modify_qp()
729 cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); in __mthca_modify_qp()
731 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RRA_MAX); in __mthca_modify_qp()
736 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RWE | in __mthca_modify_qp()
741 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RSC); in __mthca_modify_qp()
744 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RIC); in __mthca_modify_qp()
747 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24); in __mthca_modify_qp()
748 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_TIMEOUT); in __mthca_modify_qp()
751 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn); in __mthca_modify_qp()
754 cpu_to_be32(dev->qp_table.rdb_base + in __mthca_modify_qp()
758 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); in __mthca_modify_qp()
761 qp_context->rcv_db_index = cpu_to_be32(qp->rq.db_index); in __mthca_modify_qp()
764 qp_context->qkey = cpu_to_be32(attr->qkey); in __mthca_modify_qp()
765 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_Q_KEY); in __mthca_modify_qp()
769 qp_context->srqn = cpu_to_be32(1 << 24 | in __mthca_modify_qp()
1199 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) << in mthca_alloc_qp_common()
1201 next->ee_nds = cpu_to_be32(size); in mthca_alloc_qp_common()
1206 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY); in mthca_alloc_qp_common()
1211 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) << in mthca_alloc_qp_common()
1494 mlx->flags &= ~cpu_to_be32(MTHCA_NEXT_SOLICIT | 1); in build_mlx_header()
1495 mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MTHCA_MLX_VL15 : 0) | in build_mlx_header()
1527 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->wr.ud.remote_qpn); in build_mlx_header()
1528 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_mlx_header()
1529 sqp->ud_header.deth.qkey = cpu_to_be32(wr->wr.ud.remote_qkey & 0x80000000 ? in build_mlx_header()
1531 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num); in build_mlx_header()
1537 data->byte_count = cpu_to_be32(header_size); in build_mlx_header()
1538 data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey); in build_mlx_header()
1567 rseg->rkey = cpu_to_be32(rkey); in set_raddr_seg()
1587 useg->lkey = cpu_to_be32(to_mah(wr->wr.ud.ah)->key); in set_tavor_ud_seg()
1589 useg->dqpn = cpu_to_be32(wr->wr.ud.remote_qpn); in set_tavor_ud_seg()
1590 useg->qkey = cpu_to_be32(wr->wr.ud.remote_qkey); in set_tavor_ud_seg()
1598 useg->dqpn = cpu_to_be32(wr->wr.ud.remote_qpn); in set_arbel_ud_seg()
1599 useg->qkey = cpu_to_be32(wr->wr.ud.remote_qkey); in set_arbel_ud_seg()
1651 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) | in mthca_tavor_post_send()
1653 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) | in mthca_tavor_post_send()
1654 cpu_to_be32(1); in mthca_tavor_post_send()
1745 cpu_to_be32((1 << 31) | 4); in mthca_tavor_post_send()
1761 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1766 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size | in mthca_tavor_post_send()
1849 cpu_to_be32(MTHCA_NEXT_DBD); in mthca_tavor_post_receive()
1870 cpu_to_be32(MTHCA_NEXT_DBD | size); in mthca_tavor_post_receive()
1961 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff); in mthca_arbel_post_send()
1990 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) | in mthca_arbel_post_send()
1992 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) | in mthca_arbel_post_send()
1994 cpu_to_be32(MTHCA_NEXT_IP_CSUM | MTHCA_NEXT_TCP_UDP_CSUM) : 0) | in mthca_arbel_post_send()
1995 cpu_to_be32(1); in mthca_arbel_post_send()
2086 cpu_to_be32((1 << 31) | 4); in mthca_arbel_post_send()
2102 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_arbel_post_send()
2107 cpu_to_be32(MTHCA_NEXT_DBD | size | in mthca_arbel_post_send()
2134 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff); in mthca_arbel_post_send()
2220 *qp->rq.db = cpu_to_be32(qp->rq.head & 0xffff); in mthca_arbel_post_receive()
2246 *dbd = !!(next->ee_nds & cpu_to_be32(MTHCA_NEXT_DBD)); in mthca_free_err_wqe()
2247 if (next->ee_nds & cpu_to_be32(0x3f)) in mthca_free_err_wqe()
2248 *new_wqe = (next->nda_op & cpu_to_be32(~0x3f)) | in mthca_free_err_wqe()
2249 (next->ee_nds & cpu_to_be32(0x3f)); in mthca_free_err_wqe()