Home
last modified time | relevance | path

Searched refs:bswap32 (Results 1 – 25 of 58) sorted by relevance

123

/freebsd/usr.sbin/makefs/ffs/
H A Dffs_bswap.c76 n32[i] = bswap32(o32[i]); in ffs_sb_swap()
79 n->fs_cgrotor = bswap32(o->fs_cgrotor); /* Unused */ in ffs_sb_swap()
80 n->fs_old_cpc = bswap32(o->fs_old_cpc); in ffs_sb_swap()
86 n->fs_maxbsize = bswap32(o->fs_maxbsize); in ffs_sb_swap()
94 n->fs_pendinginodes = bswap32(o->fs_pendinginodes); in ffs_sb_swap()
100 n->fs_snapinum[i] = bswap32(o->fs_snapinum[i]); in ffs_sb_swap()
101 n->fs_avgfilesize = bswap32(o->fs_avgfilesize); in ffs_sb_swap()
102 n->fs_avgfpdir = bswap32(o->fs_avgfpdir); in ffs_sb_swap()
104 n->fs_flags = bswap32(o->fs_flags); in ffs_sb_swap()
105 n->fs_contigsumsize = bswap32(o->fs_contigsumsize); in ffs_sb_swap()
[all …]
H A Dufs_bswap.h61 return ((ns) ? bswap32(a) : (a)); in ufs_rw32()
/freebsd/contrib/netbsd-tests/include/machine/
H A Dt_bswap.c108 ATF_REQUIRE_EQ(bswap32(0x00000000), 0x00000000); in ATF_TC_BODY()
109 ATF_REQUIRE_EQ(bswap32(0xffff0000), 0x0000ffff); in ATF_TC_BODY()
110 ATF_REQUIRE_EQ(bswap32(0xffffffff), 0xffffffff); in ATF_TC_BODY()
111 ATF_REQUIRE_EQ(bswap32(0x12345678), 0x78563412); in ATF_TC_BODY()
124 ATF_REQUIRE_EQ(bswap32(unconst32(0x00000000)), 0x00000000); in ATF_TC_BODY()
125 ATF_REQUIRE_EQ(bswap32(unconst32(0xffff0000)), 0x0000ffff); in ATF_TC_BODY()
126 ATF_REQUIRE_EQ(bswap32(unconst32(0xffffffff)), 0xffffffff); in ATF_TC_BODY()
127 ATF_REQUIRE_EQ(bswap32(unconst32(0x12345678)), 0x78563412); in ATF_TC_BODY()
/freebsd/contrib/openbsm/compat/
H A Dendian.h64 bswap32(uint32_t int32) in bswap32() function
126 #define htobe32(x) bswap32((x))
133 #define be32toh(x) bswap32((x))
143 #define htole32(x) bswap32((x))
150 #define le32toh(x) bswap32((x))
/freebsd/tools/build/cross-build/include/mac/sys/
H A Dendian.h46 #define bswap32(x) __builtin_bswap32(x) macro
58 #define htobe32(x) bswap32((x))
65 #define be32toh(x) bswap32((x))
75 #define htole32(x) bswap32((x))
82 #define le32toh(x) bswap32((x))
/freebsd/usr.sbin/makefs/cd9660/
H A Dcd9660_conversion.c68 w = bswap32(w); in cd9660_731()
87 w = bswap32(w); in cd9660_732()
104 be = bswap32(dw); in cd9660_bothendian_dword()
108 le = bswap32(dw); in cd9660_bothendian_dword()
/freebsd/sys/crypto/openssl/
H A Dossl_aes_gcm.c104 ivec_val = bswap32(ivec_val); in ppc_aes_gcm_crypt()
124 ivec->d[3] = bswap32(ivec_val + next_ctr); in ppc_aes_gcm_crypt()
203 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_setiv_op()
276 ctr = bswap32(ctx->gcm.Yi.d[3]); in gcm_encrypt()
288 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_encrypt()
325 ctr = bswap32(ctx->gcm.Yi.d[3]); in gcm_encrypt_ctr32()
351 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_encrypt_ctr32()
368 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_encrypt_ctr32()
427 ctr = bswap32(ctx->gcm.Yi.d[3]); in gcm_decrypt()
440 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_decrypt()
[all …]
/freebsd/sys/crypto/openssl/arm/
H A Dossl_aes_gcm_neon.c80 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_setiv()
180 ctr = bswap32(ctx->gcm.Yi.d[3]); in gcm_encrypt()
209 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_encrypt()
226 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_encrypt()
263 ctr = bswap32(ctx->gcm.Yi.d[3]); in gcm_decrypt()
303 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_decrypt()
315 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_decrypt()
/freebsd/usr.bin/elfctl/
H A Delfctl.c317 features = bswap32(features); in edit_file_features()
402 note.n_namesz = bswap32(note.n_namesz); in get_file_features()
403 note.n_descsz = bswap32(note.n_descsz); in get_file_features()
404 note.n_type = bswap32(note.n_type); in get_file_features()
459 *features = bswap32(*features); in get_file_features()
/freebsd/sys/dev/isp/
H A Disp_freebsd.h540 #define ISP_IOXPUT_32(isp, s, d) *(d) = bswap32(s)
543 #define ISP_IOXGET_32(isp, s, d) d = bswap32(*((uint32_t *)s))
545 #define ISP_SWIZZLE_NVRAM_LONG(isp, rp) *rp = bswap32(*rp)
566 #define ISP_IOZPUT_32(isp, s, d) *(d) = bswap32(s)
569 #define ISP_IOZGET_32(isp, s, d) d = bswap32(*((uint32_t *)(s)))
573 #define ISP_SWAP32(isp, s) bswap32(s)
/freebsd/tools/build/cross-build/include/linux/sys/
H A Dendian.h59 #undef bswap32
60 #define bswap32(a) __builtin_bswap32(a) macro
/freebsd/contrib/ofed/include/
H A Dbyteswap.h39 #define bswap_32 bswap32
H A Dbyteorder.h81 #define swab32 bswap32
/freebsd/crypto/heimdal/lib/roken/
H A Dbswap.c40 bswap32 (unsigned int val) in bswap32() function
/freebsd/sys/contrib/zstd/lib/freebsd/
H A Dzstd_kfreebsd.c57 return (bswap32(x)); in __bswapsi2()
/freebsd/sys/dev/aq/
H A Daq_fw1x.c282 mac_addr[0] = bswap32(mac_addr[0]); in fw1x_get_mac_addr()
283 mac_addr[1] = bswap32(mac_addr[1]); in fw1x_get_mac_addr()
H A Daq_fw2x.c386 mac_addr[0] = bswap32(mac_addr[0]); in fw2x_get_mac_addr()
387 mac_addr[1] = bswap32(mac_addr[1]); in fw2x_get_mac_addr()
/freebsd/tests/include/
H A Dbyteswap_test.c47 #ifdef bswap32 in ATF_TC_BODY()
H A Dsys_endian_test.c43 #ifndef bswap32 in ATF_TC_BODY()
H A Dendian_test.c43 #ifdef bswap32 in ATF_TC_BODY()
/freebsd/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h87 #define getdle(buf,ofs) (bswap32(getdbe(buf,ofs)))
92 #define setdle(buf,ofs,val) getdbe(buf,ofs)=bswap32(val)
/freebsd/sys/sys/
H A Dendian.h69 #define bswap32(x) __bswap32(x) macro
/freebsd/sys/contrib/openzfs/module/icp/asm-x86_64/aes/
H A Daesopt.h526 #elif defined(bswap32)
527 #define aes_sw32 bswap32
/freebsd/sys/dev/cxgb/
H A Dcxgb_osdep.h196 #define swab32(x) bswap32(x)
/freebsd/crypto/krb5/src/lib/crypto/builtin/aes/
H A Daesopt.h567 #if defined( bswap32 )
568 # define aes_sw32 bswap32

123