| /qemu/include/qemu/ |
| 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 …]
|
| A D | compiler.h | 34 #define xglue(x, y) x ## y argument 35 #define glue(x, y) xglue(x, y) argument 44 #define likely(x) __builtin_expect(!!(x), 1) argument 45 #define unlikely(x) __builtin_expect(!!(x), 0) argument 72 #define QEMU_BUILD_BUG_ON_STRUCT(x) \ argument 77 #define QEMU_BUILD_BUG_MSG(x, msg) _Static_assert(!(x), msg) argument 93 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ argument 109 #define __has_attribute(x) 0 /* compatibility with older GCC */ argument 204 #define QEMU_ANNOTATE(x) __attribute__((annotate(x))) argument 206 #define QEMU_ANNOTATE(x) argument [all …]
|
| 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() 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() 566 static inline bool smul32_overflow(int32_t x, int32_t y, int32_t *ret) in smul32_overflow() 579 static inline bool smul64_overflow(int64_t x, int64_t y, int64_t *ret) in smul64_overflow() [all …]
|
| A D | clang-tsa.h | 32 # define TSA(x) __attribute__((x)) argument 34 # define TSA(x) /* No TSA, make TSA attributes no-ops. */ argument 41 #define TSA_CAPABILITY(x) TSA(capability(x)) argument 48 #define TSA_GUARDED_BY(x) TSA(guarded_by(x)) argument 55 #define TSA_PT_GUARDED_BY(x) TSA(pt_guarded_by(x)) argument
|
| /qemu/hw/arm/ |
| A D | smmuv3-internal.h | 367 #define CMD_SID(x) ((x)->word[1]) argument 376 #define CMD_ADDR(x) \ argument 507 #define EVT_SET_SID(x, v) ((x)->word[1] = v) argument 552 #define STE_VALID(x) extract32((x)->word[0], 0, 1) argument 554 #define STE_CONFIG(x) extract32((x)->word[0], 1, 3) argument 608 #define CD_VALID(x) extract32((x)->word[0], 31, 1) argument 609 #define CD_ASID(x) extract32((x)->word[1], 16, 16) argument 619 #define CD_ENDI(x) extract32((x)->word[0], 15, 1) argument 620 #define CD_IPS(x) extract32((x)->word[1], 0 , 3) argument 621 #define CD_AFFD(x) extract32((x)->word[1], 3 , 1) argument [all …]
|
| /qemu/target/loongarch/ |
| A D | vec.h | 13 #define H(x) H[(x) ^ 7] argument 20 #define Q(x) Q[x] argument 22 #define B(x) B[x] argument 23 #define H(x) H[x] argument 24 #define W(x) W[x] argument 25 #define D(x) D[x] argument 26 #define UB(x) UB[x] argument 27 #define UH(x) UH[x] argument 28 #define UW(x) UW[x] argument 29 #define UD(x) UD[x] argument [all …]
|
| /qemu/subprojects/libvduse/include/ |
| A D | compiler.h | 34 #define xglue(x, y) x ## y argument 35 #define glue(x, y) xglue(x, y) argument 44 #define likely(x) __builtin_expect(!!(x), 1) argument 45 #define unlikely(x) __builtin_expect(!!(x), 0) argument 72 #define QEMU_BUILD_BUG_ON_STRUCT(x) \ argument 77 #define QEMU_BUILD_BUG_MSG(x, msg) _Static_assert(!(x), msg) argument 93 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ argument 109 #define __has_attribute(x) 0 /* compatibility with older GCC */ argument 204 #define QEMU_ANNOTATE(x) __attribute__((annotate(x))) argument 206 #define QEMU_ANNOTATE(x) argument [all …]
|
| /qemu/subprojects/libvhost-user/include/ |
| A D | compiler.h | 34 #define xglue(x, y) x ## y argument 35 #define glue(x, y) xglue(x, y) argument 44 #define likely(x) __builtin_expect(!!(x), 1) argument 45 #define unlikely(x) __builtin_expect(!!(x), 0) argument 72 #define QEMU_BUILD_BUG_ON_STRUCT(x) \ argument 77 #define QEMU_BUILD_BUG_MSG(x, msg) _Static_assert(!(x), msg) argument 93 #define __has_warning(x) 0 /* compatibility with non-clang compilers */ argument 109 #define __has_attribute(x) 0 /* compatibility with older GCC */ argument 204 #define QEMU_ANNOTATE(x) __attribute__((annotate(x))) argument 206 #define QEMU_ANNOTATE(x) argument [all …]
|
| /qemu/target/arm/tcg/ |
| A D | vec_internal.h | 33 #define H1(x) ((x) ^ 7) argument 34 #define H1_2(x) ((x) ^ 6) argument 35 #define H1_4(x) ((x) ^ 4) argument 36 #define H2(x) ((x) ^ 3) argument 39 #define H1(x) (x) argument 40 #define H1_2(x) (x) argument 41 #define H1_4(x) (x) argument 42 #define H2(x) (x) argument 43 #define H4(x) (x) argument 50 #define H8(x) (x) argument [all …]
|
| /qemu/bsd-user/ |
| A D | qemu.h | 346 # define __put_user(x, hptr) __put_user_e(x, hptr, be) argument 347 # define __get_user(x, hptr) __get_user_e(x, hptr, be) argument 349 # define __put_user(x, hptr) __put_user_e(x, hptr, le) argument 350 # define __get_user(x, hptr) __get_user_e(x, hptr, le) argument 393 #define put_user_s64(x, gaddr) put_user((x), (gaddr), int64_t) argument 395 #define put_user_s32(x, gaddr) put_user((x), (gaddr), int32_t) argument 397 #define put_user_s16(x, gaddr) put_user((x), (gaddr), int16_t) argument 398 #define put_user_u8(x, gaddr) put_user((x), (gaddr), uint8_t) argument 399 #define put_user_s8(x, gaddr) put_user((x), (gaddr), int8_t) argument 404 #define get_user_s64(x, gaddr) get_user((x), (gaddr), int64_t) argument [all …]
|
| /qemu/include/standard-headers/linux/ |
| 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/ |
| 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-user/ |
| A D | qemu.h | 249 # define __put_user(x, hptr) __put_user_e(x, hptr, be) argument 250 # define __get_user(x, hptr) __get_user_e(x, hptr, be) argument 252 # define __put_user(x, hptr) __put_user_e(x, hptr, le) argument 253 # define __get_user(x, hptr) __get_user_e(x, hptr, le) argument 261 #define put_user(x, gaddr, target_type) \ argument 274 #define get_user(x, gaddr, target_type) \ argument 293 #define put_user_s64(x, gaddr) put_user((x), (gaddr), int64_t) argument 295 #define put_user_s32(x, gaddr) put_user((x), (gaddr), int32_t) argument 297 #define put_user_s16(x, gaddr) put_user((x), (gaddr), int16_t) argument 299 #define put_user_s8(x, gaddr) put_user((x), (gaddr), int8_t) argument [all …]
|
| /qemu/target/riscv/ |
| A D | vector_internals.h | 44 #define H1(x) ((x) ^ 7) argument 45 #define H1_2(x) ((x) ^ 6) argument 46 #define H1_4(x) ((x) ^ 4) argument 47 #define H2(x) ((x) ^ 3) argument 49 #define H8(x) ((x)) argument 51 #define H1(x) (x) argument 52 #define H1_2(x) (x) argument 53 #define H1_4(x) (x) argument 54 #define H2(x) (x) argument 55 #define H4(x) (x) argument [all …]
|
| 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/target/s390x/ |
| 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/pc-bios/s390-ccw/ |
| 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/linux-user/aarch64/ |
| A D | cpu_loop.c | 30 #define get_user_code_u32(x, gaddr, env) \ argument 38 #define get_user_code_u16(x, gaddr, env) \ argument 46 #define get_user_data_u32(x, gaddr, env) \ argument 54 #define get_user_data_u16(x, gaddr, env) \ argument 62 #define put_user_data_u32(x, gaddr, env) \ argument 70 #define put_user_data_u16(x, gaddr, env) \ argument
|
| /qemu/include/hw/misc/ |
| A D | aspeed_scu.h | 117 #define SCU_CLK_GET_PCLK_DIV(x) (((x) >> 23) & 0x7) argument 182 #define SCU_AST2400_HW_STRAP_SW_DEFINE(x) ((x) << 29) argument 185 #define SCU_AST2400_HW_STRAP_DRAM_SIZE(x) ((x) << 27) argument 192 #define SCU_AST2400_HW_STRAP_DRAM_CONFIG(x) ((x) << 24) argument 218 #define SCU_HW_STRAP_SPI_MODE(x) ((x) << 12) argument 225 #define SCU_AST2400_HW_STRAP_SET_CPU_AHB_RATIO(x) ((x) << 10) argument 226 #define SCU_AST2400_HW_STRAP_GET_CPU_AHB_RATIO(x) (((x) >> 10) & 3) argument 247 #define SCU_HW_STRAP_VGA_SIZE_SET(x) ((x) << 2) argument 253 #define SCU_AST2400_HW_STRAP_BOOT_MODE(x) (x) argument 310 #define SCU_AST2500_HW_STRAP_SET_AXI_AHB_RATIO(x) ((x) << 9) argument [all …]
|
| /qemu/tests/tcg/s390x/ |
| 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()
|
| 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/ |
| 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/ |
| 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/ |
| 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 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 85 #define TINT_CSTAT_STATUS(x) (1 << (5 + (x))) argument [all …]
|
| /qemu/tests/tcg/multiarch/ |
| 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()
|