Searched refs:cpu_to_be32 (Results 1 - 25 of 76) sorted by relevance
1234
/freebsd-12-stable/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_resources.c | 49 context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET); 50 context->pd = cpu_to_be32(mdev->priv_pdn); 58 context->usr_page = cpu_to_be32(mdev->priv_uar.index); 59 context->local_qpn = cpu_to_be32(qpn); 76 context->cqn_send = cpu_to_be32(cqn); 77 context->cqn_recv = cpu_to_be32(cqn); 80 context->param3 |= cpu_to_be32(1 << 30);
|
H A D | mlx4_en_rx.c | 57 rx_desc->data[0].byte_count = cpu_to_be32(priv->rx_mb_size - MLX4_NET_IP_ALIGN); 58 rx_desc->data[0].lkey = cpu_to_be32(priv->mdev->mr.key); 67 rx_desc->data[i].lkey = cpu_to_be32(MLX4_EN_MEMTYPE_PAD); 178 rx_desc->data[i].byte_count = cpu_to_be32(segs[i].ds_len); 184 rx_desc->data[i].lkey = cpu_to_be32(MLX4_EN_MEMTYPE_PAD); 209 rx_desc->data[i].byte_count = cpu_to_be32(ring->spare.segs[i].ds_len); 214 rx_desc->data[i].lkey = cpu_to_be32(MLX4_EN_MEMTYPE_PAD); 252 *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); 484 __be32 stamp = cpu_to_be32(1 << STAMP_SHIFT); 501 ring->rx_mr_key_be = cpu_to_be32(pri [all...] |
H A D | mlx4_en_tx.c | 236 ring->context.usr_page = cpu_to_be32(ring->bf.uar->index); 278 const __be32 stamp = cpu_to_be32(STAMP_VAL | 635 CTRL_FLAGS = cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE | 683 cpu_to_be32(MLX4_EN_BIT_DESC_OWN) : 0; 698 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_IP_CSUM); 702 tx_desc->ctrl.srcrb_flags |= cpu_to_be32(MLX4_WQE_CTRL_TCP_UDP_CSUM); 738 opcode = cpu_to_be32(MLX4_OPCODE_LSO | MLX4_WQE_CTRL_RR) | 746 tx_desc->lso.mss_hdr_size = cpu_to_be32((mss << 16) | ihs); 761 opcode = cpu_to_be32(MLX4_OPCODE_SEND) | 873 dseg->lkey = cpu_to_be32(pri [all...] |
/freebsd-12-stable/sys/ofed/drivers/infiniband/core/ |
H A D | cm_msgs.h | 117 return cpu_to_be32(be32_to_cpu(req_msg->offset32) >> 8); 122 req_msg->offset32 = cpu_to_be32((be32_to_cpu(qpn) << 8) | 134 req_msg->offset32 = cpu_to_be32(resp_res | 147 req_msg->offset36 = cpu_to_be32(init_depth | 160 req_msg->offset40 = cpu_to_be32((resp_timeout << 3) | 185 req_msg->offset40 = cpu_to_be32((be32_to_cpu( 190 req_msg->offset40 = cpu_to_be32((be32_to_cpu( 196 req_msg->offset40 = cpu_to_be32(be32_to_cpu( 210 req_msg->offset40 = cpu_to_be32((flow_ctrl & 0x1) | 217 return cpu_to_be32(be32_to_cp [all...] |
/freebsd-12-stable/sys/dev/mthca/ |
H A D | mthca_wqe.h | 119 dseg->byte_count = cpu_to_be32(sg->length); 120 dseg->lkey = cpu_to_be32(sg->lkey); 127 dseg->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
|
H A D | mthca_qp.c | 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_ARME [all...] |
H A D | mthca_doorbell.h | 93 hi = (__force u32) cpu_to_be32(hi); 94 lo = (__force u32) cpu_to_be32(lo);
|
H A D | mthca_srq.c | 103 context->state_pd = cpu_to_be32(pd->pd_num); 104 context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); 108 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); 110 context->uar = cpu_to_be32(dev->driver_uar.index); 128 context->state_logsize_srqn = cpu_to_be32(logsize << 24 | srq->srqn); 129 context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); 130 context->db_index = cpu_to_be32(srq->db_index); 131 context->logstride_usrpage = cpu_to_be32((srq->wqe_shift - 4) << 29); 134 cpu_to_be32(to_mucontext(pd->ibpd.uobject->context)->uar.index); 136 context->logstride_usrpage |= cpu_to_be32(de [all...] |
H A D | mthca_mcg.c | 165 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) { 170 } else if (!(mgm->qp[i] & cpu_to_be32(1 << 31))) { 171 mgm->qp[i] = cpu_to_be32(ibqp->qp_num | (1 << 31)); 197 mgm->next_gid_index = cpu_to_be32(index << 6); 242 if (mgm->qp[i] == cpu_to_be32(ibqp->qp_num | (1 << 31))) 244 if (!(mgm->qp[i] & cpu_to_be32(1 << 31))) 297 mgm->next_gid_index = cpu_to_be32(curr_next_index << 6);
|
H A D | mthca_cq.c | 208 *cq->set_ci_db = cpu_to_be32(cq->cons_index); 310 if (cqe->my_qpn == cpu_to_be32(qpn)) { 473 if (!(new_wqe & cpu_to_be32(0x3f)) || (!cqe->db_cnt && dbd)) 748 db_rec[0] = cpu_to_be32(cq->cons_index); 749 db_rec[1] = cpu_to_be32((cq->cqn << 8) | (2 << 5) | (sn << 3) | 828 cq_context->flags = cpu_to_be32(MTHCA_CQ_STATUS_OK | 831 cq_context->logsize_usrpage = cpu_to_be32((ffs(nent) - 1) << 24); 833 cq_context->logsize_usrpage |= cpu_to_be32(ctx->uar.index); 835 cq_context->logsize_usrpage |= cpu_to_be32(dev->driver_uar.index); 836 cq_context->error_eqn = cpu_to_be32(de [all...] |
H A D | mthca_av.c | 201 av->port_pd = cpu_to_be32(pd->pd_num | (ah_attr->port_num << 24)); 206 av->sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 28); 213 cpu_to_be32((ah_attr->grh.traffic_class << 20) | 218 av->dgid[3] = cpu_to_be32(2); 279 ah->av->sl_tclass_flowlabel & cpu_to_be32(0xfffff);
|
/freebsd-12-stable/sys/dev/mlx4/ |
H A D | cq.h | 149 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); 157 doorbell[0] = cpu_to_be32(sn << 28 | cmd | cq->cqn); 158 doorbell[1] = cpu_to_be32(ci); 165 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff);
|
/freebsd-12-stable/sys/dev/mlx5/ |
H A D | cq.h | 122 *cq->set_ci_db = cpu_to_be32(cq->cons_index & 0xffffff); 142 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); 149 doorbell[0] = cpu_to_be32(sn << 28 | cmd | ci); 150 doorbell[1] = cpu_to_be32(cq->cqn);
|
/freebsd-12-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_qp.c | 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_INVA [all...] |
H A D | mlx4_ib_ah.c | 50 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); 52 ah->av.ib.sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 28); 58 cpu_to_be32((ah_attr->grh.traffic_class << 20) | 105 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); 126 ah->av.eth.sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 29);
|
/freebsd-12-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | qp.c | 247 res_wr->op_nres = cpu_to_be32( 251 res_wr->len16_pkd = cpu_to_be32(DIV_ROUND_UP(wr_len, 16)); 261 res->u.sqrq.fetchszm_to_iqid = cpu_to_be32( 266 res->u.sqrq.dcaen_to_eqsize = cpu_to_be32( 275 res->u.sqrq.eqid = cpu_to_be32(wq->sq.qid); 284 res->u.sqrq.fetchszm_to_iqid = cpu_to_be32( 289 res->u.sqrq.dcaen_to_eqsize = cpu_to_be32( 298 res->u.sqrq.eqid = cpu_to_be32(wq->rq.qid); 371 immdp->immdlen = cpu_to_be32(plen); 419 wqe->send.sendop_pkd = cpu_to_be32( [all...] |
H A D | mem.c | 84 ulpmc->wr.wr_hi = cpu_to_be32(V_FW_WR_OP(FW_ULPTX_WR) | 87 ulpmc->wr.wr_mid = cpu_to_be32(V_FW_WR_LEN16(DIV_ROUND_UP(wr_len, 16))); 88 ulpmc->cmd = cpu_to_be32(V_ULPTX_CMD(ULP_TX_MEM_WRITE) | 91 ulpmc->dlen = cpu_to_be32(V_ULP_MEMIO_DATA_LEN(len>>5)); 92 ulpmc->len16 = cpu_to_be32(DIV_ROUND_UP(wr_len-sizeof(ulpmc->wr), 16)); 93 ulpmc->lock_addr = cpu_to_be32(V_ULP_MEMIO_ADDR(addr)); 96 sgl->cmd_nsge = cpu_to_be32(V_ULPTX_CMD(ULP_TX_SC_DSGL) | 98 sgl->len0 = cpu_to_be32(len); 121 cmd = cpu_to_be32(V_ULPTX_CMD(ULP_TX_MEM_WRITE)); 123 cmd |= cpu_to_be32(F_T5_ULP_MEMIO_IM [all...] |
/freebsd-12-stable/sys/dev/cxgbe/common/ |
H A D | t4vf_hw.c | 79 cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_RESET_CMD) | 81 cmd.retval_len16 = cpu_to_be32(V_FW_CMD_LEN16(FW_LEN16(cmd))); 244 cmd.op_to_write = cpu_to_be32(V_FW_CMD_OP(FW_RSS_GLB_CONFIG_CMD) | 247 cmd.retval_len16 = cpu_to_be32(FW_LEN16(cmd)); 320 cmd.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_PFVF_CMD) | 323 cmd.retval_len16 = cpu_to_be32(FW_LEN16(cmd)); 403 cmd.op_to_vfn = cpu_to_be32(V_FW_CMD_OP(FW_ACL_MAC_CMD) | 406 cmd.en_to_len16 = cpu_to_be32((unsigned int)FW_LEN16(cmd));
|
H A D | t4_hw.c | 755 cpu_to_be32(V_FW_CMD_OP(FW_LDST_CMD) | 759 ldst_cmd.cycles_to_len16 = cpu_to_be32(FW_LEN16(ldst_cmd)); 3217 *data = (__force __u32)(cpu_to_be32(*data)); 3257 val = cpu_to_be32(val); 3632 ((struct fw_hdr *)first_page)->fw_ver = cpu_to_be32(0xffffffff); 3667 cpu_to_be32(V_FW_CMD_OP(FW_PARAMS_CMD) | 3671 c.retval_len16 = cpu_to_be32(FW_LEN16(c)); 3673 cpu_to_be32(V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DEV) | 3961 c.op_to_portid = cpu_to_be32(V_FW_CMD_OP(FW_PORT_CMD) | 3966 cpu_to_be32(V_FW_PORT_CMD_ACTIO [all...] |
/freebsd-12-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_mr.c | 403 mpt_entry->pd_flags = cpu_to_be32(pd_flags | 417 mpt_entry->flags = cpu_to_be32(flags); 606 mpt_entry->entity_size = cpu_to_be32(page_shift); 607 mpt_entry->flags &= ~(cpu_to_be32(MLX4_MPT_FLAG_FREE | 610 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_PHYSICAL); 616 mpt_entry->mtt_sz = cpu_to_be32(1 << mr->mtt.order); 620 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_FREE); 621 mpt_entry->pd_flags |= cpu_to_be32(MLX4_MPT_PD_FLAG_FAST_REG | 624 mpt_entry->flags |= cpu_to_be32(MLX4_MPT_FLAG_SW_OWNS); 648 mpt_entry->flags = cpu_to_be32(MLX4_MPT_FLAG_MI [all...] |
H A D | mlx4_cq.c | 152 cq_context->logsize_usrpage = cpu_to_be32(ilog2(entries) << 24); 156 cq_context->mtt_base_addr_l = cpu_to_be32(mtt_addr & 0xffffffff); 271 cq_context->flags = cpu_to_be32(!!collapsed << 18); 273 cq_context->flags |= cpu_to_be32(1 << 19); 276 cpu_to_be32((ilog2(nent) << 24) | 283 cq_context->mtt_base_addr_l = cpu_to_be32(mtt_addr & 0xffffffff);
|
H A D | mlx4_fw_qos.c | 208 in_param->vpp_p_up[i] = cpu_to_be32(vpp_p_up[i]); 273 ctx->qos_p_up[i].bw_share = cpu_to_be32(in_param[i].bw_share); 275 cpu_to_be32(in_param[i].max_avg_bw); 277 cpu_to_be32(in_param[i].enable << 31);
|
H A D | mlx4_srq.c | 188 srq_context->state_logsize_srqn = cpu_to_be32((ilog2(srq->max) << 24) | 192 srq_context->pg_offset_cqn = cpu_to_be32(cqn & 0xffffff); 197 srq_context->mtt_base_addr_l = cpu_to_be32(mtt_addr & 0xffffffff); 198 srq_context->pd = cpu_to_be32(pdn);
|
/freebsd-12-stable/sys/ofed/include/rdma/ |
H A D | ib_mad.h | 84 #define IB_BM_ATTR_MOD_RESP cpu_to_be32(1) 127 #define IB_QP1 cpu_to_be32(1) 291 cpu_to_be32(~IB_CLASS_PORT_INFO_RESP_TIME_MASK)) | 292 cpu_to_be32(rtime & IB_CLASS_PORT_INFO_RESP_TIME_MASK); 317 cpu_to_be32(IB_CLASS_PORT_INFO_RESP_TIME_MASK)) | 318 cpu_to_be32(capmask2 <<
|
/freebsd-12-stable/sys/dev/mlx5/mlx5_core/ |
H A D | wq.h | 140 *wq->db = cpu_to_be32(wq->cc & 0xffffff); 169 *wq->db = cpu_to_be32(wq->wqe_ctr);
|
Completed in 254 milliseconds
1234