/openbmc/u-boot/include/linux/byteorder/ |
H A D | swab.h | 59 # define __arch__swab32p(x) __swab32(*(x)) 84 # define __swab32(x) \ macro 94 # define __swab32(x) __fswab32(x) macro 130 return (((__u64)__swab32(l)) << 32) | ((__u64)(__swab32(h))); in __fswab64() 146 #define swab32 __swab32
|
H A D | little_endian.h | 40 #define __cpu_to_be32(x) ((__force __be32)__swab32((x))) 41 #define __be32_to_cpu(x) __swab32((__force __u32)(__be32)(x))
|
H A D | big_endian.h | 34 #define __cpu_to_le32(x) ((__force __le32)__swab32((x))) 35 #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
|
/openbmc/linux/include/uapi/linux/ |
H A D | swab.h | 115 #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) macro 117 #define __swab32(x) \ macro 141 return __swab32(y); in __swab() 189 return __swab32(*p); in __swab32p()
|
/openbmc/linux/drivers/crypto/intel/keembay/ |
H A D | ocs-aes.c | 885 iowrite32(__swab32(j0[2]), aes_dev->base_reg + AES_IV_1_OFFSET); in ocs_aes_gcm_write_j0() 886 iowrite32(__swab32(j0[1]), aes_dev->base_reg + AES_IV_2_OFFSET); in ocs_aes_gcm_write_j0() 887 iowrite32(__swab32(j0[0]), aes_dev->base_reg + AES_IV_3_OFFSET); in ocs_aes_gcm_write_j0() 901 tag_u32[0] = __swab32(ioread32(aes_dev->base_reg + AES_T_MAC_3_OFFSET)); in ocs_aes_gcm_read_tag() 902 tag_u32[1] = __swab32(ioread32(aes_dev->base_reg + AES_T_MAC_2_OFFSET)); in ocs_aes_gcm_read_tag() 903 tag_u32[2] = __swab32(ioread32(aes_dev->base_reg + AES_T_MAC_1_OFFSET)); in ocs_aes_gcm_read_tag() 904 tag_u32[3] = __swab32(ioread32(aes_dev->base_reg + AES_T_MAC_0_OFFSET)); in ocs_aes_gcm_read_tag() 1344 iowrite32(__swab32(iv_32[0]), in ocs_aes_ccm_op() 1346 iowrite32(__swab32(iv_32[1]), in ocs_aes_ccm_op() 1348 iowrite32(__swab32(iv_32[2]), in ocs_aes_ccm_op() [all …]
|
/openbmc/u-boot/arch/microblaze/include/asm/ |
H A D | bitops.h | 327 tmp |= __swab32(~0UL >> (32-offset)); in ext2_find_next_zero_bit() 350 return result + ffz(__swab32(tmp) | (~0UL << size)); in ext2_find_next_zero_bit() 352 return result + ffz(__swab32(tmp)); in ext2_find_next_zero_bit()
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | bitrev.h | 14 asm("bitrev.4b %0, %1" : "=r"(ret) : "r"(__swab32(x))); in __arch_bitrev32()
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | bitrev.h | 11 asm("bitswap %0, %1" : "=r"(ret) : "r"(__swab32(x))); in __arch_bitrev32()
|
/openbmc/linux/include/uapi/linux/byteorder/ |
H A D | little_endian.h | 40 #define __cpu_to_be32(x) ((__force __be32)__swab32((x))) 41 #define __be32_to_cpu(x) __swab32((__force __u32)(__be32)(x))
|
H A D | big_endian.h | 34 #define __cpu_to_le32(x) ((__force __le32)__swab32((x))) 35 #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
|
/openbmc/linux/include/linux/ |
H A D | swab.h | 8 # define swab32 __swab32
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_nvmetcp_fw_funcs.c | 160 cpu_to_le32(__swab32(((u32 *)pdu_header)[dw_index])); in init_default_nvmetcp_task() 166 cpu_to_le32(__swab32(((u32 *)nvme_cmd)[dw_index - 2])); in init_default_nvmetcp_task() 172 cpu_to_le32(__swab32(((u32 *)pdu_header)[dw_index])); in init_default_nvmetcp_task()
|
/openbmc/u-boot/drivers/fpga/ |
H A D | zynqpl.c | 107 if ((__swab32(pattern) != DUMMY_WORD) && in check_header() 108 (__swab32(pattern) == bin_format[i])) { in check_header() 109 pattern = __swab32(pattern); in check_header()
|
H A D | zynqmppl.c | 88 if ((__swab32(pattern) != DUMMY_WORD) && in check_header() 89 (__swab32(pattern) == bin_format[i])) { in check_header()
|
/openbmc/u-boot/arch/mips/include/asm/ |
H A D | bitops.h | 853 tmp |= __swab32(~0UL >> (32-offset)); in ext2_find_next_zero_bit() 876 return result + ffz(__swab32(tmp) | (~0UL << size)); in ext2_find_next_zero_bit() 878 return result + ffz(__swab32(tmp)); in ext2_find_next_zero_bit()
|
/openbmc/linux/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_v1_hw.c | 477 __swab32(identify_buffer[0])); in config_id_frame_v1_hw() 479 __swab32(identify_buffer[1])); in config_id_frame_v1_hw() 481 __swab32(identify_buffer[2])); in config_id_frame_v1_hw() 483 __swab32(identify_buffer[3])); in config_id_frame_v1_hw() 485 __swab32(identify_buffer[4])); in config_id_frame_v1_hw() 487 __swab32(identify_buffer[5])); in config_id_frame_v1_hw() 1353 frame_rcvd[i] = __swab32(idaf); in int_phyup_v1_hw()
|
H A D | hisi_sas_v2_hw.c | 908 __swab32(identify_buffer[0])); in config_id_frame_v2_hw() 910 __swab32(identify_buffer[1])); in config_id_frame_v2_hw() 912 __swab32(identify_buffer[2])); in config_id_frame_v2_hw() 914 __swab32(identify_buffer[3])); in config_id_frame_v2_hw() 916 __swab32(identify_buffer[4])); in config_id_frame_v2_hw() 918 __swab32(identify_buffer[5])); in config_id_frame_v2_hw() 2684 frame_rcvd[i] = __swab32(idaf); in phy_up_v2_hw()
|
H A D | hisi_sas_v3_hw.c | 806 __swab32(identify_buffer[0])); in config_id_frame_v3_hw() 808 __swab32(identify_buffer[1])); in config_id_frame_v3_hw() 810 __swab32(identify_buffer[2])); in config_id_frame_v3_hw() 812 __swab32(identify_buffer[3])); in config_id_frame_v3_hw() 814 __swab32(identify_buffer[4])); in config_id_frame_v3_hw() 816 __swab32(identify_buffer[5])); in config_id_frame_v3_hw() 1590 frame_rcvd[i] = __swab32(idaf); in phy_up_v3_hw()
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_utils_fw2x.c | 292 mac_addr[0] = __swab32(mac_addr[0]); in aq_fw2x_get_mac_permanent() 293 mac_addr[1] = __swab32(mac_addr[1]); in aq_fw2x_get_mac_permanent()
|
H A D | hw_atl_utils.c | 770 mac_addr[0] = __swab32(mac_addr[0]); in hw_atl_utils_get_mac_permanent() 771 mac_addr[1] = __swab32(mac_addr[1]); in hw_atl_utils_get_mac_permanent()
|
H A D | hw_atl_a0.c | 194 __swab32(rss_params->hash_secret_key[i]) : 0U; in hw_atl_a0_hw_rss_hash_set()
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | fsl_msi.c | 168 msg->data = __swab32(hwirq); in fsl_compose_msi_msg()
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | aia_aplic.c | 495 aplic_write_pending(aplic, __swab32(val32), true); in aplic_mmio_write_offset()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-fsl-qspi.c | 313 return needs_swap_endian(q) ? __swab32(a) : a; in fsl_qspi_endian_xchg()
|
/openbmc/linux/Documentation/dev-tools/ |
H A D | checkpatch.rst | 322 cpu_to_be32(x) expand to __constant_swab32 and __swab32. __swab32 325 #define __swab32(x) \
|