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

Lines Matching refs:cpu_to_be32

110 	[IB_WR_SEND]				= cpu_to_be32(MLX4_OPCODE_SEND),
111 [IB_WR_LSO] = cpu_to_be32(MLX4_OPCODE_LSO),
112 [IB_WR_SEND_WITH_IMM] = cpu_to_be32(MLX4_OPCODE_SEND_IMM),
113 [IB_WR_RDMA_WRITE] = cpu_to_be32(MLX4_OPCODE_RDMA_WRITE),
114 [IB_WR_RDMA_WRITE_WITH_IMM] = cpu_to_be32(MLX4_OPCODE_RDMA_WRITE_IMM),
115 [IB_WR_RDMA_READ] = cpu_to_be32(MLX4_OPCODE_RDMA_READ),
116 [IB_WR_ATOMIC_CMP_AND_SWP] = cpu_to_be32(MLX4_OPCODE_ATOMIC_CS),
117 [IB_WR_ATOMIC_FETCH_AND_ADD] = cpu_to_be32(MLX4_OPCODE_ATOMIC_FA),
118 [IB_WR_SEND_WITH_INV] = cpu_to_be32(MLX4_OPCODE_SEND_INVAL),
119 [IB_WR_LOCAL_INV] = cpu_to_be32(MLX4_OPCODE_LOCAL_INVAL),
120 [IB_WR_REG_MR] = cpu_to_be32(MLX4_OPCODE_FMR),
121 [IB_WR_MASKED_ATOMIC_CMP_AND_SWP] = cpu_to_be32(MLX4_OPCODE_MASKED_ATOMIC_CS),
122 [IB_WR_MASKED_ATOMIC_FETCH_AND_ADD] = cpu_to_be32(MLX4_OPCODE_MASKED_ATOMIC_FA),
229 stamp = ind & qp->sq.wqe_cnt ? cpu_to_be32(0x7fffffff) :
230 cpu_to_be32(0xffffffff);
240 *wqe = cpu_to_be32(0xffffffff);
259 av->port_pd = cpu_to_be32((qp->port << 24) | to_mpd(qp->ibqp.pd)->pdn);
266 inl->byte_count = cpu_to_be32(1U << 31 | (size - s - sizeof *inl));
276 ctrl->owner_opcode = cpu_to_be32(MLX4_OPCODE_NOP | MLX4_WQE_CTRL_NEC) |
277 (n & qp->sq.wqe_cnt ? cpu_to_be32(1U << 31) : 0);
726 qp->sq_signal_bits = cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE);
1370 return cpu_to_be32(hw_access_flags);
1425 cpu_to_be32((ah->grh.traffic_class << 20) |
1644 context->flags = cpu_to_be32((to_mlx4_state(new_state) << 28) |
1648 context->flags |= cpu_to_be32(MLX4_QP_PM_MIGRATED << 11);
1653 context->flags |= cpu_to_be32(MLX4_QP_PM_MIGRATED << 11);
1656 context->flags |= cpu_to_be32(MLX4_QP_PM_REARM << 11);
1659 context->flags |= cpu_to_be32(MLX4_QP_PM_ARMED << 11);
1697 context->xrcd = cpu_to_be32((u32) qp->xrcdn);
1699 context->param3 |= cpu_to_be32(1 << 30);
1703 context->usr_page = cpu_to_be32(
1707 context->usr_page = cpu_to_be32(
1711 context->remote_qpn = cpu_to_be32(attr->dest_qp_num);
1838 context->pd = cpu_to_be32(pd->pdn);
1839 context->cqn_send = cpu_to_be32(send_cq->mcq.cqn);
1840 context->cqn_recv = cpu_to_be32(recv_cq->mcq.cqn);
1841 context->params1 = cpu_to_be32(MLX4_IB_ACK_REQ_FREQ << 28);
1845 context->params1 |= cpu_to_be32(1 << 11);
1848 context->params1 |= cpu_to_be32(attr->rnr_retry << 13);
1853 context->params1 |= cpu_to_be32(attr->retry_cnt << 16);
1860 cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21);
1865 context->next_send_psn = cpu_to_be32(attr->sq_psn);
1870 cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21);
1880 context->params2 |= cpu_to_be32(MLX4_QP_BIT_RIC);
1883 context->rnr_nextrecvpsn |= cpu_to_be32(attr->min_rnr_timer << 24);
1887 context->rnr_nextrecvpsn |= cpu_to_be32(attr->rq_psn);
1893 context->qkey = cpu_to_be32(IB_QP_SET_QKEY);
1905 context->qkey = cpu_to_be32(attr->qkey);
1911 context->srqn = cpu_to_be32(1 << 24 | to_msrq(ibqp->srq)->msrq.srqn);
1958 if (!(context->flags & cpu_to_be32(1 << MLX4_RSS_QPC_FLAG_OFFSET)))
1959 context->srqn = cpu_to_be32(7 << 28);
1995 ctrl->owner_opcode = cpu_to_be32(1U << 31);
2337 mlx->flags &= cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE);
2340 mlx->flags |= cpu_to_be32(MLX4_WQE_MLX_VL15 | 0x1 | MLX4_WQE_MLX_SLR);
2348 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn);
2351 cpu_to_be32(mdev->dev->caps.qp0_tunnel[sqp->qp.port - 1]);
2353 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1));
2361 sqp->ud_header.deth.qkey = cpu_to_be32(qkey);
2362 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.mqp.qpn);
2378 inl->byte_count = cpu_to_be32((1U << 31) | header_size);
2382 inl->byte_count = cpu_to_be32((1U << 31) | spc);
2401 inl->byte_count = cpu_to_be32((1U << 31) | (header_size - spc));
2512 ah->av.ib.sl_tclass_flowlabel & cpu_to_be32(0xfffff);
2559 mlx->flags &= cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE);
2562 mlx->flags |= cpu_to_be32((!sqp->qp.ibqp.qp_num ? MLX4_WQE_MLX_VL15 : 0) |
2566 if (ah->av.ib.port_pd & cpu_to_be32(0x80000000))
2567 mlx->flags |= cpu_to_be32(0x1); /* force loopback */
2603 mlx->flags |= cpu_to_be32(MLX4_WQE_CTRL_FORCE_LOOPBACK);
2626 sqp->ud_header.bth.destination_qpn = cpu_to_be32(wr->remote_qpn);
2627 sqp->ud_header.bth.psn = cpu_to_be32((sqp->send_psn++) & ((1 << 24) - 1));
2628 sqp->ud_header.deth.qkey = cpu_to_be32(wr->remote_qkey & 0x80000000 ?
2630 sqp->ud_header.deth.source_qpn = cpu_to_be32(sqp->qp.ibqp.qp_num);
2656 inl->byte_count = cpu_to_be32(1U << 31 | header_size);
2660 inl->byte_count = cpu_to_be32(1U << 31 | spc);
2679 inl->byte_count = cpu_to_be32(1U << 31 | (header_size - spc));
2708 cpu_to_be32(MLX4_WQE_FMR_AND_BIND_PERM_ATOMIC) : 0) |
2710 cpu_to_be32(MLX4_WQE_FMR_AND_BIND_PERM_REMOTE_WRITE) : 0) |
2712 cpu_to_be32(MLX4_WQE_FMR_AND_BIND_PERM_REMOTE_READ) : 0) |
2713 (acc & IB_ACCESS_LOCAL_WRITE ? cpu_to_be32(MLX4_WQE_FMR_PERM_LOCAL_WRITE) : 0) |
2714 cpu_to_be32(MLX4_WQE_FMR_PERM_LOCAL_READ);
2723 fseg->mem_key = cpu_to_be32(wr->key);
2728 fseg->page_size = cpu_to_be32(ilog2(mr->ibmr.page_size));
2736 iseg->mem_key = cpu_to_be32(rkey);
2743 rseg->rkey = cpu_to_be32(rkey);
2776 dseg->dqpn = cpu_to_be32(wr->remote_qpn);
2777 dseg->qkey = cpu_to_be32(wr->remote_qkey);
2792 sqp_av.port_pd = av->ib.port_pd | cpu_to_be32(0x80000000);
2795 cpu_to_be32(0xf0000000);
2799 dseg->dqpn = cpu_to_be32(dev->dev->caps.qp1_tunnel[port - 1]);
2801 dseg->dqpn = cpu_to_be32(dev->dev->caps.qp0_tunnel[port - 1]);
2803 dseg->qkey = cpu_to_be32(IB_QP_SET_QKEY);
2815 hdr.remote_qpn = cpu_to_be32(wr->remote_qpn);
2817 hdr.qkey = cpu_to_be32(wr->remote_qkey);
2826 inl->byte_count = cpu_to_be32((1U << 31) | (u32)sizeof(hdr));
2831 inl->byte_count = cpu_to_be32((1U << 31) | spc);
2836 inl->byte_count = cpu_to_be32((1U << 31) | (u32)(sizeof (hdr) - spc));
2861 iseg->byte_count = cpu_to_be32((1U << 31) | 4);
2866 dseg->lkey = cpu_to_be32(sg->lkey);
2879 dseg->byte_count = cpu_to_be32(sg->length);
2884 dseg->byte_count = cpu_to_be32(sg->length);
2885 dseg->lkey = cpu_to_be32(sg->lkey);
2896 *blh = cpu_to_be32(1 << 6);
2904 *lso_hdr_sz = cpu_to_be32(wr->mss << 16 | wr->hlen);
2917 return cpu_to_be32(wr->ex.invalidate_rkey);
2928 inl->byte_count = cpu_to_be32(1U << 31);
3006 cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE) : 0) |
3008 cpu_to_be32(MLX4_WQE_CTRL_SOLICITED) : 0) |
3010 cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM |
3062 cpu_to_be32(MLX4_WQE_CTRL_STRONG_ORDER);
3070 cpu_to_be32(MLX4_WQE_CTRL_STRONG_ORDER);
3097 *(__be32 *) wqe |= cpu_to_be32(0x80000000);
3216 (ind & qp->sq.wqe_cnt ? cpu_to_be32(1U << 31) : 0) | blh;
3313 cpu_to_be32(sizeof (struct mlx4_ib_proxy_sqp_hdr));
3315 scat->lkey = cpu_to_be32(wr->sg_list->lkey);
3326 scat[i].lkey = cpu_to_be32(MLX4_INVALID_LKEY);
3345 *qp->db.db = cpu_to_be32(qp->rq.head & 0xffff);
3523 qp->sq_signal_bits == cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE) ?