BSWAP_16
#define BSWAP_32(x) ((BSWAP_16(x) << 16) | BSWAP_16((x) >> 16))
lo = (uint32_t)((inendian) ? u16s[u16l] : BSWAP_16(u16s[u16l]));
lo = (uint32_t)((inendian) ? u16s[u16l] : BSWAP_16(u16s[u16l]));
u16s[u16l++] = BSWAP_16(((uint16_t)hi));
u16s[u16l++] = BSWAP_16(((uint16_t)lo));
BSWAP_16(((uint16_t)hi));
u16s[u16l++] = BSWAP_16(((uint16_t)hi));
u16s[u16l++] = BSWAP_16(((uint16_t)lo));
BSWAP_16(((uint16_t)hi));
#define BSWAP_32(x) ((BSWAP_16(x) << 16) | BSWAP_16((x) >> 16))
#define __TO_TOL(mtol) (uint16_t)(BSWAP_16(mtol) & 0x3f)
#define __TO_M(mtol) (int16_t)(tos32((((BSWAP_16(mtol) & 0xff00) >> 8) | \
((BSWAP_16(mtol) & 0xc0) << 2)), 10))
ecur->offset = BSWAP_16(ecur->offset);
tok->tok_len = BSWAP_16(tok->tok_len);
BSWAP_16(tok->tok_len));
buf[i] = BSWAP_16(buf[i]);
dnp->dn_datablkszsec = BSWAP_16(dnp->dn_datablkszsec);
dnp->dn_bonuslen = BSWAP_16(dnp->dn_bonuslen);
sa_hdr_phys->sa_layout_info = BSWAP_16(sa_hdr_phys->sa_layout_info);
BSWAP_16(sa_hdr_phys->sa_lengths[i]);
buf->l_hdr.lh_nfree = BSWAP_16(buf->l_hdr.lh_nfree);
buf->l_hdr.lh_nentries = BSWAP_16(buf->l_hdr.lh_nentries);
buf->l_hdr.lh_prefix_len = BSWAP_16(buf->l_hdr.lh_prefix_len);
buf->l_hdr.lh_freelist = BSWAP_16(buf->l_hdr.lh_freelist);
buf->l_hash[i] = BSWAP_16(buf->l_hash[i]);
le->le_next = BSWAP_16(le->le_next);
le->le_name_chunk = BSWAP_16(le->le_name_chunk);
le->le_name_numints = BSWAP_16(le->le_name_numints);
le->le_value_chunk = BSWAP_16(le->le_value_chunk);
le->le_value_numints = BSWAP_16(le->le_value_numints);
lc->l_free.lf_next = BSWAP_16(lc->l_free.lf_next);
lc->l_array.la_next = BSWAP_16(lc->l_array.la_next);
zp->zp_acl.z_acl_version = BSWAP_16(zp->zp_acl.z_acl_version);
zp->zp_acl.z_acl_count = BSWAP_16(zp->zp_acl.z_acl_count);
ace->a_flags = BSWAP_16(ace->a_flags);
ace->a_type = BSWAP_16(ace->a_type);
zacep->z_hdr.z_flags = BSWAP_16(zacep->z_hdr.z_flags);
BSWAP_16(zacep->z_hdr.z_type);
acep->a_flags = BSWAP_16(acep->a_flags);
ace_type = acep->a_type = BSWAP_16(acep->a_type);
sa.sa_layout_info = BSWAP_16(sa.sa_layout_info);
adnp->dn_datablkszsec = BSWAP_16(adnp->dn_datablkszsec);
adnp->dn_bonuslen = BSWAP_16(adnp->dn_bonuslen);
sm->sm_ver_major = BSWAP_16(sm->sm_ver_major);
sm->sm_ver_minor = BSWAP_16(sm->sm_ver_minor);
sm->sm_ver_subminor = BSWAP_16(sm->sm_ver_subminor);
sm->sms_id = BSWAP_16(sm->sms_id);
sli->sli_blocksize = BSWAP_16(sli->sli_blocksize);
key->pgr_key_lpt_len = BSWAP_16(key->pgr_key_lpt_len);
key->pgr_key_rpt_len = BSWAP_16(key->pgr_key_rpt_len);
#define IXGBE_CPU_TO_LE16 BSWAP_16
#define IXGBE_LE16_TO_CPU BSWAP_16
#define IXGBE_CPU_TO_BE16 BSWAP_16
#define OSAL_CPU_TO_LE16(val) BSWAP_16(val)
#define OSAL_LE16_TO_CPU(val) BSWAP_16(val)
#define htobes(x) BSWAP_16(x)
#define betohs(x) BSWAP_16(x)
#define letohs(x) BSWAP_16(x)
#define htoles(x) BSWAP_16(x)
#define LE_16(x) BSWAP_16(x)
#define BE_16(x) BSWAP_16(x)
#define cpu_to_le16(x) BSWAP_16(x)
#define mdtoh16(x) BSWAP_16((uint16_t)(x))
#define htomd16(x) BSWAP_16((uint16_t)(x))