/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 | swab.h | 18 #define ___constant_swab16(x) ((__u16)( \ argument 19 (((__u16)(x) & (__u16)0x00ffU) << 8) | \ 20 (((__u16)(x) & (__u16)0xff00U) >> 8))) 22 #define ___constant_swab32(x) ((__u32)( \ argument 23 (((__u32)(x) & (__u32)0x000000ffUL) << 24) | \ 24 (((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \ 25 (((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \ 26 (((__u32)(x) & (__u32)0xff000000UL) >> 24))) 28 #define ___constant_swab64(x) ((__u64)( \ argument 29 (((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \ [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 63 (((x) + (__y - 1)) / __y) * __y; \ 73 #define rounddown(x, y) \ argument 75 typeof(x) __x = (x); \ 85 #define DIV_ROUND_CLOSEST(x, divisor) \ argument 87 typeof(x) __x = x; \ 89 (((typeof(x))-1) > 0 || ((typeof(divisor))-1) > 0 || \ [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 43 (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
|
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 | 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 | 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 | 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 | 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 | unaligned.h | 6 type x; \ 8 __pptr->x; \ 14 type x; \ 16 __pptr->x = (val); \
|
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 34 ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ 35 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3)) 36 #define CPU_TO_FDT64(x) \ argument 37 ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ 38 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \ 39 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \ 40 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7)) [all …]
|
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 | 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 31 typeof(x) unique_x = (x); \ 36 #define __careful_cmp(x, y, op) \ argument 37 __builtin_choose_expr(__safe_cmp(x, y), __cmp(x, y, op), \ 38 __cmp_once(x, y, __UNIQUE_ID(__x), \ 77 #define min(x, y) __careful_cmp(x, y, <) argument [all …]
|
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 47 __acquire(x); \ 70 #define __chk_user_ptr(x) (void)0 argument 71 #define __chk_io_ptr(x) (void)0 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/lib/arm/ |
H A D | edk2asm.h | 2 #define ASM_PFX(x) x argument 3 #define GCC_ASM_EXPORT(x) \ argument 4 .globl x ; \ 5 .type x, %function
|
/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/apps/lib/ |
H A D | cmdline.c | 24 int x, inc_counter, upper_range; in get_range() local 29 for (x = *pint; n && x < upper_range; x++, n--) in get_range() 30 *pint++ = x; in get_range()
|
H A D | string.c | 20 #define TOLOWER(x) ((x) | 0x20) argument 133 #define HASZERO(x) ((x)-ONES & ~(x)&HIGHS) argument
|
/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 | 10 #define __ASM_STR(x) x 12 #define __ASM_STR(x) #x argument
|
/DragonStub/inc/loongarch64/ |
H A D | efibind.h | 154 #define INTERFACE_DECL(x) struct x argument
|