/kvmtool/include/linux/ |
H A D | kernel.h | 7 #define __round_mask(x, y) ((__typeof__(x))((y)-1)) argument 8 #define round_down(x, y) ((x) & ~__round_mask(x, y)) argument 12 #define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1) argument 13 #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) argument 14 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) argument 33 #define min(x, y) ({ \ argument 39 #define max(x, y) ({ \ argument 45 #define min_t(type, x, y) ({ \ argument 50 #define max_t(type, x, y) ({ \ argument
|
H A D | stringify.h | 9 #define __stringify_1(x...) #x argument 10 #define __stringify(x...) __stringify_1(x) argument
|
H A D | err.h | 23 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) argument
|
H A D | kvm.h | 644 #define KVM_VM_TYPE_ARM_IPA_SIZE(x) \ argument
|
/kvmtool/include/kvm/ |
H A D | of_pci.h | 27 #define __b_x(x, p, l) (((x) & ((1<<(l))-1)) << (p)) argument 28 #define of_pci_b_n(x) __b_x((x), 31, 1) /* 0 if relocatable */ argument 29 #define of_pci_b_p(x) __b_x((x), 30, 1) /* 1 if prefetchable */ argument 30 #define of_pci_b_t(x) __b_x((x), 29, 1) /* 1 if the address is aliased */ argument 31 #define of_pci_b_ss(x) __b_x((x), 24, 2) /* the space code */ argument 32 #define of_pci_b_bbbbbbbb(x) __b_x((x), 16, 8) /* bus number */ argument 33 #define of_pci_b_ddddd(x) __b_x((x), 11, 5) /* device number */ argument 34 #define of_pci_b_fff(x) __b_x((x), 8, 3) /* function number */ argument 35 #define of_pci_b_rrrrrrrr(x) __b_x((x), 0, 8) /* register number */ argument
|
H A D | util.h | 6 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) argument 31 #define __attribute__(x) argument 113 static inline int fls_long(unsigned long x) in fls_long() 118 static inline unsigned long roundup_pow_of_two(unsigned long x) in roundup_pow_of_two() 123 #define is_power_of_two(x) ((x) > 0 ? ((x) & ((x) - 1)) == 0 : 0) argument 140 static inline int pow2_size(unsigned long x) in pow2_size()
|
H A D | virtio-pci.h | 23 #define ALIGN_UP(x, s) ALIGN((x) + (s) - 1, (s)) argument
|
/kvmtool/tests/pit/ |
H A D | tick.S | 5 #define TIMER_DIV(x) ((TIMER_FREQ+(x)/2)/(x)) argument
|
/kvmtool/x86/include/asm/ |
H A D | apicdef.h | 25 #define GET_APIC_VERSION(x) ((x) & 0xFFu) argument 26 #define GET_APIC_MAXLVT(x) (((x) >> 16) & 0xFFu) argument 28 # define APIC_INTEGRATED(x) ((x) & 0xF0u) argument 30 # define APIC_INTEGRATED(x) (1) argument 32 #define APIC_XAPIC(x) ((x) >= 0x14) argument 33 #define APIC_EXT_SPACE(x) ((x) & 0x80000000) argument 44 #define GET_APIC_LOGICAL_ID(x) (((x) >> 24) & 0xFFu) argument 45 #define SET_APIC_LOGICAL_ID(x) (((x) << 24)) argument 91 #define GET_APIC_DEST_FIELD(x) (((x) >> 24) & 0xFF) argument 92 #define SET_APIC_DEST_FIELD(x) ((x) << 24) argument [all …]
|
/kvmtool/arm/aarch32/ |
H A D | kvm-cpu.c | 7 #define ARM_CORE_REG(x) (KVM_REG_ARM | KVM_REG_SIZE_U32 | KVM_REG_ARM_CORE | \ argument
|
/kvmtool/ui/ |
H A D | vnc.c | 143 static void kbd_handle_ptr(int buttonMask, int x, int y, rfbClientPtr cl) in kbd_handle_ptr()
|
/kvmtool/arm/aarch64/ |
H A D | kvm-cpu.c | 30 #define ARM64_CORE_REG(x) __core_reg_id(KVM_REG_ARM_CORE_REG(x)) argument
|
/kvmtool/arm/ |
H A D | gic.c | 414 #define KVM_IRQCHIP_IRQ(x) (KVM_ARM_IRQ_TYPE_SPI << KVM_ARM_IRQ_TYPE_SHIFT) |\ argument
|
/kvmtool/arm/aarch32/include/asm/ |
H A D | kvm.h | 162 #define ARM_CP15_REG_SHIFT_MASK(x,n) \ argument
|
/kvmtool/arm/aarch64/include/asm/ |
H A D | kvm.h | 245 #define ARM64_SYS_REG_SHIFT_MASK(x,n) \ argument
|