Searched refs:DIV_ROUND_CLOSEST_ULL (Results 1 – 8 of 8) sorted by relevance
| /u-boot/drivers/cpu/ |
| A D | at91_cpu.c | 90 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 D | k210_pll.c | 22 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 D | pwm-mtk.c | 71 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 D | pwm-sifive.c | 89 frac = DIV_ROUND_CLOSEST_ULL(num, period_ns); in pwm_sifive_set_config()
|
| /u-boot/drivers/clk/kendryte/ |
| A D | pll.c | 265 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 D | clk-sam9x60-pll.c | 78 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 D | kernel.h | 116 #define DIV_ROUND_CLOSEST_ULL(x, divisor)( \ macro
|
| /u-boot/drivers/mtd/nand/raw/ |
| A D | denali.c | 948 mult_x = DIV_ROUND_CLOSEST_ULL(denali->clk_x_rate, denali->clk_rate); in denali_setup_data_interface()
|
Completed in 15 milliseconds