Home
last modified time | relevance | path

Searched refs:DIV_ROUND_CLOSEST (Results 1 – 23 of 23) sorted by relevance

/external/u-boot/drivers/clk/
Dclk_zynq.c197 return DIV_ROUND_CLOSEST(zynq_clk_get_pll_rate(priv, pll), div); in zynq_clk_get_cpu_rate()
209 return DIV_ROUND_CLOSEST(zynq_clk_get_pll_rate(priv, ddrpll_clk), div); in zynq_clk_get_ddr2x_rate()
221 return DIV_ROUND_CLOSEST(zynq_clk_get_pll_rate(priv, ddrpll_clk), div); in zynq_clk_get_ddr3x_rate()
234 return DIV_ROUND_CLOSEST(DIV_ROUND_CLOSEST( in zynq_clk_get_dci_rate()
263 DIV_ROUND_CLOSEST( in zynq_clk_get_peripheral_rate()
264 DIV_ROUND_CLOSEST( in zynq_clk_get_peripheral_rate()
297 new_rate = DIV_ROUND_CLOSEST( in zynq_clk_calc_peripheral_two_divs()
298 DIV_ROUND_CLOSEST(pll_rate, d0), d1); in zynq_clk_calc_peripheral_two_divs()
334 div0 = DIV_ROUND_CLOSEST(pll_rate, rate); in zynq_clk_set_peripheral_rate()
337 new_rate = DIV_ROUND_CLOSEST(rate, div0); in zynq_clk_set_peripheral_rate()
Dclk_zynqmp.c387 return DIV_ROUND_CLOSEST(pllrate, div); in zynqmp_clk_get_cpu_rate()
410 return DIV_ROUND_CLOSEST(pllrate, div); in zynqmp_clk_get_ddr_rate()
444 DIV_ROUND_CLOSEST( in zynqmp_clk_get_peripheral_rate()
445 DIV_ROUND_CLOSEST(pllrate, div0), div1); in zynqmp_clk_get_peripheral_rate()
487 DIV_ROUND_CLOSEST( in zynqmp_clk_get_wdt_rate()
488 DIV_ROUND_CLOSEST(pllrate, div0), div1); in zynqmp_clk_get_wdt_rate()
501 new_rate = DIV_ROUND_CLOSEST( in zynqmp_clk_calc_peripheral_two_divs()
502 DIV_ROUND_CLOSEST(pll_rate, d0), d1); in zynqmp_clk_calc_peripheral_two_divs()
547 div0 = DIV_ROUND_CLOSEST(pll_rate, rate); in zynqmp_clk_set_peripheral_rate()
550 new_rate = DIV_ROUND_CLOSEST(rate, div0); in zynqmp_clk_set_peripheral_rate()
/external/u-boot/arch/arm/mach-omap2/
Dabb.c50 sys_rate = DIV_ROUND_CLOSEST(V_OSCK, 1000000); in abb_setup_timings()
51 clk_cycles = DIV_ROUND_CLOSEST(OMAP_ABB_CLOCK_CYCLES * 10, sys_rate); in abb_setup_timings()
52 sr2_cnt = DIV_ROUND_CLOSEST(OMAP_ABB_SETTLING_TIME * 10, clk_cycles); in abb_setup_timings()
/external/u-boot/lib/
Dstrmhz.c13 n = DIV_ROUND_CLOSEST(hz, 1000) / 1000L; in strmhz()
17 m = DIV_ROUND_CLOSEST(hz, 1000L); in strmhz()
/external/u-boot/arch/arm/mach-uniphier/clk/
Dpll-base-ld20.c45 DIV_ROUND_CLOSEST(487UL * freq * ssc_rate, in uniphier_ld20_sscpll_init()
52 DIV_ROUND_CLOSEST(21431887UL * freq, in uniphier_ld20_sscpll_init()
/external/u-boot/arch/arm/mach-uniphier/debug-uart/
Ddebug-uart-ld4.c19 return DIV_ROUND_CLOSEST(UNIPHIER_LD4_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_ld4_debug_uart_init()
Ddebug-uart-sld8.c19 return DIV_ROUND_CLOSEST(UNIPHIER_SLD8_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_sld8_debug_uart_init()
Ddebug-uart-ld6b.c29 return DIV_ROUND_CLOSEST(UNIPHIER_LD6B_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_ld6b_debug_uart_init()
Ddebug-uart-pro4.c29 return DIV_ROUND_CLOSEST(UNIPHIER_PRO4_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_pro4_debug_uart_init()
Ddebug-uart-pxs2.c30 return DIV_ROUND_CLOSEST(UNIPHIER_PXS2_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_pxs2_debug_uart_init()
Ddebug-uart-pro5.c32 return DIV_ROUND_CLOSEST(UNIPHIER_PRO5_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_pro5_debug_uart_init()
Ddebug-uart-ld20.c33 return DIV_ROUND_CLOSEST(UNIPHIER_LD20_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_ld20_debug_uart_init()
/external/u-boot/drivers/i2c/
Drcar_iic.c212 priv->iccl = DIV_ROUND_CLOSEST(clkrate * ratio_low, denom); in rcar_iic_set_speed()
213 priv->icch = DIV_ROUND_CLOSEST(clkrate * ratio_high, denom); in rcar_iic_set_speed()
Dstm32f7_i2c.c491 u32 i2cclk = DIV_ROUND_CLOSEST(STM32_NSEC_PER_SEC, in stm32_i2c_compute_solutions()
561 u32 i2cbus = DIV_ROUND_CLOSEST(STM32_NSEC_PER_SEC, in stm32_i2c_choose_solution()
564 u32 i2cclk = DIV_ROUND_CLOSEST(STM32_NSEC_PER_SEC, in stm32_i2c_choose_solution()
/external/u-boot/drivers/misc/
Dmxc_ocotp.c258 prog = DIV_ROUND_CLOSEST(ipg_clk * BV_TIMING_PROG_US, 1000000) + 1; in set_timing()
283 strobe_prog = DIV_ROUND_CLOSEST(ipg_clk * BV_TIMING_STROBE_PROG_US, in set_timing()
/external/u-boot/drivers/clk/at91/
Dclk-usb.c68 tmp_rate = DIV_ROUND_CLOSEST(source_rate, div); in at91_usb_clk_set_rate()
Dclk-generated.c100 tmp_rate = DIV_ROUND_CLOSEST(parent_rate, div); in generic_clk_set_rate()
/external/u-boot/drivers/serial/
Dserial_uniphier.c52 divisor = DIV_ROUND_CLOSEST(priv->uartclk, mode_x_div * baudrate); in uniphier_serial_setbrg()
Dserial_pic32.c50 u32 div = DIV_ROUND_CLOSEST(clk, baudrate * 16); in pic32_serial_init()
Dserial_stm32.c24 int_div = DIV_ROUND_CLOSEST(clock_rate, baudrate); in _stm32_serial_setbrg()
Dns16550.c145 return DIV_ROUND_CLOSEST(clock, mode_x_div * baudrate); in ns16550_calc_divisor()
/external/u-boot/include/linux/
Dkernel.h91 #define DIV_ROUND_CLOSEST(x, divisor)( \ macro
/external/u-boot/arch/arm/cpu/arm926ejs/mxs/
Dspl_power_init.c1129 new_brownout = DIV_ROUND_CLOSEST(new_target - new_brownout, in mxs_power_set_vddx()