• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/mthca/

Lines Matching refs:cpu_to_be32

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