Symbol: be16toh
lib/libbluetooth/sdp_session.c
236
pdu.tid = be16toh(pdu.tid);
lib/libbluetooth/sdp_session.c
237
pdu.len = be16toh(pdu.len);
lib/libc/citrus/citrus_db.c
235
*rval = be16toh(val);
lib/libc/citrus/modules/citrus_mapper_std.c
120
conv = be16toh(_region_peek16(&rc->rc_table, idx*2));
lib/libc/net/getservbyport_r.c
69
port = be16toh(port);
sbin/mount_qemufwcfg/fwcfg.c
211
be32toh(f.size), be16toh(f.select));
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
149
dprintf(("%04x sections, offset %08x\n", be16toh(eh->e_shnum),
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
151
if (be16toh(eh->e_type) != ET_REL)
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
153
argv[0], be16toh(eh->e_type));
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
154
if (be16toh(eh->e_machine) != EM_68K)
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
156
be16toh(eh->e_machine));
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
162
be32toh(sh[be16toh(eh->e_shstrndx)].sh_offset));
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
167
for (i = 0; i < be16toh(eh->e_shnum); ++i) {
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
254
sect_offset = malloc(be16toh(eh->e_shnum) * sizeof(uint32_t));
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
255
for (i = 0, l = 0; i < be16toh(eh->e_shnum); ++i) {
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
308
for (i = 0; i < be16toh(eh->e_shnum); ++i) {
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
319
for (n = 0; n < be16toh(eh->e_shnum); ++n) {
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
485
if (be16toh(s->st_shndx) < 0xf000)
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
486
value += o[be16toh(s->st_shndx)];
sys/arch/amiga/stand/bootblock/elf2bb/elf2bb.c
488
printf("eval: %x\n", be16toh(s->st_shndx));
sys/arch/evbarm/mpcsa/mpcsa_leds.c
253
pins = be16toh(sc->sc_pinstate);
sys/arch/macppc/dev/lmu.c
288
sc->sc_lux[i] = be16toh(buf[i]);
sys/arch/macppc/stand/fixcoff/fixcoff.c
155
i = be16toh(*(uint16_t *)fh.f_magic);
sys/arch/macppc/stand/fixcoff/fixcoff.c
160
i = be16toh(*(uint16_t *)fh.f_opthdr);
sys/arch/macppc/stand/fixcoff/fixcoff.c
172
n = be16toh(*(uint16_t *)fh.f_nsect);
sys/arch/mips/mips/bus_space_alignstride_chipdep.c
119
#define CHIP_SWAP16(x) be16toh(x)
sys/arch/prep/prep/residual.c
327
printf("EC = %d\n", be16toh(res->EC));
sys/arch/prep/prep/residual.c
354
s = be16toh(vpd->EndianSwitchMethod);
sys/arch/prep/prep/residual.c
358
s = be16toh(vpd->SpreadIOMethod);
sys/arch/prep/prep/residual.c
401
printf("MaxNumCpus = %d\n", be16toh(res->MaxNumCpus));
sys/arch/prep/prep/residual.c
402
ncpus = be16toh(res->ActualNumCpus);
sys/arch/prep/stand/installboot/installboot.c
107
if (be16toh(eh.e_machine) != EM_PPC) {
sys/arch/prep/stand/installboot/installboot.c
112
for (i = 0; i < be16toh(eh.e_phnum); i++) {
sys/arch/sgimips/stand/sgivol/sgivol.c
307
printf("root part: %d\n", be16toh(volhdr->root));
sys/arch/sgimips/stand/sgivol/sgivol.c
308
printf("swap part: %d\n", be16toh(volhdr->swap));
sys/dev/ata/ata_raid_adaptec.c
137
(be16toh(info->configs[0].stripe_sectors) >> 1);
sys/dev/ata/ata_raid_adaptec.c
138
aai->aai_width = be16toh(info->configs[0].total_disks);
sys/dev/ata/ata_raid_adaptec.c
144
aai->aai_width = be16toh(info->configs[0].total_disks)
sys/dev/ata/ata_raid_adaptec.c
157
aai->aai_ndisks = be16toh(info->configs[0].total_disks);
sys/dev/bluetooth/bcsp.c
831
if (be16toh(crc0) != bcsp_crc_reverse(crc)) {
sys/dev/bluetooth/bth5.c
875
if (be16toh(crc0) != bth5_crc_reverse(crc)) {
sys/dev/dkwedge/dkwedge_apple.c
52
#define SWAP16(x) ap->x = be16toh(ap->x)
sys/dev/i2c/adadc.c
271
rdata = be16toh(rdata) >> 6;
sys/dev/i2c/dstemp.c
180
((uint64_t)(be16toh(data) >> 4) * 62500) +
sys/dev/i2c/mcp980x.c
159
return be16toh(rv);
sys/dev/i2c/sdtemp.c
533
*valp = be16toh(*valp);
sys/dev/ic/aic79xx_osm.h
170
#define ahd_be16toh(x) be16toh(x)
sys/dev/ic/aic7xxx_osm.h
185
#define ahc_be16toh(x) be16toh(x)
sys/dev/ic/apple_smc.c
549
*p = be16toh(be);
sys/dev/ic/bwi.c
2238
iv_ofs = be16toh(iv->iv_ofs);
sys/dev/ic/bwi.c
2271
val16 = be16toh(iv->iv_val.val16);
sys/dev/ic/dp83932var.h
364
return (be16toh(val));
sys/dev/ic/dpt.c
349
uimin(be16toh(*(int16_t *)ec->ec_queuedepth), DPT_MAX_CCBS);
sys/dev/ic/i82557.c
1409
vlan_set_tag(m, be16toh(rfa->vlan_id));
sys/dev/ic/tpm.c
208
if (be16toh(response.tag) != TPM_TAG_RSP_COMMAND ||
sys/dev/ic/tpm.c
214
be16toh(response.tag),
sys/dev/ic/tpm.c
307
if (be16toh(response.tag) != TPM2_ST_NO_SESSIONS ||
sys/dev/ic/tpm.c
312
be16toh(response.tag),
sys/dev/ic/tpm.c
552
tag = be16toh(response.hdr.tag);
sys/dev/ic/tpm.c
692
tag = be16toh(response.hdr.tag);
sys/dev/ic/tpm.c
735
nbytes = be16toh(response.randomBytesSize);
sys/dev/isa/dpt_isa.c
310
if (be16toh(*(int16_t *)ec->ec_queuedepth) > DPT_ISA_MAXCCBS)
sys/dev/pci/if_mcx.c
4641
mtu = uimin(mtu, be16toh(pmtu.rp_max_mtu));
sys/dev/pci/if_mcx.c
5606
sc->sc_flow_counter_id[i] = be16toh(out->cmd_flow_counter_id);
sys/dev/pci/if_mcx.c
6837
slot = be16toh(cqe->cq_wqe_count) % (1 << MCX_LOG_SQ_SIZE);
sys/dev/pci/if_mcx.c
6943
slot = be16toh(cqe->cq_wqe_count) % (1 << MCX_LOG_RQ_SIZE);
sys/dev/pci/weasel_pci.c
253
sc->sc_wdog_period = be16toh(cfg.wdt_msec) / 1000;
sys/dev/scsipi/cd.c
1130
toc->header.len = be16toh(toc->header.len);
sys/dev/scsipi/cd.c
1196
th->len = be16toh(th->len);
sys/dev/scsipi/cd.c
1293
toc.header.len = be16toh(toc.header.len);
sys/dev/spi/tmp121.c
155
sreg = (int16_t)be16toh(reg);
sys/dev/usb/if_athn_usb.c
2037
cmd_id = be16toh(wmi->cmd_id);
sys/dev/usb/if_athn_usb.c
2140
msg_id = be16toh(msg->msg_id);
sys/dev/usb/if_athn_usb.c
2257
datalen = be16toh(rs->rs_datalen);
sys/dev/usb/if_smsc.c
968
be16toh(eh->ether_type), pktlen, 0, 0);
sys/dev/usb/if_smsc.c
969
if (be16toh(eh->ether_type) == ETHERTYPE_IP &&
sys/fs/efs/efs_subr.c
139
cgisize = be16toh(sbp->sb_cgisize);
sys/fs/efs/efs_subr.c
207
ei->ei_mode = be16toh(ei->ei_di.di_mode); /*same as nbsd*/
sys/fs/efs/efs_subr.c
208
ei->ei_nlink = be16toh(ei->ei_di.di_nlink);
sys/fs/efs/efs_subr.c
209
ei->ei_uid = be16toh(ei->ei_di.di_uid);
sys/fs/efs/efs_subr.c
210
ei->ei_gid = be16toh(ei->ei_di.di_gid);
sys/fs/efs/efs_subr.c
216
ei->ei_numextents = be16toh(ei->ei_di.di_numextents);
sys/fs/efs/efs_subr.c
247
s += (ei->ei_mode != be16toh(ei->ei_di.di_mode));
sys/fs/efs/efs_subr.c
248
s += (ei->ei_nlink != be16toh(ei->ei_di.di_nlink));
sys/fs/efs/efs_subr.c
249
s += (ei->ei_uid != be16toh(ei->ei_di.di_uid));
sys/fs/efs/efs_subr.c
250
s += (ei->ei_gid != be16toh(ei->ei_di.di_gid));
sys/fs/efs/efs_subr.c
256
s += (ei->ei_numextents != be16toh(ei->ei_di.di_numextents));
sys/fs/efs/efs_subr.c
73
cksum ^= be16toh(v);
sys/fs/efs/efs_vfsops.c
100
if (be16toh(emp->em_sb.sb_dirty) != EFS_SB_CLEAN) {
sys/fs/efs/efs_vfsops.c
102
"run fsck_efs(8)\n", be16toh(emp->em_sb.sb_dirty));
sys/fs/efs/efs_vfsops.c
329
sbp->f_ffree = be16toh(emp->em_sb.sb_cgisize) *
sys/fs/efs/efs_vfsops.c
330
be16toh(emp->em_sb.sb_ncg) *
sys/fs/efs/efs_vnops.c
211
if (be16toh(eip->ei_di.di_odev) != EFS_DINODE_ODEV_INVALID) {
sys/fs/efs/efs_vnops.c
212
dmaj = EFS_DINODE_ODEV_MAJ(be16toh(eip->ei_di.di_odev));
sys/fs/efs/efs_vnops.c
213
dmin = EFS_DINODE_ODEV_MIN(be16toh(eip->ei_di.di_odev));
sys/fs/efs/efs_vnops.c
344
if (be16toh(db->db_magic) != EFS_DIRBLK_MAGIC) {
sys/fs/efs/efs_vnops.c
393
switch (be16toh(edi.di_mode) & EFS_IFMT) {
sys/fs/hfs/hfs_subr.c
377
return be16toh(result);
sys/fs/hfs/libhfs.c
1485
free_space_offset = be16toh(*(uint16_t*)((uint8_t*)in_bytes + nodesize -
sys/fs/hfs/libhfs.c
201
if (be16toh(*((uint16_t *)buffer)) == HFS_SIG_HFS) {
sys/fs/hfs/libhfs.c
461
uchar = be16toh(0x2F);
sys/net/agr/ieee8023ad_lacp_debug.c
168
printf("maxdelay=%d\n", be16toh(du->ldu_collector.lci_maxdelay));
sys/net/agr/ieee8023ad_lacp_debug.c
71
be16toh(sysid->lsi_prio),
sys/net/agr/ieee8023ad_lacp_debug.c
82
be16toh(portid->lpi_prio),
sys/net/agr/ieee8023ad_lacp_debug.c
83
be16toh(portid->lpi_portno));
sys/net/agr/ieee8023ad_lacp_debug.c
96
be16toh(peer->lip_key),
sys/ufs/ffs/ffs_appleufs.c
98
n->ul_namelen = be16toh(o->ul_namelen);
tools/compat/compat_defs.h
1165
#if !HAVE_DECL_BE16TOH && !defined(be16toh)
usr.sbin/installboot/arch/hp300.c
200
be16toh(label->d_npartitions) > MAXMAXPARTITIONS) {
usr.sbin/installboot/arch/hp300.c
205
i = be16toh(label->d_npartitions);
usr.sbin/installboot/arch/hppa.c
170
npart = be16toh(label.l.d_npartitions);
usr.sbin/installboot/arch/next68k.c
126
be16toh(*checksum)) {
usr.sbin/installboot/arch/next68k.c
161
if (bootsize > be16toh(next68klabel->cd_front) * cd_secsize -
usr.sbin/installboot/arch/next68k.c
167
fp = be16toh(next68klabel->cd_front);
usr.sbin/installboot/arch/next68k.c
72
sum += be16toh(*buf++);
usr.sbin/installboot/sum.c
102
be16toh(bb16[SUNSUM_OFFSET]));
usr.sbin/installboot/sum.c
103
printf("Recalculated Sun checksum: 0x%04x\n", be16toh(sum));
usr.sbin/sdpd/server.c
464
srv->pdu.len = be16toh(srv->pdu.len);