Home
last modified time | relevance | path

Searched refs:lldiv (Results 1 – 25 of 35) sorted by relevance

12

/u-boot/lib/dhry/
A Dcmd_dhry.c24 dhry_per_sec = lldiv(iterations * 1000ULL, duration); in do_dhry()
25 vax_mips = lldiv(dhry_per_sec, 1757); in do_dhry()
/u-boot/arch/arm/cpu/armv7/iproc-common/
A Dtimer.c59 tim_clk = lldiv(periph_clk, in get_timer()
64 ret = lldiv(count, (uint32_t)tim_clk); in get_timer()
79 tim_clk = lldiv(periph_clk, in __udelay()
/u-boot/drivers/pwm/
A Dsunxi_pwm.c85 scaled_freq = lldiv(OSC_24MHZ, prescaler_table[prescaler]); in sunxi_pwm_set_config()
86 period = lldiv(scaled_freq * period_ns, nsecs_per_sec); in sunxi_pwm_set_config()
100 duty = lldiv(best_scaled_freq * duty_ns, nsecs_per_sec); in sunxi_pwm_set_config()
A Drk_pwm.c77 period = lldiv((uint64_t)priv->freq * period_ns, in rk_pwm_set_config()
79 duty = lldiv((uint64_t)priv->freq * duty_ns, in rk_pwm_set_config()
A Dpwm-sifive.c78 scale_pow = lldiv((uint64_t)priv->freq * period_ns, 1000000000); in pwm_sifive_set_config()
/u-boot/arch/arm/mach-davinci/
A Dtimer.c77 return lldiv(timer_diff, in get_timer()
85 endtime = lldiv((unsigned long long)usec * gd->arch.timer_rate_hz, in __udelay()
/u-boot/arch/arm/cpu/arm926ejs/mx27/
A Dgeneric.c37 return lldiv(2 * (u64)f_ref * (mfi * (mfd + 1) + mfn), in imx_decode_pll()
80 fref = lldiv((fref * 2), 3); in imx_get_armclk()
84 return lldiv(fref, div); in imx_get_armclk()
96 return lldiv(fref * 2, 3 * div); in imx_get_ahbclk()
115 return lldiv((imx_get_mpllclk() * 2), (div * 3)); in imx_decode_perclk()
/u-boot/fs/ext4/
A Dext4fs.c83 blockcnt = lldiv(((len + pos) + blocksize - 1), blocksize); in ext4fs_read_file()
85 for (i = lldiv(pos, blocksize); i < blockcnt; i++) { in ext4fs_read_file()
108 if (i == lldiv(pos, blocksize)) { in ext4fs_read_file()
/u-boot/arch/arm/cpu/armv7/
A Darch_timer.c58 return lldiv(get_ticks(), gd->arch.timer_rate_hz / 1000000); in timer_get_boot_us()
/u-boot/drivers/video/tegra124/
A Ddp.c517 num_linkclk_line = (u32)(lldiv(link_rate * timing->hactive.typ, in tegra_dc_dp_calc_config()
526 activecount_f = lldiv(activesym_f, (u32)f) * f; in tegra_dc_dp_calc_config()
528 activecount = (u32)(lldiv(activecount_f, (u32)f)); in tegra_dc_dp_calc_config()
530 if (frac_f < (lldiv(f, 2))) /* fraction < 0.5 */ in tegra_dc_dp_calc_config()
539 frac_f = lldiv(f * f, frac_f); /* 1 / fraction */ in tegra_dc_dp_calc_config()
544 (u32)lldiv(frac_f, (u32)f) + 1 : in tegra_dc_dp_calc_config()
545 (u32)lldiv(frac_f, (u32)f); in tegra_dc_dp_calc_config()
552 approx_value_f = activefrac ? lldiv( in tegra_dc_dp_calc_config()
558 activecount_f + lldiv(f, activefrac) : in tegra_dc_dp_calc_config()
563 lldiv(approx_value_f - activesym_f, i); in tegra_dc_dp_calc_config()
[all …]
/u-boot/arch/arm/cpu/arm926ejs/mx25/
A Dgeneric.c53 return lldiv(2 * (u64) f_ref * (mfi * mfd + mfn), in imx_decode_pll()
81 fref = lldiv((u64) fref * 3, 4); in imx_get_armclk()
/u-boot/lib/
A Dgunzip.c151 outblock = lldiv(startoffs, dev->blksz); in gzwrite()
189 if (lldiv(szexpected, dev->blksz) > (dev->lba - outblock)) { in gzwrite()
A Dtime.c52 return lldiv(count, CONFIG_SYS_TIMER_RATE / 1000000); in timer_get_boot_us()
/u-boot/drivers/watchdog/
A Dimx_watchdog.c80 timeout = lldiv(timeout, 500) - 1; in imx_watchdog_init()
/u-boot/arch/arm/cpu/arm1136/mx31/
A Dgeneric.c27 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in mx31_decode_pll()
/u-boot/include/
A Ddiv64.h237 static inline u64 lldiv(u64 dividend, u32 divisor) in lldiv() function
/u-boot/arch/mips/mach-jz47xx/jz4780/
A Dtimer.c221 return lldiv(get_timer64(), 3000) - base; in get_timer()
/u-boot/drivers/ddr/altera/
A Dsdram_gen5.c86 newrows = lldiv(memsize, cs * (width / 8)); in get_errata_rows()
89 newrows = lldiv(newrows, (1 << banks) * (1 << cols)); in get_errata_rows()
/u-boot/cmd/
A Dgpt.c231 partmegabytes = lldiv(partbytes, SZ_1M); in prettyprint_part_size()
525 parts[i].size = lldiv(size_ll, dev_desc->blksz); in set_gpt_info()
536 parts[i].start = lldiv(start_ll, dev_desc->blksz); in set_gpt_info()
/u-boot/drivers/dfu/
A Ddfu_sf.c33 return (lldiv((start + offset), dfu->data.sf.dev->sector_size)) * in find_sector()
/u-boot/drivers/fastboot/
A Dfb_mmc.c185 blkcnt = lldiv(blkcnt, info->blksz); in write_raw_image()
250 blkcnt = lldiv(blkcnt, blksz); in fb_mmc_boot_ops()
/u-boot/arch/arm/mach-imx/imx8m/
A Dclock_imx8mm.c611 return lldiv(freq, pre_div * (1 << post_div) * div); in decode_intpll()
675 return lldiv((main_div * 65536 + k) * 24000000ULL, in decode_fracpll()
/u-boot/fs/yaffs2/
A Dyaffs_uboot_glue.c191 end_block = lldiv(mtd->size, mtd->erasesize - 1); in cmd_yaffs_devconfig()
/u-boot/post/
A Dpost.c476 return (unsigned long)lldiv(get_ticks(), get_tbclk() / CONFIG_SYS_HZ) in post_time_ms()
/u-boot/arch/arm/cpu/arm1136/mx35/
A Dgeneric.c131 return lldiv(2 * (u64)infreq * (mfi * mfd + mfn), in decode_pll()

Completed in 46 milliseconds

12