| /openbmc/qemu/target/riscv/ |
| H A D | vector_internals.h | 45 #define H1(x) ((x) ^ 7) argument 46 #define H1_2(x) ((x) ^ 6) argument 47 #define H1_4(x) ((x) ^ 4) argument 48 #define H2(x) ((x) ^ 3) argument 49 #define H4(x) ((x) ^ 1) argument 50 #define H8(x) ((x)) argument 52 #define H1(x) (x) argument 53 #define H1_2(x) (x) argument 54 #define H1_4(x) (x) argument 55 #define H2(x) (x) argument [all …]
|
| /openbmc/qemu/target/s390x/ |
| H A D | cpu_models.h | 63 #define cpuid_type(x) (((x) >> 16) & 0xffff) argument 64 #define cpuid_id(x) (((x) >> 32) & 0xffffff) argument 65 #define cpuid_ver(x) (((x) >> 56) & 0xff) argument 66 #define cpuid_format(x) (((x) >> 15) & 0x1) argument 68 #define lowest_ibc(x) (((uint32_t)(x) >> 16) & 0xfff) argument 69 #define unblocked_ibc(x) ((uint32_t)(x) & 0xfff) argument 70 #define has_ibc(x) (lowest_ibc(x) != 0) argument 73 #define ibc_gen(x) (x == 0 ? 0 : ((x >> 4) + S390_GEN_Z10)) argument 74 #define ibc_ec_ga(x) (x & 0xf) argument
|
| /openbmc/u-boot/arch/xtensa/include/asm/ |
| H A D | addrspace.h | 25 #define IOADDR(x) (CONFIG_SYS_IO_BASE + (x)) argument 26 #define MEMADDR(x) (CONFIG_SYS_MEMORY_BASE + (x)) argument 27 #define PHYSADDR(x) ((x) - XCHAL_VECBASE_RESET_VADDR + \ argument
|
| /openbmc/u-boot/arch/arc/include/asm/ |
| H A D | bitops.h | 14 #define hweight32(x) generic_hweight32(x) argument 15 #define hweight16(x) generic_hweight16(x) argument 16 #define hweight8(x) generic_hweight8(x) argument
|
| /openbmc/u-boot/arch/m68k/include/asm/ |
| H A D | bitops.h | 42 #define __ffs(x) (ffs(x) - 1) argument 49 #define hweight32(x) generic_hweight32(x) argument 50 #define hweight16(x) generic_hweight16(x) argument 51 #define hweight8(x) generic_hweight8(x) argument
|
| /openbmc/openbmc/poky/meta/recipes-core/musl/bsd-headers/ |
| H A D | sys-tree.h | 277 #define SPLAY_INSERT(name, x, y) name##_SPLAY_INSERT(x, y) argument 278 #define SPLAY_REMOVE(name, x, y) name##_SPLAY_REMOVE(x, y) argument 279 #define SPLAY_FIND(name, x, y) name##_SPLAY_FIND(x, y) argument 280 #define SPLAY_NEXT(name, x, y) name##_SPLAY_NEXT(x, y) argument 281 #define SPLAY_MIN(name, x) (SPLAY_EMPTY(x) ? NULL \ argument 283 #define SPLAY_MAX(name, x) (SPLAY_EMPTY(x) ? NULL \ argument 286 #define SPLAY_FOREACH(x, name, head) \ argument 333 #define RB_AUGMENT(x) do {} while (/*CONSTCOND*/ 0) argument 722 #define RB_INSERT(name, x, y) name##_RB_INSERT(x, y) argument 723 #define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y) argument [all …]
|
| /openbmc/qemu/include/qemu/ |
| H A D | host-utils.h | 356 static inline uint8_t revbit8(uint8_t x) in revbit8() 377 static inline uint16_t revbit16(uint16_t x) in revbit16() 400 static inline uint32_t revbit32(uint32_t x) in revbit32() 423 static inline uint64_t revbit64(uint64_t x) in revbit64() 458 static inline bool sadd32_overflow(int32_t x, int32_t y, int32_t *ret) in sadd32_overflow() 471 static inline bool sadd64_overflow(int64_t x, int64_t y, int64_t *ret) in sadd64_overflow() 484 static inline bool uadd32_overflow(uint32_t x, uint32_t y, uint32_t *ret) in uadd32_overflow() 497 static inline bool uadd64_overflow(uint64_t x, uint64_t y, uint64_t *ret) in uadd64_overflow() 511 static inline bool ssub32_overflow(int32_t x, int32_t y, int32_t *ret) in ssub32_overflow() 525 static inline bool ssub64_overflow(int64_t x, int64_t y, int64_t *ret) in ssub64_overflow() [all …]
|
| /openbmc/u-boot/arch/arm/cpu/armv7/ |
| H A D | cache_v7_asm.S | 9 #define ARM(x...) argument 10 #define THUMB(x...) x argument 12 #define ARM(x...) x argument 13 #define THUMB(x...) argument
|
| /openbmc/qemu/tests/tcg/s390x/ |
| H A D | cvb.c | 20 #define OK32(x) (0x1234567800000000 | (uint32_t)(x)) argument 22 static int64_t cvb(uint64_t x) in cvb() 32 static int64_t cvby(uint64_t x) in cvby() 42 static int64_t cvbg(__uint128_t x) in cvbg()
|
| /openbmc/u-boot/arch/arm/include/asm/arch-mx7/ |
| H A D | crm_regs.h | 462 #define CCM_ANALOG_PLL_AUDIO_DIV_SELECT(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUDIO… argument 479 #define CCM_ANALOG_PLL_AUDIO_BYPASS_CLK_SRC(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUDIO… argument 488 #define CCM_ANALOG_PLL_AUDIO_TEST_DIV_SELECT(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUDIO… argument 493 #define CCM_ANALOG_PLL_AUDIO_POST_DIV_SEL(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUDIO… argument 498 #define CCM_ANALOG_PLL_AUDIO_RSVD1(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUDIO… argument 504 #define CCM_ANALOG_PLL_AUDIO_SET_DIV_SELECT(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUDIO… argument 521 #define CCM_ANALOG_PLL_AUDIO_SET_BYPASS_CLK_SRC(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUD… argument 530 #define CCM_ANALOG_PLL_AUDIO_SET_TEST_DIV_SELECT(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AU… argument 535 #define CCM_ANALOG_PLL_AUDIO_SET_POST_DIV_SEL(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUDIO… argument 540 #define CCM_ANALOG_PLL_AUDIO_SET_RSVD1(x) (((uint32_t)(((uint32_t)(x))<<CCM_ANALOG_PLL_AUDIO… argument [all …]
|
| /openbmc/u-boot/arch/sandbox/include/asm/ |
| H A D | system.h | 10 #define local_irq_save(x) argument 13 #define local_save_flags(x) argument 14 #define local_irq_restore(x) argument
|
| /openbmc/u-boot/arch/m68k/include/asm/coldfire/ |
| H A D | ssi.h | 114 #define SSI_CCR_WL(x) (((x) & 0x0F) << 13) argument 116 #define SSI_CCR_DC(x) (((x)& 0x1F) << 8) argument 118 #define SSI_CCR_PM(x) ((x) & 0xFF) argument 121 #define SSI_FCSR_RFCNT1(x) (((x) & 0x0F) << 28) argument 123 #define SSI_FCSR_TFCNT1(x) (((x) & 0x0F) << 24) argument 125 #define SSI_FCSR_RFWM1(x) (((x) & 0x0F) << 20) argument 127 #define SSI_FCSR_TFWM1(x) (((x) & 0x0F) << 16) argument 129 #define SSI_FCSR_RFCNT0(x) (((x) & 0x0F) << 12) argument 131 #define SSI_FCSR_TFCNT0(x) (((x) & 0x0F) << 8) argument 133 #define SSI_FCSR_RFWM0(x) (((x) & 0x0F) << 4) argument [all …]
|
| /openbmc/qemu/target/i386/hvf/ |
| H A D | panic.h | 21 #define VM_PANIC(x) {\ argument 26 #define VM_PANIC_ON(x) {\ argument 38 #define VM_PANIC_ON_EX(x, ...) {\ argument
|
| /openbmc/qemu/target/i386/emulate/ |
| H A D | panic.h | 21 #define VM_PANIC(x) {\ argument 26 #define VM_PANIC_ON(x) {\ argument 38 #define VM_PANIC_ON_EX(x, ...) {\ argument
|
| /openbmc/u-boot/arch/arm/include/asm/arch-tegra/ |
| H A D | gpio.h | 16 #define GPIO_BANK(x) ((x) >> 5) argument 17 #define GPIO_PORT(x) (((x) >> 3) & 0x3) argument 18 #define GPIO_FULLPORT(x) ((x) >> 3) argument 19 #define GPIO_BIT(x) ((x) & 0x7) argument
|
| /openbmc/u-boot/lib/ |
| H A D | sha256.c | 81 #define SHR(x,n) ((x & 0xFFFFFFFF) >> n) in sha256_process() argument 82 #define ROTR(x,n) (SHR(x,n) | (x << (32 - n))) in sha256_process() argument 84 #define S0(x) (ROTR(x, 7) ^ ROTR(x,18) ^ SHR(x, 3)) in sha256_process() argument 85 #define S1(x) (ROTR(x,17) ^ ROTR(x,19) ^ SHR(x,10)) in sha256_process() argument 87 #define S2(x) (ROTR(x, 2) ^ ROTR(x,13) ^ ROTR(x,22)) in sha256_process() argument 88 #define S3(x) (ROTR(x, 6) ^ ROTR(x,11) ^ ROTR(x,25)) in sha256_process() argument 90 #define F0(x,y,z) ((x & y) | (z & (x | y))) in sha256_process() argument 91 #define F1(x,y,z) (z ^ (x & (y ^ z))) in sha256_process() argument 99 #define P(a,b,c,d,e,f,g,h,x,K) { \ in sha256_process() argument
|
| /openbmc/u-boot/drivers/serial/ |
| H A D | serial_stm32.h | 10 #define CR1_OFFSET(x) (x ? 0x0c : 0x00) argument 11 #define CR3_OFFSET(x) (x ? 0x14 : 0x08) argument 12 #define BRR_OFFSET(x) (x ? 0x08 : 0x0c) argument 13 #define ISR_OFFSET(x) (x ? 0x00 : 0x1c) argument 22 #define RDR_OFFSET(x) (x ? 0x04 : 0x24) argument 23 #define TDR_OFFSET(x) (x ? 0x04 : 0x28) argument
|
| /openbmc/u-boot/include/usb/ |
| H A D | fotg210.h | 70 #define MISCR_EOF2(x) (((x) & 0x3) << 4) /* EOF 2 Timing */ argument 71 #define MISCR_EOF1(x) (((x) & 0x3) << 2) /* EOF 1 Timing */ argument 72 #define MISCR_ASST(x) (((x) & 0x3) << 0) /* Async. Sched. Sleep Timer */ argument 80 #define OTGCSR_SPD(x) (((x) >> 22) & 0x03) argument 154 #define DEVADDR_ADDR(x) ((x) & 0x7f) argument 167 #define SOFFNR_UFN(x) (((x) >> 11) & 0x7) /* SOF Micro-Frame Number */ argument 168 #define SOFFNR_FNR(x) ((x) & 0x7ff) /* SOF Frame Number */ argument 171 #define SOFMTR_TMR(x) ((x) & 0xffff) argument 181 #define CXFIFO_BYTES(x) (((x) >> 24) & 0x7f) /* CX/EP0 FIFO byte count */ argument 182 #define CXFIFO_FIFOE(x) (1 << (((x) & 0x03) + 8)) /* EPx FIFO empty */ argument [all …]
|
| /openbmc/u-boot/drivers/net/mscc_eswitch/ |
| H A D | ocelot_switch.c | 29 #define ANA_PORT_VLAN_CFG(x) (0x7000 + 0x100 * (x)) argument 31 #define ANA_PORT_VLAN_CFG_POP_CNT(x) ((x) << 18) argument 32 #define ANA_PORT_PORT_CFG(x) (0x7070 + 0x100 * (x)) argument 34 #define ANA_PGID(x) (0x8c00 + 4 * (x)) argument 43 #define SYS_PORT_MODE(x) (0x514 + 0x4 * (x)) argument 44 #define SYS_PORT_MODE_INCL_INJ_HDR(x) ((x) << 3) argument 46 #define SYS_PORT_MODE_INCL_XTR_HDR(x) ((x) << 1) argument 48 #define SYS_PAUSE_CFG(x) (0x608 + 0x4 * (x)) argument 51 #define QSYS_SWITCH_PORT_MODE(x) (0x11234 + 0x4 * (x)) argument 64 #define DEV_MAC_IFG_CFG_TX_IFG(x) ((x) << 8) argument [all …]
|
| /openbmc/qemu/include/hw/misc/ |
| H A D | aspeed_scu.h | 123 #define SCU_CLK_GET_PCLK_DIV(x) (((x) >> 23) & 0x7) argument 188 #define SCU_AST2400_HW_STRAP_SW_DEFINE(x) ((x) << 29) argument 191 #define SCU_AST2400_HW_STRAP_DRAM_SIZE(x) ((x) << 27) argument 198 #define SCU_AST2400_HW_STRAP_DRAM_CONFIG(x) ((x) << 24) argument 207 #define SCU_AST2400_HW_STRAP_SET_CLK_SOURCE(x) (((((x) & 0x3) >> 1) << 23) \ argument 209 #define SCU_AST2400_HW_STRAP_GET_CLK_SOURCE(x) (((((x) >> 23) & 0x1) << 1) \ argument 224 #define SCU_HW_STRAP_SPI_MODE(x) ((x) << 12) argument 231 #define SCU_AST2400_HW_STRAP_SET_CPU_AHB_RATIO(x) ((x) << 10) argument 232 #define SCU_AST2400_HW_STRAP_GET_CPU_AHB_RATIO(x) (((x) >> 10) & 3) argument 239 #define SCU_AST2400_HW_STRAP_GET_H_PLL_CLK(x) (((x) >> 8) & 0x3) argument [all …]
|
| /openbmc/qemu/pc-bios/optionrom/ |
| H A D | optrom.h | 83 static inline uint32_t bswap32(uint32_t x) in bswap32() 89 static inline uint64_t bswap64(uint64_t x) in bswap64() 95 static inline uint64_t cpu_to_be64(uint64_t x) in cpu_to_be64() 100 static inline uint32_t cpu_to_be32(uint32_t x) in cpu_to_be32() 105 static inline uint32_t be32_to_cpu(uint32_t x) in be32_to_cpu()
|
| /openbmc/u-boot/drivers/video/ |
| H A D | mali_dp.c | 58 #define MALIDP_H_FRONTPORCH(x) (((x) & M12BITS) << 0) argument 59 #define MALIDP_H_BACKPORCH(x) (((x) & M10BITS) << 16) argument 60 #define MALIDP_V_FRONTPORCH(x) (((x) & M12BITS) << 0) argument 61 #define MALIDP_V_BACKPORCH(x) (((x) & M8BITS) << 16) argument 62 #define MALIDP_H_SYNCWIDTH(x) (((x) & M10BITS) << 0) argument 63 #define MALIDP_V_SYNCWIDTH(x) (((x) & M8BITS) << 16) argument 64 #define MALIDP_H_ACTIVE(x) (((x) & M13BITS) << 0) argument 65 #define MALIDP_V_ACTIVE(x) (((x) & M13BITS) << 16) argument 67 #define MALIDP_CMP_V_SIZE(x) (((x) & M13BITS) << 16) argument 68 #define MALIDP_CMP_H_SIZE(x) (((x) & M13BITS) << 0) argument [all …]
|
| H A D | bus_vcxk.c | 64 #define VCXK_BWS(x, data) vcxk_bws[x] = data; argument 65 #define VCXK_BWS_WORD_SET(x, mask) vcxk_bws_word[x] |= mask; argument 66 #define VCXK_BWS_WORD_CLEAR(x, mask) vcxk_bws_word[x] &= ~mask; argument 67 #define VCXK_BWS_LONG(x, data) vcxk_bws_long[x] = data; argument 72 #define VCXK_BWS(x,data) \ argument 74 #define VCXK_BWS_WORD_SET(x,mask) \ argument 77 #define VCXK_BWS_WORD_CLEAR(x,mask) \ argument 80 #define VCXK_BWS_LONG(x,data) \ argument 186 void vcxk_setpixel(int x, int y, unsigned long color) in vcxk_setpixel() 358 int vcxk_display_bitmap(ulong addr, int x, int y) in vcxk_display_bitmap() [all …]
|
| /openbmc/u-boot/arch/arm/include/asm/proc-armv/ |
| H A D | system.h | 70 #define local_irq_save(x) \ argument 145 #define local_save_flags(x) \ argument 157 #define local_irq_restore(x) \ argument 183 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg()
|
| /openbmc/u-boot/arch/nios2/include/asm/ |
| H A D | system.h | 21 #define local_save_flags(x) __asm__ __volatile__ ( \ argument 26 #define local_irq_restore(x) __asm__ __volatile__ ( \ argument 32 #define local_irq_save(x) do { local_save_flags(x); local_irq_disable(); } \ argument
|