Home
last modified time | relevance | path

Searched refs:htobe32 (Results 1 – 25 of 152) sorted by relevance

1234567

/freebsd/stand/powerpc/ofw/
H A Dcas.c134 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8) },
135 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8E) },
136 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P8NVL) },
137 { htobe32(PVR_CPU_MASK), htobe32(PVR_CPU_P9) },
138 { htobe32(PVR_ISA_MASK), htobe32(PVR_ISA_207) },
139 { htobe32(PVR_ISA_MASK), htobe32(PVR_ISA_300) },
/freebsd/sys/dev/gve/
H A Dgve_adminq.c154 cmd.destroy_tx_queue.queue_id = htobe32(id); in gve_adminq_destroy_tx_queue()
165 cmd.destroy_rx_queue.queue_id = htobe32(id); in gve_adminq_destroy_rx_queue()
223 .queue_id = htobe32(queue_index), in gve_adminq_create_rx_queue()
224 .index = htobe32(queue_index), in gve_adminq_create_rx_queue()
225 .ntfy_id = htobe32(rx->com.ntfy_id), in gve_adminq_create_rx_queue()
272 .queue_id = htobe32(queue_index), in gve_adminq_create_tx_queue()
276 .ntfy_id = htobe32(tx->com.ntfy_id), in gve_adminq_create_tx_queue()
434 .page_list_id = htobe32(qpl->id), in gve_adminq_register_page_list()
435 .num_pages = htobe32(num_entries), in gve_adminq_register_page_list()
452 .page_list_id = htobe32(page_list_id), in gve_adminq_unregister_page_list()
[all …]
/freebsd/contrib/ofed/libmlx4/
H A Dqp.c99 ctrl->owner_opcode = htobe32(1 << 31); in mlx4_qp_init_sq_ownership()
147 iseg->mem_key = htobe32(rkey); in set_local_inv_seg()
159 rseg->rkey = htobe32(rkey); in set_raddr_seg()
187 dseg->byte_count = htobe32(sg->length); in __set_data_seg()
188 dseg->lkey = htobe32(sg->lkey); in __set_data_seg()
194 dseg->lkey = htobe32(sg->lkey); in set_data_seg()
208 dseg->byte_count = htobe32(sg->length); in set_data_seg()
210 dseg->byte_count = htobe32(0x80000000); in set_data_seg()
306 htobe32(MLX4_WQE_CTRL_STRONG_ORDER); in mlx4_post_send()
315 htobe32(MLX4_WQE_CTRL_STRONG_ORDER); in mlx4_post_send()
[all …]
/freebsd/sys/dev/ath/
H A Dif_ath_tdma.c165 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()
320 t.tdma_slot = htobe32(tdma->tdma_slot); in ath_tdma_config()
521 t.nextslot_tu = htobe32(nextslottu); in ath_tdma_update()
522 t.txtime = htobe32(txtime); in ath_tdma_update()
532 t.tsfdelta = htobe32(tsfdelta); in ath_tdma_update()
[all …]
H A Dif_ath_alq.c87 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()
H A Dif_ath_alq.h188 intr.intr_status = htobe32(status); in if_ath_alq_post_intr()
190 intr.intr_state[i] = htobe32(state[i]); in if_ath_alq_post_intr()
191 intr.intr_syncstate = htobe32(sync_state); in if_ath_alq_post_intr()
/freebsd/sys/dev/usb/wlan/
H A Dif_uath.c802 cap = htobe32(cap); in uath_get_capability()
898 which = htobe32(which); in uath_get_status()
1085 val = htobe32(0); in uath_init()
1177 write.reg = htobe32(reg); in uath_config()
1197 write.reg = htobe32(reg); in uath_config_multi()
1198 write.len = htobe32(len); in uath_config_multi()
1261 rxfilter.op = htobe32(op); in uath_set_rxfilter()
1348 desc->txqid = htobe32(0); in uath_dataflush()
1349 desc->connid = htobe32(0); in uath_dataflush()
1350 desc->flags = htobe32(0); in uath_dataflush()
[all …]
/freebsd/stand/kboot/kboot/arch/powerpc64/
H A Dppc64_elf_freebsd.c128 trampoline_data->kernel_entry = htobe32(entry + elf64_relocation_offset); in ppc64_elf_exec()
129 trampoline_data->phys_mem_offset = htobe32(0); in ppc64_elf_exec()
130 trampoline_data->of_entry = htobe32(0); in ppc64_elf_exec()
135 trampoline_data->dtb = htobe32(dtb); in ppc64_elf_exec()
136 trampoline_data->mdp = htobe32(mdp); in ppc64_elf_exec()
137 trampoline_data->mdp_size = htobe32(0xfb5d104d); in ppc64_elf_exec()
/freebsd/sys/dev/cxgbe/crypto/
H A Dt4_keyctx.c323 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()
669 kwr->cmd = htobe32(V_ULPTX_CMD(ULP_TX_MEM_WRITE) | in t4_write_tlskey_wr()
672 kwr->len16 = htobe32((tid << 8) | in t4_write_tlskey_wr()
[all …]
H A Dt6_kern_tls.c176 cpl->opt2 = htobe32(options); in mk_ktls_act_open_req()
211 cpl->opt2 = htobe32(options); in mk_ktls_act_open_req6()
294 idata->len = htobe32(sizeof(*cpl)); in write_set_tcb_field_ulp()
307 idata->len = htobe32(0); in write_set_tcb_field_ulp()
1064 usgl->len0 = htobe32(seg->ss_len); in write_gl_to_buf()
1139 wr->equiq_to_len16 = htobe32(ctrl); in ktls_write_tcp_options()
1650 idata->len = htobe32(idata->len); in ktls_write_tls_wr()
1674 sec_pdu->ivgen_hdrlen = htobe32( in ktls_write_tls_wr()
1702 sec_pdu->pldlen = htobe32(plen); in ktls_write_tls_wr()
1713 sec_pdu->op_ivinsrtofst = htobe32( in ktls_write_tls_wr()
[all …]
H A Dt4_crypto.c406 usgl->len0 = htobe32(ss->ss_len); in ccr_write_ulptx_sgl()
436 crwr->wreq.op_to_cctx_size = htobe32( in ccr_populate_wreq()
442 crwr->wreq.len16_pkd = htobe32( in ccr_populate_wreq()
464 crwr->ulptx.len = htobe32( in ccr_populate_wreq()
472 crwr->sc_imm.len = htobe32(idata_len); in ccr_populate_wreq()
560 crwr->sec_cpl.seqno_numivs = htobe32( in ccr_hash()
566 crwr->sec_cpl.ivgen_hdrlen = htobe32( in ccr_hash()
722 crwr->sec_cpl.seqno_numivs = htobe32( in ccr_cipher()
731 crwr->sec_cpl.ivgen_hdrlen = htobe32( in ccr_cipher()
1289 *(uint32_t *)&iv[12] = htobe32(1); in ccr_gcm()
[all …]
/freebsd/contrib/ofed/libcxgb4/
H A Dqp.c128 immdp->immdlen = htobe32(plen); in build_immd()
168 wqe->send.sendop_pkd = htobe32( in build_rdma_send()
171 wqe->send.sendop_pkd = htobe32( in build_rdma_send()
203 wqe->send.plen = htobe32(plen); in build_rdma_send()
217 wqe->write.stag_sink = htobe32(wr->wr.rdma.rkey); in build_rdma_write()
244 wqe->write.plen = htobe32(plen); in build_rdma_write()
253 wqe->read.stag_src = htobe32(wr->wr.rdma.rkey); in build_rdma_read()
256 wqe->read.stag_sink = htobe32(wr->sg_list[0].lkey); in build_rdma_read()
257 wqe->read.plen = htobe32(wr->sg_list[0].length); in build_rdma_read()
261 wqe->read.stag_src = htobe32(2); in build_rdma_read()
[all …]
/freebsd/sys/net80211/
H A Dieee80211_alq.c163 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/contrib/ofed/libmlx5/
H A Dqp.c192 rseg->rkey = htobe32(rkey); in set_raddr_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->imm_data); in send_ieth()
431 data->klm.mkey = htobe32(bind_info->mr->lkey); in set_umr_data_seg()
447 mkey->qpn_mkey = htobe32((rkey & 0xFF) | in set_umr_mkey_seg()
729 ctrl->imm = htobe32(wr->bind_mw.mw->rkey); in _mlx5_post_send()
745 ctrl->imm = htobe32(wr->imm_data); in _mlx5_post_send()
774 ctrl->imm = htobe32(wr->bind_mw.mw->rkey); in _mlx5_post_send()
[all …]
H A Dmlx5dv.h472 seg->opmod_idx_opcode = htobe32(((uint32_t)opmod << 24) | ((uint32_t)pi << 8) | opcode); in mlx5dv_set_ctrl_seg()
473 seg->qpn_ds = htobe32((qp_num << 8) | ds); in mlx5dv_set_ctrl_seg()
546 seg->av.dqp_dct = htobe32(((uint32_t)ext << 31) | dqp_dct); in mlx5dv_set_dgram_seg()
553 seg->av.grh_gid_fl = htobe32(grh_gid_fi); in mlx5dv_set_dgram_seg()
567 seg->byte_count = htobe32(length); in mlx5dv_set_data_seg()
568 seg->lkey = htobe32(lkey); in mlx5dv_set_data_seg()
H A Dsrq.c120 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/dev/cxgbe/tom/
H A Dt4_ddp.c559 ulpsc->len = htobe32(sizeof(*req)); in mk_rx_data_ack_ulp()
568 ulpsc->len = htobe32(0); in mk_rx_data_ack_ulp()
1640 cmd |= htobe32(F_ULP_MEMIO_ORDER); in t4_write_page_pods_for_ps()
1664 ulpsc->len = htobe32(chunk); in t4_write_page_pods_for_ps()
1718 cmd |= htobe32(F_ULP_MEMIO_ORDER); in t4_write_page_pods_for_rcvbuf()
1746 ulpsc->len = htobe32(chunk); in t4_write_page_pods_for_rcvbuf()
1825 cmd |= htobe32(F_ULP_MEMIO_ORDER); in t4_write_page_pods_for_bio()
1851 ulpsc->len = htobe32(chunk); in t4_write_page_pods_for_bio()
1902 cmd |= htobe32(F_ULP_MEMIO_ORDER); in t4_write_page_pods_for_buf()
1931 ulpsc->len = htobe32(chunk); in t4_write_page_pods_for_buf()
[all …]
H A Dt4_tls.c360 txwr->op_to_immdlen = htobe32(V_WR_OP(FW_TLSTX_DATA_WR) | in write_tlstx_wr()
365 txwr->plen = htobe32(len); in write_tlstx_wr()
394 cpl->pld_len = htobe32(plen); in write_tlstx_cpl()
396 cpl->type_protover = htobe32( in write_tlstx_cpl()
431 usgl->cmd_nsge = htobe32(V_ULPTX_CMD(ULP_TX_SC_DSGL) | in write_ktlstx_sgl()
445 usgl->len0 = htobe32(len); in write_ktlstx_sgl()
454 usgl->sge[j / 2].len[j & 1] = htobe32(len); in write_ktlstx_sgl()
469 usgl->sge[j / 2].len[j & 1] = htobe32(len); in write_ktlstx_sgl()
472 usgl->sge[j / 2].len[1] = htobe32(0); in write_ktlstx_sgl()
666 idata->len = htobe32(0); in t4_push_ktls()
[all …]
H A Dt4_connect.c321 cpl5->iss = htobe32(tp->iss); in t4_connect()
327 cpl6->iss = htobe32(tp->iss); in t4_connect()
331 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ6, in t4_connect()
358 cpl5->iss = htobe32(tp->iss); in t4_connect()
364 cpl6->iss = htobe32(tp->iss); in t4_connect()
368 OPCODE_TID(cpl) = htobe32(MK_OPCODE_TID(CPL_ACT_OPEN_REQ, in t4_connect()
/freebsd/tools/test/stress2/misc/
H A Dsyzkaller24.sh115 *(uint32_t*)0x20000180 = htobe32(0xe0000002);
116 *(uint32_t*)0x20000184 = htobe32(0x7f000001);
117 *(uint32_t*)0x20000188 = htobe32(0x7f000001);
H A Dsyzkaller66.sh115 *(uint32_t*)0x200001c4 = htobe32(0x7f000001);
125 *(uint32_t*)0x200000c4 = htobe32(0x7f000001);
140 *(uint32_t*)0x200000c4 = htobe32(0x7f000001);
/freebsd/sys/dev/cxgbe/
H A Dt4_netmap.c234 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()
302 c.alloc_to_len16 |= htobe32(F_FW_IQ_CMD_ALLOC); in alloc_nm_rxq_hwq()
313 c.type_to_iqandstindex = htobe32(v | in alloc_nm_rxq_hwq()
425 c.alloc_to_len16 |= htobe32(F_FW_EQ_ETH_CMD_ALLOC); in alloc_nm_txq_hwq()
1003 usgl->cmd_nsge = htobe32(V_ULPTX_CMD(ULP_TX_SC_DSGL) | in cxgbe_nm_tx()
1005 usgl->len0 = htobe32(slot->len); in cxgbe_nm_tx()
1031 wr->equiq_to_len16 |= htobe32(F_FW_WR_EQUEQ | in cxgbe_nm_tx()
1041 wr->equiq_to_len16 |= htobe32(F_FW_WR_EQUEQ | in cxgbe_nm_tx()
[all …]
/freebsd/usr.sbin/uathload/
H A Duathload.c192 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/powerpc/ofw/
H A Drtas.c217 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/sys/dev/beri/virtio/
H A Dvirtio_block.c297 reg = htobe32(VIRTIO_MMIO_INT_VRING); in vtblk_notify()
373 reg = htobe32(VIRTIO_ID_BLOCK); in backend_info()
377 reg = htobe32(NUM_DESCS); in backend_info()
381 reg = htobe32(VIRTIO_RING_F_INDIRECT_DESC in backend_info()
389 cfg->seg_max = htobe32(VTBLK_MAXSEGS); in backend_info()
390 cfg->blk_size = htobe32(DEV_BSIZE); in backend_info()
418 pending = htobe32(reg); in vtblk_intr()

1234567