be16toh
pdu.tid = be16toh(pdu.tid);
pdu.len = be16toh(pdu.len);
*rval = be16toh(val);
conv = be16toh(_region_peek16(&rc->rc_table, idx*2));
port = be16toh(port);
be32toh(f.size), be16toh(f.select));
dprintf(("%04x sections, offset %08x\n", be16toh(eh->e_shnum),
if (be16toh(eh->e_type) != ET_REL)
argv[0], be16toh(eh->e_type));
if (be16toh(eh->e_machine) != EM_68K)
be16toh(eh->e_machine));
be32toh(sh[be16toh(eh->e_shstrndx)].sh_offset));
for (i = 0; i < be16toh(eh->e_shnum); ++i) {
sect_offset = malloc(be16toh(eh->e_shnum) * sizeof(uint32_t));
for (i = 0, l = 0; i < be16toh(eh->e_shnum); ++i) {
for (i = 0; i < be16toh(eh->e_shnum); ++i) {
for (n = 0; n < be16toh(eh->e_shnum); ++n) {
if (be16toh(s->st_shndx) < 0xf000)
value += o[be16toh(s->st_shndx)];
printf("eval: %x\n", be16toh(s->st_shndx));
pins = be16toh(sc->sc_pinstate);
sc->sc_lux[i] = be16toh(buf[i]);
i = be16toh(*(uint16_t *)fh.f_magic);
i = be16toh(*(uint16_t *)fh.f_opthdr);
n = be16toh(*(uint16_t *)fh.f_nsect);
#define CHIP_SWAP16(x) be16toh(x)
printf("EC = %d\n", be16toh(res->EC));
s = be16toh(vpd->EndianSwitchMethod);
s = be16toh(vpd->SpreadIOMethod);
printf("MaxNumCpus = %d\n", be16toh(res->MaxNumCpus));
ncpus = be16toh(res->ActualNumCpus);
if (be16toh(eh.e_machine) != EM_PPC) {
for (i = 0; i < be16toh(eh.e_phnum); i++) {
printf("root part: %d\n", be16toh(volhdr->root));
printf("swap part: %d\n", be16toh(volhdr->swap));
(be16toh(info->configs[0].stripe_sectors) >> 1);
aai->aai_width = be16toh(info->configs[0].total_disks);
aai->aai_width = be16toh(info->configs[0].total_disks)
aai->aai_ndisks = be16toh(info->configs[0].total_disks);
if (be16toh(crc0) != bcsp_crc_reverse(crc)) {
if (be16toh(crc0) != bth5_crc_reverse(crc)) {
#define SWAP16(x) ap->x = be16toh(ap->x)
rdata = be16toh(rdata) >> 6;
((uint64_t)(be16toh(data) >> 4) * 62500) +
return be16toh(rv);
*valp = be16toh(*valp);
#define ahd_be16toh(x) be16toh(x)
#define ahc_be16toh(x) be16toh(x)
*p = be16toh(be);
iv_ofs = be16toh(iv->iv_ofs);
val16 = be16toh(iv->iv_val.val16);
return (be16toh(val));
uimin(be16toh(*(int16_t *)ec->ec_queuedepth), DPT_MAX_CCBS);
vlan_set_tag(m, be16toh(rfa->vlan_id));
if (be16toh(response.tag) != TPM_TAG_RSP_COMMAND ||
be16toh(response.tag),
if (be16toh(response.tag) != TPM2_ST_NO_SESSIONS ||
be16toh(response.tag),
tag = be16toh(response.hdr.tag);
tag = be16toh(response.hdr.tag);
nbytes = be16toh(response.randomBytesSize);
if (be16toh(*(int16_t *)ec->ec_queuedepth) > DPT_ISA_MAXCCBS)
mtu = uimin(mtu, be16toh(pmtu.rp_max_mtu));
sc->sc_flow_counter_id[i] = be16toh(out->cmd_flow_counter_id);
slot = be16toh(cqe->cq_wqe_count) % (1 << MCX_LOG_SQ_SIZE);
slot = be16toh(cqe->cq_wqe_count) % (1 << MCX_LOG_RQ_SIZE);
sc->sc_wdog_period = be16toh(cfg.wdt_msec) / 1000;
toc->header.len = be16toh(toc->header.len);
th->len = be16toh(th->len);
toc.header.len = be16toh(toc.header.len);
sreg = (int16_t)be16toh(reg);
cmd_id = be16toh(wmi->cmd_id);
msg_id = be16toh(msg->msg_id);
datalen = be16toh(rs->rs_datalen);
be16toh(eh->ether_type), pktlen, 0, 0);
if (be16toh(eh->ether_type) == ETHERTYPE_IP &&
cgisize = be16toh(sbp->sb_cgisize);
ei->ei_mode = be16toh(ei->ei_di.di_mode); /*same as nbsd*/
ei->ei_nlink = be16toh(ei->ei_di.di_nlink);
ei->ei_uid = be16toh(ei->ei_di.di_uid);
ei->ei_gid = be16toh(ei->ei_di.di_gid);
ei->ei_numextents = be16toh(ei->ei_di.di_numextents);
s += (ei->ei_mode != be16toh(ei->ei_di.di_mode));
s += (ei->ei_nlink != be16toh(ei->ei_di.di_nlink));
s += (ei->ei_uid != be16toh(ei->ei_di.di_uid));
s += (ei->ei_gid != be16toh(ei->ei_di.di_gid));
s += (ei->ei_numextents != be16toh(ei->ei_di.di_numextents));
cksum ^= be16toh(v);
if (be16toh(emp->em_sb.sb_dirty) != EFS_SB_CLEAN) {
"run fsck_efs(8)\n", be16toh(emp->em_sb.sb_dirty));
sbp->f_ffree = be16toh(emp->em_sb.sb_cgisize) *
be16toh(emp->em_sb.sb_ncg) *
if (be16toh(eip->ei_di.di_odev) != EFS_DINODE_ODEV_INVALID) {
dmaj = EFS_DINODE_ODEV_MAJ(be16toh(eip->ei_di.di_odev));
dmin = EFS_DINODE_ODEV_MIN(be16toh(eip->ei_di.di_odev));
if (be16toh(db->db_magic) != EFS_DIRBLK_MAGIC) {
switch (be16toh(edi.di_mode) & EFS_IFMT) {
return be16toh(result);
free_space_offset = be16toh(*(uint16_t*)((uint8_t*)in_bytes + nodesize -
if (be16toh(*((uint16_t *)buffer)) == HFS_SIG_HFS) {
uchar = be16toh(0x2F);
printf("maxdelay=%d\n", be16toh(du->ldu_collector.lci_maxdelay));
be16toh(sysid->lsi_prio),
be16toh(portid->lpi_prio),
be16toh(portid->lpi_portno));
be16toh(peer->lip_key),
n->ul_namelen = be16toh(o->ul_namelen);
#if !HAVE_DECL_BE16TOH && !defined(be16toh)
be16toh(label->d_npartitions) > MAXMAXPARTITIONS) {
i = be16toh(label->d_npartitions);
npart = be16toh(label.l.d_npartitions);
be16toh(*checksum)) {
if (bootsize > be16toh(next68klabel->cd_front) * cd_secsize -
fp = be16toh(next68klabel->cd_front);
sum += be16toh(*buf++);
be16toh(bb16[SUNSUM_OFFSET]));
printf("Recalculated Sun checksum: 0x%04x\n", be16toh(sum));
srv->pdu.len = be16toh(srv->pdu.len);