Home
last modified time | relevance | path

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

12345678910>>...66

/linux-5.10/drivers/misc/ocxl/
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 …]
/linux-5.10/Documentation/devicetree/bindings/regmap/
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;
/linux-5.10/Documentation/devicetree/bindings/phy/
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 …]
/linux-5.10/Documentation/devicetree/bindings/
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 …]
/linux-5.10/include/uapi/drm/
Ddrm_fourcc.h72 #define DRM_FORMAT_BIG_ENDIAN (1U<<31) /* format is big endian instead of little endian */
84 #define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */
87 #define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
88 #define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
91 #define DRM_FORMAT_RG1616 fourcc_code('R', 'G', '3', '2') /* [31:0] R:G 16:16 little endian */
92 #define DRM_FORMAT_GR1616 fourcc_code('G', 'R', '3', '2') /* [31:0] G:R 16:16 little endian */
99 #define DRM_FORMAT_XRGB4444 fourcc_code('X', 'R', '1', '2') /* [15:0] x:R:G:B 4:4:4:4 little endian
100 #define DRM_FORMAT_XBGR4444 fourcc_code('X', 'B', '1', '2') /* [15:0] x:B:G:R 4:4:4:4 little endian
101 #define DRM_FORMAT_RGBX4444 fourcc_code('R', 'X', '1', '2') /* [15:0] R:G:B:x 4:4:4:4 little endian
102 #define DRM_FORMAT_BGRX4444 fourcc_code('B', 'X', '1', '2') /* [15:0] B:G:R:x 4:4:4:4 little endian
[all …]
/linux-5.10/drivers/net/ethernet/freescale/
Dxgmac_mdio.c136 bool endian = priv->is_little_endian; in xgmac_mdio_write() local
138 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_write()
149 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_write()
151 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write()
157 xgmac_write32(mdio_ctl, &regs->mdio_ctl, endian); in xgmac_mdio_write()
161 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_write()
163 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write()
169 xgmac_write32(MDIO_DATA(value), &regs->mdio_data, endian); in xgmac_mdio_write()
171 ret = xgmac_wait_until_done(&bus->dev, regs, endian); in xgmac_mdio_write()
192 bool endian = priv->is_little_endian; in xgmac_mdio_read() local
[all …]
/linux-5.10/drivers/crypto/cavium/cpt/
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 …]
/linux-5.10/Documentation/devicetree/bindings/i2c/
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 */
/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbtf_endian.c13 enum btf_endianness endian = BTF_LITTLE_ENDIAN; in test_btf_endian() local
15 enum btf_endianness endian = BTF_BIG_ENDIAN; in test_btf_endian()
19 enum btf_endianness swap_endian = 1 - endian; in test_btf_endian()
32 ASSERT_EQ(btf__endianness(btf), endian, "endian"); in test_btf_endian()
34 ASSERT_EQ(btf__endianness(btf), swap_endian, "endian"); in test_btf_endian()
46 ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian"); in test_btf_endian()
62 btf__set_endianness(swap_btf, endian); in test_btf_endian()
89 ASSERT_EQ(btf__endianness(swap_btf), swap_endian, "endian"); in test_btf_endian()
/linux-5.10/tools/lib/traceevent/
Devent-parse-api.c252 * tep_is_file_bigendian - return the endian of the file
255 * This returns true if the file is in big endian order
266 * tep_set_file_bigendian - set if the file is in big endian order
268 * @endian: non zero, if the file is in big endian order
270 * This sets if the file is in big endian order
272 void tep_set_file_bigendian(struct tep_handle *tep, enum tep_endian endian) in tep_set_file_bigendian() argument
275 tep->file_bigendian = endian; in tep_set_file_bigendian()
279 * tep_is_local_bigendian - return the endian of the saved local machine
282 * This returns true if the saved local machine in @tep is big endian.
293 * tep_set_local_bigendian - set the stored local machine endian order
[all …]
/linux-5.10/Documentation/devicetree/bindings/usb/
Dgeneric-ehci.yaml53 big-endian:
56 Set this flag for HCDs with big endian descriptors and big
57 endian registers.
59 big-endian-desc:
62 Set this flag for HCDs with big endian descriptors.
64 big-endian-regs:
67 Set this flag for HCDs with big endian registers.
108 big-endian;
Dgeneric-ohci.yaml42 big-endian:
45 Set this flag for HCDs with big endian descriptors and big
46 endian registers.
48 big-endian-desc:
51 Set this flag for HCDs with big endian descriptors.
53 big-endian-regs:
56 Set this flag for HCDs with big endian registers.
/linux-5.10/Documentation/devicetree/bindings/display/
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.
/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cpt_hw_types.h167 * stored in memory as little-endian unless CPT()_PF_Q()_CTL[INST_BE] is set.
214 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
218 #else /* Word 0 - Little Endian */
224 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 2 - Big Endian */
229 #else /* Word 2 - Little Endian */
251 * This structure is stored in memory as little-endian unless
271 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
276 #else /* Word 0 - Little Endian */
300 #if defined(__BIG_ENDIAN_BITFIELD) /* Word 0 - Big Endian */
303 #else /* Word 0 - Little Endian */
[all …]
/linux-5.10/arch/arm/include/asm/
Dbitops.h6 * Big endian support: Copyright 2001, Nicolas Pitre
34 * First, the atomic bitops. These use native endian.
126 * A note about Endian-ness.
129 * When the ARM is put into big endian mode via CR15, the processor
138 * value irrespective of the endian mode bit.
141 * "Big Endian" mode. ARM Application Note 61 is applicable, and is
144 * The following assumes that the data bus connectivity for big endian
151 * Native endian assembly bitops. nr = 0 -> word 0 bit 0.
161 * Little endian assembly bitops. nr = 0 -> byte 0 bit 0.
169 * Big endian assembly bitops. nr = 0 -> byte 3 bit 0.
[all …]
/linux-5.10/drivers/usb/host/
Dehci-fsl.h22 #define USBMODE_ES (1 << 2) /* (Big) Endian Select */
31 #define FSL_SOC_USB_SNOOP1 0x400 /* NOTE: big-endian */
32 #define FSL_SOC_USB_SNOOP2 0x404 /* NOTE: big-endian */
33 #define FSL_SOC_USB_AGECNTTHRSH 0x408 /* NOTE: big-endian */
34 #define FSL_SOC_USB_PRICTRL 0x40c /* NOTE: big-endian */
35 #define FSL_SOC_USB_SICTRL 0x410 /* NOTE: big-endian */
36 #define FSL_SOC_USB_CTRL 0x500 /* NOTE: big-endian */
/linux-5.10/include/misc/
Docxl.h52 OCXL_BIG_ENDIAN = 0, /**< AFU data is big-endian */
53 OCXL_LITTLE_ENDIAN = 1, /**< AFU data is little-endian */
235 * @endian: the endianness that the MMIO data is in
241 enum ocxl_endian endian, u32 *val);
247 * @endian: the endianness that the MMIO data is in
253 enum ocxl_endian endian, u64 *val);
259 * @endian: the endianness that the MMIO data is in
265 enum ocxl_endian endian, u32 val);
271 * @endian: the endianness that the MMIO data is in
277 enum ocxl_endian endian, u64 val);
[all …]
/linux-5.10/drivers/media/dvb-frontends/
Datbm8830_priv.h39 #define REG_CARRIER_OFFSET 0x0827 /* 0x0827-0x0829 little endian */
42 #define REG_IF_FREQ 0x0A00 /* 0x0A00-0x0A02 little endian */
43 #define REG_OSC_CLK 0x0A03 /* 0x0A03-0x0A05 little endian */
54 #define REG_AGC_TARGET 0x1003 /* 0x1003-0x1005 little endian */
58 #define REG_AGC_PWM_VAL 0x1028 /* 0x1028-0x1029 little endian */
/linux-5.10/Documentation/devicetree/bindings/sound/
Dfsl,spdif.yaml71 big-endian:
74 If this property is absent, the native endian mode will be in use
75 as default, or the big endian mode will be in use for all the device
76 registers. Set this flag for HCDs with big endian descriptors and big
77 endian registers.
109 big-endian;
/linux-5.10/fs/ntfs/
Dtime.h14 #include "endian.h"
23 * that in little endian format.
45 * get_current_ntfs_time - get the current time in little endian NTFS format
48 * NTFS time and return that in little endian format.
60 * @time: NTFS time (little endian) to convert to Linux UTC
62 * Convert the little endian NTFS time @time to its corresponding Linux UTC
/linux-5.10/include/crypto/
Dgf128mul.h73 * in every byte in little-endian order and the bytes themselves also in
74 * little endian order. I will call this lle (little-little-endian).
81 * bytes also. This is bbe (big-big-endian). Now the buffer above
86 * Both of the above formats are easy to implement on big-endian
90 * format (bits are stored in big endian order and the bytes in little
91 * endian). The above buffer represents X^7 in this case and the
101 * Let's look at the bbe and ble format on a little endian machine.
103 * bbe on a little endian machine u32 x[4]:
113 * ble on a little endian machine
124 * ble (and lbe also) are easier to implement on a little-endian
[all …]
/linux-5.10/Documentation/devicetree/bindings/gpio/
Dgpio-mpc8xxx.txt16 - little-endian : GPIO registers are used as little endian. If not
17 present registers are used as big endian by default.
35 little-endian;
52 little-endian;
/linux-5.10/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.h40 * bus endianness (i.e., big-endian CPU + big endian bus ==> native in brcmnand_readl()
41 * endian I/O). in brcmnand_readl()
43 * Other architectures (e.g., ARM) either do not support big endian, or in brcmnand_readl()
44 * else leave I/O in little endian mode. in brcmnand_readl()
/linux-5.10/Documentation/devicetree/bindings/pwm/
Dpwm-fsl-ftm.txt14 Please see ../regmap/regmap.txt for more detail about how to specify endian
37 - big-endian: Boolean property, required if the FTM PWM registers use a big-
38 endian rather than little-endian layout.
54 big-endian;
/linux-5.10/scripts/gdb/linux/
Dutils.py81 endian = gdb.execute("show endian", to_string=True)
82 if "little endian" in endian:
84 elif "big endian" in endian:
87 raise gdb.GdbError("unknown endianness '{0}'".format(str(endian)))

12345678910>>...66