/openbmc/linux/arch/mips/boot/ |
H A D | elf2ecoff.c | 162 #define swab32(x) \ macro 174 e->e_entry = swab32(e->e_entry); in convert_elf_hdr() 175 e->e_phoff = swab32(e->e_phoff); in convert_elf_hdr() 176 e->e_shoff = swab32(e->e_shoff); in convert_elf_hdr() 177 e->e_flags = swab32(e->e_flags); in convert_elf_hdr() 191 p->p_type = swab32(p->p_type); in convert_elf_phdrs() 236 a->tsize = swab32(a->tsize); in convert_ecoff_aouthdr() 237 a->dsize = swab32(a->dsize); in convert_ecoff_aouthdr() 238 a->bsize = swab32(a->bsize); in convert_ecoff_aouthdr() 239 a->entry = swab32(a->entry); in convert_ecoff_aouthdr() [all …]
|
/openbmc/u-boot/arch/arm/mach-socfpga/ |
H A D | wrap_pll_config_s10.c | 24 if (swab32(handoff_clk) == S10_HANDOFF_MAGIC_CLOCK) { in cm_get_default_config() 25 writel(swab32(handoff_clk), S10_HANDOFF_CLOCK); in cm_get_default_config() 27 conversion[i] = swab32(conversion[i]); in cm_get_default_config()
|
H A D | wrap_pinmux_config_s10.c | 16 unsigned int handoff_entry = (swab32(readl(handoff_address + in sysmgr_pinmux_handoff_read() 22 if (swab32(readl(S10_HANDOFF_MUX)) == S10_HANDOFF_MAGIC_MUX) { in sysmgr_pinmux_handoff_read() 27 handoff_chunk[i] = swab32(temp); in sysmgr_pinmux_handoff_read()
|
/openbmc/linux/net/tipc/ |
H A D | subscr.h | 99 (swap_ ? swab32(val__) : val__); \ 109 (sub__)->field_ = swap_ ? swab32(val__) : val__; \ 119 (evt__)->field_ = swap_ ? swab32(val__) : val__; \
|
/openbmc/linux/arch/mips/pci/ |
H A D | ops-lantiq.c | 47 ltq_w32(swab32(*data), ((u32 *)cfg_base)); in ltq_pci_config_access() 50 *data = swab32(*data); in ltq_pci_config_access() 58 temp = swab32(temp); in ltq_pci_config_access()
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | ibmphp_hpc.c | 154 wpg_data = swab32(data); // swap data before writing in i2c_ctrl_read() 161 wpg_data = swab32(data); in i2c_ctrl_read() 169 wpg_data = swab32(data); in i2c_ctrl_read() 180 data = swab32(wpg_data); in i2c_ctrl_read() 196 data = swab32(wpg_data); in i2c_ctrl_read() 210 data = swab32(wpg_data); in i2c_ctrl_read() 265 wpg_data = swab32(data); // swap data before writing in i2c_ctrl_write() 272 wpg_data = swab32(data); in i2c_ctrl_write() 280 wpg_data = swab32(data); in i2c_ctrl_write() 291 data = swab32(wpg_data); in i2c_ctrl_write() [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | xz_config.h | 18 return swab32(*q); in swab32p() 23 #define cpu_to_be32(x) swab32(x)
|
H A D | of.h | 32 #define cpu_to_be32(x) swab32(x) 33 #define be32_to_cpu(x) swab32(x)
|
H A D | swab.h | 11 static inline u32 swab32(u32 x) in swab32() function
|
/openbmc/linux/arch/x86/include/asm/numachip/ |
H A D | numachip_csr.h | 47 return swab32(readl(lcsr_address(offset))); in read_lcsr() 52 writel(swab32(val), lcsr_address(offset)); in write_lcsr()
|
/openbmc/linux/arch/arm/vdso/ |
H A D | vdsomunge.c | 52 #define swab32(x) \ macro 103 return swap ? swab32(word) : word; in read_elf_word() 113 *dst = swap ? swab32(val) : val; in write_elf_word()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | catas.c | 106 comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_reset_slave() 135 comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm + in mlx4_reset_slave() 234 i, swab32(readl(priv->catas_err.map + i))); in dump_err_buf() 244 slave_read = swab32(readl(&priv->mfunc.comm->slave_read)); in poll_catas()
|
H A D | crdump.c | 37 #define CR_ENABLE_BIT swab32(BIT(6)) 73 writel(swab32(1), cr_space + dev->caps.health_buffer_addrs + in crdump_enable_crspace_access()
|
/openbmc/linux/arch/m68k/include/asm/ |
H A D | io_no.h | 78 return swab32(__raw_readl(addr)); in readl() 96 __raw_writel(swab32(value), addr); in writel()
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_macsec.c | 44 mac[0] = swab32(tmp[1]); in aq_ether_addr_to_mac() 45 mac[1] = swab32(tmp[0]); in aq_ether_addr_to_mac() 105 (*key)[0] = swab32(tmp[3]); in aq_rotate_keys() 106 (*key)[1] = swab32(tmp[2]); in aq_rotate_keys() 107 (*key)[2] = swab32(tmp[1]); in aq_rotate_keys() 108 (*key)[3] = swab32(tmp[0]); in aq_rotate_keys() 110 (*key)[0] = swab32(tmp[5]); in aq_rotate_keys() 111 (*key)[1] = swab32(tmp[4]); in aq_rotate_keys() 112 (*key)[2] = swab32(tmp[3]); in aq_rotate_keys() 113 (*key)[3] = swab32(tmp[2]); in aq_rotate_keys() [all …]
|
/openbmc/linux/lib/ |
H A D | iomap.c | 65 #define pio_read32be(port) swab32(inl(port)) 70 #define mmio_read32be(addr) swab32(readl(addr)) 194 #define pio_write32be(val,port) outl(swab32(val),port) 199 #define mmio_write32be(val,port) writel(swab32(val),port)
|
/openbmc/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_catas.c | 101 switch (swab32(readl(dev->catas_err.map)) >> 24) { in handle_catas() 122 i, swab32(readl(dev->catas_err.map + i))); in handle_catas()
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | inst.h | 94 return ppc_inst_prefix(swab32(ppc_inst_val(x)), swab32(ppc_inst_suffix(x))); in ppc_inst_swab()
|
/openbmc/linux/drivers/mtd/parsers/ |
H A D | redboot.c | 149 if (swab32(buf[i].size) == master->erasesize || in parse_redboot_partitions() 151 && swab32(buf[i].size) < master->erasesize)) { in parse_redboot_partitions() 154 numslots = swab32(buf[i].size) / sizeof(struct fis_image_desc); in parse_redboot_partitions()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-mt7621.c | 214 val = swab32(val); in mt7621_spi_write_half_duplex() 230 val = swab32(val); in mt7621_spi_write_half_duplex() 239 val = swab32(val); in mt7621_spi_write_half_duplex()
|
/openbmc/linux/include/linux/ |
H A D | swab.h | 8 # define swab32 __swab32 macro
|
/openbmc/linux/drivers/soc/ixp4xx/ |
H A D | ixp4xx-npe.c | 551 if (image->magic == swab32(FW_MAGIC)) { /* swapped file */ in npe_load_firmware() 552 image->id = swab32(image->id); in npe_load_firmware() 553 image->size = swab32(image->size); in npe_load_firmware() 568 if (image->magic == swab32(FW_MAGIC)) in npe_load_firmware() 570 image->data[i] = swab32(image->data[i]); in npe_load_firmware()
|
/openbmc/linux/sound/pcmcia/pdaudiocf/ |
H A D | pdaudiocf_irq.c | 98 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_mono32sw() 118 *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor); in pdacf_transfer_stereo32sw() 119 *dst++ = swab32((((u32)val3 << 16) | (val2 & 0xff00)) ^ xor); in pdacf_transfer_stereo32sw()
|
/openbmc/linux/drivers/base/regmap/ |
H A D | regmap-mmio.c | 142 writel(swab32(val), ctx->regs + reg); in regmap_mmio_write32be() 202 writel(swab32(valp[i]), ctx->regs + reg); in regmap_mmio_noinc_write() 302 return swab32(readl(ctx->regs + reg)); in regmap_mmio_read32be()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-designware-common.c | 84 *val = swab32(readl(dev->base + reg)); in dw_reg_read_swab() 93 writel(swab32(val), dev->base + reg); in dw_reg_write_swab() 157 if (reg == swab32(DW_IC_COMP_TYPE_VALUE)) { in i2c_dw_init_regmap()
|