Searched refs:bswap16 (Results 1 - 25 of 33) sorted by relevance

12

/freebsd-11.0-release/contrib/ofed/include/infiniband/
H A Dbyteswap.h38 #define bswap_16 bswap16
H A Dbyteorder.h80 #define swab16 bswap16
/freebsd-11.0-release/crypto/heimdal/lib/roken/
H A Dbswap.c52 bswap16 (unsigned short val) function
/freebsd-11.0-release/contrib/netbsd-tests/include/machine/
H A Dt_bswap.c73 atf_tc_set_md_var(tc, "descr", "A naive test of bswap16(3), #1");
78 ATF_REQUIRE_EQ(bswap16(0x0000), 0x0000);
79 ATF_REQUIRE_EQ(bswap16(0xff00), 0x00ff);
80 ATF_REQUIRE_EQ(bswap16(0xffff), 0xffff);
81 ATF_REQUIRE_EQ(bswap16(0x1234), 0x3412);
87 atf_tc_set_md_var(tc, "descr", "A naive test of bswap16(3), #2");
94 ATF_REQUIRE_EQ(bswap16(unconst16(0x0000)), 0x0000);
95 ATF_REQUIRE_EQ(bswap16(unconst16(0xff00)), 0x00ff);
96 ATF_REQUIRE_EQ(bswap16(unconst16(0xffff)), 0xffff);
97 ATF_REQUIRE_EQ(bswap16(unconst1
[all...]
/freebsd-11.0-release/contrib/openbsm/compat/
H A Dendian.h48 bswap16(uint16_t int16) function
125 #define htobe16(x) bswap16((x))
132 #define be16toh(x) bswap16((x))
142 #define htole16(x) bswap16((x))
149 #define le16toh(x) bswap16((x))
/freebsd-11.0-release/sys/sys/
H A Dendian.h59 #define bswap16(x) __bswap16(x) macro
68 #define htobe16(x) bswap16((x))
75 #define be16toh(x) bswap16((x))
85 #define htole16(x) bswap16((x))
92 #define le16toh(x) bswap16((x))
/freebsd-11.0-release/usr.sbin/makefs/cd9660/
H A Dcd9660_conversion.c59 w = bswap16(w);
78 w = bswap16(w);
126 be = bswap16(dw);
130 le = bswap16(dw);
/freebsd-11.0-release/contrib/xz/src/common/
H A Dtuklib_integer.h55 # define bswap16(num) bswap_16(num) macro
72 # define bswap16(num) BSWAP_16(num) macro
105 #ifndef bswap16
106 # define bswap16(num) \ macro
142 # define conv16le(num) bswap16(num)
152 # define conv16be(num) bswap16(num)
/freebsd-11.0-release/usr.sbin/makefs/ffs/
H A Dufs_bswap.h65 return ((ns) ? bswap16(a) : (a));
H A Dffs_bswap.c129 n->di_mode = bswap16(o->di_mode);
130 n->di_nlink = bswap16(o->di_nlink);
150 n->di_mode = bswap16(o->di_mode);
151 n->di_nlink = bswap16(o->di_nlink);
211 n->cg_old_ncyl = bswap16(o->cg_old_ncyl);
212 n->cg_old_niblk = bswap16(o->cg_old_niblk);
257 n16[i] = bswap16(o16[i]);
/freebsd-11.0-release/sys/compat/linuxkpi/common/include/asm/
H A Dbyteorder.h84 #define swab16(x) bswap16(x)
/freebsd-11.0-release/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h86 #define getwle(buf,ofs) (bswap16(getwbe(buf,ofs)))
90 #define setwle(buf,ofs,val) getwbe(buf,ofs)=bswap16(val)
/freebsd-11.0-release/sys/dev/isp/
H A Disp_freebsd.h637 *(d) = (isp->isp_bustype == ISP_BT_SBUS)? s : bswap16(s)
643 *((uint16_t *)s) : bswap16(*((uint16_t *)s))
650 #define ISP_IOXPUT_16(isp, s, d) *(d) = bswap16(s)
653 #define ISP_IOXGET_16(isp, s, d) d = bswap16(*((uint16_t *)s))
656 #define ISP_SWIZZLE_NVRAM_WORD(isp, rp) *rp = bswap16(*rp)
678 #define ISP_IOZPUT_16(isp, s, d) *(d) = bswap16(s)
682 #define ISP_IOZGET_16(isp, s, d) d = bswap16(*((uint16_t *)(s)))
687 #define ISP_SWAP16(isp, s) bswap16(s)
/freebsd-11.0-release/sys/arm/xscale/ixp425/
H A Dcambria_exp_space.c181 d[i] = bswap16(v);
202 bus_space_write_2(sc->sc_iot, h, o, bswap16(d[i]));
H A Davila_ata.c431 d[i] = bswap16(v);
449 bus_space_write_2(sc->sc_iot, h, o, bswap16(d[i]));
/freebsd-11.0-release/sys/dev/cxgbe/
H A Dosdep.h94 #define swab16(x) bswap16(x)
/freebsd-11.0-release/sys/mips/nlm/
H A Dbus_space_rmi_pci.c416 return bswap16(value);
450 *addr = bswap16(*addr);
485 *(volatile u_int16_t *)(handle + offset) = bswap16(value);
520 (*(volatile u_int16_t *)(handle + offset)) = bswap16(*addr);
/freebsd-11.0-release/sys/mips/rmi/
H A Dbus_space_rmi_pci.c408 return bswap16((u_int16_t) (*(volatile u_int16_t *)(handle + offset)));
440 *addr = bswap16(*addr);
475 *(volatile u_int16_t *)(handle + offset) = bswap16(value);
510 (*(volatile u_int16_t *)(handle + offset)) = bswap16(*addr);
/freebsd-11.0-release/contrib/libarchive/libarchive/
H A Darchive_read_support_format_lha.c1715 #undef bswap16 macro
1717 # define bswap16(x) _byteswap_ushort(x) macro
1720 # define bswap16(x) __builtin_bswap16(x)
1723 # define bswap16(x) __builtin_bswap16(x)
1725 # define bswap16(x) ((((x) >> 8) & 0xff) | ((x) << 8))
1729 crc ^= bswap16(*buff); buff++; \
1739 #undef bswap16 macro
/freebsd-11.0-release/crypto/heimdal/lib/krb5/
H A Dstore.c467 value = bswap16(value);
515 *value = bswap16(*value);
/freebsd-11.0-release/sys/sparc64/pci/
H A Dsbbc.c173 bswap16(SBBC_READ_N(2, (offs)))
181 SBBC_WRITE_N(2, (offs), bswap16(val))
/freebsd-11.0-release/contrib/wpa/src/utils/
H A Dcommon.h31 #define bswap_16 bswap16
/freebsd-11.0-release/contrib/openbsm/bin/auditdistd/
H A Dsender.c588 adrep->adrp_error = bswap16(adrep->adrp_error);
/freebsd-11.0-release/sys/dev/nge/
H A Dif_nge.c1591 bswap16(extsts & NGE_RXEXTSTS_VTCI);
1949 bswap16(m->m_pkthdr.ether_vtag));
/freebsd-11.0-release/sys/dev/fb/
H A Dmachfb.c1407 *(p++) = bswap16(v);

Completed in 302 milliseconds

12