| /freebsd/stand/powerpc/ofw/ |
| H A D | cas.c | 140 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P6) }, 141 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P7) }, 142 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P7PLUS) }, 143 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8) }, 144 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8E) }, 145 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8NVL) }, 146 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P9) }, 147 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P10) }, 148 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P11) }, 149 { htobe32(PVR_ISA_MASK), htobe32(PVR_ISA_207) }, [all …]
|
| /freebsd/contrib/ofed/libmlx4/ |
| H A D | qp.c | 99 ctrl->owner_opcode = htobe32(1 << 31); in mlx4_qp_init_sq_ownership() 126 bseg->flags1 |= htobe32(MLX4_WQE_MW_ATOMIC); in set_bind_seg() 128 bseg->flags1 |= htobe32(MLX4_WQE_MW_REMOTE_WRITE); in set_bind_seg() 130 bseg->flags1 |= htobe32(MLX4_WQE_MW_REMOTE_READ); in set_bind_seg() 134 bseg->flags2 |= htobe32(MLX4_WQE_BIND_TYPE_2); in set_bind_seg() 136 bseg->flags2 |= htobe32(MLX4_WQE_BIND_ZERO_BASED); in set_bind_seg() 138 bseg->new_rkey = htobe32(wr->bind_mw.rkey); in set_bind_seg() 139 bseg->lkey = htobe32(wr->bind_mw.bind_info.mr->lkey); in set_bind_seg() 147 iseg->mem_key = htobe32(rkey); in set_local_inv_seg() 159 rseg->rkey = htobe32(rkey); in set_raddr_seg() [all …]
|
| H A D | srq.c | 96 scat[i].byte_count = htobe32(wr->sg_list[i].length); in mlx4_post_srq_recv() 97 scat[i].lkey = htobe32(wr->sg_list[i].lkey); in mlx4_post_srq_recv() 103 scat[i].lkey = htobe32(MLX4_INVALID_LKEY); in mlx4_post_srq_recv() 117 *srq->db = htobe32(srq->counter); in mlx4_post_srq_recv() 166 scatter->lkey = htobe32(MLX4_INVALID_LKEY); in mlx4_alloc_srq_buf()
|
| /freebsd/sys/dev/ath/ |
| H A D | if_ath_tdma.c | 165 t.bt_intval = htobe32(bt.bt_intval); in ath_tdma_settimers() 166 t.bt_nexttbtt = htobe32(bt.bt_nexttbtt); in ath_tdma_settimers() 167 t.bt_nextdba = htobe32(bt.bt_nextdba); in ath_tdma_settimers() 168 t.bt_nextswba = htobe32(bt.bt_nextswba); in ath_tdma_settimers() 169 t.bt_nextatim = htobe32(bt.bt_nextatim); in ath_tdma_settimers() 170 t.bt_flags = htobe32(bt.bt_flags); in ath_tdma_settimers() 171 t.sc_tdmadbaprep = htobe32(sc->sc_tdmadbaprep); in ath_tdma_settimers() 172 t.sc_tdmaswbaprep = htobe32(sc->sc_tdmaswbaprep); in ath_tdma_settimers() 320 t.tdma_slot = htobe32(tdma->tdma_slot); in ath_tdma_config() 321 t.tdma_slotlen = htobe32(tdma->tdma_slotlen); in ath_tdma_config() [all …]
|
| H A D | if_ath_alq.c | 87 alq->sc_alq_cfg.sc_mac_version = htobe32(macVer); in if_ath_alq_setcfg() 88 alq->sc_alq_cfg.sc_mac_revision = htobe32(macRev); in if_ath_alq_setcfg() 89 alq->sc_alq_cfg.sc_phy_rev = htobe32(phyRev); in if_ath_alq_setcfg() 90 alq->sc_alq_cfg.sc_hal_magic = htobe32(halMagic); in if_ath_alq_setcfg() 179 ap->tstamp_sec = htobe32((uint32_t) tv.tv_sec); in if_ath_alq_post() 180 ap->tstamp_usec = htobe32((uint32_t) tv.tv_usec); in if_ath_alq_post()
|
| /freebsd/sys/dev/gve/ |
| H A D | gve_adminq.c | 228 cmd.opcode = htobe32(GVE_ADMINQ_DESTROY_TX_QUEUE); in gve_adminq_destroy_tx_queue() 229 cmd.destroy_tx_queue.queue_id = htobe32(id); in gve_adminq_destroy_tx_queue() 239 cmd.opcode = htobe32(GVE_ADMINQ_DESTROY_RX_QUEUE); in gve_adminq_destroy_rx_queue() 240 cmd.destroy_rx_queue.queue_id = htobe32(id); in gve_adminq_destroy_rx_queue() 306 cmd.opcode = htobe32(GVE_ADMINQ_CREATE_RX_QUEUE); in gve_adminq_create_rx_queue() 308 .queue_id = htobe32(queue_index), in gve_adminq_create_rx_queue() 309 .ntfy_id = htobe32(rx->com.ntfy_id), in gve_adminq_create_rx_queue() 320 htobe32(queue_index); in gve_adminq_create_rx_queue() 322 htobe32((rx->com.qpl)->id); in gve_adminq_create_rx_queue() 327 htobe32(GVE_RAW_ADDRESSING_QPL_ID); in gve_adminq_create_rx_queue() [all …]
|
| /freebsd/sys/dev/usb/wlan/ |
| H A D | if_uath.c | 573 setup.sw_ver_major = htobe32(ATH_SW_VER_MAJOR); in uath_host_available() 574 setup.sw_ver_minor = htobe32(ATH_SW_VER_MINOR); in uath_host_available() 575 setup.sw_ver_patch = htobe32(ATH_SW_VER_PATCH); in uath_host_available() 576 setup.sw_ver_build = htobe32(ATH_SW_VER_BUILD); in uath_host_available() 700 hdr->len = htobe32(cmd->buflen); in uath_cmdsend() 701 hdr->code = htobe32(code); in uath_cmdsend() 703 hdr->magic = htobe32((cmd->flags & UATH_CMD_FLAG_MAGIC) ? 1 << 24 : 0); in uath_cmdsend() 810 cap = htobe32(cap); in uath_get_capability() 906 which = htobe32(which); in uath_get_status() 1093 val = htobe32(0); in uath_init() [all …]
|
| /freebsd/stand/kboot/kboot/arch/powerpc64/ |
| H A D | ppc64_elf_freebsd.c | 125 trampoline_data->kernel_entry = htobe32(entry + elf64_relocation_offset); in ppc64_elf_exec() 126 trampoline_data->phys_mem_offset = htobe32(0); in ppc64_elf_exec() 127 trampoline_data->of_entry = htobe32(0); in ppc64_elf_exec() 132 trampoline_data->dtb = htobe32(dtb); in ppc64_elf_exec() 133 trampoline_data->mdp = htobe32(mdp); in ppc64_elf_exec() 134 trampoline_data->mdp_size = htobe32(0xfb5d104d); in ppc64_elf_exec()
|
| /freebsd/sys/dev/cxgbe/crypto/ |
| H A D | t4_keyctx.c | 323 u32[i] = htobe32(auth_ctx->sha1ctx.h.b32[i]); in t4_copy_partial_hash() 328 u32[i] = htobe32(auth_ctx->sha224ctx.state[i]); in t4_copy_partial_hash() 333 u32[i] = htobe32(auth_ctx->sha256ctx.state[i]); in t4_copy_partial_hash() 385 *--dkey = htobe32(ek[4 * 10 + i]); in t4_aes_getdeckey() 389 *--dkey = htobe32(ek[4 * 11 + 2 + i]); in t4_aes_getdeckey() 391 *--dkey = htobe32(ek[4 * 12 + i]); in t4_aes_getdeckey() 395 *--dkey = htobe32(ek[4 * 13 + i]); in t4_aes_getdeckey() 397 *--dkey = htobe32(ek[4 * 14 + i]); in t4_aes_getdeckey() 678 kwr->wr_hi = htobe32(V_FW_WR_OP(FW_ULPTX_WR) | F_FW_WR_ATOMIC | flags); in t4_write_tlskey_wr() 679 kwr->wr_mid = htobe32(V_FW_WR_LEN1 in t4_write_tlskey_wr() [all...] |
| H A D | t6_kern_tls.c | 163 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, in mk_ktls_act_open_req() 176 cpl->opt2 = htobe32(options); in mk_ktls_act_open_req() 194 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ6, in mk_ktls_act_open_req6() 211 cpl->opt2 = htobe32(options); in mk_ktls_act_open_req6() 285 txpkt->cmd_dest = htobe32(V_ULPTX_CMD(ULP_TX_PKT) | in write_set_tcb_field_ulp() 289 txpkt->len = htobe32(howmany(LEN__SET_TCB_FIELD_ULP, 16)); in write_set_tcb_field_ulp() 293 idata->cmd_more = htobe32(V_ULPTX_CMD(ULP_TX_SC_IMM)); in write_set_tcb_field_ulp() 294 idata->len = htobe32(sizeof(*cpl)); in write_set_tcb_field_ulp() 298 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_SET_TCB_FIELD, tlsp->tid)); in write_set_tcb_field_ulp() 306 idata->cmd_more = htobe32(V_ULPTX_CMD(ULP_TX_SC_NOOP)); in write_set_tcb_field_ulp() [all …]
|
| H A D | t7_kern_tls.c | 283 tlsp->scmd0.seqno_numivs = htobe32(tlsp->scmd0.seqno_numivs); in t7_tls_tag_alloc() 308 htobe32(tlsp->scmd0_short.seqno_numivs); in t7_tls_tag_alloc() 328 htobe32(tlsp->scmd0_partial.seqno_numivs); in t7_tls_tag_alloc() 979 lso->lso_ctrl = htobe32(ctrl); in write_lso_cpl() 982 lso->seqno_offset = htobe32(0); in write_lso_cpl() 983 lso->len = htobe32(total_len); in write_lso_cpl() 996 cpl->op_to_Rsvd2 = htobe32(V_CPL_TX_TLS_ACK_OPCODE(CPL_TX_TLS_ACK) | in write_tx_tls_ack() 1001 cpl->PldLen = htobe32(V_CPL_TX_TLS_ACK_PLDLEN(32 + 16 + hash_len)); in write_tx_tls_ack() 1043 htobe32(F_CPL_T7_RX_PHYS_DSGL_SPLITMODE | in write_split_mode_rx_phys() 1097 usgl->cmd_nsge = htobe32(V_ULPTX_CMD(ULP_TX_SC_DSGL) | in write_gl_to_buf() [all …]
|
| H A D | t4_crypto.c | 346 cpl->op_to_tid = htobe32(V_CPL_RX_PHYS_DSGL_OPCODE(CPL_RX_PHYS_DSGL) | in ccr_write_phys_dsgl() 348 cpl->pcirlxorder_to_noofsgentr = htobe32( in ccr_write_phys_dsgl() 405 usgl->cmd_nsge = htobe32(V_ULPTX_CMD(ULP_TX_SC_DSGL) | in ccr_write_ulptx_sgl() 407 usgl->len0 = htobe32(ss->ss_len); in ccr_write_ulptx_sgl() 411 usgl->sge[i / 2].len[i & 1] = htobe32(ss->ss_len); in ccr_write_ulptx_sgl() 437 crwr->wreq.op_to_cctx_size = htobe32( in ccr_populate_wreq() 443 crwr->wreq.len16_pkd = htobe32( in ccr_populate_wreq() 446 crwr->wreq.rx_chid_to_rx_q_id = htobe32( in ccr_populate_wreq() 455 crwr->wreq.pld_size_hash_size = htobe32( in ccr_populate_wreq() 460 crwr->ulptx.cmd_dest = htobe32(V_ULPTX_CM in ccr_populate_wreq() [all...] |
| /freebsd/contrib/ofed/libcxgb4/ |
| H A D | qp.c | 128 immdp->immdlen = htobe32(plen); in build_immd() 179 wqe->send.sendop_pkd = htobe32( in build_rdma_send() 182 wqe->send.sendop_pkd = htobe32( in build_rdma_send() 188 wqe->send.sendop_pkd = htobe32( in build_rdma_send() 191 wqe->send.sendop_pkd = htobe32( in build_rdma_send() 193 wqe->send.stag_inv = htobe32(wr->invalidate_rkey); in build_rdma_send() 229 wqe->send.plen = htobe32(plen); in build_rdma_send() 246 wqe->write.stag_sink = htobe32(wr->wr.rdma.rkey); in build_rdma_write() 275 wqe->write.plen = htobe32(plen); in build_rdma_write() 309 wcwr->stag_sink = htobe32(wr->wr.rdma.rkey); in build_rdma_write_cmpl() [all …]
|
| /freebsd/sys/dev/cxgbe/tom/ |
| H A D | t4_connect.c | 340 cpl->params = htobe32((uint32_t)ntuple); in t4_connect() 344 cpl5->iss = htobe32(tp->iss); in t4_connect() 349 cpl6->iss = htobe32(tp->iss); in t4_connect() 355 cpl7->iss = htobe32(tp->iss); in t4_connect() 359 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ6, in t4_connect() 383 cpl->params = htobe32((uint32_t)ntuple); in t4_connect() 387 cpl5->iss = htobe32(tp->iss); in t4_connect() 392 cpl6->iss = htobe32(tp->iss); in t4_connect() 398 cpl7->iss = htobe32(tp->iss); in t4_connect() 401 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, in t4_connect()
|
| H A D | t4_ddp.c | 555 ulpmc->len = htobe32(howmany(LEN__RX_DATA_ACK_ULP, 16)); in mk_rx_data_ack_ulp() 558 ulpsc->cmd_more = htobe32(V_ULPTX_CMD(ULP_TX_SC_IMM)); in mk_rx_data_ack_ulp() 559 ulpsc->len = htobe32(sizeof(*req)); in mk_rx_data_ack_ulp() 562 OPCODE_TID(req) = htobe32(MK_OPCODE_TID(CPL_RX_DATA_ACK, toep->tid)); in mk_rx_data_ack_ulp() 563 req->credit_dack = htobe32(F_RX_MODULATE_RX); in mk_rx_data_ack_ulp() 567 ulpsc->cmd_more = htobe32(V_ULPTX_CMD(ULP_TX_SC_NOOP)); in mk_rx_data_ack_ulp() 568 ulpsc->len = htobe32(0); in mk_rx_data_ack_ulp() 1636 cmd = htobe32(V_ULPTX_CMD(ULP_TX_MEM_WRITE)); in t4_write_page_pods_for_ps() 1638 cmd |= htobe32(F_ULP_MEMIO_ORDER); in t4_write_page_pods_for_ps() 1640 cmd |= htobe32(F_T5_ULP_MEMIO_IMM); in t4_write_page_pods_for_ps() [all …]
|
| H A D | t4_tls.c | 373 txwr->op_to_immdlen = htobe32(V_WR_OP(FW_TLSTX_DATA_WR) | in write_tlstx_wr() 376 txwr->flowid_len16 = htobe32(V_FW_TLSTX_DATA_WR_FLOWID(toep->tid) | in write_tlstx_wr() 378 txwr->plen = htobe32(len); in write_tlstx_wr() 379 txwr->lsodisable_to_flags = htobe32(V_TX_ULP_MODE(ULP_MODE_TLS) | in write_tlstx_wr() 381 txwr->ctxloc_to_exp = htobe32(V_FW_TLSTX_DATA_WR_NUMIVS(num_ivs) | in write_tlstx_wr() 405 cpl->op_to_seg_len = htobe32(V_CPL_TX_TLS_SFO_OPCODE(CPL_TX_TLS_SFO) | in write_tlstx_cpl() 408 cpl->pld_len = htobe32(plen); in write_tlstx_cpl() 410 cpl->type_protover = htobe32(V_CPL_TX_TLS_SFO_TYPE(rec_type)); in write_tlstx_cpl() 411 cpl->seqno_numivs = htobe32(tls_ofld->scmd0.seqno_numivs | in write_tlstx_cpl() 413 cpl->ivgen_hdrlen = htobe32(tls_ofld->scmd0.ivgen_hdrlen); in write_tlstx_cpl() [all …]
|
| /freebsd/contrib/ofed/libmlx5/ |
| H A D | qp.c | 192 rseg->rkey = htobe32(rkey); in set_raddr_seg() 213 dseg->av.dqp_dct = htobe32(wr->wr.ud.remote_qpn | MLX5_EXTENDED_UD_AV); in set_datagram_seg() 214 dseg->av.key.qkey.qkey = htobe32(wr->wr.ud.remote_qkey); in set_datagram_seg() 220 dseg->byte_count = htobe32(sg->length - offset); in set_data_ptr_seg() 221 dseg->lkey = htobe32(sg->lkey); in set_data_ptr_seg() 228 dseg->byte_count = htobe32(MLX5_ATOMIC_SIZE); in set_data_ptr_seg_atomic() 229 dseg->lkey = htobe32(sg->lkey); in set_data_ptr_seg_atomic() 263 return htobe32(wr->invalidate_rkey); in send_ieth() 305 seg->byte_count = htobe32(inl | MLX5_INLINE_SEG); in set_data_inl_seg() 430 data->klm.byte_count = htobe32(bind_info->length); in set_umr_data_seg() [all …]
|
| H A D | srq.c | 120 scat[i].byte_count = htobe32(wr->sg_list[i].length); in mlx5_post_srq_recv() 121 scat[i].lkey = htobe32(wr->sg_list[i].lkey); in mlx5_post_srq_recv() 127 scat[i].lkey = htobe32(MLX5_INVALID_LKEY); in mlx5_post_srq_recv() 141 *srq->db = htobe32(srq->counter); in mlx5_post_srq_recv()
|
| /freebsd/sys/net80211/ |
| H A D | ieee80211_alq.c | 163 r->r_flags = htobe32(flags); in ieee80211_alq_log() 164 r->r_op = htobe32(op); in ieee80211_alq_log() 165 r->r_len = htobe32(len + sizeof(struct ieee80211_alq_rec)); in ieee80211_alq_log() 166 r->r_threadid = htobe32((uint32_t) curthread->td_tid); in ieee80211_alq_log()
|
| /freebsd/sys/dev/cxgbe/ |
| H A D | t4_netmap.c | 234 nm_txq->cpl_ctrl0 = htobe32(V_TXPKT_OPCODE(CPL_TX_PKT) | in alloc_nm_txq() 238 nm_txq->op_pkd = htobe32(V_FW_WR_OP(FW_ETH_TX_PKTS2_WR)); in alloc_nm_txq() 240 nm_txq->op_pkd = htobe32(V_FW_WR_OP(FW_ETH_TX_PKTS_WR)); in alloc_nm_txq() 296 c.op_to_vfn = htobe32(V_FW_CMD_OP(FW_IQ_CMD) | F_FW_CMD_REQUEST | in alloc_nm_rxq_hwq() 299 c.alloc_to_len16 = htobe32(F_FW_IQ_CMD_IQSTART | FW_LEN16(c)); in alloc_nm_rxq_hwq() 301 c.alloc_to_len16 |= htobe32(F_FW_IQ_CMD_ALLOC); in alloc_nm_rxq_hwq() 312 c.type_to_iqandstindex = htobe32(v | in alloc_nm_rxq_hwq() 327 c.iqns_to_fl0congen = htobe32(F_FW_IQ_CMD_IQFLINTCONGEN | in alloc_nm_rxq_hwq() 332 htobe32(V_FW_IQ_CMD_FL0HOSTFCMODE(X_HOSTFCMODE_NONE) | in alloc_nm_rxq_hwq() 423 c.op_to_vfn = htobe32(V_FW_CMD_OP(FW_EQ_ETH_CMD) | F_FW_CMD_REQUEST | in alloc_nm_txq_hwq() [all …]
|
| /freebsd/tools/test/stress2/misc/ |
| H A D | syzkaller24.sh | 115 *(uint32_t*)0x20000180 = htobe32(0xe0000002); 116 *(uint32_t*)0x20000184 = htobe32(0x7f000001); 117 *(uint32_t*)0x20000188 = htobe32(0x7f000001);
|
| H A D | syzkaller66.sh | 115 *(uint32_t*)0x200001c4 = htobe32(0x7f000001); 125 *(uint32_t*)0x200000c4 = htobe32(0x7f000001); 140 *(uint32_t*)0x200000c4 = htobe32(0x7f000001);
|
| /freebsd/sys/powerpc/ofw/ |
| H A D | rtas.c | 217 args.token = htobe32(token); in rtas_call_method() 223 args.nargs = htobe32(nargs); in rtas_call_method() 224 args.nreturns = htobe32(nreturns); in rtas_call_method() 227 args.args_n_results[n] = htobe32(va_arg(ap, cell_t)); in rtas_call_method()
|
| /freebsd/usr.sbin/uathload/ |
| H A D | uathload.c | 192 txmsg.flags = htobe32(UATH_WRITE_BLOCK); in main() 193 txmsg.total = htobe32(len); in main() 202 txmsg.remain = htobe32(len - mlen); in main() 203 txmsg.len = htobe32(mlen); in main()
|
| /freebsd/sys/dev/ufshci/ |
| H A D | ufshci_ctrlr_cmd.c | 32 upiu->input_param1 = htobe32(lun); in ufshci_ctrlr_cmd_send_task_mgmt_request() 33 upiu->input_param2 = htobe32(task_tag); in ufshci_ctrlr_cmd_send_task_mgmt_request() 34 upiu->input_param3 = htobe32(iid); in ufshci_ctrlr_cmd_send_task_mgmt_request()
|