/DragonStub/inc/dragonstub/linux/ |
H A D | byteorder_little_endian.h | 16 #define __constant_htonl(x) ((__force __be32)___constant_swab32((x))) argument 17 #define __constant_ntohl(x) ___constant_swab32((__force __be32)(x)) argument 18 #define __constant_htons(x) ((__force __be16)___constant_swab16((x))) argument 19 #define __constant_ntohs(x) ___constant_swab16((__force __be16)(x)) argument 20 #define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x)) argument 21 #define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x)) argument 22 #define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x)) argument 23 #define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x)) argument 24 #define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x)) argument 25 #define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x)) argument [all …]
|
H A D | const.h | 26 #define _UL(x) (_AC(x, UL)) argument 27 #define _ULL(x) (_AC(x, ULL)) argument 29 #define _BITUL(x) (_UL(1) << (x)) argument 30 #define _BITULL(x) (_ULL(1) << (x)) argument 32 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) argument 33 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) argument 42 #define __is_constexpr(x) \ argument
|
H A D | pfn.h | 22 #define PFN_ALIGN(x) (((unsigned long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK) argument 23 #define PFN_UP(x) (((x) + PAGE_SIZE - 1) >> PAGE_SHIFT) argument 24 #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) argument 25 #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT) argument 26 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT)) argument
|
H A D | swab.h | 18 #define ___constant_swab16(x) ((__u16)( \ argument 22 #define ___constant_swab32(x) ((__u32)( \ argument 28 #define ___constant_swab64(x) ((__u64)( \ argument 38 #define ___constant_swahw32(x) ((__u32)( \ argument 42 #define ___constant_swahb32(x) ((__u32)( \ argument 106 #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) argument 108 #define __swab16(x) \ argument 119 #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) argument 121 #define __swab32(x) \ argument 132 #define __swab64(x) (__u64)__builtin_bswap64((__u64)(x)) argument [all …]
|
H A D | math.h | 12 #define __round_mask(x, y) ((__typeof__(x))((y)-1)) argument 22 #define round_up(x, y) ((((x)-1) | __round_mask(x, y)) + 1) argument 32 #define round_down(x, y) ((x) & ~__round_mask(x, y)) argument 60 #define roundup(x, y) \ argument 73 #define rounddown(x, y) \ argument 85 #define DIV_ROUND_CLOSEST(x, divisor) \ argument 98 #define DIV_ROUND_CLOSEST_ULL(x, divisor) \ argument
|
H A D | hex.h | 8 #define hex_asc_lo(x) hex_asc[((x)&0x0f)] argument 9 #define hex_asc_hi(x) hex_asc[((x)&0xf0) >> 4] argument 19 #define hex_asc_upper_lo(x) hex_asc_upper[((x)&0x0f)] argument 20 #define hex_asc_upper_hi(x) hex_asc_upper[((x)&0xf0) >> 4] argument
|
H A D | compiler.h | 7 #define likely(x) __builtin_expect(!!(x), 1) argument 8 #define unlikely(x) __builtin_expect(!!(x), 0) argument 9 #define likely_notrace(x) likely(x) argument 10 #define unlikely_notrace(x) unlikely(x) argument
|
H A D | align.h | 8 #define ALIGN_UP(x, a) __ALIGN_KERNEL((x), (a)) argument 9 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a)) argument 10 #define __ALIGN_MASK(x, mask) __ALIGN_KERNEL_MASK((x), (mask)) argument 13 #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) argument
|
H A D | byteorder.h | 137 #define ___htonl(x) __cpu_to_be32(x) argument 138 #define ___htons(x) __cpu_to_be16(x) argument 139 #define ___ntohl(x) __be32_to_cpu(x) argument 140 #define ___ntohs(x) __be16_to_cpu(x) argument 142 #define htonl(x) ___htonl(x) argument 143 #define ntohl(x) ___ntohl(x) argument 144 #define htons(x) ___htons(x) argument 145 #define ntohs(x) ___ntohs(x) argument
|
H A D | err.h | 28 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) argument
|
H A D | ctype.h | 24 #define __ismask(x) (_ctype[(int)(unsigned char)(x)]) argument
|
/DragonStub/apps/lib/libfdt/ |
H A D | libfdt_env.h | 31 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument 32 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument 33 #define CPU_TO_FDT32(x) \ argument 36 #define CPU_TO_FDT64(x) \ argument 42 static inline uint16_t fdt16_to_cpu(fdt16_t x) in fdt16_to_cpu() 46 static inline fdt16_t cpu_to_fdt16(uint16_t x) in cpu_to_fdt16() 51 static inline uint32_t fdt32_to_cpu(fdt32_t x) in fdt32_to_cpu() 55 static inline fdt32_t cpu_to_fdt32(uint32_t x) in cpu_to_fdt32() 60 static inline uint64_t fdt64_to_cpu(fdt64_t x) in fdt64_to_cpu() 64 static inline fdt64_t cpu_to_fdt64(uint64_t x) in cpu_to_fdt64()
|
H A D | libfdt_internal.h | 10 #define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1)) argument 11 #define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE)) argument
|
/DragonStub/inc/dragonstub/ |
H A D | compiler_types.h | 39 #define __must_hold(x) __attribute__((context(x, 1, 1))) argument 40 #define __acquires(x) __attribute__((context(x, 0, 1))) argument 41 #define __cond_acquires(x) __attribute__((context(x, 0, -1))) argument 42 #define __releases(x) __attribute__((context(x, 1, 0))) argument 43 #define __acquire(x) __context__(x, 1) argument 44 #define __release(x) __context__(x, -1) argument 45 #define __cond_lock(x, c) \ argument 70 #define __chk_user_ptr(x) (void)0 argument 71 #define __chk_io_ptr(x) (void)0 argument 73 #define __must_hold(x) argument [all …]
|
H A D | minmax.h | 21 #define __typecheck(x, y) (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) argument 23 #define __no_side_effects(x, y) (__is_constexpr(x) && __is_constexpr(y)) argument 25 #define __safe_cmp(x, y) (__typecheck(x, y) && __no_side_effects(x, y)) argument 27 #define __cmp(x, y, op) ((x)op(y) ? (x) : (y)) argument 29 #define __cmp_once(x, y, unique_x, unique_y, op) \ argument 36 #define __careful_cmp(x, y, op) \ argument 77 #define min(x, y) __careful_cmp(x, y, <) argument 84 #define max(x, y) __careful_cmp(x, y, >) argument 92 #define min3(x, y, z) min((typeof(x))min(x, y), z) argument 100 #define max3(x, y, z) max((typeof(x))max(x, y), z) argument [all …]
|
H A D | compiler_attributes.h | 34 #define __aligned(x) __attribute__((__aligned__(x))) argument 45 #define __alloc_size__(x, ...) __attribute__((__alloc_size__(x, ##__VA_ARGS__))) argument 193 #define __mode(x) __attribute__((__mode__(x))) argument
|
/DragonStub/inc/ |
H A D | eficompiler.h | 42 #define ALIGN(x) __declspec(align(x)) argument 44 #define ALIGN(x) __attribute__((__aligned__(x))) argument 49 #define __attribute__(x) argument
|
/DragonStub/lib/arm/ |
H A D | edk2asm.h | 2 #define ASM_PFX(x) x argument 3 #define GCC_ASM_EXPORT(x) \ argument
|
/DragonStub/apps/lib/ |
H A D | string.c | 20 #define TOLOWER(x) ((x) | 0x20) argument 133 #define HASZERO(x) ((x)-ONES & ~(x)&HIGHS) argument
|
H A D | cmdline.c | 24 int x, inc_counter, upper_range; in get_range() local
|
/DragonStub/inc/ia64/ |
H A D | efibind.h | 225 #define INTERFACE_DECL(x) argument 228 #define INTERFACE_DECL(x) struct x argument 230 #define INTERFACE_DECL(x) typedef struct x argument
|
/DragonStub/inc/ia32/ |
H A D | efibind.h | 278 #define INTERFACE_DECL(x) argument 281 #define INTERFACE_DECL(x) struct x argument 283 #define INTERFACE_DECL(x) typedef struct x argument
|
/DragonStub/inc/dragonstub/linux/arch/riscv/asm/ |
H A D | asm.h | 12 #define __ASM_STR(x) #x argument
|
/DragonStub/inc/x86_64/ |
H A D | efibind.h | 291 #define INTERFACE_DECL(x) argument 294 #define INTERFACE_DECL(x) struct x argument 296 #define INTERFACE_DECL(x) typedef struct x argument
|
/DragonStub/lib/ |
H A D | init.c | 237 #define HASZERO(x) ((x)-ONES & ~(x) & HIGHS) argument
|