/openbmc/u-boot/include/linux/ |
H A D | bitrev.h | 37 u32 __x = x; \ 38 __x = (__x >> 16) | (__x << 16);\ 39 __x = ((__x & (u32)0xFF00FF00UL) >> 8) | ((__x & (u32)0x00FF00FFUL) << 8); \ 40 __x = ((__x & (u32)0xF0F0F0F0UL) >> 4) | ((__x & (u32)0x0F0F0F0FUL) << 4); \ 41 __x = ((__x & (u32)0xCCCCCCCCUL) >> 2) | ((__x & (u32)0x33333333UL) << 2); \ 42 __x = ((__x & (u32)0xAAAAAAAAUL) >> 1) | ((__x & (u32)0x55555555UL) << 1); \ 43 __x; \ 48 u16 __x = x; \ 49 __x = (__x >> 8) | (__x << 8); \ 50 __x = ((__x & (u16)0xF0F0U) >> 4) | ((__x & (u16)0x0F0FU) << 4); \ [all …]
|
H A D | kernel.h | 85 typeof(x) __x = (x); \ 86 __x - (__x % (y)); \ 97 typeof(x) __x = x; \ 100 ((typeof(divisor))-1) > 0 || (__x) > 0) ? \ 101 (((__x) + ((__d) / 2)) / (__d)) : \ 102 (((__x) - ((__d) / 2)) / (__d)); \ 155 long __x = (x); \ 156 ret = (__x < 0) ? -__x : __x; \ 158 int __x = (x); \ 159 ret = (__x < 0) ? -__x : __x; \ [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | stv090x_reg.h | 175 #define STV090x_Px_I2CRPT(__x) (0xf12a + (__x - 1) * 0x1) argument 197 #define STV090x_GPIOxCFG(__x) (0xf141 + (__x - 1)) argument 218 #define STV090x_CSxCFG(__x) (0xf14e + __x * 0x1) argument 246 #define STV090x_AGCRFxCFG(__x) (0xf152 + (__x - 1) * 0x4) argument 256 #define STV090x_SDATxCFG(__x) (0xf153 + (__x - 1) * 0x4) argument 266 #define STV090x_SCLTxCFG(__x) (0xf154 + (__x - 1) * 0x4) argument 276 #define STV090x_DISEQCOxCFG(__x) (0xf155 + (__x - 1) * 0x4) argument 294 #define STV090x_ERRORxCFG(__x) (0xf15b + (__x - 1) * 0x5) argument 305 #define STV090x_DPNxCFG(__x) (0xf15c + (__x - 1) * 0x5) argument 316 #define STV090x_STROUTxCFG(__x) (0xf15d + (__x - 1) * 0x5) argument [all …]
|
H A D | stv090x_priv.h | 47 #define STV090x_ADDR_OFFST(__state, __x) (( \ argument 49 STV090x_P1_##__x : \ 50 STV090x_P2_##__x) 68 #define MSB(__x) ((__x >> 8) & 0xff) argument 69 #define LSB(__x) (__x & 0xff) argument
|
/openbmc/linux/include/linux/ |
H A D | bitrev.h | 76 u32 __x = x; \ 77 __builtin_constant_p(__x) ? \ 78 __constant_bitrev32(__x) : \ 79 __bitrev32(__x); \ 84 u16 __x = x; \ 85 __builtin_constant_p(__x) ? \ 86 __constant_bitrev16(__x) : \ 87 __bitrev16(__x); \ 92 u32 __x = x; \ 93 __builtin_constant_p(__x) ? \ [all …]
|
H A D | cnt32_to_63.h | 95 union cnt32_to_63 __x; \ 96 __x.hi = __m_cnt_hi; \ 98 __x.lo = (cnt_lo); \ 99 if (unlikely((s32)(__x.hi ^ __x.lo) < 0)) \ 100 __m_cnt_hi = __x.hi = (__x.hi ^ 0x80000000) + (__x.hi >> 31); \ 101 __x.val; \
|
H A D | math.h | 75 typeof(x) __x = (x); \ 76 __x - (__x % (y)); \ 88 typeof(x) __x = x; \ 92 (((__x) > 0) == ((__d) > 0))) ? \ 93 (((__x) + ((__d) / 2)) / (__d)) : \ 94 (((__x) - ((__d) / 2)) / (__d)); \ 150 (char)({ signed char __x = (x); __x<0?-__x:__x; }), \ 156 ({ signed type __x = (x); __x < 0 ? -__x : __x; }), other)
|
H A D | maple_tree.h | 724 #define MT_BUG_ON(__tree, __x) do { \ argument 726 if (__x) { \ 728 __func__, __LINE__, __x); \ 739 #define MAS_BUG_ON(__mas, __x) do { \ argument 741 if (__x) { \ 743 __func__, __LINE__, __x); \ 755 #define MAS_WR_BUG_ON(__wrmas, __x) do { \ argument 757 if (__x) { \ 759 __func__, __LINE__, __x); \ 772 #define MT_WARN_ON(__tree, __x) ({ \ argument [all …]
|
H A D | timex.h | 152 __typeof__(x) __x = (x); \ 154 __x < 0 ? -(-__x >> __s) : __x >> __s; \
|
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00reg.h | 178 #define compile_ffs2(__x) \ argument 179 __builtin_choose_expr(((__x) & 0x1), 0, 1) 181 #define compile_ffs4(__x) \ argument 182 __builtin_choose_expr(((__x) & 0x3), \ 183 (compile_ffs2((__x))), \ 184 (compile_ffs2((__x) >> 2) + 2)) 186 #define compile_ffs8(__x) \ argument 187 __builtin_choose_expr(((__x) & 0xf), \ 188 (compile_ffs4((__x))), \ 189 (compile_ffs4((__x) >> 4) + 4)) [all …]
|
H A D | rt2800mmio.h | 24 #define TX_BASE_PTR(__x) (TX_BASE_PTR0 + ((__x) * TX_QUEUE_REG_OFFSET)) argument 25 #define TX_MAX_CNT(__x) (TX_MAX_CNT0 + ((__x) * TX_QUEUE_REG_OFFSET)) argument 26 #define TX_CTX_IDX(__x) (TX_CTX_IDX0 + ((__x) * TX_QUEUE_REG_OFFSET)) argument 27 #define TX_DTX_IDX(__x) (TX_DTX_IDX0 + ((__x) * TX_QUEUE_REG_OFFSET)) argument
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | uaccess.h | 199 __typeof__(*(ptr)) __x = (x); \ 208 __pu_err = __put_user_fn(&__x, ptr, sizeof(*(ptr))); \ 230 unsigned char __x; \ 232 __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \ 233 (x) = *(__force __typeof__(*(ptr)) *)&__x; \ 237 unsigned short __x; \ 239 __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \ 240 (x) = *(__force __typeof__(*(ptr)) *)&__x; \ 244 unsigned int __x; \ 246 __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \ [all …]
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | rwonce.h | 38 typeof(&(x)) __x = &(x); \ 40 union { __unqual_scalar_typeof(*__x) __val; char __c[1]; } __u; \ 45 : "Q" (*__x) : "memory"); \ 50 : "Q" (*__x) : "memory"); \ 55 : "Q" (*__x) : "memory"); \ 60 : "Q" (*__x) : "memory"); \ 65 atomic ? (typeof(*__x))__u.__val : (*(volatile typeof(__x))__x);\
|
/openbmc/linux/include/asm-generic/ |
H A D | uaccess.h | 106 __typeof__(*(ptr)) __x = (x); \ 115 ptr, &__x); \ 152 unsigned char __x = 0; \ 154 ptr, &__x); \ 155 (x) = *(__force __typeof__(*(ptr)) *) &__x; \ 159 unsigned short __x = 0; \ 161 ptr, &__x); \ 162 (x) = *(__force __typeof__(*(ptr)) *) &__x; \ 166 unsigned int __x = 0; \ 168 ptr, &__x); \ [all …]
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | misc.h | 66 #define error_putstr(__x) __putstr(__x) argument 67 #define error_puthex(__x) __puthex(__x) argument 71 #define debug_putstr(__x) __putstr(__x) argument 72 #define debug_puthex(__x) __puthex(__x) argument 73 #define debug_putaddr(__x) { \ argument 74 debug_putstr(#__x ": 0x"); \ 75 debug_puthex((unsigned long)(__x)); \
|
/openbmc/linux/drivers/gpu/drm/exynos/ |
H A D | regs-fimc.h | 297 #define EXYNOS_CIOYSA(__x) \ argument 298 (((__x) < DEF_PP) ? \ 299 (EXYNOS_CIOYSA1 + (__x) * 4) : \ 300 (EXYNOS_CIOYSA5 + ((__x) - DEF_PP) * 4)) 301 #define EXYNOS_CIOCBSA(__x) \ argument 302 (((__x) < DEF_PP) ? \ 303 (EXYNOS_CIOCBSA1 + (__x) * 4) : \ 304 (EXYNOS_CIOCBSA5 + ((__x) - DEF_PP) * 4)) 305 #define EXYNOS_CIOCRSA(__x) \ argument 306 (((__x) < DEF_PP) ? \ [all …]
|
/openbmc/linux/arch/sh/math-emu/ |
H A D | sfp-util.h | 8 UWtype __x; \ 9 __x = (al) + (bl); \ 10 (sh) = (ah) + (bh) + (__x < (al)); \ 11 (sl) = __x; \ 16 UWtype __x; \ 17 __x = (al) - (bl); \ 18 (sh) = (ah) - (bh) - (__x > (al)); \ 19 (sl) = __x; \
|
/openbmc/qemu/linux-user/aarch64/ |
H A D | cpu_loop.c | 63 ({ typeof(x) __x = (x); \ 65 __x = bswap32(__x); \ 67 put_user_u32(__x, (gaddr)); \ 71 ({ typeof(x) __x = (x); \ 73 __x = bswap16(__x); \ 75 put_user_u16(__x, (gaddr)); \
|
/openbmc/u-boot/arch/nios2/lib/ |
H A D | longlong.h | 93 UWtype __x; \ 94 __x = (al) + (bl); \ 95 (sh) = (ah) + (bh) + (__x < (al)); \ 96 (sl) = __x; \ 103 UWtype __x; \ 104 __x = (al) - (bl); \ 105 (sh) = (ah) - (bh) - (__x > (al)); \ 106 (sl) = __x; \
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | uaccess.h | 55 __typeof__(x) __x; \ 61 : "+r" (err), "=&r" (__x) \ 63 (x) = __x; \ 173 __typeof__(*(ptr)) __x = x; \ 180 : "rJ" (__x)); \ 190 u64 __x = (__typeof__((x)-(x)))(x); \ 202 : "rJ" (__x), "rJ" (__x >> 32)); \
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | rwonce.h | 25 __unqual_scalar_typeof(x) __x = \ 26 (*(volatile typeof(__x) *)(&(x))); \ 28 (typeof(x))__x; \
|
/openbmc/linux/arch/xtensa/include/asm/ |
H A D | uaccess.h | 178 u64 __x; \ 179 if (unlikely(__copy_from_user(&__x, ptr, 8))) { \ 183 (x) = *(__force __typeof__(*(ptr)) *)&__x; \ 200 u32 __x = 0; \ 216 :[err] "+r"(err_), [tmp] "=r"(cb), [x] "+r"(__x) \ 218 (x_) = (__force __typeof__(*(addr_)))__x; \
|
/openbmc/qemu/linux-user/arm/ |
H A D | cpu_loop.c | 63 ({ typeof(x) __x = (x); \ 65 __x = bswap32(__x); \ 67 put_user_u32(__x, (gaddr)); \ 71 ({ typeof(x) __x = (x); \ 73 __x = bswap16(__x); \ 75 put_user_u16(__x, (gaddr)); \
|
/openbmc/linux/tools/testing/selftests/timers/ |
H A D | raw_skew.c | 34 __typeof__(x) __x = (x); \ 36 __x < 0 ? -(-__x >> __s) : __x >> __s; \
|
/openbmc/linux/arch/s390/kernel/ |
H A D | compat_linux.h | 14 #define A(__x) ((unsigned long)((__x) & 0x7FFFFFFFUL)) argument 15 #define AA(__x) ((unsigned long)(__x)) argument
|