Home
last modified time | relevance | path

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

12345678910>>...68

/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/drivers/net/ethernet/freescale/
Dxgmac_mdio.c143 bool endian = priv->is_little_endian; in xgmac_mdio_write() local
145 mdio_stat = xgmac_read32(&regs->mdio_stat, endian); in xgmac_mdio_write()
156 xgmac_write32(mdio_stat, &regs->mdio_stat, endian); in xgmac_mdio_write()
158 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write()
164 xgmac_write32(mdio_ctl, &regs->mdio_ctl, endian); in xgmac_mdio_write()
168 xgmac_write32(regnum & 0xffff, &regs->mdio_addr, endian); in xgmac_mdio_write()
170 ret = xgmac_wait_until_free(&bus->dev, regs, endian); in xgmac_mdio_write()
176 xgmac_write32(MDIO_DATA(value), &regs->mdio_data, endian); in xgmac_mdio_write()
178 ret = xgmac_wait_until_done(&bus->dev, regs, endian); in xgmac_mdio_write()
199 bool endian = priv->is_little_endian; in xgmac_mdio_read() local
[all …]
/Linux-v6.1/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-v6.1/include/uapi/drm/
Ddrm_fourcc.h96 #define DRM_FORMAT_BIG_ENDIAN (1U<<31) /* format is big endian instead of little endian */
132 #define DRM_FORMAT_R10 fourcc_code('R', '1', '0', ' ') /* [15:0] x:R 6:10 little endian */
135 #define DRM_FORMAT_R12 fourcc_code('R', '1', '2', ' ') /* [15:0] x:R 4:12 little endian */
138 #define DRM_FORMAT_R16 fourcc_code('R', '1', '6', ' ') /* [15:0] R little endian */
141 #define DRM_FORMAT_RG88 fourcc_code('R', 'G', '8', '8') /* [15:0] R:G 8:8 little endian */
142 #define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') /* [15:0] G:R 8:8 little endian */
145 #define DRM_FORMAT_RG1616 fourcc_code('R', 'G', '3', '2') /* [31:0] R:G 16:16 little endian */
146 #define DRM_FORMAT_GR1616 fourcc_code('G', 'R', '3', '2') /* [31:0] G:R 16:16 little endian */
153 #define DRM_FORMAT_XRGB4444 fourcc_code('X', 'R', '1', '2') /* [15:0] x:R:G:B 4:4:4:4 little endian
154 #define DRM_FORMAT_XBGR4444 fourcc_code('X', 'B', '1', '2') /* [15:0] x:B:G:R 4:4:4:4 little endian
[all …]
/Linux-v6.1/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-v6.1/tools/testing/selftests/bpf/prog_tests/
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()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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.
170 * Big endian assembly bitops. nr = 0 -> byte 3 bit 0.
[all …]
/Linux-v6.1/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-v6.1/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-v6.1/Documentation/devicetree/bindings/usb/
Dgeneric-ehci.yaml101 big-endian:
104 Set this flag for HCDs with big endian descriptors and big
105 endian registers.
107 big-endian-desc:
110 Set this flag for HCDs with big endian descriptors.
112 big-endian-regs:
115 Set this flag for HCDs with big endian registers.
163 big-endian;
Dgeneric-ohci.yaml75 big-endian:
78 Set this flag for HCDs with big endian descriptors and big
79 endian registers.
81 big-endian-desc:
84 Set this flag for HCDs with big endian descriptors.
86 big-endian-regs:
89 Set this flag for HCDs with big endian registers.
/Linux-v6.1/include/uapi/linux/
Dvirtio_pcidev.h14 * the @data field should be filled in by the device (in little endian).
16 * the @data field contains the data to write (in little endian).
18 * the @data field should be filled in by the device (in little endian).
20 * the @data field contains the data to write (in little endian).
53 * Note: the fields are all in native (CPU) endian, however, the
54 * @data values will often be in little endian (see the ops above.)
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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-v6.1/Documentation/devicetree/bindings/sound/
Dfsl,spdif.yaml81 big-endian:
84 If this property is absent, the native endian mode will be in use
85 as default, or the big endian mode will be in use for all the device
86 registers. Set this flag for HCDs with big endian descriptors and big
87 endian registers.
119 big-endian;
/Linux-v6.1/Documentation/translations/zh_CN/riscv/
Dboot-image-header.rst27 u64 text_offset; /* Image load offset, little endian */
28 u64 image_size; /* Effective Image size, little endian */
29 u64 flags; /* kernel flags, little endian */
33 u64 magic = 0x5643534952; /* Magic number, little endian, "RISCV" */
34 u32 magic2 = 0x05435352; /* Magic number 2, little endian, "RSC\x05" */
/Linux-v6.1/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;

12345678910>>...68