Home
last modified time | relevance | path

Searched refs:do_div (Results 1 – 25 of 68) sorted by relevance

123

/u-boot/board/armltd/integrator/
A Dtimer.c89 do_div(div_timer, CONFIG_SYS_HZ); in timer_init()
90 do_div(div_timer, div_clock); in timer_init()
116 do_div(now, div_timer); in get_timer_masked()
161 do_div(tmp, div_clock); in get_tbclk()
/u-boot/arch/arm/cpu/arm926ejs/mx27/
A Dtimer.c48 do_div(tick, CONFIG_MX27_CLK32); in tick_to_time()
55 do_div(time, CONFIG_SYS_HZ); in time_to_tick()
62 do_div(us, 1000000); in us_to_tick()
73 do_div(tick, TICK_PER_TIME); in tick_to_time()
85 do_div(us, US_PER_TICK); in us_to_tick()
/u-boot/arch/arm/mach-lpc32xx/
A Dclk.c49 do_div(fin, p_div); in get_hclk_pll_rate()
53 do_div(fref, n_div); in get_hclk_pll_rate()
62 do_div(fout, p_div); in get_hclk_pll_rate()
/u-boot/drivers/pwm/
A Dpwm-imx-util.c60 do_div(c, 1000000000); in pwm_imx_get_parms()
67 do_div(c, period_ns); in pwm_imx_get_parms()
A Dpwm-mtk.c70 do_div(resolution, clk_get_rate(&priv->pwm_clks[channel])); in mtk_pwm_set_config()
81 do_div(resolution, in mtk_pwm_set_config()
/u-boot/arch/arm/cpu/armv7/ls102xa/
A Dtimer.c42 do_div(tick, freq); in tick_to_time()
54 do_div(usec, 1000000); in us_to_tick()
/u-boot/arch/arm/mach-rmobile/
A Dtimer.c44 do_div(timer, CLK2MHZ(CONFIG_SYS_CPU_CLK)); in get_time_us()
52 do_div(us, 1000); in get_time_ms()
/u-boot/arch/arm/cpu/armv7/vf610/
A Dtimer.c25 do_div(tick, mxc_get_clock(MXC_IPG_CLK)); in tick_to_time()
33 do_div(usec, 1000000); in us_to_tick()
/u-boot/lib/
A Dtime.c133 do_div(tick, div); in tick_to_time()
153 do_div(tick, div); in tick_to_time_us()
176 do_div(tick, 1000000); in usec_to_tick()
/u-boot/include/
A Ddiv64.h28 # define do_div(n,base) ({ \ macro
204 # define do_div(n,base) ({ \ macro
230 # error do_div() does not yet support the C64
240 do_div(__res, divisor); in lldiv()
/u-boot/arch/arm/cpu/arm920t/ep93xx/
A Dtimer.c38 do_div(ticks, 1000 * 1000); in usecs_to_ticks()
67 do_div(sys_ticks, TIMER_FREQ); in get_ticks()
/u-boot/drivers/phy/
A Dphy-core-mipi-dphy.c31 do_div(hs_clk_rate, lanes); in phy_mipi_dphy_get_default_config()
34 do_div(ui, hs_clk_rate); in phy_mipi_dphy_get_default_config()
90 do_div(ui, cfg->hs_clk_rate); in phy_mipi_dphy_config_validate()
/u-boot/arch/arm/mach-imx/
A Dsyscounter.c45 do_div(tick, freq); in tick_to_time()
57 do_div(usec, 1000000); in us_to_tick()
/u-boot/drivers/clk/imx/
A Dclk-pfd.c52 do_div(tmp, frac); in clk_pfd_recalc_rate()
65 do_div(tmp, rate); in clk_pfd_set_rate()
/u-boot/board/toradex/colibri_vf/
A Ddcu.c24 do_div(div, pixclock); in dcu_set_pixel_clock()
/u-boot/drivers/clk/exynos/
A Dclk-pll.c30 do_div(fvco, (pdiv << sdiv)); in pll145x_get_rate()
/u-boot/board/freescale/ls1021atwr/
A Ddcu.c22 do_div(div, 1000000000); in dcu_set_pixel_clock()
/u-boot/board/freescale/ls1021aiot/
A Ddcu.c22 do_div(div, 1000000000); in dcu_set_pixel_clock()
/u-boot/drivers/clk/
A Dclk_pic32.c192 do_div(frac, rate); in pic32_set_refclk()
276 do_div(rate64, rodiv); in pic32_get_refclk()
297 do_div(rate, odiv1); in pic32_get_mpll_rate()
298 do_div(rate, odiv2); in pic32_get_mpll_rate()
A Dclk_fixed_factor.c32 do_div(rate, ff->div); in clk_fixed_factor_get_rate()
/u-boot/include/linux/
A Dmath64.h67 *remainder = do_div(dividend, divisor); in div_u64_rem()
247 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
250 do_div(rl.ll, divisor); in mul_u64_u32_div()
/u-boot/arch/arm/mach-imx/mx5/
A Dclock.c200 do_div(refclk, pdf + 1); in decode_pll()
202 do_div(temp, mfd + 1); in decode_pll()
585 do_div(t1, (4 * n_ref)); in calc_pll_params()
599 do_div(t1, 4); in calc_pll_params()
602 do_div(t1, n_ref); in calc_pll_params()
611 do_div(mfn, i); in calc_pll_params()
613 do_div(mfd, i); in calc_pll_params()
/u-boot/drivers/watchdog/
A Dtangier_wdt.c51 do_div(timeout_ms, 1000); in tangier_wdt_start()
/u-boot/include/linux/mtd/
A Dnand.h447 pageoffs = do_div(tmp, nand->memorg.pagesize); in nanddev_offs_to_pos()
448 pos->page = do_div(tmp, nand->memorg.pages_per_eraseblock); in nanddev_offs_to_pos()
449 pos->eraseblock = do_div(tmp, nand->memorg.eraseblocks_per_lun); in nanddev_offs_to_pos()
451 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos()
/u-boot/arch/arm/cpu/armv7/s5p-common/
A Dtimer.c85 do_div(time_ms, 1000); in get_timer()

Completed in 21 milliseconds

123