Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 4 of 4) sorted by relevance

/rk3399_rockchip-uboot/arch/arm/cpu/armv7/sunxi/
H A Dpsci.c79 static void __secure clamp_release(u32 __maybe_unused *clamp) in clamp_release() argument
87 writel(tmp, clamp); in clamp_release()
94 static void __secure clamp_set(u32 __maybe_unused *clamp) in clamp_set() argument
99 writel(0xff, clamp); in clamp_set()
103 static void __secure sunxi_power_switch(u32 *clamp, u32 *pwroff, bool on, in sunxi_power_switch() argument
108 clamp_release(clamp); in sunxi_power_switch()
117 clamp_set(clamp); in sunxi_power_switch()
/rk3399_rockchip-uboot/include/linux/
H A Dkernel.h191 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) macro
/rk3399_rockchip-uboot/arch/arm/mach-uniphier/dram/
H A Dumc-pxs2.c104 rdqsd = clamp(rdqsd + step, 0U, 0xffU); in ddrphy_dqs_delay_fixup()
/rk3399_rockchip-uboot/arch/arm/mach-sunxi/
H A Ddram_sunxi_dw.c253 return lookup_table[clamp(val, 0, 31)]; in bin_to_mgray()