| /netbsd/src/sys/ufs/ffs/ |
| D | ffs_bswap.c | 69 n32[i] = bswap32(o32[i]); in ffs_sb_swap() 72 n->fs_cgrotor = bswap32(o->fs_cgrotor); /* Unused */ in ffs_sb_swap() 73 n->fs_old_cpc = bswap32(o->fs_old_cpc); in ffs_sb_swap() 79 n->fs_maxbsize = bswap32(o->fs_maxbsize); in ffs_sb_swap() 81 n->fs_quota_magic = bswap32(o->fs_quota_magic); in ffs_sb_swap() 91 n->fs_pendinginodes = bswap32(o->fs_pendinginodes); in ffs_sb_swap() 97 n->fs_snapinum[i] = bswap32(o->fs_snapinum[i]); in ffs_sb_swap() 98 n->fs_avgfilesize = bswap32(o->fs_avgfilesize); in ffs_sb_swap() 99 n->fs_avgfpdir = bswap32(o->fs_avgfpdir); in ffs_sb_swap() 101 n->fs_flags = bswap32(o->fs_flags); in ffs_sb_swap() [all …]
|
| /netbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_bswap.c | 49 new->e2fs_icount = bswap32(old->e2fs_icount); in e2fs_sb_bswap() 50 new->e2fs_bcount = bswap32(old->e2fs_bcount); in e2fs_sb_bswap() 51 new->e2fs_rbcount = bswap32(old->e2fs_rbcount); in e2fs_sb_bswap() 52 new->e2fs_fbcount = bswap32(old->e2fs_fbcount); in e2fs_sb_bswap() 53 new->e2fs_ficount = bswap32(old->e2fs_ficount); in e2fs_sb_bswap() 54 new->e2fs_first_dblock = bswap32(old->e2fs_first_dblock); in e2fs_sb_bswap() 55 new->e2fs_log_bsize = bswap32(old->e2fs_log_bsize); in e2fs_sb_bswap() 56 new->e2fs_fsize = bswap32(old->e2fs_fsize); in e2fs_sb_bswap() 57 new->e2fs_bpg = bswap32(old->e2fs_bpg); in e2fs_sb_bswap() 58 new->e2fs_fpg = bswap32(old->e2fs_fpg); in e2fs_sb_bswap() [all …]
|
| /netbsd/src/sys/lib/libsa/ |
| D | ffs_bswap.c | 70 n32[i] = bswap32(o32[i]); in ffs_sb_swap() 73 n->fs_cgrotor = bswap32(o->fs_cgrotor); /* Unused */ in ffs_sb_swap() 74 n->fs_old_cpc = bswap32(o->fs_old_cpc); in ffs_sb_swap() 80 n->fs_maxbsize = bswap32(o->fs_maxbsize); in ffs_sb_swap() 82 n->fs_quota_magic = bswap32(o->fs_quota_magic); in ffs_sb_swap() 92 n->fs_pendinginodes = bswap32(o->fs_pendinginodes); in ffs_sb_swap() 98 n->fs_snapinum[i] = bswap32(o->fs_snapinum[i]); in ffs_sb_swap() 99 n->fs_avgfilesize = bswap32(o->fs_avgfilesize); in ffs_sb_swap() 100 n->fs_avgfpdir = bswap32(o->fs_avgfpdir); in ffs_sb_swap() 102 n->fs_flags = bswap32(o->fs_flags); in ffs_sb_swap() [all …]
|
| D | ext2fs.c | 894 new->e2fs_icount = bswap32(old->e2fs_icount); in e2fs_sb_bswap() 895 new->e2fs_bcount = bswap32(old->e2fs_bcount); in e2fs_sb_bswap() 896 new->e2fs_rbcount = bswap32(old->e2fs_rbcount); in e2fs_sb_bswap() 897 new->e2fs_fbcount = bswap32(old->e2fs_fbcount); in e2fs_sb_bswap() 898 new->e2fs_ficount = bswap32(old->e2fs_ficount); in e2fs_sb_bswap() 899 new->e2fs_first_dblock = bswap32(old->e2fs_first_dblock); in e2fs_sb_bswap() 900 new->e2fs_log_bsize = bswap32(old->e2fs_log_bsize); in e2fs_sb_bswap() 901 new->e2fs_fsize = bswap32(old->e2fs_fsize); in e2fs_sb_bswap() 902 new->e2fs_bpg = bswap32(old->e2fs_bpg); in e2fs_sb_bswap() 903 new->e2fs_fpg = bswap32(old->e2fs_fpg); in e2fs_sb_bswap() [all …]
|
| D | disklabel.c | 58 if (dlp->d_magic == bswap32(DISKMAGIC) && in getdisklabel() 59 dlp->d_magic2 == bswap32(DISKMAGIC)) { in getdisklabel()
|
| D | minixfs3.c | 886 new->mfs_ninodes = bswap32(old->mfs_ninodes); in minixfs3_sb_bswap() 892 new->mfs_max_size = bswap32(old->mfs_max_size); in minixfs3_sb_bswap() 893 new->mfs_zones = bswap32(old->mfs_zones); in minixfs3_sb_bswap() 907 new->mdi_size = bswap32(old->mdi_size); in minixfs3_i_bswap() 908 new->mdi_atime = bswap32(old->mdi_atime); in minixfs3_i_bswap() 909 new->mdi_mtime = bswap32(old->mdi_mtime); in minixfs3_i_bswap() 910 new->mdi_ctime = bswap32(old->mdi_ctime); in minixfs3_i_bswap()
|
| /netbsd/src/sbin/disklabel/ |
| D | bswap.c | 81 nlp->d_magic = bswap32(olp->d_magic); in bswaplabel() 91 nlp->d_secsize = bswap32(olp->d_secsize); in bswaplabel() 92 nlp->d_nsectors = bswap32(olp->d_nsectors); in bswaplabel() 93 nlp->d_ntracks = bswap32(olp->d_ntracks); in bswaplabel() 94 nlp->d_ncylinders = bswap32(olp->d_ncylinders); in bswaplabel() 95 nlp->d_secpercyl = bswap32(olp->d_secpercyl); in bswaplabel() 96 nlp->d_secperunit = bswap32(olp->d_secperunit); in bswaplabel() 101 nlp->d_acylinders = bswap32(olp->d_acylinders); in bswaplabel() 107 nlp->d_headswitch = bswap32(olp->d_headswitch); in bswaplabel() 108 nlp->d_trkseek = bswap32(olp->d_trkseek); in bswaplabel() [all …]
|
| D | bswap.h | 47 #define htotarget32(x) (bswap_p ? bswap32(x) : (x)) 48 #define target32toh(x) (bswap_p ? bswap32(x) : (x))
|
| /netbsd/src/tests/include/machine/ |
| D | t_bswap.c | 108 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()
|
| /netbsd/src/usr.bin/elf2ecoff/ |
| D | elf2ecoff.c | 166 ex.e_version = bswap32(ex.e_version); in main() 167 ex.e_entry = bswap32(ex.e_entry); in main() 168 ex.e_phoff = bswap32(ex.e_phoff); in main() 169 ex.e_shoff = bswap32(ex.e_shoff); in main() 170 ex.e_flags = bswap32(ex.e_flags); in main() 331 ep.f.f_timdat = bswap32(ep.f.f_timdat); in main() 332 ep.f.f_symptr = bswap32(ep.f.f_symptr); in main() 333 ep.f.f_nsyms = bswap32(ep.f.f_nsyms); in main() 338 ep.a.tsize = bswap32(ep.a.tsize); in main() 339 ep.a.dsize = bswap32(ep.a.dsize); in main() [all …]
|
| /netbsd/src/usr.bin/elf2aout/ |
| D | elf2aout.c | 254 ex.e_version = bswap32(ex.e_version); in main() 255 ex.e_entry = bswap32(ex.e_entry); in main() 256 ex.e_phoff = bswap32(ex.e_phoff); in main() 257 ex.e_shoff = bswap32(ex.e_shoff); in main() 258 ex.e_flags = bswap32(ex.e_flags); in main() 386 aex.a_text = bswap32(aex.a_text); in main() 387 aex.a_data = bswap32(aex.a_data); in main() 388 aex.a_bss = bswap32(aex.a_bss); in main() 389 aex.a_entry = bswap32(aex.a_entry); in main() 390 aex.a_syms = bswap32(aex.a_syms); in main() [all …]
|
| /netbsd/src/sbin/restore/ |
| D | tape.c | 1444 if (bswap32(buf->c_magic) != NFS_MAGIC && in gethead() 1445 bswap32(buf->c_magic) != FS_UFS2_MAGIC) in gethead() 1463 if (bswap32(u_ospcl.s_ospcl.c_magic) != OFS_MAGIC) in gethead() 1712 i += bswap32(*buf++); in checksum() 1741 s->c_type = bswap32(s->c_type); in swap_header() 1742 s->c_old_date = bswap32(s->c_old_date); in swap_header() 1743 s->c_old_ddate = bswap32(s->c_old_ddate); in swap_header() 1744 s->c_volume = bswap32(s->c_volume); in swap_header() 1745 s->c_old_tapea = bswap32(s->c_old_tapea); in swap_header() 1746 s->c_inumber = bswap32(s->c_inumber); in swap_header() [all …]
|
| /netbsd/src/sys/sys/ |
| D | bswap.h | 17 uint32_t bswap32(uint32_t) __constfunc; 20 uint32_t bswap32(uint32_t) __RENAME(__bswap32) __constfunc; 33 #define __BYTE_SWAP_U32_VARIABLE bswap32 67 #define bswap32(x) \ macro
|
| D | endian.h | 127 #define ntohl(x) bswap32(__CAST(uint32_t, (x))) 129 #define htonl(x) bswap32(__CAST(uint32_t, (x))) 148 #define htole32(x) bswap32(__CAST(uint32_t, (x))) 155 #define HTOLE32(x) (x) = bswap32(__CAST(uint32_t, (x))) 161 #define htobe32(x) bswap32(__CAST(uint32_t, (x))) 168 #define HTOBE32(x) (x) = bswap32(__CAST(uint32_t, (x)))
|
| /netbsd/src/sys/arch/hpc/stand/include/machine/ |
| D | endian.h | 144 #define ntohl(x) bswap32((uint32_t)(x)) 146 #define htonl(x) bswap32((uint32_t)(x)) 166 #define htole32(x) bswap32((uint32_t)(x)) 173 #define HTOLE32(x) (x) = bswap32((uint32_t)(x)) 179 #define htobe32(x) bswap32((uint32_t)(x)) 186 #define HTOBE32(x) (x) = bswap32((uint32_t)(x))
|
| /netbsd/src/usr.sbin/makefs/cd9660/ |
| D | cd9660_conversion.c | 71 w = bswap32(w); in cd9660_731() 90 w = bswap32(w); in cd9660_732() 107 be = bswap32(dw); in cd9660_bothendian_dword() 111 le = bswap32(dw); in cd9660_bothendian_dword()
|
| /netbsd/src/sys/dev/ic/ |
| D | isp_netbsd.h | 289 *(d) = (isp->isp_bustype == ISP_BT_SBUS)? s : bswap32(s) 297 *((uint32_t *)s) : bswap32(*((uint32_t *)s)) 302 #define ISP_IOXPUT_32(isp, s, d) *(d) = bswap32(s) 305 #define ISP_IOXGET_32(isp, s, d) d = bswap32(*((uint32_t *)s)) 308 #define ISP_SWIZZLE_NVRAM_LONG(isp, rp) *rp = bswap32(*rp) 329 #define ISP_IOZPUT_32(isp, s, d) *(d) = bswap32(s) 333 #define ISP_IOZGET_32(isp, s, d) d = bswap32(*((uint32_t *)(s))) 338 #define ISP_SWAP32(isp, x) bswap32(x)
|
| /netbsd/src/external/public-domain/xz/dist/src/common/ |
| D | tuklib_integer.h | 58 # define bswap32(num) bswap_32(num) macro 75 # define bswap32(num) BSWAP_32(num) macro 121 #ifndef bswap32 122 # define bswap32(num) \ macro 156 # define conv32le(num) bswap32(num) 166 # define conv32be(num) bswap32(num)
|
| /netbsd/src/usr.bin/audio/common/ |
| D | libaudio.h | 326 #define getle32(v) bswap32(v) 331 #define putle32(x,v) (x) = bswap32(v) 340 #define getbe32(v) bswap32(v) 345 #define putbe32(x,v) (x) = bswap32(v)
|
| /netbsd/src/common/lib/libc/gen/ |
| D | bswap32.c | 16 #undef bswap32 19 bswap32(uint32_t x) in bswap32() function
|
| D | bswap64.c | 40 th = bswap32((uint32_t)(x & 0x00000000ffffffffULL)); in bswap64() 41 tl = bswap32((uint32_t)((x >> 32) & 0x00000000ffffffffULL)); in bswap64()
|
| /netbsd/src/common/lib/libc/arch/x86_64/gen/ |
| D | byte_swap_4.S | 9 _ENTRY(_C_LABEL(bswap32)) 20 END(_C_LABEL(bswap32))
|
| /netbsd/src/common/lib/libc/arch/i386/gen/ |
| D | byte_swap_4.S | 43 _ENTRY(_C_LABEL(bswap32)) 54 END(_C_LABEL(bswap32))
|
| /netbsd/src/external/public-domain/xz/dist/src/liblzma/check/ |
| D | crc32_fast.c | 32 crc = bswap32(crc); in lzma_crc32() 78 crc = bswap32(crc); in lzma_crc32()
|
| /netbsd/src/lib/libukfs/ |
| D | ukfs_disklabel.c | 69 if (lp->d_magic == bswap32(UKFS_DISKMAGIC) && in ukfs__disklabel_scan() 70 lp->d_magic2 == bswap32(UKFS_DISKMAGIC)) { in ukfs__disklabel_scan()
|