Lines Matching refs:cpu_to_be32
355 return cpu_to_be32(hw_access_flags); in get_hw_access_flags()
534 cpu_to_be32((ah->sl << 28) | in mthca_path_set()
539 path->sl_tclass_flowlabel = cpu_to_be32(ah->sl << 28); in mthca_path_set()
569 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) | in __mthca_modify_qp()
571 qp_context->flags |= cpu_to_be32(MTHCA_QP_BIT_DE); in __mthca_modify_qp()
573 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11); in __mthca_modify_qp()
575 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PM_STATE); in __mthca_modify_qp()
578 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_MIGRATED << 11); in __mthca_modify_qp()
581 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_REARM << 11); in __mthca_modify_qp()
584 qp_context->flags |= cpu_to_be32(MTHCA_QP_PM_ARMED << 11); in __mthca_modify_qp()
615 qp_context->usr_page = cpu_to_be32(context->uar.index); in __mthca_modify_qp()
617 qp_context->usr_page = cpu_to_be32(dev->driver_uar.index); in __mthca_modify_qp()
618 qp_context->local_qpn = cpu_to_be32(qp->qpn); in __mthca_modify_qp()
620 qp_context->remote_qpn = cpu_to_be32(attr->dest_qp_num); in __mthca_modify_qp()
625 cpu_to_be32(qp->port << 24); in __mthca_modify_qp()
629 cpu_to_be32(attr->port_num << 24); in __mthca_modify_qp()
630 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PORT_NUM); in __mthca_modify_qp()
636 cpu_to_be32(attr->pkey_index); in __mthca_modify_qp()
637 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PKEY_INDEX); in __mthca_modify_qp()
643 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_RETRY | in __mthca_modify_qp()
652 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_PRIMARY_ADDR_PATH); in __mthca_modify_qp()
662 qp_context->tavor_sched_queue |= cpu_to_be32(sched_queue); in __mthca_modify_qp()
665 cpu_to_be32(MTHCA_QP_OPTPAR_SCHED_QUEUE); in __mthca_modify_qp()
670 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ACK_TIMEOUT); in __mthca_modify_qp()
690 qp_context->alt_path.port_pkey |= cpu_to_be32(attr->alt_pkey_index | in __mthca_modify_qp()
693 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_ALT_ADDR_PATH); in __mthca_modify_qp()
697 qp_context->pd = cpu_to_be32(to_mpd(ibqp->pd)->pd_num); in __mthca_modify_qp()
699 qp_context->wqe_lkey = cpu_to_be32(qp->mr.ibmr.lkey); in __mthca_modify_qp()
700 qp_context->params1 = cpu_to_be32((MTHCA_ACK_REQ_FREQ << 28) | in __mthca_modify_qp()
704 qp_context->params1 |= cpu_to_be32(MTHCA_QP_BIT_SSC); in __mthca_modify_qp()
706 qp_context->params1 |= cpu_to_be32(attr->retry_cnt << 16); in __mthca_modify_qp()
707 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RETRY_COUNT); in __mthca_modify_qp()
713 cpu_to_be32(MTHCA_QP_BIT_SRE | in __mthca_modify_qp()
716 cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); in __mthca_modify_qp()
718 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_SRA_MAX); in __mthca_modify_qp()
722 qp_context->next_send_psn = cpu_to_be32(attr->sq_psn); in __mthca_modify_qp()
723 qp_context->cqn_snd = cpu_to_be32(to_mcq(ibqp->send_cq)->cqn); in __mthca_modify_qp()
726 qp_context->snd_wqe_base_l = cpu_to_be32(qp->send_wqe_offset); in __mthca_modify_qp()
727 qp_context->snd_db_index = cpu_to_be32(qp->sq.db_index); in __mthca_modify_qp()
733 cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); in __mthca_modify_qp()
735 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RRA_MAX); in __mthca_modify_qp()
740 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RWE | in __mthca_modify_qp()
745 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RSC); in __mthca_modify_qp()
748 qp_context->params2 |= cpu_to_be32(MTHCA_QP_BIT_RIC); in __mthca_modify_qp()
751 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24); in __mthca_modify_qp()
752 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_RNR_TIMEOUT); in __mthca_modify_qp()
755 qp_context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn); in __mthca_modify_qp()
758 cpu_to_be32(dev->qp_table.rdb_base + in __mthca_modify_qp()
762 qp_context->cqn_rcv = cpu_to_be32(to_mcq(ibqp->recv_cq)->cqn); in __mthca_modify_qp()
765 qp_context->rcv_db_index = cpu_to_be32(qp->rq.db_index); in __mthca_modify_qp()
768 qp_context->qkey = cpu_to_be32(attr->qkey); in __mthca_modify_qp()
769 qp_param->opt_param_mask |= cpu_to_be32(MTHCA_QP_OPTPAR_Q_KEY); in __mthca_modify_qp()
773 qp_context->srqn = cpu_to_be32(1 << 24 | in __mthca_modify_qp()
1204 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) << in mthca_alloc_qp_common()
1206 next->ee_nds = cpu_to_be32(size); in mthca_alloc_qp_common()
1211 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY); in mthca_alloc_qp_common()
1216 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) << in mthca_alloc_qp_common()
1500 mlx->flags &= ~cpu_to_be32(MTHCA_NEXT_SOLICIT | 1); in build_mlx_header()
1501 mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MTHCA_MLX_VL15 : 0) | in build_mlx_header()
1533 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn); in build_mlx_header()
1534 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1)); in build_mlx_header()
1535 sqp->ud_header.deth.qkey = cpu_to_be32(wr->remote_qkey & 0x80000000 ? in build_mlx_header()
1537 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num); in build_mlx_header()
1543 data->byte_count = cpu_to_be32(header_size); in build_mlx_header()
1544 data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey); in build_mlx_header()
1573 rseg->rkey = cpu_to_be32(rkey); in set_raddr_seg()
1593 useg->lkey = cpu_to_be32(to_mah(wr->ah)->key); in set_tavor_ud_seg()
1595 useg->dqpn = cpu_to_be32(wr->remote_qpn); in set_tavor_ud_seg()
1596 useg->qkey = cpu_to_be32(wr->remote_qkey); in set_tavor_ud_seg()
1604 useg->dqpn = cpu_to_be32(wr->remote_qpn); in set_arbel_ud_seg()
1605 useg->qkey = cpu_to_be32(wr->remote_qkey); in set_arbel_ud_seg()
1657 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) | in mthca_tavor_post_send()
1659 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) | in mthca_tavor_post_send()
1660 cpu_to_be32(1); in mthca_tavor_post_send()
1751 cpu_to_be32((1 << 31) | 4); in mthca_tavor_post_send()
1767 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1772 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size | in mthca_tavor_post_send()
1855 cpu_to_be32(MTHCA_NEXT_DBD); in mthca_tavor_post_receive()
1876 cpu_to_be32(MTHCA_NEXT_DBD | size); in mthca_tavor_post_receive()
1967 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff); in mthca_arbel_post_send()
1996 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) | in mthca_arbel_post_send()
1998 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) | in mthca_arbel_post_send()
2000 cpu_to_be32(MTHCA_NEXT_IP_CSUM | MTHCA_NEXT_TCP_UDP_CSUM) : 0) | in mthca_arbel_post_send()
2001 cpu_to_be32(1); in mthca_arbel_post_send()
2092 cpu_to_be32((1 << 31) | 4); in mthca_arbel_post_send()
2108 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_arbel_post_send()
2113 cpu_to_be32(MTHCA_NEXT_DBD | size | in mthca_arbel_post_send()
2140 *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()