/qemu/include/qemu/ |
H A D | lockable.h | 28 qemu_make_lockable(void *x, QemuLockable *lockable) in qemu_make_lockable() 38 qemu_null_lockable(void *x) in qemu_null_lockable() 66 #define QML_OBJ_(x, name) (&(QemuLockable) { \ in QML_FUNC_() argument 84 #define QEMU_MAKE_LOCKABLE(x) \ argument 101 #define QEMU_MAKE_LOCKABLE_NONNULL(x) \ argument 113 static inline void qemu_lockable_unlock(QemuLockable *x) in qemu_lockable_unlock() 118 static inline QemuLockable *qemu_lockable_auto_lock(QemuLockable *x) in qemu_lockable_auto_lock() 124 static inline void qemu_lockable_auto_unlock(QemuLockable *x) in qemu_lockable_auto_unlock() 133 #define WITH_QEMU_LOCK_GUARD_(x, var) \ argument 161 #define WITH_QEMU_LOCK_GUARD(x) \ argument [all …]
|
H A D | compiler.h | 29 #define xglue(x, y) x ## y argument 30 #define glue(x, y) xglue(x, y) argument 39 #define likely(x) __builtin_expect(!!(x), 1) argument 40 #define unlikely(x) __builtin_expect(!!(x), 0) argument 67 #define QEMU_BUILD_BUG_ON_STRUCT(x) \ argument 72 #define QEMU_BUILD_BUG_MSG(x, msg) _Static_assert(!(x), msg) argument 74 #define QEMU_BUILD_BUG_ON(x) QEMU_BUILD_BUG_MSG(x, "not expecting: " #x) argument 76 #define QEMU_BUILD_BUG_ON_ZERO(x) (sizeof(QEMU_BUILD_BUG_ON_STRUCT(x)) - \ argument 88 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ argument 92 #define __has_feature(x) 0 /* compatibility with non-clang compilers */ argument [all …]
|
H A D | host-utils.h | 356 static inline uint8_t revbit8(uint8_t x) in revbit8() 377 static inline uint16_t revbit16(uint16_t x) in revbit16() 400 static inline uint32_t revbit32(uint32_t x) in revbit32() 423 static inline uint64_t revbit64(uint64_t x) in revbit64() 458 static inline bool sadd32_overflow(int32_t x, int32_t y, int32_t *ret) in sadd32_overflow() 471 static inline bool sadd64_overflow(int64_t x, int64_t y, int64_t *ret) in sadd64_overflow() 484 static inline bool uadd32_overflow(uint32_t x, uint32_t y, uint32_t *ret) in uadd32_overflow() 497 static inline bool uadd64_overflow(uint64_t x, uint64_t y, uint64_t *ret) in uadd64_overflow() 511 static inline bool ssub32_overflow(int32_t x, int32_t y, int32_t *ret) in ssub32_overflow() 525 static inline bool ssub64_overflow(int64_t x, int64_t y, int64_t *ret) in ssub64_overflow() [all …]
|
/qemu/hw/arm/ |
H A D | smmuv3-internal.h | 358 #define CMD_TYPE(x) extract32((x)->word[0], 0 , 8) argument 359 #define CMD_NUM(x) extract32((x)->word[0], 12 , 5) argument 360 #define CMD_SCALE(x) extract32((x)->word[0], 20 , 5) argument 361 #define CMD_SSEC(x) extract32((x)->word[0], 10, 1) argument 362 #define CMD_SSV(x) extract32((x)->word[0], 11, 1) argument 363 #define CMD_RESUME_AC(x) extract32((x)->word[0], 12, 1) argument 364 #define CMD_RESUME_AB(x) extract32((x)->word[0], 13, 1) argument 365 #define CMD_SYNC_CS(x) extract32((x)->word[0], 12, 2) argument 366 #define CMD_SSID(x) extract32((x)->word[0], 12, 20) argument 367 #define CMD_SID(x) ((x)->word[1]) argument [all …]
|
/qemu/include/user/ |
H A D | guest-host.h | 32 static inline vaddr cpu_untagged_addr(CPUState *cs, vaddr x) in cpu_untagged_addr() 42 static inline void *g2h_untagged(vaddr x) in g2h_untagged() 47 static inline void *g2h(CPUState *cs, vaddr x) in g2h() 52 static inline bool guest_addr_valid_untagged(vaddr x) in guest_addr_valid_untagged() 62 #define h2g_valid(x) \ argument 65 #define h2g_nocheck(x) ({ \ argument 70 #define h2g(x) ({ \ argument
|
/qemu/subprojects/libvduse/include/ |
H A D | compiler.h | 29 #define xglue(x, y) x ## y argument 30 #define glue(x, y) xglue(x, y) argument 39 #define likely(x) __builtin_expect(!!(x), 1) argument 40 #define unlikely(x) __builtin_expect(!!(x), 0) argument 67 #define QEMU_BUILD_BUG_ON_STRUCT(x) \ argument 72 #define QEMU_BUILD_BUG_MSG(x, msg) _Static_assert(!(x), msg) argument 74 #define QEMU_BUILD_BUG_ON(x) QEMU_BUILD_BUG_MSG(x, "not expecting: " #x) argument 76 #define QEMU_BUILD_BUG_ON_ZERO(x) (sizeof(QEMU_BUILD_BUG_ON_STRUCT(x)) - \ argument 88 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ argument 92 #define __has_feature(x) 0 /* compatibility with non-clang compilers */ argument [all …]
|
/qemu/subprojects/libvhost-user/include/ |
H A D | compiler.h | 29 #define xglue(x, y) x ## y argument 30 #define glue(x, y) xglue(x, y) argument 39 #define likely(x) __builtin_expect(!!(x), 1) argument 40 #define unlikely(x) __builtin_expect(!!(x), 0) argument 67 #define QEMU_BUILD_BUG_ON_STRUCT(x) \ argument 72 #define QEMU_BUILD_BUG_MSG(x, msg) _Static_assert(!(x), msg) argument 74 #define QEMU_BUILD_BUG_ON(x) QEMU_BUILD_BUG_MSG(x, "not expecting: " #x) argument 76 #define QEMU_BUILD_BUG_ON_ZERO(x) (sizeof(QEMU_BUILD_BUG_ON_STRUCT(x)) - \ argument 88 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ argument 92 #define __has_feature(x) 0 /* compatibility with non-clang compilers */ argument [all …]
|
/qemu/include/standard-headers/linux/ |
H A D | const.h | 25 #define _UL(x) (_AC(x, UL)) argument 26 #define _ULL(x) (_AC(x, ULL)) argument 28 #define _BITUL(x) (_UL(1) << (x)) argument 29 #define _BITULL(x) (_ULL(1) << (x)) argument 45 #define _BIT128(x) ((unsigned __int128)(1) << (x)) argument 48 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) argument 49 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) argument
|
/qemu/linux-headers/linux/ |
H A D | const.h | 25 #define _UL(x) (_AC(x, UL)) argument 26 #define _ULL(x) (_AC(x, ULL)) argument 28 #define _BITUL(x) (_UL(1) << (x)) argument 29 #define _BITULL(x) (_ULL(1) << (x)) argument 45 #define _BIT128(x) ((unsigned __int128)(1) << (x)) argument 48 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) argument 49 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) argument
|
/qemu/target/loongarch/ |
H A D | vec.h | 12 #define B(x) B[(x) ^ 15] argument 13 #define H(x) H[(x) ^ 7] argument 14 #define W(x) W[(x) ^ 3] argument 15 #define D(x) D[(x) ^ 1] argument 16 #define UB(x) UB[(x) ^ 15] argument 17 #define UH(x) UH[(x) ^ 7] argument 18 #define UW(x) UW[(x) ^ 3] argument 19 #define UD(x) UD[(x) ^ 1] argument 20 #define Q(x) Q[x] argument 22 #define B(x) B[x] argument [all …]
|
/qemu/bsd-user/ |
H A D | qemu.h | 310 #define __put_user_e(x, hptr, e) \ argument 321 #define __get_user_e(x, hptr, e) \ argument 335 # define __put_user(x, hptr) __put_user_e(x, hptr, be) argument 336 # define __get_user(x, hptr) __get_user_e(x, hptr, be) argument 338 # define __put_user(x, hptr) __put_user_e(x, hptr, le) argument 339 # define __get_user(x, hptr) __get_user_e(x, hptr, le) argument 349 #define put_user(x, gaddr, target_type) \ argument 363 #define get_user(x, gaddr, target_type) \ argument 379 #define put_user_ual(x, gaddr) put_user((x), (gaddr), abi_ulong) argument 380 #define put_user_sal(x, gaddr) put_user((x), (gaddr), abi_long) argument [all …]
|
/qemu/target/arm/tcg/ |
H A D | vec_internal.h | 37 #define H1(x) ((x) ^ 7) argument 38 #define H1_2(x) ((x) ^ 6) argument 39 #define H1_4(x) ((x) ^ 4) argument 40 #define H2(x) ((x) ^ 3) argument 41 #define H4(x) ((x) ^ 1) argument 43 #define H1(x) (x) argument 44 #define H1_2(x) (x) argument 45 #define H1_4(x) (x) argument 46 #define H2(x) (x) argument 47 #define H4(x) (x) argument [all …]
|
/qemu/linux-user/ |
H A D | qemu.h | 225 #define __put_user_e(x, hptr, e) \ argument 236 #define __get_user_e(x, hptr, e) \ argument 250 # define __put_user(x, hptr) __put_user_e(x, hptr, be) argument 251 # define __get_user(x, hptr) __get_user_e(x, hptr, be) argument 253 # define __put_user(x, hptr) __put_user_e(x, hptr, le) argument 254 # define __get_user(x, hptr) __get_user_e(x, hptr, le) argument 262 #define put_user(x, gaddr, target_type) \ argument 275 #define get_user(x, gaddr, target_type) \ argument 291 #define put_user_ual(x, gaddr) put_user((x), (gaddr), abi_ulong) argument 292 #define put_user_sal(x, gaddr) put_user((x), (gaddr), abi_long) argument [all …]
|
/qemu/target/riscv/ |
H A D | vector_internals.h | 45 #define H1(x) ((x) ^ 7) argument 46 #define H1_2(x) ((x) ^ 6) argument 47 #define H1_4(x) ((x) ^ 4) argument 48 #define H2(x) ((x) ^ 3) argument 49 #define H4(x) ((x) ^ 1) argument 50 #define H8(x) ((x)) argument 52 #define H1(x) (x) argument 53 #define H1_2(x) (x) argument 54 #define H1_4(x) (x) argument 55 #define H2(x) (x) argument [all …]
|
H A D | bitmanip_helper.c | 53 static inline target_ulong do_swap(target_ulong x, uint64_t mask, int shift) in do_swap() 60 target_ulong x = rs1; in HELPER() local 78 target_ulong x = src & ~(maskL | maskR); in do_shuf_stage() local 86 target_ulong x = rs1; in HELPER() local 97 target_ulong x = rs1; in HELPER() local
|
/qemu/pc-bios/s390-ccw/ |
H A D | bswap.h | 9 static inline uint16_t bswap16(uint16_t x) in bswap16() 14 static inline uint32_t bswap32(uint32_t x) in bswap32() 20 static inline uint64_t bswap64(uint64_t x) in bswap64()
|
/qemu/target/s390x/ |
H A D | cpu_models.h | 63 #define cpuid_type(x) (((x) >> 16) & 0xffff) argument 64 #define cpuid_id(x) (((x) >> 32) & 0xffffff) argument 65 #define cpuid_ver(x) (((x) >> 56) & 0xff) argument 66 #define cpuid_format(x) (((x) >> 15) & 0x1) argument 68 #define lowest_ibc(x) (((uint32_t)(x) >> 16) & 0xfff) argument 69 #define unblocked_ibc(x) ((uint32_t)(x) & 0xfff) argument 70 #define has_ibc(x) (lowest_ibc(x) != 0) argument 73 #define ibc_gen(x) (x == 0 ? 0 : ((x >> 4) + S390_GEN_Z10)) argument 74 #define ibc_ec_ga(x) (x & 0xf) argument
|
/qemu/include/hw/misc/ |
H A D | aspeed_scu.h | 119 #define SCU_CLK_GET_PCLK_DIV(x) (((x) >> 23) & 0x7) argument 184 #define SCU_AST2400_HW_STRAP_SW_DEFINE(x) ((x) << 29) argument 187 #define SCU_AST2400_HW_STRAP_DRAM_SIZE(x) ((x) << 27) argument 194 #define SCU_AST2400_HW_STRAP_DRAM_CONFIG(x) ((x) << 24) argument 203 #define SCU_AST2400_HW_STRAP_SET_CLK_SOURCE(x) (((((x) & 0x3) >> 1) << 23) \ argument 205 #define SCU_AST2400_HW_STRAP_GET_CLK_SOURCE(x) (((((x) >> 23) & 0x1) << 1) \ argument 220 #define SCU_HW_STRAP_SPI_MODE(x) ((x) << 12) argument 227 #define SCU_AST2400_HW_STRAP_SET_CPU_AHB_RATIO(x) ((x) << 10) argument 228 #define SCU_AST2400_HW_STRAP_GET_CPU_AHB_RATIO(x) (((x) >> 10) & 3) argument 235 #define SCU_AST2400_HW_STRAP_GET_H_PLL_CLK(x) (((x) >> 8) & 0x3) argument [all …]
|
/qemu/tests/tcg/s390x/ |
H A D | cvb.c | 20 #define OK32(x) (0x1234567800000000 | (uint32_t)(x)) argument 22 static int64_t cvb(uint64_t x) in cvb() 32 static int64_t cvby(uint64_t x) in cvby() 42 static int64_t cvbg(__uint128_t x) in cvbg()
|
H A D | cvd.c | 10 static uint64_t cvd(int32_t x) in cvd() 19 static uint64_t cvdy(int32_t x) in cvdy() 28 static __uint128_t cvdg(int64_t x) in cvdg()
|
/qemu/target/i386/hvf/ |
H A D | panic.h | 21 #define VM_PANIC(x) {\ argument 26 #define VM_PANIC_ON(x) {\ argument 38 #define VM_PANIC_ON_EX(x, ...) {\ argument
|
/qemu/target/i386/emulate/ |
H A D | panic.h | 21 #define VM_PANIC(x) {\ argument 26 #define VM_PANIC_ON(x) {\ argument 38 #define VM_PANIC_ON_EX(x, ...) {\ argument
|
/qemu/pc-bios/optionrom/ |
H A D | optrom.h | 83 static inline uint32_t bswap32(uint32_t x) in bswap32() 89 static inline uint64_t bswap64(uint64_t x) in bswap64() 95 static inline uint64_t cpu_to_be64(uint64_t x) in cpu_to_be64() 100 static inline uint32_t cpu_to_be32(uint32_t x) in cpu_to_be32() 105 static inline uint32_t be32_to_cpu(uint32_t x) in be32_to_cpu()
|
/qemu/hw/timer/ |
H A D | exynos4210_pwm.c | 67 #define TCNTB(x) (0xC * (x)) argument 68 #define TCMPB(x) (0xC * (x) + 1) argument 69 #define TCNTO(x) (0xC * (x) + 2) argument 71 #define GET_PRESCALER(reg, x) (((reg) & (0xFF << (8 * (x)))) >> 8 * (x)) argument 72 #define GET_DIVIDER(reg, x) (1 << (((reg) & (0xF << (4 * (x)))) >> (4 * (x)))) argument 78 #define TCON_TIMER_BASE(x) (((x) ? 1 : 0) * 4 + 4 * (x)) argument 79 #define TCON_TIMER_START(x) (1 << (TCON_TIMER_BASE(x) + 0)) argument 80 #define TCON_TIMER_MANUAL_UPD(x) (1 << (TCON_TIMER_BASE(x) + 1)) argument 81 #define TCON_TIMER_OUTPUT_INV(x) (1 << (TCON_TIMER_BASE(x) + 2)) argument 82 #define TCON_TIMER_AUTO_RELOAD(x) (1 << (TCON_TIMER_BASE(x) + 3)) argument [all …]
|
/qemu/tests/tcg/multiarch/ |
H A D | overflow.c | 3 int overflow_add_32(int x, int y) in overflow_add_32() 9 int overflow_add_64(long long x, long long y) in overflow_add_64() 15 int overflow_sub_32(int x, int y) in overflow_sub_32() 21 int overflow_sub_64(long long x, long long y) in overflow_sub_64()
|