crypto/openssl/include/openssl/byteorder.h
47
#define OSSL_BE16TOH(x) be16toh(x)
crypto/openssl/include/openssl/byteorder.h
67
#define OSSL_BE16TOH(x) be16toh(x)
lib/libc/gen/getutxent.c
122
len = be16toh(len);
lib/libc/iconv/citrus_db.c
228
*rval = be16toh(val);
lib/libiconv_modules/mapper_std/citrus_mapper_std.c
113
conv = be16toh(_region_peek16(&rc->rc_table, idx*2));
lib/libkvm/kvm_powerpc.c
121
mapsz = be16toh(vm->eh->e_phentsize) * be16toh(vm->eh->e_phnum) +
lib/libkvm/kvm_powerpc.c
154
nph = be16toh(vm->eh->e_phnum);
lib/libkvm/kvm_powerpc.c
158
ph = (void *)((uintptr_t)ph + be16toh(vm->eh->e_phentsize));
lib/libkvm/kvm_powerpc.c
66
if (be16toh(eh->e_type) != ET_CORE)
lib/libkvm/kvm_powerpc.c
68
if (be16toh(eh->e_machine) != EM_PPC)
lib/libkvm/kvm_private.h
140
return (be16toh(val));
sbin/ggate/shared/ggate.h
129
ver->gv_version = be16toh(ver->gv_version);
sbin/ggate/shared/ggate.h
130
ver->gv_error = be16toh(ver->gv_error);
sbin/ggate/shared/ggate.h
146
cinit->gc_nconn = be16toh(cinit->gc_nconn);
sbin/ggate/shared/ggate.h
166
sinit->gs_error = be16toh(sinit->gs_error);
sbin/ggate/shared/ggate.h
187
hdr->gh_error = be16toh(hdr->gh_error);
stand/common/gfx_fb.c
2392
mp[i].vfm_dst = be16toh(mp[i].vfm_dst);
stand/common/gfx_fb.c
2393
mp[i].vfm_len = be16toh(mp[i].vfm_len);
sys/cam/ata/ata_all.c
764
*ptr = be16toh(*ptr);
sys/compat/linuxkpi/common/include/asm/byteorder.h
64
#define __be16_to_cpu(x) be16toh(x)
sys/compat/linuxkpi/common/include/asm/byteorder.h
89
#define __be16_to_cpup(x) be16toh(*((const uint16_t *)(x)))
sys/compat/linuxkpi/common/include/linux/io.h
325
v = (be16toh(__raw_readw(addr)));
sys/dev/aic7xxx/aic_osm_lib.h
77
#define aic_be16toh(x) be16toh(x)
sys/dev/axgbe/xgbe_osdep.h
51
#define cpu_to_be16(x) be16toh(x)
sys/dev/bce/if_bcereg.h
571
#define bce_be16toh(x) be16toh(x)
sys/dev/bwi/bwimac.c
1166
iv_ofs = be16toh(iv->iv_ofs);
sys/dev/bwi/bwimac.c
1199
val16 = be16toh(iv->iv_val.val16);
sys/dev/bwn/if_bwn.c
4512
offset = be16toh(iv->offset_size);
sys/dev/bwn/if_bwn.c
4527
BWN_WRITE_2(mac, offset, be16toh(iv->data.d16));
sys/dev/cxgb/cxgb_sge.c
3141
rspd->rss_hdr.hash_type, be16toh(rspd->rss_hdr.cq_idx));
sys/dev/cxgbe/crypto/t7_kern_tls.c
1071
__func__, be16toh(len[0]), be16toh(len[1]), be16toh(len[2]),
sys/dev/cxgbe/crypto/t7_kern_tls.c
1072
be16toh(len[3]));
sys/dev/cxgbe/cxgbei/cxgbei.c
201
uint16_t len_ddp = be16toh(cpl->pdu_len_ddp);
sys/dev/cxgbe/cxgbei/cxgbei.c
202
uint16_t len = be16toh(cpl->len);
sys/dev/cxgbe/cxgbei/cxgbei.c
240
MPASS(m->m_pkthdr.len == be16toh(cpl->len) + sizeof(*cpl));
sys/dev/cxgbe/cxgbei/cxgbei.c
277
be16toh(cpl->len), icp);
sys/dev/cxgbe/cxgbei/cxgbei.c
468
pdu_len = be16toh(cpl->len); /* includes everything. */
sys/dev/cxgbe/cxgbei/cxgbei.c
592
uint16_t len = be16toh(cpl->len);
sys/dev/cxgbe/cxgbei/cxgbei.c
621
pdu_len = G_ISCSI_PDU_LEN(be16toh(cpl->pdu_len_ddp));
sys/dev/cxgbe/nvmf/nvmf_che.c
2051
KASSERT(len == be16toh(cpl->length),
sys/dev/cxgbe/nvmf/nvmf_che.c
2106
KASSERT(hlen == be16toh(cpl->length),
sys/dev/cxgbe/osdep.h
104
#define be16_to_cpu(x) be16toh(x)
sys/dev/cxgbe/t4_netmap.c
1082
hw_cidx = be16toh(hw_cidx);
sys/dev/cxgbe/t4_netmap.c
355
nm_rxq->iq_cntxt_id = be16toh(c.iqid);
sys/dev/cxgbe/t4_netmap.c
356
nm_rxq->iq_abs_id = be16toh(c.physiqid);
sys/dev/cxgbe/t4_netmap.c
364
nm_rxq->fl_cntxt_id = be16toh(c.fl0id);
sys/dev/cxgbe/t4_sge.c
2008
const uint16_t ev = be16toh(cpl->err_vec);
sys/dev/cxgbe/t4_sge.c
2014
err_vec = be16toh(cpl->err_vec);
sys/dev/cxgbe/t4_sge.c
2025
m0->m_pkthdr.csum_data = be16toh(cpl->csum);
sys/dev/cxgbe/t4_sge.c
2084
MPASS(be16toh(cpl->vlan) == sc->vlan_id);
sys/dev/cxgbe/t4_sge.c
2086
m0->m_pkthdr.ether_vtag = be16toh(cpl->vlan);
sys/dev/cxgbe/t4_sge.c
3676
iq->cntxt_id = be16toh(c.iqid);
sys/dev/cxgbe/t4_sge.c
3677
iq->abs_id = be16toh(c.physiqid);
sys/dev/cxgbe/t4_sge.c
3695
fl->cntxt_id = be16toh(c.fl0id);
sys/dev/cxgbe/t4_sge.c
5886
if (txp->ethtype == be16toh(ETHERTYPE_VLAN))
sys/dev/cxgbe/t4_sge.c
6405
return (be16toh(cidx));
sys/dev/cxgbe/t4_sge.c
6644
be16toh(e->u.wr.cidx),
sys/dev/cxgbe/t4_sge.c
6645
G_FW_ERROR_CMD_PFN(be16toh(e->u.wr.pfn_vfn)),
sys/dev/cxgbe/t4_sge.c
6646
G_FW_ERROR_CMD_VFN(be16toh(e->u.wr.pfn_vfn)),
sys/dev/cxgbe/t4_sge.c
6655
be16toh(e->u.acl.cidx),
sys/dev/cxgbe/t4_sge.c
6656
G_FW_ERROR_CMD_PFN(be16toh(e->u.acl.pfn_vfn)),
sys/dev/cxgbe/t4_sge.c
6657
G_FW_ERROR_CMD_VFN(be16toh(e->u.acl.pfn_vfn)),
sys/dev/cxgbe/t4_sge.c
6659
G_FW_ERROR_CMD_MV(be16toh(e->u.acl.mv_pkd)) ? "vlanid" :
sys/dev/cxgbe/tom/t4_cpl_io.c
364
uint16_t tcpopt = be16toh(opt);
sys/dev/cxgbe/tom/t4_ddp.c
1200
handle_ddp_data(toep, cpl->u.ddp_report, cpl->seq, be16toh(cpl->len));
sys/dev/cxgbe/tom/t4_listen.c
1143
to->to_mss = be16toh(t4opt->mss);
sys/dev/cxgbe/tom/t4_listen.c
1369
l2info = be16toh(cpl->l2info);
sys/dev/cxgbe/tom/t4_listen.c
1415
vid = EVL_VLANOFTAG(be16toh(cpl->vlan));
sys/dev/cxgbe/tom/t4_listen.c
1593
uint16_t tcp_opt = be16toh(cpl->tcp_opt);
sys/dev/cxgbe/tom/t4_tls.c
1096
if (be16toh(hdr->version) != tls_ofld->rx_version) {
sys/dev/cxgbe/tom/t4_tls.c
1098
__func__, toep->tid, be16toh(hdr->version));
sys/dev/cxgbe/tom/t4_tls.c
1102
if (be16toh(hdr->length) < sizeof(*hdr)) {
sys/dev/cxgbe/tom/t4_tls.c
1104
__func__, toep->tid, be16toh(hdr->length));
sys/dev/cxgbe/tom/t4_tls.c
1110
if (len < be16toh(hdr->length)) {
sys/dev/cxgbe/tom/t4_tls.c
1112
__func__, toep->tid, len, be16toh(hdr->length));
sys/dev/cxgbe/tom/t4_tls.c
1137
__func__, toep->tid, hdr->type, be16toh(hdr->length));
sys/dev/cxgbe/tom/t4_tls.c
926
if (tls_data->m_pkthdr.len > be16toh(tls_hdr_pkt->length))
sys/dev/cxgbe/tom/t4_tls.c
927
tls_data->m_pkthdr.len = be16toh(tls_hdr_pkt->length);
sys/dev/cxgbe/tom/t4_tls.c
989
tgr->tls_vmajor = be16toh(tls_hdr_pkt->version) >> 8;
sys/dev/cxgbe/tom/t4_tls.c
990
tgr->tls_vminor = be16toh(tls_hdr_pkt->version) & 0xff;
sys/dev/dc/if_dc.c
612
*ptr = be16toh(word);
sys/dev/drm2/drm_os_freebsd.h
50
#define be16_to_cpu(x) be16toh(x)
sys/dev/e1000/igb_txrx.c
499
ri->iri_vtag = be16toh(rxd->wb.upper.vlan);
sys/dev/gve/gve_adminq.c
145
be16toh((*dev_op_modify_ring)->min_ring_size.rx),
sys/dev/gve/gve_adminq.c
148
be16toh((*dev_op_modify_ring)->min_ring_size.tx),
sys/dev/gve/gve_adminq.c
190
char *desc_end = (char *)descriptor + be16toh(descriptor->total_length);
sys/dev/gve/gve_adminq.c
191
const int num_options = be16toh(descriptor->num_device_options);
sys/dev/gve/gve_adminq.c
199
(char *)(dev_opt + 1) + be16toh(dev_opt->option_length) > desc_end) {
sys/dev/gve/gve_adminq.c
211
dev_opt = (void *)((char *)(dev_opt + 1) + be16toh(dev_opt->option_length));
sys/dev/gve/gve_adminq.c
435
priv->max_rx_desc_cnt = be16toh(dev_op_modify_ring->max_ring_size.rx);
sys/dev/gve/gve_adminq.c
436
priv->max_tx_desc_cnt = be16toh(dev_op_modify_ring->max_ring_size.tx);
sys/dev/gve/gve_adminq.c
443
be16toh(dev_op_jumbo_frames->max_mtu));
sys/dev/gve/gve_adminq.c
444
priv->max_mtu = be16toh(dev_op_jumbo_frames->max_mtu);
sys/dev/gve/gve_adminq.c
532
priv->num_event_counters = be16toh(desc->counters);
sys/dev/gve/gve_adminq.c
533
priv->default_num_queues = be16toh(desc->default_num_queues);
sys/dev/gve/gve_adminq.c
534
priv->tx_desc_cnt = be16toh(desc->tx_queue_entries);
sys/dev/gve/gve_adminq.c
535
priv->rx_desc_cnt = be16toh(desc->rx_queue_entries);
sys/dev/gve/gve_adminq.c
536
priv->rx_pages_per_qpl = be16toh(desc->rx_pages_per_qpl);
sys/dev/gve/gve_adminq.c
538
priv->max_mtu = be16toh(desc->mtu);
sys/dev/gve/gve_adminq.c
539
priv->default_num_queues = be16toh(desc->default_num_queues);
sys/dev/gve/gve_adminq.c
66
uint16_t option_length = be16toh(option->option_length);
sys/dev/gve/gve_adminq.c
67
uint16_t option_id = be16toh(option->option_id);
sys/dev/gve/gve_desc.h
134
#define GVE_SEQNO(x) (be16toh(x) & 0x7)
sys/dev/gve/gve_rx.c
563
len = be16toh(desc->len) - page_info->pad;
sys/dev/hid/ietp.c
533
sc->ic_type = pattern >= 0x01 ? be16toh(buf) : buf8[1];
sys/dev/jedec_dimm/jedec_dimm.c
1061
*val = be16toh(*val);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
1055
sqcc_this = be16toh(cqe->wqe_counter);
sys/dev/mpr/mpr_sas.c
1744
ndesc = be16toh(plist->unmap_blk_desc_data_len) >> 4;
sys/dev/netmap/netmap_freebsd.c
225
cur_sum += be16toh(words[i]);
sys/dev/netmap/netmap_offloadings.c
131
nm_prdis("TCP/UDP csum %x", be16toh(*check));
sys/dev/netmap/netmap_offloadings.c
286
ethertype = be16toh(*((uint16_t *)
sys/dev/netmap/netmap_offloadings.c
84
nm_prdis("ip total length %u", be16toh(ip->tot_len));
sys/dev/netmap/netmap_offloadings.c
87
iph->id = htobe16(be16toh(iph->id) + idx);
sys/dev/netmap/netmap_offloadings.c
88
nm_prdis("ip identification %u", be16toh(iph->id));
sys/dev/netmap/netmap_offloadings.c
93
nm_prdis("IP csum %x", be16toh(iph->check));
sys/dev/ocs_fc/ocs_cam.c
625
be16toh(io->init_task_tag));
sys/dev/ocs_fc/ocs_cam.c
714
be16toh(tmfio->init_task_tag));
sys/dev/ocs_fc/ocs_os.h
267
#define ocs_be16toh(v) be16toh(v)
sys/dev/qat/qat_api/qat_utils/include/qat_utils.h
145
#define QAT_UTILS_OS_NW_TO_HOST_16(uData) be16toh(uData)
sys/dev/qlnx/qlnxe/bcm_osal.h
127
#define OSAL_BE16_TO_CPU(val) be16toh(val)
sys/dev/qlxgb/qla_os.h
130
#define qla_be16_to_host(x) be16toh(x)
sys/dev/qlxgbe/ql_os.h
140
#define qla_be16_to_host(x) be16toh(x)
sys/dev/qlxge/qls_os.h
132
#define qla_be16_to_host(x) be16toh(x)
sys/dev/ufshci/ufshci_dev.c
517
ver = be16toh(device->dev_desc.wSpecVersion);
sys/dev/ufshci/ufshci_sim.c
42
sense_data_len = be16toh(
sys/dev/usb/controller/ehci.h
413
return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? be16toh(v) : le16toh(v);
sys/dev/usb/misc/cp2112.c
1272
be16toh(i2c_cfg.write_timeout));
sys/dev/usb/misc/cp2112.c
1274
be16toh(i2c_cfg.read_timeout));
sys/dev/usb/misc/cp2112.c
1278
be16toh(i2c_cfg.retry_count));
sys/dev/usb/misc/cp2112.c
962
uint16_t, be16toh(xfer_status_resp.status2),
sys/dev/usb/misc/cp2112.c
963
uint16_t, be16toh(xfer_status_resp.status3));
sys/dev/usb/net/if_smsc.c
1039
if ((be16toh(eh->ether_type) == ETHERTYPE_IP) &&
sys/dev/usb/net/if_usie.c
1103
hip->id, be16toh(hip->len), actlen, pad);
sys/dev/usb/net/if_usie.c
1117
be16toh(lsi->len));
sys/dev/usb/net/if_usie.c
1469
switch (be16toh(cns->obj)) {
sys/dev/usb/net/if_usie.c
1482
sc->sc_rssi = be16toh(*(int16_t *)(cns + 1));
sys/dev/usb/net/if_usie.c
1551
be16toh(hip->len), hip->id, hip->param);
sys/dev/usb/net/if_usie.c
1565
be16toh(cns->obj), cns->op, cns->rsv0,
sys/dev/usb/net/if_usie.c
1577
j = be16toh(hip->len);
sys/dev/usb/net/if_usie.c
850
len = be16toh(rxd->hip.len) & USIE_HIP_IP_LEN_MASK;
sys/dev/usb/net/if_usie.c
861
(be16toh(rxd->desc_type) & USIE_TYPE_MASK) != USIE_IP_RX) {
sys/dev/usb/net/if_usie.c
871
switch (be16toh(rxd->ethhdr.ether_type)) {
sys/dev/usb/wlan/if_uath.c
2509
chunklen = be16toh(chunk->length);
sys/dev/usb/wlan/if_uath.c
2614
sizeof(struct uath_chunk) + be16toh(chunk->length) -
sys/geom/label/g_label_gpt.c
60
ch = (bo == BIG_ENDIAN) ? be16toh(*str) : le16toh(*str);
sys/geom/label/g_label_gpt.c
64
c = (bo == BIG_ENDIAN) ? be16toh(*str)
sys/geom/part/g_part_gpt.c
1395
ch = (bo == BIG_ENDIAN) ? be16toh(*str) : le16toh(*str);
sys/geom/part/g_part_gpt.c
1399
c = (bo == BIG_ENDIAN) ? be16toh(*str)
sys/kern/kern_uuid.c
278
id->time.x.low, id->time.x.mid, id->time.x.hi, be16toh(id->seq),
sys/kern/kern_uuid.c
279
be16toh(id->node[0]), be16toh(id->node[1]), be16toh(id->node[2]));
sys/kern/subr_mchain.c
402
*x = be16toh(v);
sys/kern/uipc_ktls.c
2721
remain = be16toh(tgr.tls_length);
sys/powerpc/powernv/opal_pci.c
523
word = be16toh(half);
sys/powerpc/powernv/opal_pci.c
547
err_type = be16toh(err_type); /* XXX unused */
sys/powerpc/pseries/phyp_vscsi.c
916
KASSERT(be16toh(rsp->buffer_formats) & 0x3, ("Both direct and indirect "
tests/include/endian_test.c
73
#define H16(x) be16toh(x)
tests/include/endian_test.c
83
#define O16(x) be16toh(x)
tests/include/sys_endian_test.c
70
#define H16(x) be16toh(x)
tests/include/sys_endian_test.c
80
#define O16(x) be16toh(x)
tools/tools/ath/athalq/ar5210_ds.c
160
switch (be16toh(a->hdr.op)) {
tools/tools/ath/athalq/ar5210_ds.c
175
be16toh(a->hdr.op), be16toh(a->hdr.len));
tools/tools/ath/athalq/ar5211_ds.c
161
switch (be16toh(a->hdr.op)) {
tools/tools/ath/athalq/ar5211_ds.c
176
be16toh(a->hdr.op), be16toh(a->hdr.len));
tools/tools/ath/athalq/ar5212_ds.c
207
switch (be16toh(a->hdr.op)) {
tools/tools/ath/athalq/ar5212_ds.c
222
be16toh(a->hdr.op), be16toh(a->hdr.len));
tools/tools/ath/athalq/ar5416_ds.c
350
switch (be16toh(a->hdr.op)) {
tools/tools/ath/athalq/ar5416_ds.c
365
be16toh(a->hdr.op), be16toh(a->hdr.len));
tools/tools/ath/athalq/ar5416_ds_tdma.c
437
switch (be16toh(a->hdr.op)) {
tools/tools/ath/athalq/ar5416_ds_tdma.c
466
be16toh(a->hdr.op), be16toh(a->hdr.len));
tools/tools/ath/athalq/ar9300_ds.c
426
switch (be16toh(a->hdr.op)) {
tools/tools/ath/athalq/ar9300_ds.c
441
be16toh(a->hdr.op), be16toh(a->hdr.len));
tools/tools/ath/athalq/main.c
147
if (be16toh(a->hdr.len) > buflen) {
tools/tools/ath/athalq/main.c
149
argv[0], be16toh(a->hdr.len),
tools/tools/ath/athalq/main.c
154
switch (be16toh(a->hdr.op)) {
tools/tools/ath/athalq/main.c
206
be16toh(a->hdr.op),
tools/tools/ath/athalq/main.c
207
be16toh(a->hdr.len));
tools/tools/ath/athalq/main.c
213
buflen -= (be16toh(a->hdr.len)
tools/tools/ath/athalq/main.c
216
&buf[be16toh(a->hdr.len) + sizeof(struct if_ath_alq_hdr)],
tools/tools/ath/athalq/main.c
217
READBUF_SIZE - (be16toh(a->hdr.len)
tools/tools/vt/mkkfont/mkkfont.c
96
be32toh(fm.vfm_src), be16toh(fm.vfm_dst),
tools/tools/vt/mkkfont/mkkfont.c
97
be16toh(fm.vfm_len));
usr.bin/gcore/elfcore.c
144
machine = be16toh(hdr.e_machine);
usr.sbin/acpi/acpidump/acpi.c
2390
(u_int)be16toh(ctlreg->ManufacturingDate));
usr.sbin/bhyve/gdb.c
1439
val = be16toh(parse_integer(data, 4));
usr.sbin/crunch/crunchide/exec_elf32.c
86
#define xe16toh(x) ((data == ELFDATA2MSB) ? be16toh(x) : le16toh(x))
usr.sbin/vidcontrol/vidcontrol.c
394
t[i].vfm_dst = be16toh(t[i].vfm_dst);
usr.sbin/vidcontrol/vidcontrol.c
395
t[i].vfm_len = be16toh(t[i].vfm_len);