• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-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 |
1198 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) <<
1200 next->ee_nds = cpu_to_be32(size);
1205 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
1210 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) <<
1492 mlx->flags &= ~cpu_to_be32(MTHCA_NEXT_SOLICIT | 1);
1493 mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MTHCA_MLX_VL15 : 0) |
1525 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn);
1526 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1));
1527 sqp->ud_header.deth.qkey = cpu_to_be32(wr->remote_qkey & 0x80000000 ?
1529 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num);
1535 data->byte_count = cpu_to_be32(header_size);
1536 data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey);
1565 rseg->rkey = cpu_to_be32(rkey);
1585 useg->lkey = cpu_to_be32(to_mah(wr->ah)->key);
1587 useg->dqpn = cpu_to_be32(wr->remote_qpn);
1588 useg->qkey = cpu_to_be32(wr->remote_qkey);
1596 useg->dqpn = cpu_to_be32(wr->remote_qpn);
1597 useg->qkey = cpu_to_be32(wr->remote_qkey);
1649 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) |
1651 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) |
1652 cpu_to_be32(1);
1743 cpu_to_be32((1 << 31) | 4);
1759 cpu_to_be32(((ind << qp->sq.wqe_shift) +
1764 cpu_to_be32((nreq ? 0 : MTHCA_NEXT_DBD) | size |
1847 cpu_to_be32(MTHCA_NEXT_DBD);
1868 cpu_to_be32(MTHCA_NEXT_DBD | size);
1959 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff);
1988 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) |
1990 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) |
1992 cpu_to_be32(MTHCA_NEXT_IP_CSUM | MTHCA_NEXT_TCP_UDP_CSUM) : 0) |
1993 cpu_to_be32(1);
2084 cpu_to_be32((1 << 31) | 4);
2100 cpu_to_be32(((ind << qp->sq.wqe_shift) +
2105 cpu_to_be32(MTHCA_NEXT_DBD | size |
2132 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff);
2218 *qp->rq.db = cpu_to_be32(qp->rq.head & 0xffff);
2244 *dbd = !!(next->ee_nds & cpu_to_be32(MTHCA_NEXT_DBD));
2245 if (next->ee_nds & cpu_to_be32(0x3f))
2246 *new_wqe = (next->nda_op & cpu_to_be32(~0x3f)) |
2247 (next->ee_nds & cpu_to_be32(0x3f));