Searched refs:denom (Results 1 – 9 of 9) sorted by relevance
/u-boot/lib/ |
A D | ldiv.c | 12 ldiv (long int numer, long int denom) in ldiv() argument 16 result.quot = numer / denom; in ldiv() 17 result.rem = numer % denom; in ldiv() 38 result.rem -= denom; in ldiv()
|
/u-boot/drivers/i2c/ |
A D | sh_i2c.c | 210 int num, denom, tmp; in sh_i2c_init() local 222 denom = speed * (CONFIG_SH_I2C_DATA_HIGH + CONFIG_SH_I2C_DATA_LOW); in sh_i2c_init() 223 tmp = num * 10 / denom; in sh_i2c_init() 225 iccl = (u16)((num/denom) + 1); in sh_i2c_init() 227 iccl = (u16)(num/denom); in sh_i2c_init() 232 tmp = num * 10 / denom; in sh_i2c_init() 234 icch = (u16)((num/denom) + 1); in sh_i2c_init() 236 icch = (u16)(num/denom); in sh_i2c_init()
|
A D | rcar_iic.c | 203 int clkrate, denom; in rcar_iic_set_speed() local 215 denom = speed * (ratio_high + ratio_low); in rcar_iic_set_speed() 216 priv->iccl = DIV_ROUND_CLOSEST(clkrate * ratio_low, denom); in rcar_iic_set_speed() 217 priv->icch = DIV_ROUND_CLOSEST(clkrate * ratio_high, denom); in rcar_iic_set_speed()
|
/u-boot/drivers/clk/altera/ |
A D | clk-arria10.c | 126 ulong rate = 0, reg, numer, denom; in socfpga_a10_clk_get_rate() local 138 denom = (reg >> CLKMGR_MAINPLL_VCO1_DENOM_LSB) & in socfpga_a10_clk_get_rate() 141 rate /= denom + 1; in socfpga_a10_clk_get_rate() 146 denom = (reg >> CLKMGR_PERPLL_VCO1_DENOM_LSB) & in socfpga_a10_clk_get_rate() 149 rate /= denom + 1; in socfpga_a10_clk_get_rate()
|
/u-boot/include/linux/ |
A D | kernel.h | 129 #define mult_frac(x, numer, denom)( \ argument 131 typeof(x) quot = (x) / (denom); \ 132 typeof(x) rem = (x) % (denom); \ 133 (quot * (numer)) + ((rem * (numer)) / (denom)); \
|
/u-boot/arch/arm/mach-imx/mx7ulp/ |
A D | scg.c | 482 u32 num, denom; in decode_pll() local 512 denom = readl(&scg1_regs->splldenom); in decode_pll() 516 if (denom) in decode_pll() 517 return infreq * mult + infreq * num / denom; in decode_pll() 544 denom = readl(&scg1_regs->aplldenom); in decode_pll() 548 if (denom) in decode_pll() 549 return infreq * mult + infreq * num / denom; in decode_pll()
|
/u-boot/arch/arm/mach-socfpga/ |
A D | clock_manager_arria10.c | 440 u32 denom; in cm_calculate_numer() local 447 denom = main_cfg->vco1_denom; in cm_calculate_numer() 453 denom = main_cfg->vco1_denom; in cm_calculate_numer() 459 denom = per_cfg->vco1_denom; in cm_calculate_numer() 465 denom = per_cfg->vco1_denom; in cm_calculate_numer() 471 (1 + denom) - 1; in cm_calculate_numer()
|
/u-boot/arch/arm/dts/ |
A D | socfpga_arria10-handoff.dtsi | 43 vco1-denom = <MAINPLLGRP_VCO1_DENOM>; 71 vco1-denom = <PERPLLGRP_VCO1_DENOM>;
|
/u-boot/arch/arm/mach-imx/mx7/ |
A D | clock.c | 111 u32 num, denom; in decode_pll() local 165 denom = ccm_anatop->pll_ddr_denom; in decode_pll() 173 return infreq * (div_sel + num / denom); in decode_pll()
|
Completed in 14 milliseconds