Home
last modified time | relevance | path

Searched defs:x (Results 1 – 25 of 46) sorted by relevance

12

/kvm-unit-tests/lib/libfdt/
H A Dlibfdt_env.h29 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument
30 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument
31 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ argument
33 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ argument
38 static inline uint16_t fdt16_to_cpu(fdt16_t x) in fdt16_to_cpu()
42 static inline fdt16_t cpu_to_fdt16(uint16_t x) in cpu_to_fdt16()
47 static inline uint32_t fdt32_to_cpu(fdt32_t x) in fdt32_to_cpu()
51 static inline fdt32_t cpu_to_fdt32(uint32_t x) in cpu_to_fdt32()
56 static inline uint64_t fdt64_to_cpu(fdt64_t x) in fdt64_to_cpu()
60 static inline fdt64_t cpu_to_fdt64(uint64_t x) in cpu_to_fdt64()
H A Dlibfdt_internal.h10 #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) argument
11 #define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE)) argument
/kvm-unit-tests/lib/x86/asm/
H A Ddebugreg.h40 #define DR7_LOCAL_ENABLE_DRx(x) (BIT(0) << (x)) argument
41 #define DR7_GLOBAL_ENABLE_DRx(x) (BIT(1) << (x)) argument
42 #define DR7_ENABLE_DRx(x) \ argument
51 #define DR7_RW_TYPE_DRx(x, rw) ((rw) << (((x) * 4) + 16)) argument
52 #define DR7_EXECUTE_DRx(x) DR7_RW_TYPE_DRx(x, 0) argument
53 #define DR7_WRITE_DRx(x) DR7_RW_TYPE_DRx(x, 1) argument
54 #define DR7_PORT_IO_DRx(x) DR7_RW_TYPE_DRx(x, 2) argument
55 #define DR7_DATA_IO_DRx(x) DR7_RW_TYPE_DRx(x, 3) /* Read or Write */ argument
58 #define DR7_LEN_DRx(x, enc) ((enc) << (((x) * 4) + 18)) argument
59 #define DR7_LEN_1_DRx(x) DR7_LEN_DRx(x, 0) argument
[all …]
/kvm-unit-tests/lib/arm/asm/
H A Dpage.h27 #define pte_val(x) ((x).pte) argument
28 #define pmd_val(x) ((x).pmd) argument
29 #define pgd_val(x) ((x).pgd) argument
30 #define pgprot_val(x) ((x).pgprot) argument
34 #define pud_val(x) pgd_val(x) argument
36 #define __pte(x) ((pte_t) { (x) } ) argument
37 #define __pmd(x) ((pmd_t) { (x) } ) argument
38 #define __pgd(x) ((pgd_t) { (x) } ) argument
39 #define __pgprot(x) ((pgprot_t) { (x) } ) argument
41 #define __va(x) ((void *)__phys_to_virt((phys_addr_t)(x))) argument
[all …]
H A Dio.h87 static inline phys_addr_t virt_to_phys(const volatile void *x) in virt_to_phys()
93 static inline void *phys_to_virt(phys_addr_t x) in phys_to_virt()
H A Dpgtable.h27 #define pgtable_va(x) ((void *)(unsigned long)(x)) argument
28 #define pgtable_pa(x) ((unsigned long)(x)) argument
/kvm-unit-tests/lib/ppc64/asm/
H A Dpage.h41 #define pte_val(x) ((x).pte) argument
42 #define pmd_val(x) ((x).pmd) argument
43 #define pud_val(x) ((x).pud) argument
44 #define pgd_val(x) ((x).pgd) argument
45 #define pgprot_val(x) ((x).pgprot) argument
47 #define __pte(x) ((pte_t) { (x) } ) argument
48 #define __pmd(x) ((pmd_t) { (x) } ) argument
49 #define __pud(x) ((pud_t) { (x) } ) argument
50 #define __pgd(x) ((pgd_t) { (x) } ) argument
51 #define __pgprot(x) ((pgprot_t) { (x) } ) argument
[all …]
/kvm-unit-tests/lib/arm64/asm/
H A Dpage.h54 #define pte_val(x) ((x).pte) argument
55 #define pmd_val(x) ((x).pmd) argument
56 #define pud_val(x) ((x).pud) argument
57 #define pgd_val(x) ((x).pgd) argument
58 #define pgprot_val(x) ((x).pgprot) argument
60 #define __pte(x) ((pte_t) { (x) } ) argument
61 #define __pmd(x) ((pmd_t) { (x) } ) argument
62 #define __pud(x) ((pud_t) { (x) } ) argument
63 #define __pgd(x) ((pgd_t) { (x) } ) argument
64 #define __pgprot(x) ((pgprot_t) { (x) } ) argument
[all …]
H A Dio.h81 static inline phys_addr_t virt_to_phys(const volatile void *x) in virt_to_phys()
87 static inline void *phys_to_virt(phys_addr_t x) in phys_to_virt()
/kvm-unit-tests/lib/s390x/asm/
H A Dpage.h26 #define pgd_val(x) ((x).pgd) argument
27 #define p4d_val(x) ((x).p4d) argument
28 #define pud_val(x) ((x).pud) argument
29 #define pmd_val(x) ((x).pmd) argument
30 #define pte_val(x) ((x).pte) argument
32 #define __pgd(x) ((pgd_t) { (x) } ) argument
33 #define __p4d(x) ((p4d_t) { (x) } ) argument
34 #define __pud(x) ((pud_t) { (x) } ) argument
35 #define __pmd(x) ((pmd_t) { (x) } ) argument
36 #define __pte(x) ((pte_t) { (x) } ) argument
/kvm-unit-tests/lib/riscv/asm/
H A Dpage.h12 #define pte_val(x) ((pteval_t)(x)) argument
13 #define pgprot_val(x) ((pteval_t)(x)) argument
14 #define __pte(x) ((pte_t)(x)) argument
15 #define __pgprot(x) ((pgprot_t)(x)) argument
/kvm-unit-tests/lib/x86/
H A Dapic-defs.h21 #define GET_APIC_VERSION(x) ((x) & 0xFFu) argument
22 #define GET_APIC_MAXLVT(x) (((x) >> 16) & 0xFFu) argument
24 # define APIC_INTEGRATED(x) ((x) & 0xF0u) argument
26 # define APIC_INTEGRATED(x) (1) argument
28 #define APIC_XAPIC(x) ((x) >= 0x14) argument
39 #define GET_APIC_LOGICAL_ID(x) (((x) >> 24) & 0xFFu) argument
40 #define SET_APIC_LOGICAL_ID(x) (((x) << 24)) argument
84 #define GET_APIC_DEST_FIELD(x) (((x) >> 24) & 0xFF) argument
85 #define SET_APIC_DEST_FIELD(x) ((x) << 24) argument
91 #define GET_APIC_TIMER_BASE(x) (((x) >> 18) & 0x3) argument
[all …]
/kvm-unit-tests/lib/asm-generic/
H A Dio.h83 static inline u16 __bswap16(u16 x) in __bswap16()
90 static inline u32 __bswap32(u32 x) in __bswap32()
98 static inline u64 __bswap64(u64 x) in __bswap64()
111 #define le16_to_cpu(x) \ argument
115 #define le32_to_cpu(x) \ argument
119 #define le64_to_cpu(x) \ argument
123 #define be16_to_cpu(x) \ argument
127 #define be32_to_cpu(x) \ argument
131 #define be64_to_cpu(x) \ argument
H A Dpage.h24 #define __va(x) ((void *)((unsigned long) (x))) argument
25 #define __pa(x) ((unsigned long) (x)) argument
/kvm-unit-tests/lib/
H A Drand.c37 static inline uint32_t ch(uint32_t x, uint32_t y, uint32_t z) in ch()
42 static inline uint32_t maj(uint32_t x, uint32_t y, uint32_t z) in maj()
52 static inline uint32_t upper_sig0(uint32_t x) in upper_sig0()
57 static inline uint32_t upper_sig1(uint32_t x) in upper_sig1()
62 static inline uint32_t lower_sig0(uint32_t x) in lower_sig0()
67 static inline uint32_t lower_sig1(uint32_t x) in lower_sig1()
H A Dlibcflat.h35 #define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask)) argument
36 #define __ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1) argument
37 #define ALIGN(x, a) __ALIGN((x), (a)) argument
38 #define ALIGN_DOWN(x, a) __ALIGN((x) - ((a) - 1), (a)) argument
39 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) argument
H A Dalloc_page.c18 #define IS_ALIGNED_ORDER(x,order) IS_ALIGNED((x),BIT_ULL(order)) argument
29 #define IS_FRESH(x) (((x) & STATUS_MASK) == STATUS_FRESH) argument
30 #define IS_FREE(x) (((x) & STATUS_MASK) == STATUS_FREE) argument
31 #define IS_ALLOCATED(x) (((x) & STATUS_MASK) == STATUS_ALLOCATED) argument
32 #define IS_SPECIAL(x) (((x) & STATUS_MASK) == STATUS_SPECIAL) argument
34 #define IS_USABLE(x) (IS_FREE(x) || IS_FRESH(x)) argument
H A Dkbuild.h6 #define COMMENT(x) asm volatile("\n.ascii \"->#" x "\"") argument
H A Dpci.h24 #define PCI_BDF_GET_DEVFN(x) ((x) & 0xff) argument
25 #define PCI_BDF_GET_BUS(x) (((x) >> 8) & 0xff) argument
H A Dvmalloc.c20 #define GET_METADATA(x) (((struct metadata *)(x)) - 1) argument
21 #define GET_MAGIC(x) (*((unsigned long *)(x) - 1)) argument
/kvm-unit-tests/lib/linux/
H A Dconst.h26 #define _BITUL(x) (_AC(1,UL) << (x)) argument
27 #define _BITULL(x) (_AC(1,ULL) << (x)) argument
H A Dcompiler.h94 #define READ_ONCE(x) \ argument
116 #define WRITE_ONCE(x, val) \ argument
H A Dpci_regs.h417 #define PCI_X_CMD_VERSION(x) (((x) >> 12) & 3) /* Version */ argument
713 #define PCI_ERR_CAP_FEP(x) ((x) & 31) /* First Error Pointer */ argument
774 #define PCI_PWR_DATA_BASE(x) ((x) & 0xff) /* Base Power */ argument
775 #define PCI_PWR_DATA_SCALE(x) (((x) >> 8) & 3) /* Data Scale */ argument
776 #define PCI_PWR_DATA_PM_SUB(x) (((x) >> 10) & 7) /* PM Sub State */ argument
777 #define PCI_PWR_DATA_PM_STATE(x) (((x) >> 13) & 3) /* PM State */ argument
778 #define PCI_PWR_DATA_TYPE(x) (((x) >> 15) & 7) /* Type */ argument
779 #define PCI_PWR_DATA_RAIL(x) (((x) >> 18) & 7) /* Power Rail */ argument
781 #define PCI_PWR_CAP_BUDGET(x) ((x) & 1) /* Included in system budget */ argument
786 #define PCI_VNDR_HEADER_ID(x) ((x) & 0xffff) argument
[all …]
/kvm-unit-tests/x86/
H A Dtsx-ctrl.c9 unsigned x; in try_transaction() local
H A Dpmu_lbr.c23 volatile double x = 1212121212, y = 121212; in lbr_test() local

12