Searched refs:clamp (Results 1 – 4 of 4) sorted by relevance
| /rk3399_rockchip-uboot/arch/arm/cpu/armv7/sunxi/ |
| H A D | psci.c | 79 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 D | kernel.h | 191 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) macro
|
| /rk3399_rockchip-uboot/arch/arm/mach-uniphier/dram/ |
| H A D | umc-pxs2.c | 104 rdqsd = clamp(rdqsd + step, 0U, 0xffU); in ddrphy_dqs_delay_fixup()
|
| /rk3399_rockchip-uboot/arch/arm/mach-sunxi/ |
| H A D | dram_sunxi_dw.c | 253 return lookup_table[clamp(val, 0, 31)]; in bin_to_mgray()
|