Home
last modified time | relevance | path

Searched refs:byteswap (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSwapByteOrder.h31 inline unsigned char getSwappedBytes(unsigned char C) { return llvm::byteswap(C); }
32 inline signed char getSwappedBytes( signed char C) { return llvm::byteswap(C); }
33 inline char getSwappedBytes( char C) { return llvm::byteswap(C); }
35 inline unsigned short getSwappedBytes(unsigned short C) { return llvm::byteswap(C); }
36 inline signed short getSwappedBytes( signed short C) { return llvm::byteswap(C); }
38 inline unsigned int getSwappedBytes(unsigned int C) { return llvm::byteswap(C); }
39 inline signed int getSwappedBytes( signed int C) { return llvm::byteswap(C); }
41 inline unsigned long getSwappedBytes(unsigned long C) { return llvm::byteswap(C); }
42 inline signed long getSwappedBytes( signed long C) { return llvm::byteswap(C); }
44 inline unsigned long long getSwappedBytes(unsigned long long C) { return llvm::byteswap(
[all...]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_replay.c87 zfs_replay_error(void *arg1, void *arg2, boolean_t byteswap) in zfs_replay_error() argument
89 (void) arg1, (void) arg2, (void) byteswap; in zfs_replay_error()
292 zfs_replay_create_acl(void *arg1, void *arg2, boolean_t byteswap) in zfs_replay_create_acl() argument
315 if (byteswap) { in zfs_replay_create_acl()
455 zfs_replay_create(void *arg1, void *arg2, boolean_t byteswap) in zfs_replay_create() argument
477 if (byteswap) { in zfs_replay_create()
610 zfs_replay_remove(void *arg1, void *arg2, boolean_t byteswap) in zfs_replay_remove() argument
621 if (byteswap) in zfs_replay_remove()
647 zfs_replay_link(void *arg1, void *arg2, boolean_t byteswap) in zfs_replay_link() argument
658 if (byteswap) in zfs_replay_link()
[all …]
H A Dzio_checksum.c422 int byteswap; in zio_checksum_error_impl() local
474 byteswap = (eck.zec_magic == BSWAP_64(ZEC_MAGIC)); in zio_checksum_error_impl()
476 if (byteswap) in zio_checksum_error_impl()
484 ci->ci_func[byteswap](abd, size, in zio_checksum_error_impl()
490 if (byteswap) { in zio_checksum_error_impl()
495 byteswap = BP_SHOULD_BYTESWAP(bp); in zio_checksum_error_impl()
497 ci->ci_func[byteswap](abd, size, in zio_checksum_error_impl()
523 info->zbc_byteswapped = byteswap; in zio_checksum_error_impl()
H A Ddmu_recv.c104 boolean_t byteswap; member
2144 if (rwa->byteswap && !rwa->raw) { in receive_object()
2145 dmu_object_byteswap_t byteswap = in receive_object() local
2147 dmu_ot_byteswap[byteswap].ob_func(db->db_data, in receive_object()
2291 rwa->byteswap; in flush_write_batch_impl()
2310 } else if (rwa->byteswap) { in flush_write_batch_impl()
2320 dmu_object_byteswap_t byteswap = in flush_write_batch_impl() local
2322 dmu_ot_byteswap[byteswap].ob_func( in flush_write_batch_impl()
2401 if (rwa->byteswap) { in receive_process_write_record()
2402 dmu_object_byteswap_t byteswap = in receive_process_write_record() local
[all …]
/freebsd/tests/include/
H A Dbyteswap_test.c11 ATF_TC(byteswap);
12 ATF_TC_HEAD(byteswap, tc) in ATF_TC_HEAD() argument
17 ATF_TC_BODY(byteswap, tc) in ATF_TC_BODY() argument
73 ATF_TP_ADD_TC(tp, byteswap); in ATF_TP_ADD_TCS()
/freebsd/contrib/elftoolchain/libelf/
H A Dlibelf_convert.m4145 size_t count, int byteswap)
152 if (!byteswap) {
168 size_t count, int byteswap)
176 if (!byteswap) {
269 size_t count, int byteswap)
279 if (byteswap) {
290 size_t count, int byteswap)
306 if (byteswap) {
400 size_t count, int byteswap)
424 if (byteswap) {
[all …]
H A Dlibelf_xlate.c50 int byteswap; in _libelf_xlate() local
135 byteswap = encoding != LIBELF_PRIVATE(byteorder); in _libelf_xlate()
138 (db == sb && !byteswap && fsz == msz)) in _libelf_xlate()
143 if (!xlator(dst->d_buf, dsz, src->d_buf, cnt, byteswap)) { in _libelf_xlate()
/freebsd/sys/contrib/openzfs/cmd/
H A Dzhack.c528 zhack_repair_calc_cksum(const int byteswap, void *data, const uint64_t offset, in zhack_repair_calc_cksum() argument
538 if (byteswap) in zhack_repair_calc_cksum()
546 ci->ci_func[byteswap](abd, abdsize, NULL, cksum); in zhack_repair_calc_cksum()
649 zhack_repair_write_label(const int l, const int fd, const int byteswap, in zhack_repair_write_label() argument
653 zhack_repair_calc_cksum(byteswap, data, offset, abdsize, eck, in zhack_repair_write_label()
682 const uint64_t ashift, const int fd, const int byteswap, in zhack_repair_write_uberblock() argument
703 ub_eck->zec_magic = byteswap ? BSWAP_64(ZEC_MAGIC) : ZEC_MAGIC; in zhack_repair_write_uberblock()
705 if (zhack_repair_write_label(l, fd, byteswap, in zhack_repair_write_uberblock()
724 zhack_repair_test_cksum(const int byteswap, void *vdev_data, in zhack_repair_test_cksum() argument
729 zhack_repair_calc_cksum(byteswap, vdev_data, vdev_phys_offset, in zhack_repair_test_cksum()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzio_crypt.h144 uint_t datalen, boolean_t byteswap, uint8_t *cksum);
146 uint_t datalen, boolean_t byteswap, uint8_t *cksum);
150 boolean_t byteswap, uint8_t *portable_mac, uint8_t *local_mac);
152 dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv,
156 dmu_object_type_t ot, boolean_t byteswap, uint8_t *salt, uint8_t *iv,
/freebsd/contrib/llvm-project/libcxx/include/__bit/
H A Dbyteswap.h26 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr _Tp byteswap(_Tp __val) noexcept { in byteswap() function
40 return static_cast<_Tp>(byteswap(static_cast<uint64_t>(__val))) << 64 | in byteswap()
41 static_cast<_Tp>(byteswap(static_cast<uint64_t>(__val >> 64))); in byteswap()
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DOpcode.h102 return GetEndianSwap() ? llvm::byteswap<uint16_t>(m_data.inst16)
123 return GetEndianSwap() ? llvm::byteswap<uint16_t>(m_data.inst16)
127 return GetEndianSwap() ? llvm::byteswap<uint32_t>(m_data.inst32)
144 return GetEndianSwap() ? llvm::byteswap<uint16_t>(m_data.inst16)
148 return GetEndianSwap() ? llvm::byteswap<uint32_t>(m_data.inst32)
151 return GetEndianSwap() ? llvm::byteswap<uint64_t>(m_data.inst64)
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dbit.cppm
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c1157 uint_t datalen, uint64_t version, boolean_t byteswap, uint8_t *cksum) in zio_crypt_do_indirect_mac_checksum_impl() argument
1168 byteswap, bp); in zio_crypt_do_indirect_mac_checksum_impl()
1188 uint_t datalen, boolean_t byteswap, uint8_t *cksum) in zio_crypt_do_indirect_mac_checksum() argument
1201 datalen, ZIO_CRYPT_KEY_CURRENT_VERSION, byteswap, cksum); in zio_crypt_do_indirect_mac_checksum()
1205 buf, datalen, 0, byteswap, cksum); in zio_crypt_do_indirect_mac_checksum()
1213 uint_t datalen, boolean_t byteswap, uint8_t *cksum) in zio_crypt_do_indirect_mac_checksum_abd() argument
1220 byteswap, cksum); in zio_crypt_do_indirect_mac_checksum_abd()
1244 uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, zfs_uio_t *puio, in zio_crypt_init_uios_zil() argument
1271 nused = ((byteswap) ? BSWAP_64(zilc->zc_nused) : zilc->zc_nused); in zio_crypt_init_uios_zil()
1286 if (byteswap) { in zio_crypt_init_uios_zil()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dbit21 // [bit.byteswap], byteswap
23 constexpr T byteswap(T value) noexcept; // C++23
81 # include <__bit/byteswap.h>
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/ARM/
H A DEmulationStateARM.cpp121 value = llvm::byteswap<uint32_t>(value); in ReadPseudoMemory()
133 value1 = llvm::byteswap<uint32_t>(value1); in ReadPseudoMemory()
134 value2 = llvm::byteswap<uint32_t>(value2); in ReadPseudoMemory()
160 value = llvm::byteswap<uint32_t>(value); in WritePseudoMemory()
171 value1 = llvm::byteswap<uint32_t>(value1); in WritePseudoMemory()
172 value2 = llvm::byteswap<uint32_t>(value2); in WritePseudoMemory()
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DOpcode.cpp106 *(uint16_t *)swap_buf = llvm::byteswap<uint16_t>(m_data.inst16); in GetData()
117 *(uint32_t *)swap_buf = llvm::byteswap<uint32_t>(m_data.inst32); in GetData()
121 *(uint32_t *)swap_buf = llvm::byteswap<uint64_t>(m_data.inst64); in GetData()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c1328 uint_t datalen, uint64_t version, boolean_t byteswap, uint8_t *cksum) in zio_crypt_do_indirect_mac_checksum_impl() argument
1339 byteswap, bp); in zio_crypt_do_indirect_mac_checksum_impl()
1356 uint_t datalen, boolean_t byteswap, uint8_t *cksum) in zio_crypt_do_indirect_mac_checksum() argument
1369 datalen, ZIO_CRYPT_KEY_CURRENT_VERSION, byteswap, cksum); in zio_crypt_do_indirect_mac_checksum()
1373 buf, datalen, 0, byteswap, cksum); in zio_crypt_do_indirect_mac_checksum()
1381 uint_t datalen, boolean_t byteswap, uint8_t *cksum) in zio_crypt_do_indirect_mac_checksum_abd() argument
1388 byteswap, cksum); in zio_crypt_do_indirect_mac_checksum_abd()
1403 uint8_t *cipherbuf, uint_t datalen, boolean_t byteswap, zfs_uio_t *puio, in zio_crypt_init_uios_zil() argument
1435 nused = ((byteswap) ? BSWAP_64(zilc->zc_nused) : zilc->zc_nused); in zio_crypt_init_uios_zil()
1444 if (!byteswap) { in zio_crypt_init_uios_zil()
[all …]
/freebsd/tools/debugscripts/
H A Dnetstat-anr.gdb26 set $byteswap = 1
28 set $byteswap = 0
32 if ($byteswap)
/freebsd/contrib/bearssl/src/ec/
H A Dec_c25519_i15.c165 byteswap(unsigned char *G) in byteswap() function
212 byteswap(G); in api_mul()
349 byteswap(G); in api_mul()
H A Dec_c25519_i31.c162 byteswap(unsigned char *G) in byteswap() function
203 byteswap(G); in api_mul()
343 byteswap(G); in api_mul()
/freebsd/sys/contrib/openzfs/module/zcommon/
H A Dzfs_fletcher.c223 uint64_t byteswap; member
643 fletcher_4_supp_impls[fastest_stat->byteswap]->name); in fletcher_4_kstat_data()
652 (u_longlong_t)curr_stat->byteswap); in fletcher_4_kstat_data()
721 stat->byteswap = run_bw; in fletcher_4_benchmark_impl()
731 fastest_stat->byteswap = i; in fletcher_4_benchmark_impl()
732 FLETCHER_4_FASTEST_FN_COPY(byteswap, in fletcher_4_benchmark_impl()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A Dbit.h101 [[nodiscard]] constexpr T byteswap(T V) noexcept { in byteswap()
135 uint64_t Hi = llvm::byteswap<uint32_t>(UV); in count()
136 uint32_t Lo = llvm::byteswap<uint32_t>(UV >> 32);
65 [[nodiscard]] constexpr T byteswap(T V) noexcept { byteswap() function
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DDataExtractor.cpp74 return llvm::byteswap<uint16_t>(value); in ReadSwapInt16()
81 return llvm::byteswap<uint32_t>(value); in ReadSwapInt32()
88 return llvm::byteswap<uint64_t>(value); in ReadSwapInt64()
94 return llvm::byteswap<uint16_t>(value); in ReadSwapInt16()
100 return llvm::byteswap<uint32_t>(value); in ReadSwapInt32()
106 return llvm::byteswap<uint64_t>(value); in ReadSwapInt64()
/freebsd/sys/cddl/boot/zfs/
H A Dzfssubr.c285 int byteswap; in zio_checksum_verify() local
317 byteswap = (eck->zec_magic == BSWAP_64(ZEC_MAGIC)); in zio_checksum_verify()
319 if (byteswap) in zio_checksum_verify()
324 ci->ci_func[byteswap](data, size, ctx, &actual_cksum); in zio_checksum_verify()
327 if (byteswap) in zio_checksum_verify()
331 byteswap = BP_SHOULD_BYTESWAP(bp); in zio_checksum_verify()
333 ci->ci_func[byteswap](data, size, ctx, &actual_cksum); in zio_checksum_verify()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DMachO.cpp57 CPUType = llvm::byteswap<uint32_t>(CPUType); in createLinkGraphFromMachOObject()

123