| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | DXContainerRootSignature.cpp | 19 support::endian::write(Stream, DummyValue, llvm::endianness::little); in writePlaceholder() 26 support::endian::byte_swap<uint32_t, llvm::endianness::little>( in rewriteOffsetToCurrentByte() 75 support::endian::write(BOS, Version, llvm::endianness::little); in write() 76 support::endian::write(BOS, NumParameters, llvm::endianness::little); in write() 77 support::endian::write(BOS, RootParameterOffset, llvm::endianness::little); in write() 78 support::endian::write(BOS, NumSamplers, llvm::endianness::little); in write() 83 support::endian::write(BOS, SSO, llvm::endianness::little); in write() 84 support::endian::write(BOS, Flags, llvm::endianness::little); in write() 88 support::endian::write(BOS, P.Header.ParameterType, in write() 90 support::endian::write(BOS, P.Header.ShaderVisibility, in write() [all …]
|
| /freebsd/sys/dev/drm2/ |
| H A D | drm_fourcc.h | 30 #define DRM_FORMAT_BIG_ENDIAN (1<<31) /* format is big endian instead of little endian */ 40 #define DRM_FORMAT_XRGB4444 fourcc_code('X', 'R', '1', '2') /* [15:0] x:R:G:B 4:4:4:4 little endian… 41 #define DRM_FORMAT_XBGR4444 fourcc_code('X', 'B', '1', '2') /* [15:0] x:B:G:R 4:4:4:4 little endian… 42 #define DRM_FORMAT_RGBX4444 fourcc_code('R', 'X', '1', '2') /* [15:0] R:G:B:x 4:4:4:4 little endian… 43 #define DRM_FORMAT_BGRX4444 fourcc_code('B', 'X', '1', '2') /* [15:0] B:G:R:x 4:4:4:4 little endian… 45 #define DRM_FORMAT_ARGB4444 fourcc_code('A', 'R', '1', '2') /* [15:0] A:R:G:B 4:4:4:4 little endian… 46 #define DRM_FORMAT_ABGR4444 fourcc_code('A', 'B', '1', '2') /* [15:0] A:B:G:R 4:4:4:4 little endian… 47 #define DRM_FORMAT_RGBA4444 fourcc_code('R', 'A', '1', '2') /* [15:0] R:G:B:A 4:4:4:4 little endian… 48 #define DRM_FORMAT_BGRA4444 fourcc_code('B', 'A', '1', '2') /* [15:0] B:G:R:A 4:4:4:4 little endian… 50 #define DRM_FORMAT_XRGB1555 fourcc_code('X', 'R', '1', '5') /* [15:0] x:R:G:B 1:5:5:5 little endian… [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | EndianStream.h | 1 //===- EndianStream.h - Stream ops with endian specific data ----*- C++ -*-===// 9 // This file defines utilities for operating on streams that have endian 19 #include "llvm/Support/Endian.h" 25 namespace endian { 29 endianness endian) { in write() argument 31 value_type value = byte_swap<value_type>(orig, endian); in write() 37 inline void write(raw_ostream &os, value_type value, endianness endian) { 38 value = byte_swap<value_type>(value, endian); 43 inline void write<float>(raw_ostream &os, float value, endianness endian) { 44 write(os, llvm::bit_cast<uint32_t>(value), endian); 47 write(raw_ostream & os,ArrayRef<value_type> vals,endianness endian) write() argument 61 endianness Endian; global() member [all...] |
| H A D | Endian.h | 1 //===- Endian.h - Utilities for IO with endian specific data ----*- C++ -*-===// 9 // This file declares generic functions to read and write endian specific data. 41 namespace endian { 44 [[nodiscard]] inline value_type byte_swap(value_type value, endianness endian) { in byte_swap() argument 45 if (endian != llvm::endianness::native) in byte_swap() 51 template <typename value_type, endianness endian> 53 return byte_swap(value, endian); in byte_swap() 58 [[nodiscard]] inline value_type read(const void *memory, endianness endian) { in read() argument 65 return byte_swap<value_type>(ret, endian); in read() 68 template <typename value_type, endianness endian, std::size_t alignment> [all …]
|
| H A D | BinaryByteStream.h | 33 BinaryByteStream(ArrayRef<uint8_t> Data, llvm::endianness Endian) in BinaryByteStream() argument 34 : Endian(Endian), Data(Data) {} in BinaryByteStream() 35 BinaryByteStream(StringRef Data, llvm::endianness Endian) in BinaryByteStream() argument 36 : Endian(Endian), Data(Data.bytes_begin(), Data.bytes_end()) {} in BinaryByteStream() 38 llvm::endianness getEndian() const override { return Endian; } in getEndian() 66 llvm::endianness Endian; 77 llvm::endianness Endian) in MemoryBufferByteStream() argument 78 : BinaryByteStream(Buffer->getBuffer(), Endian), in MemoryBufferByteStream() 92 MutableBinaryByteStream(MutableArrayRef<uint8_t> Data,llvm::support::endianness Endian) MutableBinaryByteStream() argument 136 llvm::support::endianness Endian = llvm::support::little; global() variable 140 AppendingBinaryByteStream(llvm::support::endianness Endian) AppendingBinaryByteStream() argument 207 StreamImpl(std::unique_ptr<FileOutputBuffer> Buffer,llvm::support::endianness Endian) StreamImpl() argument 233 FileBufferByteStream(std::unique_ptr<FileOutputBuffer> Buffer,llvm::support::endianness Endian) FileBufferByteStream() argument [all...] |
| /freebsd/contrib/llvm-project/libc/src/__support/ |
| H A D | endian_internal.h | 27 // Converts uint8_t, uint16_t, uint32_t, uint64_t to its big or little endian 33 template <unsigned ORDER> struct Endian { struct 40 // Little Endian specializations argument 44 Endian<__ORDER_LITTLE_ENDIAN__>::to_big_endian<uint8_t>(uint8_t v) { 50 Endian<__ORDER_LITTLE_ENDIAN__>::to_little_endian<uint8_t>(uint8_t v) { 56 Endian<__ORDER_LITTLE_ENDIAN__>::to_big_endian<uint16_t>(uint16_t v) { 62 Endian<__ORDER_LITTLE_ENDIAN__>::to_little_endian<uint16_t>(uint16_t v) { 68 Endian<__ORDER_LITTLE_ENDIAN__>::to_big_endian<uint32_t>(uint32_t v) { 74 Endian<__ORDER_LITTLE_ENDIAN__>::to_little_endian<uint32_t>(uint32_t v) { 80 Endian<__ORDER_LITTLE_ENDIAN__>::to_big_endian<uint64_t>(uint64_t v) { [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/regmap/ |
| H A D | regmap.txt | 5 little-endian, 6 big-endian, 7 native-endian: See common-properties.txt for a definition 10 Regmap defaults to little-endian register access on MMIO based 12 architectures that typically run big-endian operating systems 13 (e.g. PowerPC), registers can be defined as big-endian and must 16 On SoCs that can be operated in both big-endian and little-endian 19 chips), "native-endian" is used to allow using the same device tree 23 Scenario 1 : a register set in big-endian mode. 27 big-endian;
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/orc/tests/unit/ |
| H A D | endian_test.cpp | 20 TEST(Endian, ByteSwap_32) { in TEST() argument 25 TEST(Endian, ByteSwap_64) { in TEST() argument 32 TEST(Endian, getSwappedBytes_UnsignedRoundTrip) { in TEST() argument 56 TEST(Endian, getSwappedBytes_SignedRoundTrip) { in TEST() argument 94 TEST(Endian, getSwappedBytes_uint8_t) { in TEST() argument 98 TEST(Endian, getSwappedBytes_uint16_t) { in TEST() argument 102 TEST(Endian, getSwappedBytes_uint32_t) { in TEST() argument 106 TEST(Endian, getSwappedBytes_uint64_t) { in TEST() argument 111 TEST(Endian, getSwappedBytes_int8_t) { in TEST() argument 115 TEST(Endian, getSwappedBytes_int16_t) { in TEST() argument [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/phy/ |
| H A D | lantiq,vrx200-pcie-phy.yaml | 49 lantiq,rcu-endian-offset: 51 description: the offset of the endian registers for this PHY instance in the RCU syscon 53 lantiq,rcu-big-endian-mask: 55 description: the mask to set the PDI (PHY) registers for this PHY instance to big endian 57 big-endian: 58 description: Configures the PDI (PHY) registers in big-endian mode 61 little-endian: 62 description: Configures the PDI (PHY) registers in big-endian mode 74 - lantiq,rcu-endian-offset 75 - lantiq,rcu-big-endian-mask [all …]
|
| /freebsd/share/man/man9/ |
| H A D | byteorder.9 | 98 On big endian systems, the number is converted to little endian byte order. 99 On little endian systems, the number is converted to big endian byte order. 106 functions return a big endian byte ordered integer 108 The return value will be the same as the argument on big endian systems. 115 functions return a little endian byte ordered integer 117 The return value will be the same as the argument on little endian systems. 125 byte order converted to big endian byte order. 126 The return value will be the same as the argument on big endian systems. 134 byte order converted to little endian byte order. 135 The return value will be the same as the argument on little endian systems. [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/ |
| H A D | BPFAsmBackend.cpp | 26 BPFAsmBackend(llvm::endianness Endian) : MCAsmBackend(Endian) {} in BPFAsmBackend() argument 63 support::endian::write<uint64_t>(OS, 0x15000000, Endian); in writeNopData() 77 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4], in applyFixup() 79 Endian); in applyFixup() 81 support::endian::write<uint32_t>(&Data[Fixup.getOffset()], Value, Endian); in applyFixup() 83 support::endian::write<uint64_t>(&Data[Fixup.getOffset()], Value, Endian); in applyFixup() 86 if (Endian == llvm::endianness::little) { in applyFixup() 88 support::endian::write32le(&Data[Fixup.getOffset() + 4], Value); in applyFixup() 91 support::endian::write32be(&Data[Fixup.getOffset() + 4], Value); in applyFixup() 96 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4], Value, in applyFixup() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/ |
| H A D | common-properties.txt | 13 - big-endian: Boolean; force big endian register accesses 15 know the peripheral always needs to be accessed in big endian (BE) mode. 16 - little-endian: Boolean; force little endian register accesses 18 peripheral always needs to be accessed in little endian (LE) mode. 19 - native-endian: Boolean; always use register accesses matched to the 27 In such cases, little-endian is the preferred default, but it is not 28 a requirement. Some implementations assume that little-endian is 38 native-endian; 46 big-endian; 54 native-endian; [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zstream/ |
| H A D | zstream_dump_002_pos.ksh | 24 # same-endian, neutral (no BEGIN nvlists), and XDR-encoded test streams. 25 # NV_ENCODE_NATIVE-encoded BEGIN records aren't readable on opposite-endian 43 little-endian-long-payloads 44 big-endian-long-payloads 45 big-endian-all-drr-types-base-XDR 46 big-endian-all-drr-types-incr-XDR 47 little-endian-all-drr-types-base-XDR 48 little-endian-all-drr-types-incr-XDR 53 little-endian-all-drr-types-base-NATIVE 54 little-endian-all-drr-types-incr-NATIVE [all …]
|
| H A D | zstream_dump_003_pos.ksh | 23 # Verify that zstream dump -v output for all same-endian and XDR-encoded 30 # The previous version of zstream does not dump opposite-endian streams 41 little-endian-long-payloads 42 big-endian-long-payloads 43 little-endian-all-drr-types-base-XDR 44 little-endian-all-drr-types-incr-XDR 45 big-endian-all-drr-types-base-XDR 46 big-endian-all-drr-types-incr-XDR 51 little-endian-all-drr-types-base-NATIVE 52 little-endian-all-drr-types-incr-NATIVE [all …]
|
| H A D | zstream_redup_001_pos.ksh | 24 # Verify that zstream redup produces output identical to input for same-endian 30 # 1. For each of the same-endian test streams, decompress with bzcat 45 little-endian-all-drr-types-base-NATIVE 46 little-endian-all-drr-types-base-XDR 47 little-endian-all-drr-types-incr-NATIVE 48 little-endian-all-drr-types-incr-XDR 52 big-endian-all-drr-types-base-NATIVE 53 big-endian-all-drr-types-base-XDR 54 big-endian-all-drr-types-incr-NATIVE 55 big-endian-all-drr-types-incr-XDR
|
| /freebsd/contrib/openbsm/ |
| H A D | configure.ac | 142 # We rely on the BSD be32toh() and be32enc()-style endian macros to perform 155 # First, decide which system endian.h to use. 157 AC_CHECK_HEADERS([endian.h], [ 163 AC_CHECK_HEADERS([sys/endian.h], [ 169 AC_CHECK_HEADERS([machine/endian.h], [ 176 AC_DEFINE(USE_ENDIAN_H,, Define if endian.h should be included) 178 AC_DEFINE(USE_SYS_ENDIAN_H,, Define if sys/endian.h should be included) 180 AC_DEFINE(USE_MACHINE_ENDIAN_H,, Define if machine/endian.h should be included) 182 AC_MSG_ERROR([no endian.h]) 190 #include <endian.h> [all …]
|
| /freebsd/contrib/file/doc/ |
| H A D | magic.man | 132 A 2 byte big endian length. 134 A 2 byte little endian length. 136 A 4 byte big endian length. 138 A 4 byte little endian length. 166 A 32-bit ID3 length in big-endian byte order. 168 A two-byte value in big-endian byte order. 170 A four-byte value in big-endian byte order. 172 An eight-byte value in big-endian byte order. 174 A 32-bit single precision IEEE floating point number in big-endian byte order. 176 A 64-bit double precision IEEE floating point number in big-endian byte order. [all …]
|
| /freebsd/include/ |
| H A D | byteswap.h | 15 * sys/_endian.h brings in the shared interfaces between BSD's sys/endian.h, and 16 * glibc's endian.h. However, we need to include it here to get the 18 * be compatible with including <endian.h>, <byteswap.h> or both in either order, 19 * as well as providing the BSD the bulk of sys/endian.h functionality. 25 * software uses either just <sys/endian.h>, or both <endian.h> and 26 * <byteswap.h>. However, one can't define bswap16, etc in <endian.h> because 27 * several software packages will define them only when they detect <endian.h> 28 * is included (but not when sys/endian.h is included). Defining bswap16, etc 29 * here causes compilation errors for those packages. <endian.h> and
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
| H A D | CoverageMapping.h | 31 #include "llvm/Support/Endian.h" 1216 template <class FuncRecordTy, llvm::endianness Endian> 1218 return support::endian::byte_swap<uint64_t, Endian>(Record->FuncHash); in getFuncHash() 1222 template <class FuncRecordTy, llvm::endianness Endian> 1224 return support::endian::byte_swap<uint32_t, Endian>(Record->DataSize); in getDataSize() 1228 template <class FuncRecordTy, llvm::endianness Endian> 1230 return support::endian::byte_swap<uint64_t, Endian>(Record->NameRef); in getFuncNameRef() 1235 template <class FuncRecordTy, llvm::endianness Endian> 1238 uint64_t NameRef = getFuncNameRef<FuncRecordTy, Endian>(Record); in getFuncNameViaRef() 1246 template <class FuncRecordTy, llvm::endianness Endian> [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/API/ |
| H A D | SBData.cpp | 110 void SBData::SetByteOrder(lldb::ByteOrder endian) { in SetByteOrder() argument 111 LLDB_INSTRUMENT_VA(this, endian); in SetByteOrder() 114 m_opaque_sp->SetByteOrder(endian); in SetByteOrder() 347 lldb::ByteOrder endian, uint8_t addr_size) { in SetData() argument 348 LLDB_INSTRUMENT_VA(this, error, buf, size, endian, addr_size); in SetData() 351 m_opaque_sp = std::make_shared<DataExtractor>(buf, size, endian, addr_size); in SetData() 354 m_opaque_sp->SetData(buf, size, endian); in SetData() 360 size_t size, lldb::ByteOrder endian, in SetDataWithOwnership() argument 362 LLDB_INSTRUMENT_VA(this, error, buf, size, endian, addr_size); in SetDataWithOwnership() 367 m_opaque_sp = std::make_shared<DataExtractor>(buf, size, endian, addr_size); in SetDataWithOwnership() [all …]
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | scientific | 13 >52 byte 1 , Little-endian 14 >55 byte 1 , Big-endian 32 >212 byte 17 \b, Big-endian 34 >212 byte 68 \b, Little-endian 40 >796 lelong <20 Little-endian, IP #%d, 43 >796 belong <20 Big-endian, IP #%d, 48 >796 lelong <20 Little-endian, IP #%d, 51 >796 belong <20 Big-endian, IP #%d, 84 # 0\040HEAD as UTF-16 big endian without BOM 88 # look for VERS tag encoded as UTF-16 big endian [all …]
|
| H A D | lammps | 14 >>>0x10 lelong 0x0001 Little Endian 15 >>>0x10 lelong 0x1000 Big Endian 18 # written on a little endian machine 22 >>>0x10 lelong 0x0001 Little Endian, 25 # written on a big endian machine 29 >>>0x10 lelong 0x1000 Big Endian, 33 # written on a little endian machine 37 >>>0x12 lelong 0x0001 Little Endian, 40 # written on a big endian machine 44 >>>0x12 lelong 0x1000 Big Endian,
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | ppc64.h | 19 #include "llvm/Support/Endian.h" 283 // low address for both big/little endian. Byte order in each word still follows 284 // its endian. 288 uint64_t Inst = support::endian::read64<Endianness>(Loc); in readPrefixedInstruction() 296 support::endian::write64<Endianness>(Loc, Inst); in writePrefixedInstruction() 305 support::endian::write16<Endianness>(FixupPtr, Value); in relocateHalf16() 309 support::endian::write16<Endianness>(FixupPtr, Value & ~3); in relocateHalf16() 314 support::endian::write16<Endianness>(FixupPtr, ha(Value)); in relocateHalf16() 319 support::endian::write16<Endianness>(FixupPtr, hi(Value)); in relocateHalf16() 322 support::endian::write16<Endianness>(FixupPtr, high(Value)); in relocateHalf16() [all …]
|
| /freebsd/sys/contrib/openzfs/module/icp/algs/skein/ |
| H A D | skein_port.h | 26 * Skein is "natively" little-endian (unlike SHA-xxx), for optimal 30 * SKEIN_NEED_SWAP: 0 for little-endian, 1 for big-endian 41 * platform-specific code instead (e.g., for big-endian CPUs). 49 /* here for big-endian CPUs */ 52 /* here for x86 and x86-64 CPUs (and other detected little-endian CPUs) */ 64 #ifndef Skein_Swap64 /* swap for big-endian, nop for little-endian */ 85 * this version is fully portable (big-endian or little-endian), in Skein_Put64_LSB_First() 100 * this version is fully portable (big-endian or little-endian), in Skein_Get64_LSB_First()
|
| /freebsd/sys/dev/ocs_fc/ |
| H A D | sli4.h | 222 #error big endian version not defined in sli_eq_doorbell() 249 #error big endian version not defined in sli_cq_doorbell() 274 #error big endian version not defined in sli_iftype6_eq_doorbell() 296 #error big endian version not defined in sli_iftype6_cq_doorbell() 403 #error big endian version not defined 464 #error big endian version not defined 484 #error big endian version not defined 500 #error big endian version not defined 534 #error big endian version not defined 551 #error big endian version not defined [all …]
|