• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/mthca/

Lines Matching refs:cpu_to_be32

358 	return cpu_to_be32(hw_access_flags);
532 cpu_to_be32((ah->sl << 28) |
537 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 |
1227 next->nda_op = cpu_to_be32(((i + 1) & (qp->rq.max - 1)) <<
1229 next->ee_nds = cpu_to_be32(size);
1234 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
1239 next->nda_op = cpu_to_be32((((i + 1) & (qp->sq.max - 1)) <<
1512 mlx->flags &= ~cpu_to_be32(MTHCA_NEXT_SOLICIT | 1);
1513 mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MTHCA_MLX_VL15 : 0) |
1545 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->wr.ud.remote_qpn);
1546 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1));
1547 sqp->ud_header.deth.qkey = cpu_to_be32(wr->wr.ud.remote_qkey & 0x80000000 ?
1549 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num);
1555 data->byte_count = cpu_to_be32(header_size);
1556 data->lkey = cpu_to_be32(to_mpd(sqp->qp.ibqp.pd)->ntmr.ibmr.lkey);
1622 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) |
1624 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) |
1625 cpu_to_be32(1);
1641 cpu_to_be32(wr->wr.atomic.rkey);
1668 cpu_to_be32(wr->wr.rdma.rkey);
1688 cpu_to_be32(wr->wr.rdma.rkey);
1703 cpu_to_be32(to_mah(wr->wr.ud.ah)->key);
1707 cpu_to_be32(wr->wr.ud.remote_qpn);
1709 cpu_to_be32(wr->wr.ud.remote_qkey);
1737 cpu_to_be32(wr->sg_list[i].length);
1739 cpu_to_be32(wr->sg_list[i].lkey);
1749 cpu_to_be32((1 << 31) | 4);
1765 cpu_to_be32(((ind << qp->sq.wqe_shift) +
1770 cpu_to_be32((size0 ? 0 : MTHCA_NEXT_DBD) | size |
1790 doorbell[0] = cpu_to_be32(((qp->sq.next_ind << qp->sq.wqe_shift) +
1792 doorbell[1] = cpu_to_be32((qp->qpn << 8) | size0);
1851 cpu_to_be32(MTHCA_NEXT_DBD);
1865 cpu_to_be32(wr->sg_list[i].length);
1867 cpu_to_be32(wr->sg_list[i].lkey);
1877 cpu_to_be32((ind << qp->rq.wqe_shift) | 1);
1880 cpu_to_be32(MTHCA_NEXT_DBD | size);
1893 doorbell[0] = cpu_to_be32((qp->rq.next_ind << qp->rq.wqe_shift) | size0);
1894 doorbell[1] = cpu_to_be32(qp->qpn << 8);
1910 doorbell[0] = cpu_to_be32((qp->rq.next_ind << qp->rq.wqe_shift) | size0);
1911 doorbell[1] = cpu_to_be32((qp->qpn << 8) | nreq);
1960 doorbell[0] = cpu_to_be32((MTHCA_ARBEL_MAX_WQES_PER_SEND_DB << 24) |
1963 doorbell[1] = cpu_to_be32((qp->qpn << 8) | size0);
1973 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff);
2001 cpu_to_be32(MTHCA_NEXT_CQ_UPDATE) : 0) |
2003 cpu_to_be32(MTHCA_NEXT_SOLICIT) : 0) |
2004 cpu_to_be32(1);
2020 cpu_to_be32(wr->wr.atomic.rkey);
2047 cpu_to_be32(wr->wr.rdma.rkey);
2067 cpu_to_be32(wr->wr.rdma.rkey);
2084 cpu_to_be32(wr->wr.ud.remote_qpn);
2086 cpu_to_be32(wr->wr.ud.remote_qkey);
2114 cpu_to_be32(wr->sg_list[i].length);
2116 cpu_to_be32(wr->sg_list[i].lkey);
2126 cpu_to_be32((1 << 31) | 4);
2142 cpu_to_be32(((ind << qp->sq.wqe_shift) +
2147 cpu_to_be32(MTHCA_NEXT_DBD | size |
2165 doorbell[0] = cpu_to_be32((nreq << 24) |
2168 doorbell[1] = cpu_to_be32((qp->qpn << 8) | size0);
2177 *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff);
2241 cpu_to_be32(wr->sg_list[i].length);
2243 cpu_to_be32(wr->sg_list[i].lkey);
2251 ((struct mthca_data_seg *) wqe)->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
2270 *qp->rq.db = cpu_to_be32(qp->rq.head & 0xffff);
2296 *dbd = !!(next->ee_nds & cpu_to_be32(MTHCA_NEXT_DBD));
2297 if (next->ee_nds & cpu_to_be32(0x3f))
2298 *new_wqe = (next->nda_op & cpu_to_be32(~0x3f)) |
2299 (next->ee_nds & cpu_to_be32(0x3f));