/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/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 | 28 BPFAsmBackend(llvm::endianness Endian) : MCAsmBackend(Endian) {} in BPFAsmBackend() argument 70 support::endian::write<uint64_t>(OS, 0x15000000, Endian); in writeNopData() 84 support::endian::write<uint32_t>(&Data[Fixup.getOffset() + 4], in applyFixup() 86 Endian); in applyFixup() 88 support::endian::write<uint32_t>(&Data[Fixup.getOffset()], Value, Endian); in applyFixup() 90 support::endian::write<uint64_t>(&Data[Fixup.getOffset()], Value, Endian); in applyFixup() 93 if (Endian == llvm::endianness::little) { in applyFixup() 95 support::endian::write32le(&Data[Fixup.getOffset() + 4], Value); in applyFixup() 98 support::endian::write32be(&Data[Fixup.getOffset() + 4], Value); in applyFixup() 103 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/dev/sound/pcm/ |
H A D | feeder_format.c | 56 #define INTPCM_DECLARE_OP_WRITE(SIGN, BIT, ENDIAN, SHIFT) \ argument 58 intpcm_write_##SIGN##BIT##ENDIAN(uint8_t *dst, intpcm_t v) \ 61 _PCM_WRITE_##SIGN##BIT##_##ENDIAN(dst, v >> SHIFT); \ 64 #define INTPCM_DECLARE_OP_8(SIGN, ENDIAN) \ argument 66 intpcm_read_##SIGN##8##ENDIAN(uint8_t *src) \ 69 return (_PCM_READ_##SIGN##8##_##ENDIAN(src) << 24); \ 71 INTPCM_DECLARE_OP_WRITE(SIGN, 8, ENDIAN, 24) 73 #define INTPCM_DECLARE_OP_16(SIGN, ENDIAN) \ argument 75 intpcm_read_##SIGN##16##ENDIAN(uint8_t *src) \ 78 return (_PCM_READ_##SIGN##16##_##ENDIAN(src) << 16); \ [all …]
|
/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/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
|
H A D | endian.h | 8 * A mostly Linux/glibc-compatible endian.h 15 * POSIX.1-2024 requires that endian.h define uint{16,32,64}_t. Although POSIX 41 * glibc's endian.h as well as POSIX.1-2024's endian.h. 48 * with that since sys/endian.h defines _BYTE_ORDER based on it. 56 * FreeBSD's sys/endian.h and machine/endian.h doesn't define a separate 63 * glibc's endian.h defines since those appear to be internal to glibc.
|
/freebsd/contrib/file/doc/ |
H A D | magic.man | 124 A 2 byte big endian length. 126 A 2 byte little endian length. 128 A 4 byte big endian length. 130 A 4 byte little endian length. 158 A 32-bit ID3 length in big-endian byte order. 160 A two-byte value in big-endian byte order. 162 A four-byte value in big-endian byte order. 164 An eight-byte value in big-endian byte order. 166 A 32-bit single precision IEEE floating point number in big-endian byte order. 168 A 64-bit double precision IEEE floating point number in big-endian byte order. [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
H A D | CoverageMapping.h | 31 #include "llvm/Support/Endian.h" 1140 template <class FuncRecordTy, llvm::endianness Endian> 1142 return support::endian::byte_swap<uint64_t, Endian>(Record->FuncHash); in getFuncHash() 1146 template <class FuncRecordTy, llvm::endianness Endian> 1148 return support::endian::byte_swap<uint32_t, Endian>(Record->DataSize); in getDataSize() 1152 template <class FuncRecordTy, llvm::endianness Endian> 1154 return support::endian::byte_swap<uint64_t, Endian>(Record->NameRef); in getFuncNameRef() 1159 template <class FuncRecordTy, llvm::endianness Endian> 1162 uint64_t NameRef = getFuncNameRef<FuncRecordTy, Endian>(Record); in getFuncNameViaRef() 1170 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,
|
H A D | aout | 9 # Little-endian 32-bit-int a.out, merged from bsdi (for BSD/OS, from 18 0 lelong 0407 a.out little-endian 32-bit executable 22 0 lelong 0410 a.out little-endian 32-bit pure executable 26 0 lelong 0413 a.out little-endian 32-bit demand paged pure executable 31 # Big-endian 32-bit-int a.out, merged from sun (for old 68010 SunOS a.out), 32 # mips (for old 68020(!) SGI a.out), and netbsd (for old big-endian a.out). 38 0 belong 0407 a.out big-endian 32-bit executable 41 0 belong 0410 a.out big-endian 32-bit pure executable 44 0 belong 0413 a.out big-endian 32-bit demand paged executable
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | xxhash.c | 50 …* By default, xxHash library provides endian-independent Hash values, based on little-endian conve… 51 * Results are therefore identical for little-endian and big-endian CPU. 52 … This comes at a performance cost for big-endian CPU, since some swapping is required to emulate l… 53 …* Should endian-independence be of no importance for your application, you may set the #define bel… 54 * to improve speed for Big-endian CPU. 244 FORCE_INLINE_TEMPLATE U32 XXH_readLE32_align(const void* ptr, XXH_endianess endian, XXH_alignment a… in XXH_readLE32_align() argument 247 return endian==XXH_littleEndian ? XXH_read32(ptr) : XXH_swap32(XXH_read32(ptr)); in XXH_readLE32_align() 249 return endian==XXH_littleEndian ? *(const U32*)ptr : XXH_swap32(*(const U32*)ptr); in XXH_readLE32_align() 252 FORCE_INLINE_TEMPLATE U32 XXH_readLE32(const void* ptr, XXH_endianess endian) in XXH_readLE32() argument 254 return XXH_readLE32_align(ptr, endian, XXH_unaligned); in XXH_readLE32() [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/algs/skein/ |
H A D | skein_port.h | 25 * Skein is "natively" little-endian (unlike SHA-xxx), for optimal 29 * SKEIN_NEED_SWAP: 0 for little-endian, 1 for big-endian 40 * platform-specific code instead (e.g., for big-endian CPUs). 48 /* here for big-endian CPUs */ 51 /* here for x86 and x86-64 CPUs (and other detected little-endian CPUs) */ 63 #ifndef Skein_Swap64 /* swap for big-endian, nop for little-endian */ 84 * this version is fully portable (big-endian or little-endian), in Skein_Put64_LSB_First() 99 * 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 …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | xxhash.cpp | 46 #include "llvm/Support/Endian.h" 118 V1 = round(V1, endian::read64le(P)); in xxHash64() 120 V2 = round(V2, endian::read64le(P)); in xxHash64() 122 V3 = round(V3, endian::read64le(P)); in xxHash64() 124 V4 = round(V4, endian::read64le(P)); in xxHash64() 142 uint64_t const K1 = round(0, endian::read64le(P)); in xxHash64() 149 H64 ^= (uint64_t)(endian::read32le(P)) * PRIME64_1; in xxHash64() 233 (uint64_t)(endian::read32le(secret) ^ endian::read32le(secret + 4)) + in XXH3_len_1to3_64b() 241 const uint32_t input1 = endian::read32le(input); in XXH3_len_4to8_64b() 242 const uint32_t input2 = endian::read32le(input + len - 4); in XXH3_len_4to8_64b() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/i2c/ |
H A D | i2c-mux-reg.txt | 18 - little-endian: The existence indicates the register is in little endian. 19 - big-endian: The existence indicates the register is in big endian. 20 If both little-endian and big-endian are omitted, the endianness of the 36 Example of a mux on PCIe card, the host is a powerpc SoC (big endian): 45 little-endian; /* little endian register on PCIe */
|