Home
last modified time | relevance | path

Searched refs:bswap16 (Results 1 – 25 of 41) sorted by relevance

12

/openbmc/qemu/include/exec/
H A Dtswap.h37 return bswap16(s); in tswap16()
64 *s = bswap16(*s); in tswap16s()
H A Dtranslator.h207 ret = bswap16(ret); in translator_lduw_swap()
/openbmc/qemu/linux-user/aarch64/
H A Dcpu_loop.c41 (x) = bswap16(x); \
57 (x) = bswap16(x); \
73 __x = bswap16(__x); \
/openbmc/qemu/pc-bios/s390-ccw/
H A Dbswap.h9 static inline uint16_t bswap16(uint16_t x) in bswap16() function
H A Dbootmap.c919 uint32_t blks_to_load = bswap16(s.sector_count) >> ET_SECTOR_SHIFT; in load_iso_bc_entry()
934 (void *)((uint64_t)bswap16(s.load_segment)), in load_iso_bc_entry()
/openbmc/qemu/linux-user/arm/
H A Dcpu_loop.c41 (x) = bswap16(x); \
57 (x) = bswap16(x); \
73 __x = bswap16(__x); \
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-access.h153 return virtio_access_is_big_endian(vdev) ? s : bswap16(s); in virtio_tswap16()
155 return virtio_access_is_big_endian(vdev) ? bswap16(s) : s; in virtio_tswap16()
/openbmc/qemu/include/qemu/
H A Dbswap.h4 #undef bswap16
5 #define bswap16(_x) __builtin_bswap16(_x) macro
H A Dhost-utils.h383 x = bswap16(x); in revbit16()
/openbmc/qemu/audio/
H A Dmixeng.c81 #define ENDIAN_CONVERT(v) bswap16 (v)
104 #define ENDIAN_CONVERT(v) bswap16 (v)
/openbmc/qemu/tests/qtest/libqos/
H A Dpci-spapr.c40 return bswap16(qtest_readw(bus->qts, s->pio_cpu_base + addr)); in qpci_spapr_pio_readw()
46 qtest_writew(bus->qts, s->pio_cpu_base + addr, bswap16(val)); in qpci_spapr_pio_writew()
H A Dvirtio.c31 val = bswap16(val); in qvirtio_readw()
50 val = bswap16(val); in qvirtio_writew()
H A Dvirtio-pci.c62 value = bswap16(value); in qvirtio_pci_config_readw()
/openbmc/qemu/tests/qtest/
H A Dendianness-test.c69 return test->bswap ? bswap16(value) : value; in isa_inw()
96 value = test->bswap ? bswap16(value) : value; in isa_outw()
/openbmc/qemu/target/ppc/
H A Dmem_helper.c416 LVE(LVEHX, cpu_lduw_data_ra, bswap16, u16) in LVE()
444 STVE(STVEHX, cpu_stw_data_ra, bswap16, u16)
/openbmc/qemu/accel/tcg/
H A Duser-exec.c998 ret = bswap16(ret); in do_ld2_mmu()
1079 val = bswap16(val); in do_st2_mmu()
1195 ret = bswap16(ret); in cpu_ldw_code_mmu()
H A Datomic_template.h44 # define BSWAP bswap16
H A Dcputlb.c2262 ret = bswap16(ret); in do_ld_2()
2268 ret = bswap16(ret); in do_ld_2()
2673 val = bswap16(val); in do_st_2()
2681 val = bswap16(val); in do_st_2()
/openbmc/qemu/hw/pci-host/
H A Dpnv_phb3.c72 val = bswap16(val); in pnv_phb3_config_write()
109 return bswap16(val); in pnv_phb3_config_read()
/openbmc/qemu/hw/dma/
H A Dsparc32_dma.c116 tmp_buf[i >> 1] = bswap16(*(uint16_t *)(buf + i)); in ledma_memory_write()
/openbmc/qemu/hw/smbios/
H A Dsmbios.c603 uuid->time_mid = bswap16(uuid->time_mid); in smbios_encode_uuid()
604 uuid->time_hi_and_version = bswap16(uuid->time_hi_and_version); in smbios_encode_uuid()
/openbmc/qemu/hw/ipack/
H A Dtpci200.c102 *val = bswap16(*val); in adjust_value()
/openbmc/qemu/target/sparc/
H A Dldst_helper.c1162 ret = bswap16(ret); in helper_ld_code()
1251 ret = bswap16(ret); in helper_ld_asi()
/openbmc/qemu/tcg/
H A Doptimize.c543 CASE_OP_32_64(bswap16): in do_constant_folding_2()
544 x = bswap16(x); in do_constant_folding_2()
1467 z_mask = bswap16(z_mask); in fold_bswap()
2869 CASE_OP_32_64(bswap16): in tcg_optimize()
H A Dtci.c732 CASE_32_64(bswap16) in tcg_qemu_tb_exec()
734 regs[r0] = bswap16(regs[r1]); in tcg_qemu_tb_exec()

12