Home
last modified time | relevance | path

Searched full:endian (Results 1 – 25 of 2424) sorted by relevance

12345678910>>...97

/openbmc/openbmc/poky/meta/classes-recipe/
H A Dsiteinfo.bbclass17 # * endianness: Return "be" for big endian targets, "le" for little endian
26 …"allarch": "endian-little bit-32", # bogus, but better than special-casing the checks below for al…
27 "aarch64": "endian-little bit-64 arm-common arm-64",
28 "aarch64_be": "endian-big bit-64 arm-common arm-64",
29 "arc": "endian-little bit-32 arc-common",
30 "arceb": "endian-big bit-32 arc-common",
31 "arm": "endian-little bit-32 arm-common arm-32",
32 "armeb": "endian-big bit-32 arm-common arm-32",
33 "avr32": "endian-big bit-32 avr32-common",
34 "bfin": "endian-little bit-32 bfin-common",
[all …]
/openbmc/linux/drivers/misc/ocxl/
H A Dmmio.c8 enum ocxl_endian endian, u32 *val) in ocxl_global_mmio_read32() argument
14 if (endian == OCXL_HOST_ENDIAN) in ocxl_global_mmio_read32()
15 endian = OCXL_BIG_ENDIAN; in ocxl_global_mmio_read32()
18 switch (endian) { in ocxl_global_mmio_read32()
33 enum ocxl_endian endian, u64 *val) in ocxl_global_mmio_read64() argument
39 if (endian == OCXL_HOST_ENDIAN) in ocxl_global_mmio_read64()
40 endian = OCXL_BIG_ENDIAN; in ocxl_global_mmio_read64()
43 switch (endian) { in ocxl_global_mmio_read64()
58 enum ocxl_endian endian, u32 val) in ocxl_global_mmio_write32() argument
64 if (endian == OCXL_HOST_ENDIAN) in ocxl_global_mmio_write32()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/regmap/
H A Dregmap.txt5 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;
/openbmc/linux/drivers/net/ethernet/freescale/
H A Dxgmac_mdio.c136 bool endian = priv->is_little_endian; in xgmac_mdio_write_c22() local
141 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_write_c22()
143 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_write_c22()
145 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write_c22()
151 xgmac_write32(mdio_ctl, &regs->mdio_ctl, endian); in xgmac_mdio_write_c22()
154 xgmac_write32(MDIO_DATA(value), &regs->mdio_data, endian); in xgmac_mdio_write_c22()
156 ret = xgmac_wait_until_done(&bus->dev, regs, endian); in xgmac_mdio_write_c22()
168 bool endian = priv->is_little_endian; in xgmac_mdio_write_c45() local
172 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_write_c45()
175 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_write_c45()
[all …]
/openbmc/qemu/docs/devel/
H A Dloads-stores.rst27 load: ``ld{sign}{size}_{endian}_p(ptr)``
29 store: ``st{size}_{endian}_p(ptr, val)``
43 ``endian``
44 - ``he`` : host endian
45 - ``be`` : big endian
46 - ``le`` : little endian
48 The ``_{endian}`` infix is omitted for target-endian accesses.
50 The target endian accessors are only available to source
55 load: ``ldn{endian}_p(ptr, sz)``
58 as an ``{endian}`` order value and returns it in a uint64_t.
[all …]
/openbmc/linux/Documentation/devicetree/bindings/phy/
H A Dlantiq,vrx200-pcie-phy.yaml49 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 …]
/openbmc/u-boot/fs/zfs/
H A Dzfs_fletcher.c35 zfs_endian_t endian, in fletcher_2_endian() argument
43 a0 += zfs_to_cpu64(ip[0], endian); in fletcher_2_endian()
44 a1 += zfs_to_cpu64(ip[1], endian); in fletcher_2_endian()
49 zcp->zc_word[0] = cpu_to_zfs64(a0, endian); in fletcher_2_endian()
50 zcp->zc_word[1] = cpu_to_zfs64(a1, endian); in fletcher_2_endian()
51 zcp->zc_word[2] = cpu_to_zfs64(b0, endian); in fletcher_2_endian()
52 zcp->zc_word[3] = cpu_to_zfs64(b1, endian); in fletcher_2_endian()
56 fletcher_4_endian(const void *buf, uint64_t size, zfs_endian_t endian, in fletcher_4_endian() argument
64 a += zfs_to_cpu32(ip[0], endian); in fletcher_4_endian()
70 zcp->zc_word[0] = cpu_to_zfs64(a, endian); in fletcher_4_endian()
[all …]
H A Dzfs.c141 zfs_endian_t endian; member
209 static int zio_read_data(blkptr_t *bp, zfs_endian_t endian,
213 zio_read(blkptr_t *bp, zfs_endian_t endian, void **buf,
237 zfs_endian_t endian __attribute__ ((unused)), in zio_checksum_off() argument
265 zfs_endian_t endian, char *buf, int size) in zio_checksum_verify() argument
279 ci->ci_func(buf, size, endian, &actual_cksum); in zio_checksum_verify()
283 ci->ci_func(buf, size, endian, &actual_cksum); in zio_checksum_verify()
348 zfs_endian_t endian = UNKNOWN_ENDIAN; in uberblock_verify() local
360 endian = LITTLE_ENDIAN; in uberblock_verify()
365 endian = BIG_ENDIAN; in uberblock_verify()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/
H A Dcommon-properties.txt13 - 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 …]
/openbmc/openbmc-tools/dbus-pcap/
H A Ddbus-pcap16 RawMessage = namedtuple("RawMessage", "endian, header, data")
18 "FixedHeader", "endian, type, flags, version, length, cookie"
246 def parse_fixed(endian, stream, tc): argument
251 val = struct.unpack("{}{}".format(endian, prop.type), val)[0]
266 def parse_string(endian, stream, tc): argument
269 size = parse_fixed(endian, stream, TypeContainer(prop.nature, None))
294 def parse_type(endian, stream, tc): argument
296 val = parse_fixed(endian, stream, tc)
298 val = parse_string(endian, stream, tc)
300 val = parse_container(endian, stream, tc)
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-security/keyutils/files/
H A D0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch4 Subject: [PATCH] tests/toolbox.inc.sh: update regex for getting endian
6 Update regex for getting endian in following condition:
23 endian=`file -L /proc/$$/exe`
24 -if expr "$endian" : '.* MSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null
25 +if expr "$endian" : '.* MSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null
27 endian=BE
28 -elif expr "$endian" : '.* LSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null
29 +elif expr "$endian" : '.* LSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null
31 endian=LE
/openbmc/linux/Documentation/netlink/specs/
H A Dovs_flow.yaml57 byte-order: big-endian
65 byte-order: big-endian
70 byte-order: big-endian
93 byte-order: big-endian
99 byte-order: big-endian
104 byte-order: big-endian
148 byte-order: big-endian
152 byte-order: big-endian
160 byte-order: big-endian
164 byte-order: big-endian
[all …]
/openbmc/qemu/include/qemu/
H A Dbswap.h114 #define CPU_CONVERT(endian, size, type)\ argument
115 static inline type endian ## size ## _to_cpu(type v)\
117 return glue(endian, _bswap)(v, size);\
120 static inline type cpu_to_ ## endian ## size(type v)\
122 return glue(endian, _bswap)(v, size);\
125 static inline void endian ## size ## _to_cpus(type *p)\
127 glue(endian, _bswaps)(p, size);\
130 static inline void cpu_to_ ## endian ## size ## s(type *p)\
132 glue(endian, _bswaps)(p, size);\
174 /* unaligned/endian-independent pointer access */
[all …]
/openbmc/linux/arch/arm/lib/
H A Dfindbit.S24 .macro find_first, endian, set, name
25 ENTRY(_find_first_\name\()bit_\endian)
36 .ifc \endian, SWAB_ENDIAN
47 ENDPROC(_find_first_\name\()bit_\endian)
50 .macro find_next, endian, set, name
51 ENTRY(_find_next_\name\()bit_\endian)
63 .ifc \endian, SWAB_ENDIAN
77 ENDPROC(_find_next_\name\()bit_\endian)
80 .macro find_bit, endian, set, name
81 find_first \endian, \set, \name
[all …]
/openbmc/linux/drivers/crypto/cavium/cpt/
H A Dcpt_hw_types.h30 * stored in memory as little-endian unless CPT()_PF_Q()_CTL[INST_BE] is set.
76 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
80 #else /* Word 0 - Little Endian */
86 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 2 - Big Endian */
91 #else /* Word 2 - Little Endian */
113 * This structure is stored in memory as little-endian unless
133 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
138 #else /* Word 0 - Little Endian */
162 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
165 #else /* Word 0 - Little Endian */
[all …]
/openbmc/linux/Documentation/devicetree/bindings/i2c/
H A Di2c-mux-reg.txt18 - 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 */
/openbmc/openbmc/meta-openembedded/meta-webserver/recipes-httpd/nginx/files/
H A D0001-Allow-the-overriding-of-the-endianness-via-the-confi.patch5 --with-endian
7 The existing configure options contain the --with-endian; however, the command
25 + echo " little endian"
28 + echo " big endian"
48 - echo " little endian"
51 - echo " big endian"
55 + echo " little endian"
58 + echo " big endian"
/openbmc/u-boot/doc/
H A DREADME.fsl-esdhc18 ESDHC IP is in little-endian mode. Accessing ESDHC registers can be
19 determined by ESDHC IP's endian mode or processor's endian mode.
21 ESDHC IP is in big-endian mode. Accessing ESDHC registers can be determined
22 by ESDHC IP's endian mode or processor's endian mode.
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_endian.c11 enum btf_endianness endian = BTF_LITTLE_ENDIAN; in test_btf_endian() local
13 enum btf_endianness endian = BTF_BIG_ENDIAN; in test_btf_endian()
17 enum btf_endianness swap_endian = 1 - endian; in test_btf_endian()
30 ASSERT_EQ(btf__endianness(btf), endian, "endian"); in test_btf_endian()
32 ASSERT_EQ(btf__endianness(btf), swap_endian, "endian"); in test_btf_endian()
44 ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian"); in test_btf_endian()
60 btf__set_endianness(swap_btf, endian); in test_btf_endian()
87 ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian"); in test_btf_endian()
/openbmc/bios-bmc-smm-error-logger/src/
H A Dbuffer.cpp7 #include <boost/endian/arithmetic.hpp>
8 #include <boost/endian/conversion.hpp>
51 boost::endian::native_to_little(bmcInterfaceVersion); in initialize()
52 initializationHeader.queueSize = boost::endian::native_to_little(queueSize); in initialize()
54 boost::endian::native_to_little(ueRegionSize); in initialize()
58 return boost::endian::native_to_little(number); in initialize()
104 boost::endian::native_to_little(newReadPtr & 0xffffff); in updateReadPtr()
127 boost::endian::native_to_little(newBmcFlag); in updateBmcFlags()
219 boost::endian::little_to_native(cachedBufferHeader.bmcReadPtr), in readEntryHeader()
228 size_t entrySize = boost::endian::little_to_native(entryHeader.entrySize); in readEntry()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/
H A Darm64-support.patch20 @@ -1228,6 +1228,7 @@ if endian == "auto":
22 'arm' : { 'endian': 'little', 'defines': ('__arm__',) },
23 'aarch64' : { 'endian': 'little', 'defines': ('__arm64__', '__aarch64__')},
24 + 'arm64' : { 'endian': 'little', 'defines': ('__arm64__', '__aarch64__')},
25 'i386' : { 'endian': 'little', 'defines': ('__i386', '_M_IX86')},
26 'ppc64le' : { 'endian': 'little', 'defines': ('__powerpc64__',)},
27 's390x' : { 'endian': 'big', 'defines': ('__s390x__',)},
40 # Using 64 bit little endian
/openbmc/linux/Documentation/devicetree/bindings/display/
H A Dsm501fb.txt19 - little-endian: available on big endian systems, to
20 set different foreign endian.
21 - big-endian: available on little endian systems, to
22 set different foreign endian.
/openbmc/linux/include/uapi/drm/
H A Ddrm_fourcc.h108 #define DRM_FORMAT_BIG_ENDIAN (1U<<31) /* format is big endian instead of little endian */
144 #define DRM_FORMAT_R10 fourcc_code('R', '1', '0', ' ') /* [15:0] x:R 6:10 little endian */
147 #define DRM_FORMAT_R12 fourcc_code('R', '1', '2', ' ') /* [15:0] x:R 4:12 little endian */
150 #define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */
153 #define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
154 #define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
157 #define DRM_FORMAT_RG1616 fourcc_code('R', 'G', '3', '2') /* [31:0] R:G 16:16 little endian */
158 #define DRM_FORMAT_GR1616 fourcc_code('G', 'R', '3', '2') /* [31:0] G:R 16:16 little endian */
165 #define DRM_FORMAT_XRGB4444 fourcc_code('X', 'R', '1', '2') /* [15:0] x:R:G:B 4:4:4:4 little endian
166 #define DRM_FORMAT_XBGR4444 fourcc_code('X', 'B', '1', '2') /* [15:0] x:B:G:R 4:4:4:4 little endian
[all …]
/openbmc/qemu/include/standard-headers/drm/
H A Ddrm_fourcc.h107 #define DRM_FORMAT_BIG_ENDIAN (1U<<31) /* format is big endian instead of little endian */
143 #define DRM_FORMAT_R10 fourcc_code('R', '1', '0', ' ') /* [15:0] x:R 6:10 little endian */
146 #define DRM_FORMAT_R12 fourcc_code('R', '1', '2', ' ') /* [15:0] x:R 4:12 little endian */
149 #define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */
152 #define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
153 #define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
156 #define DRM_FORMAT_RG1616 fourcc_code('R', 'G', '3', '2') /* [31:0] R:G 16:16 little endian */
157 #define DRM_FORMAT_GR1616 fourcc_code('G', 'R', '3', '2') /* [31:0] G:R 16:16 little endian */
164 #define DRM_FORMAT_XRGB4444 fourcc_code('X', 'R', '1', '2') /* [15:0] x:R:G:B 4:4:4:4 little endian
165 #define DRM_FORMAT_XBGR4444 fourcc_code('X', 'B', '1', '2') /* [15:0] x:B:G:R 4:4:4:4 little endian
[all …]
/openbmc/openpower-hw-diags/util/
H A Dbin_stream.hpp3 #include <endian.h>
14 * @note IMPORTANT: Assumes file data is in big-endian format.
74 /** @brief Extracts big-endian data to host uint8_t. */
82 /** @brief Extracts big-endian data to host uint16_t. */
91 /** @brief Extracts big-endian data to host uint32_t. */
100 /** @brief Extracts big-endian data to host uint64_t. */
111 * @note IMPORTANT: Assumes file data is in big-endian format.
171 /** @brief Inserts host uint8_t to big-endian data. */
179 /** @brief Inserts host uint16_t to big-endian data. */
188 /** @brief Inserts host uint32_t to big-endian data. */
[all …]

12345678910>>...97