Home
last modified time | relevance | path

Searched refs:DIV_ROUND_CLOSEST_ULL (Results 1 – 8 of 8) sorted by relevance

/u-boot/drivers/cpu/
A Dat91_cpu.c90 plat->cpufreq_mhz = DIV_ROUND_CLOSEST_ULL(rate, 1000000); in at91_cpu_probe()
99 plat->mckfreq_mhz = DIV_ROUND_CLOSEST_ULL(rate, 1000000); in at91_cpu_probe()
108 plat->xtalfreq_mhz = DIV_ROUND_CLOSEST_ULL(rate, 1000000); in at91_cpu_probe()
/u-boot/test/dm/
A Dk210_pll.c22 inv_ratio = DIV_ROUND_CLOSEST_ULL((u64)rate_in << 32, rate); in dm_test_k210_pll_calc_config()
28 u64 vco = DIV_ROUND_CLOSEST_ULL(rate_in * f, r); in dm_test_k210_pll_calc_config()
33 error = DIV_ROUND_CLOSEST_ULL(f * inv_ratio, in dm_test_k210_pll_calc_config()
/u-boot/drivers/pwm/
A Dpwm-mtk.c71 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, resolution); in mtk_pwm_set_config()
75 cnt_period = DIV_ROUND_CLOSEST_ULL((u64)period_ns * 1000, in mtk_pwm_set_config()
83 cnt_period = DIV_ROUND_CLOSEST_ULL( in mtk_pwm_set_config()
100 cnt_duty = DIV_ROUND_CLOSEST_ULL((u64)duty_ns * 1000, resolution); in mtk_pwm_set_config()
A Dpwm-sifive.c89 frac = DIV_ROUND_CLOSEST_ULL(num, period_ns); in pwm_sifive_set_config()
/u-boot/drivers/clk/kendryte/
A Dpll.c265 ratio = DIV_ROUND_CLOSEST_ULL((u64)rate << 32, rate_in); in k210_pll_calc_config()
266 inv_ratio = DIV_ROUND_CLOSEST_ULL((u64)rate_in << 32, rate); in k210_pll_calc_config()
367 u64 vco = DIV_ROUND_CLOSEST_ULL(rate_in * f, r); in k210_pll_calc_config()
405 error = DIV_ROUND_CLOSEST_ULL(f * inv_ratio, r * od); in k210_pll_calc_config()
/u-boot/drivers/clk/at91/
A Dclk-sam9x60-pll.c78 nfrac = DIV_ROUND_CLOSEST_ULL((u64)remainder * (1 << 22), in sam9x60_frac_pll_compute_mul_frac()
81 tmprate += DIV_ROUND_CLOSEST_ULL((u64)nfrac * parent_rate, in sam9x60_frac_pll_compute_mul_frac()
309 u8 div = DIV_ROUND_CLOSEST_ULL(parent_rate, rate) - 1; in sam9x60_div_pll_set_rate()
/u-boot/include/linux/
A Dkernel.h116 #define DIV_ROUND_CLOSEST_ULL(x, divisor)( \ macro
/u-boot/drivers/mtd/nand/raw/
A Ddenali.c948 mult_x = DIV_ROUND_CLOSEST_ULL(denali->clk_x_rate, denali->clk_rate); in denali_setup_data_interface()

Completed in 15 milliseconds