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

12

/freebsd-head/contrib/ofed/include/
H A Dbyteswap.h38 #define bswap_16 bswap16
H A Dbyteorder.h80 #define swab16 bswap16
/freebsd-head/crypto/heimdal/lib/roken/
H A Dbswap.c52 bswap16 (unsigned short val) function
H A Droken.h.in718 #define bswap16 rk_bswap16
719 ROKEN_LIB_FUNCTION unsigned short ROKEN_LIB_CALL bswap16(unsigned short);
/freebsd-head/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-head/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-head/sys/sys/
H A Dendian.h61 #define bswap16(x) __bswap16(x) macro
70 #define htobe16(x) bswap16((x))
77 #define be16toh(x) bswap16((x))
87 #define htole16(x) bswap16((x))
94 #define le16toh(x) bswap16((x))
/freebsd-head/usr.sbin/makefs/cd9660/
H A Dcd9660_conversion.c61 w = bswap16(w);
80 w = bswap16(w);
128 be = bswap16(dw);
132 le = bswap16(dw);
/freebsd-head/contrib/xz/src/common/
H A Dtuklib_integer.h55 # define bswap16(num) bswap_16(num) macro
72 # define bswap16(num) BSWAP_16(num) macro
116 #ifndef bswap16
117 # define bswap16(num) \ macro
153 # define conv16le(num) bswap16(num)
163 # define conv16be(num) bswap16(num)
/freebsd-head/usr.sbin/makefs/ffs/
H A Dufs_bswap.h58 return ((ns) ? bswap16(a) : (a));
H A Dffs_bswap.c127 n->di_mode = bswap16(o->di_mode);
128 n->di_nlink = bswap16(o->di_nlink);
148 n->di_mode = bswap16(o->di_mode);
149 n->di_nlink = bswap16(o->di_nlink);
209 n->cg_old_ncyl = bswap16(o->cg_old_ncyl);
210 n->cg_old_niblk = bswap16(o->cg_old_niblk);
255 n16[i] = bswap16(o16[i]);
/freebsd-head/sys/compat/linuxkpi/common/include/asm/
H A Dbyteorder.h84 #define swab16(x) bswap16(x)
/freebsd-head/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-head/sys/dev/isp/
H A Disp_freebsd.h613 *(d) = (isp->isp_bustype == ISP_BT_SBUS)? s : bswap16(s)
619 *((uint16_t *)s) : bswap16(*((uint16_t *)s))
626 #define ISP_IOXPUT_16(isp, s, d) *(d) = bswap16(s)
629 #define ISP_IOXGET_16(isp, s, d) d = bswap16(*((uint16_t *)s))
632 #define ISP_SWIZZLE_NVRAM_WORD(isp, rp) *rp = bswap16(*rp)
654 #define ISP_IOZPUT_16(isp, s, d) *(d) = bswap16(s)
658 #define ISP_IOZGET_16(isp, s, d) d = bswap16(*((uint16_t *)(s)))
663 #define ISP_SWAP16(isp, s) bswap16(s)
/freebsd-head/sys/mips/nlm/
H A Dbus_space_rmi_pci.c418 return bswap16(value);
452 *addr = bswap16(*addr);
487 *(volatile u_int16_t *)(handle + offset) = bswap16(value);
522 (*(volatile u_int16_t *)(handle + offset)) = bswap16(*addr);
/freebsd-head/sys/dev/cxgbe/
H A Dosdep.h97 #define swab16(x) bswap16(x)
/freebsd-head/contrib/libarchive/libarchive/
H A Darchive_read_support_format_lha.c1724 #undef bswap16 macro
1726 # define bswap16(x) _byteswap_ushort(x) macro
1729 # define bswap16(x) __builtin_bswap16(x)
1732 # define bswap16(x) __builtin_bswap16(x)
1734 # define bswap16(x) ((((x) >> 8) & 0xff) | ((x) << 8))
1738 crc ^= bswap16(*buff); buff++; \
1748 #undef bswap16 macro
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dstore.c467 value = bswap16(value);
515 *value = bswap16(*value);
/freebsd-head/sys/sparc64/pci/
H A Dsbbc.c175 bswap16(SBBC_READ_N(2, (offs)))
183 SBBC_WRITE_N(2, (offs), bswap16(val))
/freebsd-head/contrib/openbsm/bin/auditdistd/
H A Dsender.c578 adrep->adrp_error = bswap16(adrep->adrp_error);
/freebsd-head/contrib/wpa/src/utils/
H A Dcommon.h31 #define bswap_16 bswap16
/freebsd-head/sys/dev/nge/
H A Dif_nge.c1594 bswap16(extsts & NGE_RXEXTSTS_VTCI);
1952 bswap16(m->m_pkthdr.ether_vtag));
/freebsd-head/sys/dev/fb/
H A Dmachfb.c1409 *(p++) = bswap16(v);
/freebsd-head/sys/dev/sfxge/
H A Dsfxge_tx.c213 efx_tx_qdesc_vlantci_create(txq->common, bswap16(this_tag), desc);
/freebsd-head/sys/dev/re/
H A Dif_re.c2382 bswap16((rxvlan & RL_RDESC_VLANCTL_DATA));
2876 vlanctl |= bswap16((*m_head)->m_pkthdr.ether_vtag) |

Completed in 542 milliseconds

12