/external/u-boot/drivers/clk/ |
D | clk_zynq.c | 197 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()
|
D | clk_zynqmp.c | 387 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/ |
D | abb.c | 50 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/ |
D | strmhz.c | 13 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/ |
D | pll-base-ld20.c | 45 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/ |
D | debug-uart-sld8.c | 19 return DIV_ROUND_CLOSEST(UNIPHIER_SLD8_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_sld8_debug_uart_init()
|
D | debug-uart-ld4.c | 19 return DIV_ROUND_CLOSEST(UNIPHIER_LD4_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_ld4_debug_uart_init()
|
D | debug-uart-pro4.c | 29 return DIV_ROUND_CLOSEST(UNIPHIER_PRO4_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_pro4_debug_uart_init()
|
D | debug-uart-ld6b.c | 29 return DIV_ROUND_CLOSEST(UNIPHIER_LD6B_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_ld6b_debug_uart_init()
|
D | debug-uart-pxs2.c | 30 return DIV_ROUND_CLOSEST(UNIPHIER_PXS2_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_pxs2_debug_uart_init()
|
D | debug-uart-pro5.c | 32 return DIV_ROUND_CLOSEST(UNIPHIER_PRO5_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_pro5_debug_uart_init()
|
D | debug-uart-ld20.c | 33 return DIV_ROUND_CLOSEST(UNIPHIER_LD20_UART_CLK, 16 * CONFIG_BAUDRATE); in uniphier_ld20_debug_uart_init()
|
/external/u-boot/drivers/i2c/ |
D | rcar_iic.c | 212 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()
|
D | stm32f7_i2c.c | 491 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/ |
D | mxc_ocotp.c | 258 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/ |
D | clk-usb.c | 68 tmp_rate = DIV_ROUND_CLOSEST(source_rate, div); in at91_usb_clk_set_rate()
|
D | clk-generated.c | 100 tmp_rate = DIV_ROUND_CLOSEST(parent_rate, div); in generic_clk_set_rate()
|
/external/u-boot/drivers/serial/ |
D | serial_uniphier.c | 52 divisor = DIV_ROUND_CLOSEST(priv->uartclk, mode_x_div * baudrate); in uniphier_serial_setbrg()
|
D | serial_pic32.c | 50 u32 div = DIV_ROUND_CLOSEST(clk, baudrate * 16); in pic32_serial_init()
|
D | serial_stm32.c | 24 int_div = DIV_ROUND_CLOSEST(clock_rate, baudrate); in _stm32_serial_setbrg()
|
D | ns16550.c | 145 return DIV_ROUND_CLOSEST(clock, mode_x_div * baudrate); in ns16550_calc_divisor()
|
/external/u-boot/include/linux/ |
D | kernel.h | 91 #define DIV_ROUND_CLOSEST(x, divisor)( \ macro
|
/external/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
D | spl_power_init.c | 1129 new_brownout = DIV_ROUND_CLOSEST(new_target - new_brownout, in mxs_power_set_vddx()
|