| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-mx5/ |
| H A D | crm_regs.h | 81 #define MXC_CCM_CCR_OSCNT(v) ((v) & 0xFF) argument 93 #define MXC_CCM_CCSR_STEP_SEL(v) (((v) & 0x3) << 7) argument 97 #define MXC_CCM_CCSR_PLL2_DIV_PODF(v) (((v) & 0x3) << 5) argument 101 #define MXC_CCM_CCSR_PLL3_DIV_PODF(v) (((v) & 0x3) << 3) argument 110 #define MXC_CCM_CACRR_ARM_PODF(v) ((v) & 0x7) argument 117 #define MXC_CCM_CBCDR_DDR_PODF(v) (((v) & 0x7) << 27) argument 123 #define MXC_CCM_CBCDR_EMI_PODF(v) (((v) & 0x7) << 22) argument 127 #define MXC_CCM_CBCDR_AXI_B_PODF(v) (((v) & 0x7) << 19) argument 131 #define MXC_CCM_CBCDR_AXI_A_PODF(v) (((v) & 0x7) << 16) argument 135 #define MXC_CCM_CBCDR_NFC_PODF(v) (((v) & 0x7) << 13) argument [all …]
|
| /rk3399_rockchip-uboot/include/asm-generic/ |
| H A D | atomic-long.h | 29 atomic64_t *v = (atomic64_t *)l; in atomic_long_read() local 36 atomic64_t *v = (atomic64_t *)l; in atomic_long_set() local 43 atomic64_t *v = (atomic64_t *)l; in atomic_long_inc() local 50 atomic64_t *v = (atomic64_t *)l; in atomic_long_dec() local 57 atomic64_t *v = (atomic64_t *)l; in atomic_long_add() local 64 atomic64_t *v = (atomic64_t *)l; in atomic_long_sub() local 72 atomic64_t *v = (atomic64_t *)l; in atomic_long_sub_and_test() local 79 atomic64_t *v = (atomic64_t *)l; in atomic_long_dec_and_test() local 86 atomic64_t *v = (atomic64_t *)l; in atomic_long_inc_and_test() local 93 atomic64_t *v = (atomic64_t *)l; in atomic_long_add_negative() local [all …]
|
| /rk3399_rockchip-uboot/arch/mips/mach-ath79/qca953x/ |
| H A D | lowlevel_init.S | 26 #define SET_FIELD(name, v) (((v) & QCA953X_##name##_MASK) << \ argument 29 #define DPLL2_KI(v) SET_FIELD(SRIF_DPLL2_KI, v) argument 30 #define DPLL2_KD(v) SET_FIELD(SRIF_DPLL2_KD, v) argument 34 #define PLL_CPU_NFRAC(v) SET_FIELD(PLL_CPU_CONFIG_NFRAC, v) argument 35 #define PLL_CPU_NINT(v) SET_FIELD(PLL_CPU_CONFIG_NINT, v) argument 36 #define PLL_CPU_REFDIV(v) SET_FIELD(PLL_CPU_CONFIG_REFDIV, v) argument 37 #define PLL_CPU_OUTDIV(v) SET_FIELD(PLL_CPU_CONFIG_OUTDIV, v) argument 44 #define PLL_DDR_NFRAC(v) SET_FIELD(PLL_DDR_CONFIG_NFRAC, v) argument 45 #define PLL_DDR_NINT(v) SET_FIELD(PLL_DDR_CONFIG_NINT, v) argument 46 #define PLL_DDR_REFDIV(v) SET_FIELD(PLL_DDR_CONFIG_REFDIV, v) argument [all …]
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-vf610/ |
| H A D | imx-regs.h | 132 #define DDRMC_CR02_DRAM_TINIT(v) ((v) & 0xffffff) argument 133 #define DDRMC_CR10_TRST_PWRON(v) (v) argument 134 #define DDRMC_CR11_CKE_INACTIVE(v) (v) argument 135 #define DDRMC_CR12_WRLAT(v) (((v) & 0x1f) << 8) argument 136 #define DDRMC_CR12_CASLAT_LIN(v) ((v) & 0x3f) argument 137 #define DDRMC_CR13_TRC(v) (((v) & 0xff) << 24) argument 138 #define DDRMC_CR13_TRRD(v) (((v) & 0xff) << 16) argument 139 #define DDRMC_CR13_TCCD(v) (((v) & 0x1f) << 8) argument 140 #define DDRMC_CR13_TBST_INT_INTERVAL(v) ((v) & 0x7) argument 141 #define DDRMC_CR14_TFAW(v) (((v) & 0x3f) << 24) argument [all …]
|
| H A D | crm_regs.h | 119 #define CCM_CCR_OSCNT(v) ((v) & 0xff) argument 123 #define CCM_CCSR_PLL2_PFD_CLK_SEL(v) (((v) & 0x7) << 19) argument 127 #define CCM_CCSR_PLL1_PFD_CLK_SEL(v) (((v) & 0x7) << 16) argument 138 #define CCM_CCSR_DDRC_CLK_SEL(v) ((v) << 6) argument 139 #define CCM_CCSR_FAST_CLK_SEL(v) ((v) << 5) argument 143 #define CCM_CCSR_SYS_CLK_SEL(v) ((v) & 0x7) argument 147 #define CCM_CACRR_IPG_CLK_DIV(v) (((v) & 0x3) << 11) argument 150 #define CCM_CACRR_BUS_CLK_DIV(v) (((v) & 0x7) << 3) argument 153 #define CCM_CACRR_ARM_CLK_DIV(v) ((v) & 0x7) argument 160 #define CCM_CSCMR1_QSPI0_CLK_SEL(v) (((v) & 0x3) << 22) argument [all …]
|
| /rk3399_rockchip-uboot/arch/powerpc/include/asm/ |
| H A D | atomic.h | 16 #define atomic_read(v) ((v)->counter) argument 17 #define atomic_set(v,i) (((v)->counter) = (i)) argument 22 static __inline__ int atomic_add_return(int a, atomic_t *v) in atomic_add_return() 38 static __inline__ int atomic_sub_return(int a, atomic_t *v) in atomic_sub_return() 54 static __inline__ int atomic_inc_return(atomic_t *v) in atomic_inc_return() 70 static __inline__ int atomic_dec_return(atomic_t *v) in atomic_dec_return() 86 #define atomic_add(a, v) ((void) atomic_add_return((a), (v))) argument 87 #define atomic_sub(a, v) ((void) atomic_sub_return((a), (v))) argument 88 #define atomic_sub_and_test(a, v) (atomic_sub_return((a), (v)) == 0) argument 89 #define atomic_inc(v) ((void) atomic_inc_return((v))) argument [all …]
|
| /rk3399_rockchip-uboot/drivers/memory/ |
| H A D | ti-aemif.c | 19 #define AEMIF_CFG_SELECT_STROBE(v) ((v) ? 1 << 31 : 0) argument 20 #define AEMIF_CFG_EXTEND_WAIT(v) ((v) ? 1 << 30 : 0) argument 21 #define AEMIF_CFG_WR_SETUP(v) (((v) & 0x0f) << 26) argument 22 #define AEMIF_CFG_WR_STROBE(v) (((v) & 0x3f) << 20) argument 23 #define AEMIF_CFG_WR_HOLD(v) (((v) & 0x07) << 17) argument 24 #define AEMIF_CFG_RD_SETUP(v) (((v) & 0x0f) << 13) argument 25 #define AEMIF_CFG_RD_STROBE(v) (((v) & 0x3f) << 7) argument 26 #define AEMIF_CFG_RD_HOLD(v) (((v) & 0x07) << 4) argument 27 #define AEMIF_CFG_TURN_AROUND(v) (((v) & 0x03) << 2) argument 28 #define AEMIF_CFG_WIDTH(v) (((v) & 0x03) << 0) argument
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/ |
| H A D | atomic.h | 37 #define atomic_read(v) ((v)->counter) argument 38 #define atomic_set(v, i) (((v)->counter) = (i)) argument 39 #define atomic64_read(v) atomic_read(v) argument 40 #define atomic64_set(v, i) atomic_set(v, i) argument 42 static inline void atomic_add(int i, volatile atomic_t *v) in atomic_add() 51 static inline void atomic_sub(int i, volatile atomic_t *v) in atomic_sub() 60 static inline void atomic_inc(volatile atomic_t *v) in atomic_inc() 69 static inline void atomic_dec(volatile atomic_t *v) in atomic_dec() 78 static inline int atomic_dec_and_test(volatile atomic_t *v) in atomic_dec_and_test() 91 static inline int atomic_add_negative(int i, volatile atomic_t *v) in atomic_add_negative() [all …]
|
| H A D | io.h | 47 #define __arch_putb(v,a) (*(volatile unsigned char *)(a) = (v)) argument 48 #define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v)) argument 49 #define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v)) argument 50 #define __arch_putq(v,a) (*(volatile unsigned long long *)(a) = (v)) argument 97 #define __raw_writeb(v,a) __arch_putb(v,a) argument 98 #define __raw_writew(v,a) __arch_putw(v,a) argument 99 #define __raw_writel(v,a) __arch_putl(v,a) argument 100 #define __raw_writeq(v,a) __arch_putq(v,a) argument 115 #define writeb(v,c) ({ u8 __v = v; __iowmb(); __arch_putb(__v,c); __v; }) argument 116 #define writew(v,c) ({ u16 __v = v; __iowmb(); __arch_putw(__v,c); __v; }) argument [all …]
|
| /rk3399_rockchip-uboot/arch/x86/include/asm/ |
| H A D | atomic.h | 23 static inline int atomic_read(const atomic_t *v) in atomic_read() 35 static inline void atomic_set(atomic_t *v, int i) in atomic_set() 47 static inline void atomic_add(int i, atomic_t *v) in atomic_add() 61 static inline void atomic_sub(int i, atomic_t *v) in atomic_sub() 74 static inline void atomic_inc(atomic_t *v) in atomic_inc() 86 static inline void atomic_dec(atomic_t *v) in atomic_dec() 99 static inline short int atomic_inc_short(short int *v) in atomic_inc_short()
|
| /rk3399_rockchip-uboot/arch/arm/include/asm/arch-s32v234/ |
| H A D | siul.h | 51 #define SIUL2_MSCR_DDR_DO_TRIM(v) ((v) & 0xC0000000) argument 57 #define SIUL2_MSCR_DDR_INPUT(v) ((v) & 0x20000000) argument 61 #define SIUL2_MSCR_DDR_SEL(v) ((v) & 0x18000000) argument 65 #define SIUL2_MSCR_DDR_ODT(v) ((v) & 0x07000000) argument 74 #define SIUL2_MSCR_DCYCLE_TRIM(v) ((v) & 0x00C00000) argument 79 #define SIUL2_MSCR_OBE(v) ((v) & 0x00200000) argument 82 #define SIUL2_MSCR_ODE(v) ((v) & 0x00100000) argument 85 #define SIUL2_MSCR_IBE(v) ((v) & 0x00010000) argument 88 #define SIUL2_MSCR_HYS(v) ((v) & 0x00400000) argument 91 #define SIUL2_MSCR_INV(v) ((v) & 0x00020000) argument [all …]
|
| /rk3399_rockchip-uboot/arch/xtensa/include/asm/ |
| H A D | atomic.h | 16 #define atomic_read(v) ((v)->counter) argument 17 #define atomic_set(v, i) ((v)->counter = (i)) argument 19 static inline void atomic_add(int i, atomic_t *v) in atomic_add() 28 static inline void atomic_sub(int i, atomic_t *v) in atomic_sub() 37 static inline void atomic_inc(atomic_t *v) in atomic_inc() 46 static inline void atomic_dec(atomic_t *v) in atomic_dec()
|
| /rk3399_rockchip-uboot/drivers/net/fm/ |
| H A D | memac_phy.c | 17 #define memac_out_32(a, v) out_le32(a, v) argument 18 #define memac_clrbits_32(a, v) clrbits_le32(a, v) argument 19 #define memac_setbits_32(a, v) setbits_le32(a, v) argument 21 #define memac_out_32(a, v) out_be32(a, v) argument 22 #define memac_clrbits_32(a, v) clrbits_be32(a, v) argument 23 #define memac_setbits_32(a, v) setbits_be32(a, v) argument
|
| /rk3399_rockchip-uboot/include/ |
| H A D | fixp-arith.h | 79 #define fixp_cos32(v) fixp_sin32((v) + 90) argument 87 #define fixp_sin16(v) (fixp_sin32(v) >> 16) argument 88 #define fixp_cos16(v) (fixp_cos32(v) >> 16) argument
|
| H A D | fsl_ddr.h | 23 #define ddr_out32(a, v) out_le32(a, v) argument 24 #define ddr_setbits32(a, v) setbits_le32(a, v) argument 25 #define ddr_clrbits32(a, v) clrbits_le32(a, v) argument 29 #define ddr_out32(a, v) out_be32(a, v) argument 30 #define ddr_setbits32(a, v) setbits_be32(a, v) argument 31 #define ddr_clrbits32(a, v) clrbits_be32(a, v) argument
|
| /rk3399_rockchip-uboot/drivers/pwm/ |
| H A D | rk_pwm.c | 25 #define HIWORD_UPDATE(v, l, h) (((v) << (l)) | (GENMASK(h, l) << 16)) argument 36 #define PWM_CLK_EN(v) HIWORD_UPDATE(v, 0, 0) argument 37 #define PWM_EN(v) HIWORD_UPDATE(v, 1, 1) argument 38 #define PWM_CTRL_UPDATE_EN(v) HIWORD_UPDATE(v, 2, 2) argument 39 #define PWM_GLOBAL_JOIN_EN(v) HIWORD_UPDATE(v, 4, 4) argument 42 #define CLK_PRESCALE(v) HIWORD_UPDATE(v, 0, 2) argument 43 #define CLK_SCALE(v) HIWORD_UPDATE(v, 4, 12) argument 44 #define CLK_SRC_SEL(v) HIWORD_UPDATE(v, 13, 14) argument 45 #define CLK_GLOBAL_SEL(v) HIWORD_UPDATE(v, 15, 15) argument 48 #define PWM_MODE(v) HIWORD_UPDATE(v, 0, 1) argument [all …]
|
| /rk3399_rockchip-uboot/drivers/video/drm/ |
| H A D | rockchip_rgb.c | 25 #define HIWORD_UPDATE(v, l, h) (((v) << (l)) | (GENMASK(h, l) << 16)) argument 28 #define PX30_RGB_DATA_SYNC_BYPASS(v) HIWORD_UPDATE(v, 3, 3) argument 29 #define PX30_RGB_VOP_SEL(v) HIWORD_UPDATE(v, 2, 2) argument 32 #define RK1808_RGB_DATA_SYNC_BYPASS(v) HIWORD_UPDATE(v, 3, 3) argument 35 #define RV1106_IO_BYPASS_SEL(v) HIWORD_UPDATE(v, 0, 1) argument 37 #define RV1106_VOP_PIPE_BYPASS(v) HIWORD_UPDATE(v, 0, 1) argument 40 #define RV1126_LCDC_IO_BYPASS(v) HIWORD_UPDATE(v, 0, 0) argument 43 #define RV1126B_VOP_MCU_SEL(v) HIWORD_UPDATE(v, 15, 15) argument 46 #define RK3288_LVDS_LCDC_SEL(v) HIWORD_UPDATE(v, 3, 3) argument 48 #define RK3288_LVDS_PWRDWN(v) HIWORD_UPDATE(v, 15, 15) argument [all …]
|
| /rk3399_rockchip-uboot/drivers/net/phy/ |
| H A D | miiphybb.c | 21 #define BB_MII_RELOCATE(v,off) (v += (v?off:0)) argument 59 static int bb_set_mdio_wrap(struct bb_miiphy_bus *bus, int v) in bb_set_mdio_wrap() 68 static int bb_get_mdio_wrap(struct bb_miiphy_bus *bus, int *v) in bb_get_mdio_wrap() 77 static int bb_set_mdc_wrap(struct bb_miiphy_bus *bus, int v) in bb_set_mdc_wrap() 236 int v; in bb_miiphy_read() local
|
| /rk3399_rockchip-uboot/drivers/bios_emulator/include/x86emu/ |
| H A D | x86emui.h | 58 #define X86EMU_UNUSED(v) argument 60 #define X86EMU_UNUSED(v) v argument
|
| /rk3399_rockchip-uboot/arch/arc/include/asm/ |
| H A D | io.h | 227 #define writeb(v,c) ({ __iowmb(); writeb_relaxed(v,c); }) argument 228 #define writew(v,c) ({ __iowmb(); writew_relaxed(v,c); }) argument 229 #define writel(v,c) ({ __iowmb(); writel_relaxed(v,c); }) argument 246 #define writeb_relaxed(v,c) __raw_writeb(v,c) argument 247 #define writew_relaxed(v,c) __raw_writew((__force u16) cpu_to_le16(v),c) argument 248 #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) argument 250 #define out_arch(type, endian, a, v) __raw_write##type(cpu_to_##endian(v), a) argument 253 #define out_le32(a, v) out_arch(l, le32, a, v) argument 254 #define out_le16(a, v) out_arch(w, le16, a, v) argument 259 #define out_be32(a, v) out_arch(l, be32, a, v) argument [all …]
|
| /rk3399_rockchip-uboot/arch/sandbox/include/asm/ |
| H A D | io.h | 46 #define writeb(v, addr) ((void)addr) argument 47 #define writew(v, addr) ((void)addr) argument 48 #define writel(v, addr) ((void)addr) argument 59 #define out_arch(type,endian,a,v) write##type(cpu_to_##endian(v),a) argument 62 #define out_le32(a,v) out_arch(l,le32,a,v) argument 63 #define out_le16(a,v) out_arch(w,le16,a,v) argument 68 #define out_be32(a,v) out_arch(l,be32,a,v) argument 69 #define out_be16(a,v) out_arch(w,be16,a,v) argument 74 #define out_8(a,v) writeb(v,a) argument
|
| /rk3399_rockchip-uboot/arch/sh/include/asm/ |
| H A D | io.h | 37 #define __arch_putb(v, a) (*(volatile unsigned char *)(a) = (v)) argument 38 #define __arch_putw(v, a) (*(volatile unsigned short *)(a) = (v)) argument 39 #define __arch_putl(v, a) (*(volatile unsigned int *)(a) = (v)) argument 49 #define __raw_writeb(v, a) __arch_putb(v, a) argument 50 #define __raw_writew(v, a) __arch_putw(v, a) argument 51 #define __raw_writel(v, a) __arch_putl(v, a) argument 84 #define outb(v, p) __raw_writeb(v, p) argument 85 #define outw(v, p) __raw_writew(cpu_to_le16(v), p) argument 86 #define outl(v, p) __raw_writel(cpu_to_le32(v), p) argument 152 #define writeb(v, c) __raw_writeb(v, __mem_pci(c)) argument [all …]
|
| /rk3399_rockchip-uboot/board/gdsys/common/ |
| H A D | miiphybb.c | 43 static int io_bb_set_mdio(struct bb_miiphy_bus *bus, int v) in io_bb_set_mdio() 57 static int io_bb_get_mdio(struct bb_miiphy_bus *bus, int *v) in io_bb_get_mdio() 66 static int io_bb_set_mdc(struct bb_miiphy_bus *bus, int v) in io_bb_set_mdc()
|
| /rk3399_rockchip-uboot/drivers/bios_emulator/ |
| H A D | biosemui.h | 71 #define writeb_le(base, v) *((u8*)(base)) = (v) argument 72 #define writew_le(base, v) writeb_le(base + 0, (v >> 0) & 0xff), \ argument 74 #define writel_le(base, v) writeb_le(base + 0, (v >> 0) & 0xff), \ argument 82 #define writeb_le(base, v) *((u8*)(base)) = (v) argument 83 #define writew_le(base, v) *((u16*)(base)) = (v) argument 84 #define writel_le(base, v) *((u32*)(base)) = (v) argument
|
| /rk3399_rockchip-uboot/arch/m68k/lib/ |
| H A D | muldi3.c | 16 #define umul_ppmm(w1, w0, u, v) \ argument 40 #define __umulsidi3(u, v) \ argument 58 DItype __muldi3 (DItype u, DItype v) in __muldi3()
|