prate 72 arch/arm/mach-sa1100/clock.c unsigned long prate) prate 369 arch/mips/alchemy/common/clock.c static long alchemy_calc_div(unsigned long rate, unsigned long prate, prate 374 arch/mips/alchemy/common/clock.c div1 = prate / rate; prate 375 arch/mips/alchemy/common/clock.c if ((prate / div1) > rate) prate 488 arch/powerpc/platforms/powermac/low_i2c.c const u32 *psteps, *prate, *addrp; prate 520 arch/powerpc/platforms/powermac/low_i2c.c prate = of_get_property(np, "AAPL,i2c-rate", NULL); prate 521 arch/powerpc/platforms/powermac/low_i2c.c if (prate) switch(*prate) { prate 116 arch/unicore32/kernel/clock.c unsigned long prate; prate 118 arch/unicore32/kernel/clock.c {.mrate = 500000000, .prate = 0x00109801}, prate 119 arch/unicore32/kernel/clock.c {.mrate = 525000000, .prate = 0x00104C00}, prate 120 arch/unicore32/kernel/clock.c {.mrate = 550000000, .prate = 0x00105000}, prate 121 arch/unicore32/kernel/clock.c {.mrate = 575000000, .prate = 0x00105400}, prate 122 arch/unicore32/kernel/clock.c {.mrate = 600000000, .prate = 0x00105800}, prate 123 arch/unicore32/kernel/clock.c {.mrate = 625000000, .prate = 0x00105C00}, prate 124 arch/unicore32/kernel/clock.c {.mrate = 650000000, .prate = 0x00106000}, prate 125 arch/unicore32/kernel/clock.c {.mrate = 675000000, .prate = 0x00106400}, prate 126 arch/unicore32/kernel/clock.c {.mrate = 700000000, .prate = 0x00106800}, prate 127 arch/unicore32/kernel/clock.c {.mrate = 725000000, .prate = 0x00106C00}, prate 128 arch/unicore32/kernel/clock.c {.mrate = 750000000, .prate = 0x00107000}, prate 129 arch/unicore32/kernel/clock.c {.mrate = 775000000, .prate = 0x00107400}, prate 130 arch/unicore32/kernel/clock.c {.mrate = 800000000, .prate = 0x00107800}, prate 186 arch/unicore32/kernel/clock.c pll_rate = mclk_clk_table[i].prate; prate 234 arch/unicore32/kernel/clock.c unsigned long prate; prate 237 arch/unicore32/kernel/clock.c {.prate = 0x00002001, .rate = 250000000}, prate 238 arch/unicore32/kernel/clock.c {.prate = 0x00104801, .rate = 250000000}, prate 239 arch/unicore32/kernel/clock.c {.prate = 0x00104C01, .rate = 262500000}, prate 240 arch/unicore32/kernel/clock.c {.prate = 0x00002401, .rate = 275000000}, prate 241 arch/unicore32/kernel/clock.c {.prate = 0x00105001, .rate = 275000000}, prate 242 arch/unicore32/kernel/clock.c {.prate = 0x00105401, .rate = 287500000}, prate 243 arch/unicore32/kernel/clock.c {.prate = 0x00002801, .rate = 300000000}, prate 244 arch/unicore32/kernel/clock.c {.prate = 0x00105801, .rate = 300000000}, prate 245 arch/unicore32/kernel/clock.c {.prate = 0x00105C01, .rate = 312500000}, prate 246 arch/unicore32/kernel/clock.c {.prate = 0x00002C01, .rate = 325000000}, prate 247 arch/unicore32/kernel/clock.c {.prate = 0x00106001, .rate = 325000000}, prate 248 arch/unicore32/kernel/clock.c {.prate = 0x00106401, .rate = 337500000}, prate 249 arch/unicore32/kernel/clock.c {.prate = 0x00003001, .rate = 350000000}, prate 250 arch/unicore32/kernel/clock.c {.prate = 0x00106801, .rate = 350000000}, prate 251 arch/unicore32/kernel/clock.c {.prate = 0x00106C01, .rate = 362500000}, prate 252 arch/unicore32/kernel/clock.c {.prate = 0x00003401, .rate = 375000000}, prate 253 arch/unicore32/kernel/clock.c {.prate = 0x00107001, .rate = 375000000}, prate 254 arch/unicore32/kernel/clock.c {.prate = 0x00107401, .rate = 387500000}, prate 255 arch/unicore32/kernel/clock.c {.prate = 0x00003801, .rate = 400000000}, prate 256 arch/unicore32/kernel/clock.c {.prate = 0x00107801, .rate = 400000000}, prate 257 arch/unicore32/kernel/clock.c {.prate = 0x00107C01, .rate = 412500000}, prate 258 arch/unicore32/kernel/clock.c {.prate = 0x00003C01, .rate = 425000000}, prate 259 arch/unicore32/kernel/clock.c {.prate = 0x00108001, .rate = 425000000}, prate 260 arch/unicore32/kernel/clock.c {.prate = 0x00108401, .rate = 437500000}, prate 261 arch/unicore32/kernel/clock.c {.prate = 0x00004001, .rate = 450000000}, prate 262 arch/unicore32/kernel/clock.c {.prate = 0x00108801, .rate = 450000000}, prate 263 arch/unicore32/kernel/clock.c {.prate = 0x00108C01, .rate = 462500000}, prate 264 arch/unicore32/kernel/clock.c {.prate = 0x00004401, .rate = 475000000}, prate 265 arch/unicore32/kernel/clock.c {.prate = 0x00109001, .rate = 475000000}, prate 266 arch/unicore32/kernel/clock.c {.prate = 0x00109401, .rate = 487500000}, prate 267 arch/unicore32/kernel/clock.c {.prate = 0x00004801, .rate = 500000000}, prate 268 arch/unicore32/kernel/clock.c {.prate = 0x00109801, .rate = 500000000}, prate 269 arch/unicore32/kernel/clock.c {.prate = 0x00104C00, .rate = 525000000}, prate 270 arch/unicore32/kernel/clock.c {.prate = 0x00002400, .rate = 550000000}, prate 271 arch/unicore32/kernel/clock.c {.prate = 0x00105000, .rate = 550000000}, prate 272 arch/unicore32/kernel/clock.c {.prate = 0x00105400, .rate = 575000000}, prate 273 arch/unicore32/kernel/clock.c {.prate = 0x00002800, .rate = 600000000}, prate 274 arch/unicore32/kernel/clock.c {.prate = 0x00105800, .rate = 600000000}, prate 275 arch/unicore32/kernel/clock.c {.prate = 0x00105C00, .rate = 625000000}, prate 276 arch/unicore32/kernel/clock.c {.prate = 0x00002C00, .rate = 650000000}, prate 277 arch/unicore32/kernel/clock.c {.prate = 0x00106000, .rate = 650000000}, prate 278 arch/unicore32/kernel/clock.c {.prate = 0x00106400, .rate = 675000000}, prate 279 arch/unicore32/kernel/clock.c {.prate = 0x00003000, .rate = 700000000}, prate 280 arch/unicore32/kernel/clock.c {.prate = 0x00106800, .rate = 700000000}, prate 281 arch/unicore32/kernel/clock.c {.prate = 0x00106C00, .rate = 725000000}, prate 282 arch/unicore32/kernel/clock.c {.prate = 0x00003400, .rate = 750000000}, prate 283 arch/unicore32/kernel/clock.c {.prate = 0x00107000, .rate = 750000000}, prate 284 arch/unicore32/kernel/clock.c {.prate = 0x00107400, .rate = 775000000}, prate 285 arch/unicore32/kernel/clock.c {.prate = 0x00003800, .rate = 800000000}, prate 286 arch/unicore32/kernel/clock.c {.prate = 0x00107800, .rate = 800000000}, prate 287 arch/unicore32/kernel/clock.c {.prate = 0x00107C00, .rate = 825000000}, prate 288 arch/unicore32/kernel/clock.c {.prate = 0x00003C00, .rate = 850000000}, prate 289 arch/unicore32/kernel/clock.c {.prate = 0x00108000, .rate = 850000000}, prate 290 arch/unicore32/kernel/clock.c {.prate = 0x00108400, .rate = 875000000}, prate 291 arch/unicore32/kernel/clock.c {.prate = 0x00004000, .rate = 900000000}, prate 292 arch/unicore32/kernel/clock.c {.prate = 0x00108800, .rate = 900000000}, prate 293 arch/unicore32/kernel/clock.c {.prate = 0x00108C00, .rate = 925000000}, prate 294 arch/unicore32/kernel/clock.c {.prate = 0x00004400, .rate = 950000000}, prate 295 arch/unicore32/kernel/clock.c {.prate = 0x00109000, .rate = 950000000}, prate 296 arch/unicore32/kernel/clock.c {.prate = 0x00109400, .rate = 975000000}, prate 297 arch/unicore32/kernel/clock.c {.prate = 0x00004800, .rate = 1000000000}, prate 298 arch/unicore32/kernel/clock.c {.prate = 0x00109800, .rate = 1000000000}, prate 302 arch/unicore32/kernel/clock.c unsigned long prate; prate 305 arch/unicore32/kernel/clock.c {.prate = 0x00100800, .drate = 44236800}, prate 306 arch/unicore32/kernel/clock.c {.prate = 0x00100C00, .drate = 66355200}, prate 307 arch/unicore32/kernel/clock.c {.prate = 0x00101000, .drate = 88473600}, prate 308 arch/unicore32/kernel/clock.c {.prate = 0x00101400, .drate = 110592000}, prate 309 arch/unicore32/kernel/clock.c {.prate = 0x00101800, .drate = 132710400}, prate 310 arch/unicore32/kernel/clock.c {.prate = 0x00101C01, .drate = 154828800}, prate 311 arch/unicore32/kernel/clock.c {.prate = 0x00102001, .drate = 176947200}, prate 312 arch/unicore32/kernel/clock.c {.prate = 0x00102401, .drate = 199065600}, prate 313 arch/unicore32/kernel/clock.c {.prate = 0x00102801, .drate = 221184000}, prate 314 arch/unicore32/kernel/clock.c {.prate = 0x00102C01, .drate = 243302400}, prate 315 arch/unicore32/kernel/clock.c {.prate = 0x00103001, .drate = 265420800}, prate 316 arch/unicore32/kernel/clock.c {.prate = 0x00103401, .drate = 287539200}, prate 317 arch/unicore32/kernel/clock.c {.prate = 0x00103801, .drate = 309657600}, prate 318 arch/unicore32/kernel/clock.c {.prate = 0x00103C01, .drate = 331776000}, prate 319 arch/unicore32/kernel/clock.c {.prate = 0x00104001, .drate = 353894400}, prate 338 arch/unicore32/kernel/clock.c if (pllrate == pllrate_table[i].prate) { prate 353 arch/unicore32/kernel/clock.c if (pllrate == pddr_table[i].prate) { prate 364 arch/unicore32/kernel/clock.c if (pllrate == pllrate_table[i].prate) { prate 89 drivers/clk/axs10x/i2s_pll_clock.c static const struct i2s_pll_cfg *i2s_pll_get_cfg(unsigned long prate) prate 91 drivers/clk/axs10x/i2s_pll_clock.c switch (prate) { prate 115 drivers/clk/axs10x/i2s_pll_clock.c unsigned long *prate) prate 118 drivers/clk/axs10x/i2s_pll_clock.c const struct i2s_pll_cfg *pll_cfg = i2s_pll_get_cfg(*prate); prate 122 drivers/clk/axs10x/i2s_pll_clock.c dev_err(clk->dev, "invalid parent rate=%ld\n", *prate); prate 157 drivers/clk/axs10x/pll_clock.c unsigned long *prate) prate 1103 drivers/clk/bcm/clk-bcm2835.c unsigned long *prate, prate 1116 drivers/clk/bcm/clk-bcm2835.c *prate = clk_hw_get_rate(parent); prate 1117 drivers/clk/bcm/clk-bcm2835.c *div = bcm2835_clock_choose_div(hw, rate, *prate, true); prate 1119 drivers/clk/bcm/clk-bcm2835.c *avgrate = bcm2835_clock_rate_from_divisor(clock, *prate, *div); prate 1125 drivers/clk/bcm/clk-bcm2835.c high = bcm2835_clock_rate_from_divisor(clock, *prate, prate 1128 drivers/clk/bcm/clk-bcm2835.c low = bcm2835_clock_rate_from_divisor(clock, *prate, prate 1163 drivers/clk/bcm/clk-bcm2835.c *prate = curdiv * best_rate; prate 1175 drivers/clk/bcm/clk-bcm2835.c unsigned long prate, best_prate = 0; prate 1201 drivers/clk/bcm/clk-bcm2835.c &div, &prate, prate 1205 drivers/clk/bcm/clk-bcm2835.c best_prate = prate; prate 119 drivers/clk/clk-composite.c unsigned long *prate) prate 127 drivers/clk/clk-composite.c return rate_ops->round_rate(rate_hw, rate, prate); prate 346 drivers/clk/clk-divider.c unsigned long rate, unsigned long *prate, prate 352 drivers/clk/clk-divider.c div = clk_divider_bestdiv(hw, parent, rate, prate, table, width, flags); prate 354 drivers/clk/clk-divider.c return DIV_ROUND_UP_ULL((u64)*prate, div); prate 359 drivers/clk/clk-divider.c unsigned long rate, unsigned long *prate, prate 372 drivers/clk/clk-divider.c *prate = clk_hw_round_rate(parent, rate * div); prate 375 drivers/clk/clk-divider.c return DIV_ROUND_UP_ULL((u64)*prate, div); prate 381 drivers/clk/clk-divider.c unsigned long *prate) prate 392 drivers/clk/clk-divider.c return divider_ro_round_rate(hw, rate, prate, divider->table, prate 397 drivers/clk/clk-divider.c return divider_round_rate(hw, rate, prate, divider->table, prate 34 drivers/clk/clk-fixed-factor.c unsigned long *prate) prate 42 drivers/clk/clk-fixed-factor.c *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); prate 45 drivers/clk/clk-fixed-factor.c return (*prate / fix->div) * fix->mult; prate 132 drivers/clk/clk-gemini.c unsigned long *prate) prate 197 drivers/clk/clk-hsdk-pll.c unsigned long *prate) prate 390 drivers/clk/clk-milbeaut.c unsigned long *prate) prate 401 drivers/clk/clk-milbeaut.c return divider_ro_round_rate(hw, rate, prate, divider->table, prate 406 drivers/clk/clk-milbeaut.c return divider_round_rate(hw, rate, prate, divider->table, prate 431 drivers/clk/clk-stm32f4.c unsigned long *prate) prate 442 drivers/clk/clk-stm32f4.c *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); prate 445 drivers/clk/clk-stm32f4.c return *prate * mult; prate 647 drivers/clk/clk-stm32f4.c unsigned long *prate) prate 653 drivers/clk/clk-stm32f4.c n = rate / *prate; prate 660 drivers/clk/clk-stm32f4.c return *prate * n; prate 713 drivers/clk/clk-stm32f4.c unsigned long *prate) prate 715 drivers/clk/clk-stm32f4.c return clk_divider_ops.round_rate(hw, rate, prate); prate 849 drivers/clk/clk-stm32h7.c unsigned long *prate) prate 851 drivers/clk/clk-stm32h7.c return clk_divider_ops.round_rate(hw, rate, prate); prate 634 drivers/clk/clk-u300.c unsigned long *prate) prate 639 drivers/clk/clk-u300.c return *prate; prate 1044 drivers/clk/clk-u300.c unsigned long *prate) prate 132 drivers/clk/clk-vt8500.c unsigned long *prate) prate 140 drivers/clk/clk-vt8500.c divisor = *prate / rate; prate 143 drivers/clk/clk-vt8500.c if (rate * divisor < *prate) prate 154 drivers/clk/clk-vt8500.c return *prate / divisor; prate 598 drivers/clk/clk-vt8500.c unsigned long *prate) prate 607 drivers/clk/clk-vt8500.c ret = vt8500_find_pll_bits(rate, *prate, &mul, &div1); prate 609 drivers/clk/clk-vt8500.c round_rate = VT8500_BITS_TO_FREQ(*prate, mul, div1); prate 612 drivers/clk/clk-vt8500.c ret = wm8650_find_pll_bits(rate, *prate, &mul, &div1, &div2); prate 614 drivers/clk/clk-vt8500.c round_rate = WM8650_BITS_TO_FREQ(*prate, mul, div1, div2); prate 617 drivers/clk/clk-vt8500.c ret = wm8750_find_pll_bits(rate, *prate, &filter, &mul, &div1, &div2); prate 619 drivers/clk/clk-vt8500.c round_rate = WM8750_BITS_TO_FREQ(*prate, mul, div1, div2); prate 622 drivers/clk/clk-vt8500.c ret = wm8850_find_pll_bits(rate, *prate, &mul, &div1, &div2); prate 624 drivers/clk/clk-vt8500.c round_rate = WM8850_BITS_TO_FREQ(*prate, mul, div1, div2); prate 598 drivers/clk/clk-xgene.c unsigned long *prate) prate 601 drivers/clk/clk-xgene.c unsigned long parent_rate = *prate; prate 38 drivers/clk/h8300/clk-h8s2678.c unsigned long *prate) prate 49 drivers/clk/h8300/clk-h8s2678.c offset[i] = abs(rate - (*prate * (1 << i))); prate 56 drivers/clk/h8300/clk-h8s2678.c return *prate * (1 << m); prate 71 drivers/clk/hisilicon/clk-hi3660-stub.c unsigned long *prate) prate 59 drivers/clk/hisilicon/clkdivider-hi6220.c unsigned long *prate) prate 63 drivers/clk/hisilicon/clkdivider-hi6220.c return divider_round_rate(hw, rate, prate, dclk->table, prate 49 drivers/clk/imx/clk-busy.c unsigned long *prate) prate 53 drivers/clk/imx/clk-busy.c return busy->div_ops->round_rate(&busy->div.hw, rate, prate); prate 76 drivers/clk/imx/clk-composite-8m.c unsigned long *prate) prate 81 drivers/clk/imx/clk-composite-8m.c imx8m_clk_composite_compute_dividers(rate, *prate, prate 83 drivers/clk/imx/clk-composite-8m.c rate = DIV_ROUND_UP(*prate, prediv_value); prate 33 drivers/clk/imx/clk-cpu.c unsigned long *prate) prate 68 drivers/clk/imx/clk-divider-gate.c unsigned long *prate) prate 70 drivers/clk/imx/clk-divider-gate.c return clk_divider_ops.round_rate(hw, rate, prate); prate 45 drivers/clk/imx/clk-fixup-div.c unsigned long *prate) prate 49 drivers/clk/imx/clk-fixup-div.c return fixup_div->ops->round_rate(&fixup_div->divider.hw, rate, prate); prate 122 drivers/clk/imx/clk-frac-pll.c unsigned long *prate) prate 124 drivers/clk/imx/clk-frac-pll.c u64 parent_rate = *prate; prate 65 drivers/clk/imx/clk-pfd.c unsigned long *prate) prate 67 drivers/clk/imx/clk-pfd.c u64 tmp = *prate; prate 77 drivers/clk/imx/clk-pfd.c tmp = *prate; prate 102 drivers/clk/imx/clk-pfdv2.c unsigned long *prate) prate 104 drivers/clk/imx/clk-pfdv2.c u64 tmp = *prate; prate 116 drivers/clk/imx/clk-pfdv2.c tmp = *prate; prate 58 drivers/clk/imx/clk-pll14xx.c unsigned long *prate) prate 135 drivers/clk/imx/clk-pll14xx.c unsigned long prate) prate 201 drivers/clk/imx/clk-pll14xx.c unsigned long prate) prate 182 drivers/clk/imx/clk-pllv2.c unsigned long *prate) prate 187 drivers/clk/imx/clk-pllv2.c ret = __clk_pllv2_set_rate(rate, *prate, &dp_op, &dp_mfd, &dp_mfn); prate 191 drivers/clk/imx/clk-pllv2.c return __clk_pllv2_recalc_rate(*prate, MXC_PLL_DP_CTL_DPDCK0_2_EN, prate 123 drivers/clk/imx/clk-pllv3.c unsigned long *prate) prate 125 drivers/clk/imx/clk-pllv3.c unsigned long parent_rate = *prate; prate 171 drivers/clk/imx/clk-pllv3.c unsigned long *prate) prate 173 drivers/clk/imx/clk-pllv3.c unsigned long parent_rate = *prate; prate 232 drivers/clk/imx/clk-pllv3.c unsigned long *prate) prate 234 drivers/clk/imx/clk-pllv3.c unsigned long parent_rate = *prate; prate 361 drivers/clk/imx/clk-pllv3.c unsigned long *prate) prate 363 drivers/clk/imx/clk-pllv3.c struct clk_pllv3_vf610_mf mf = clk_pllv3_vf610_rate_to_mf(*prate, rate); prate 365 drivers/clk/imx/clk-pllv3.c return clk_pllv3_vf610_mf_to_rate(*prate, mf); prate 88 drivers/clk/imx/clk-pllv4.c unsigned long *prate) prate 90 drivers/clk/imx/clk-pllv4.c unsigned long parent_rate = *prate; prate 270 drivers/clk/imx/clk-sccg-pll.c uint64_t prate, prate 285 drivers/clk/imx/clk-sccg-pll.c if (prate == rate) { prate 293 drivers/clk/imx/clk-sccg-pll.c ret = clk_sccg_pll2_find_setup(setup, &temp_setup, prate); prate 297 drivers/clk/imx/clk-sccg-pll.c ret = clk_sccg_pll1_find_setup(setup, &temp_setup, prate); prate 159 drivers/clk/ingenic/cgu.c unsigned long *prate) prate 164 drivers/clk/ingenic/cgu.c return ingenic_pll_calc(clk_info, req_rate, *prate, NULL, NULL, NULL); prate 226 drivers/clk/mediatek/clk-pll.c unsigned long *prate) prate 232 drivers/clk/mediatek/clk-pll.c mtk_pll_calc_values(pll, &pcw, &postdiv, rate, *prate); prate 234 drivers/clk/mediatek/clk-pll.c return __mtk_pll_recalc_rate(pll, *prate, pcw, postdiv); prate 20 drivers/clk/meson/clk-cpu-dyndiv.c unsigned long prate) prate 25 drivers/clk/meson/clk-cpu-dyndiv.c return divider_recalc_rate(hw, prate, prate 32 drivers/clk/meson/clk-cpu-dyndiv.c unsigned long *prate) prate 37 drivers/clk/meson/clk-cpu-dyndiv.c return divider_round_rate(hw, rate, prate, NULL, data->div.width, 0); prate 60 drivers/clk/meson/clk-regmap.c unsigned long prate) prate 74 drivers/clk/meson/clk-regmap.c return divider_recalc_rate(hw, prate, val, div->table, div->flags, prate 79 drivers/clk/meson/clk-regmap.c unsigned long *prate) prate 96 drivers/clk/meson/clk-regmap.c return divider_ro_round_rate(hw, rate, prate, div->table, prate 100 drivers/clk/meson/clk-regmap.c return divider_round_rate(hw, rate, prate, div->table, div->width, prate 42 drivers/clk/meson/sclk-div.c unsigned long prate, int maxdiv) prate 44 drivers/clk/meson/sclk-div.c int div = DIV_ROUND_CLOSEST_ULL((u64)prate, rate); prate 50 drivers/clk/meson/sclk-div.c unsigned long *prate, prate 64 drivers/clk/meson/sclk-div.c return sclk_div_getdiv(hw, rate, *prate, maxdiv); prate 78 drivers/clk/meson/sclk-div.c if (rate * i == *prate) prate 94 drivers/clk/meson/sclk-div.c *prate = best_parent; prate 100 drivers/clk/meson/sclk-div.c unsigned long *prate) prate 106 drivers/clk/meson/sclk-div.c div = sclk_div_bestdiv(hw, rate, prate, sclk); prate 108 drivers/clk/meson/sclk-div.c return DIV_ROUND_UP_ULL((u64)*prate, div); prate 167 drivers/clk/meson/sclk-div.c unsigned long prate) prate 173 drivers/clk/meson/sclk-div.c sclk->cached_div = sclk_div_getdiv(hw, rate, prate, maxdiv); prate 182 drivers/clk/meson/sclk-div.c unsigned long prate) prate 187 drivers/clk/meson/sclk-div.c return DIV_ROUND_UP_ULL((u64)prate, sclk->cached_div); prate 28 drivers/clk/mmp/clk-frac.c unsigned long *prate) prate 36 drivers/clk/mmp/clk-frac.c rate = (((*prate / 10000) * factor->ftbl[i].den) / prate 75 drivers/clk/mmp/clk-frac.c unsigned long prate) prate 85 drivers/clk/mmp/clk-frac.c rate = (((prate / 10000) * factor->ftbl[i].den) / prate 44 drivers/clk/mxs/clk-div.c unsigned long *prate) prate 48 drivers/clk/mxs/clk-div.c return div->ops->round_rate(&div->divider.hw, rate, prate); prate 48 drivers/clk/mxs/clk-frac.c unsigned long *prate) prate 51 drivers/clk/mxs/clk-frac.c unsigned long parent_rate = *prate; prate 61 drivers/clk/mxs/clk-ref.c unsigned long *prate) prate 63 drivers/clk/mxs/clk-ref.c unsigned long parent_rate = *prate; prate 378 drivers/clk/nxp/clk-lpc18xx-cgu.c unsigned long *prate) prate 382 drivers/clk/nxp/clk-lpc18xx-cgu.c if (*prate < rate) { prate 387 drivers/clk/nxp/clk-lpc18xx-cgu.c m = DIV_ROUND_UP_ULL(*prate, rate * 2); prate 393 drivers/clk/nxp/clk-lpc18xx-cgu.c return 2 * *prate * m; prate 959 drivers/clk/nxp/clk-lpc32xx.c unsigned long *prate) prate 971 drivers/clk/nxp/clk-lpc32xx.c return DIV_ROUND_UP(*prate, bestdiv); prate 974 drivers/clk/nxp/clk-lpc32xx.c return divider_round_rate(hw, rate, prate, divider->table, prate 407 drivers/clk/qcom/clk-alpha-pll.c alpha_pll_calc_rate(u64 prate, u32 l, u32 a, u32 alpha_width) prate 409 drivers/clk/qcom/clk-alpha-pll.c return (prate * l) + ((prate * a) >> ALPHA_SHIFT(alpha_width)); prate 413 drivers/clk/qcom/clk-alpha-pll.c alpha_pll_round_rate(unsigned long rate, unsigned long prate, u32 *l, u64 *a, prate 420 drivers/clk/qcom/clk-alpha-pll.c remainder = do_div(quotient, prate); prate 431 drivers/clk/qcom/clk-alpha-pll.c remainder = do_div(quotient, prate); prate 437 drivers/clk/qcom/clk-alpha-pll.c return alpha_pll_calc_rate(prate, *l, *a, alpha_width); prate 457 drivers/clk/qcom/clk-alpha-pll.c u64 a = 0, prate = parent_rate; prate 478 drivers/clk/qcom/clk-alpha-pll.c return alpha_pll_calc_rate(prate, l, a, alpha_width); prate 536 drivers/clk/qcom/clk-alpha-pll.c unsigned long prate, prate 544 drivers/clk/qcom/clk-alpha-pll.c rate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); prate 574 drivers/clk/qcom/clk-alpha-pll.c unsigned long prate) prate 576 drivers/clk/qcom/clk-alpha-pll.c return __clk_alpha_pll_set_rate(hw, rate, prate, prate 581 drivers/clk/qcom/clk-alpha-pll.c unsigned long prate) prate 583 drivers/clk/qcom/clk-alpha-pll.c return __clk_alpha_pll_set_rate(hw, rate, prate, prate 588 drivers/clk/qcom/clk-alpha-pll.c unsigned long *prate) prate 595 drivers/clk/qcom/clk-alpha-pll.c rate = alpha_pll_round_rate(rate, *prate, &l, &a, alpha_width); prate 606 drivers/clk/qcom/clk-alpha-pll.c alpha_huayra_pll_calc_rate(u64 prate, u32 l, u32 a) prate 615 drivers/clk/qcom/clk-alpha-pll.c return (prate * l) + (prate * a >> PLL_HUAYRA_ALPHA_WIDTH); prate 619 drivers/clk/qcom/clk-alpha-pll.c alpha_huayra_pll_round_rate(unsigned long rate, unsigned long prate, prate 626 drivers/clk/qcom/clk-alpha-pll.c remainder = do_div(quotient, prate); prate 635 drivers/clk/qcom/clk-alpha-pll.c remainder = do_div(quotient, prate); prate 649 drivers/clk/qcom/clk-alpha-pll.c return alpha_huayra_pll_calc_rate(prate, *l, *a); prate 707 drivers/clk/qcom/clk-alpha-pll.c unsigned long prate) prate 712 drivers/clk/qcom/clk-alpha-pll.c rate = alpha_huayra_pll_round_rate(rate, prate, &l, &a); prate 750 drivers/clk/qcom/clk-alpha-pll.c unsigned long *prate) prate 754 drivers/clk/qcom/clk-alpha-pll.c return alpha_huayra_pll_round_rate(rate, *prate, &l, &a); prate 854 drivers/clk/qcom/clk-alpha-pll.c u64 prate = parent_rate; prate 859 drivers/clk/qcom/clk-alpha-pll.c return alpha_pll_calc_rate(prate, l, frac, ALPHA_REG_16BIT_WIDTH); prate 863 drivers/clk/qcom/clk-alpha-pll.c unsigned long *prate) prate 870 drivers/clk/qcom/clk-alpha-pll.c rate = alpha_pll_round_rate(rate, *prate, prate 952 drivers/clk/qcom/clk-alpha-pll.c unsigned long *prate) prate 962 drivers/clk/qcom/clk-alpha-pll.c return divider_round_rate(hw, rate, prate, table, prate 968 drivers/clk/qcom/clk-alpha-pll.c unsigned long *prate) prate 980 drivers/clk/qcom/clk-alpha-pll.c *prate = clk_hw_round_rate(clk_hw_get_parent(hw), div * rate); prate 982 drivers/clk/qcom/clk-alpha-pll.c return DIV_ROUND_UP_ULL((u64)*prate, div); prate 1141 drivers/clk/qcom/clk-alpha-pll.c unsigned long prate) prate 1153 drivers/clk/qcom/clk-alpha-pll.c rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); prate 1237 drivers/clk/qcom/clk-alpha-pll.c unsigned long *prate) prate 1241 drivers/clk/qcom/clk-alpha-pll.c return divider_round_rate(hw, rate, prate, pll->post_div_table, prate 1274 drivers/clk/qcom/clk-alpha-pll.c unsigned long rate, unsigned long *prate) prate 1278 drivers/clk/qcom/clk-alpha-pll.c return divider_round_rate(hw, rate, prate, pll->post_div_table, prate 301 drivers/clk/qcom/clk-pll.c clk_pll_sr2_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) prate 957 drivers/clk/qcom/clk-rcg2.c unsigned long prate = 0; prate 976 drivers/clk/qcom/clk-rcg2.c prate = clk_hw_get_rate(p); prate 997 drivers/clk/qcom/clk-rcg2.c f->freq = calc_rate(prate, f->m, f->n, mode, f->pre_div); prate 19 drivers/clk/qcom/clk-regmap-divider.c unsigned long *prate) prate 29 drivers/clk/qcom/clk-regmap-divider.c return divider_ro_round_rate(hw, rate, prate, NULL, divider->width, prate 34 drivers/clk/qcom/clk-regmap-divider.c unsigned long *prate) prate 38 drivers/clk/qcom/clk-regmap-divider.c return divider_round_rate(hw, rate, prate, NULL, divider->width, prate 125 drivers/clk/qcom/clk-regmap-mux-div.c unsigned long prate, u32 src) prate 187 drivers/clk/qcom/clk-regmap-mux-div.c unsigned long rate, unsigned long prate) prate 191 drivers/clk/qcom/clk-regmap-mux-div.c return __mux_div_set_rate_and_parent(hw, rate, prate, md->src); prate 195 drivers/clk/qcom/clk-regmap-mux-div.c unsigned long prate, u8 index) prate 199 drivers/clk/qcom/clk-regmap-mux-div.c return __mux_div_set_rate_and_parent(hw, rate, prate, prate 203 drivers/clk/qcom/clk-regmap-mux-div.c static unsigned long mux_div_recalc_rate(struct clk_hw *hw, unsigned long prate) prate 231 drivers/clk/qcom/clk-rpmh.c unsigned long prate) prate 238 drivers/clk/qcom/clk-rpmh.c return prate / r->div; prate 322 drivers/clk/qcom/clk-rpmh.c unsigned long prate) prate 72 drivers/clk/renesas/clk-rcar-gen2.c unsigned long prate = *parent_rate; prate 75 drivers/clk/renesas/clk-rcar-gen2.c if (!prate) prate 76 drivers/clk/renesas/clk-rcar-gen2.c prate = 1; prate 78 drivers/clk/renesas/clk-rcar-gen2.c mult = div_u64((u64)rate * 32, prate); prate 578 drivers/clk/renesas/r9a06g032-clocks.c unsigned long rate, unsigned long prate) prate 581 drivers/clk/renesas/r9a06g032-clocks.c u32 div = DIV_ROUND_UP(prate, rate + 1); prate 592 drivers/clk/renesas/r9a06g032-clocks.c DIV_ROUND_UP(prate, clk->table[i]); prate 594 drivers/clk/renesas/r9a06g032-clocks.c DIV_ROUND_UP(prate, clk->table[i + 1]) - prate 609 drivers/clk/renesas/r9a06g032-clocks.c unsigned long rate, unsigned long *prate) prate 612 drivers/clk/renesas/r9a06g032-clocks.c u32 div = DIV_ROUND_UP(*prate, rate); prate 615 drivers/clk/renesas/r9a06g032-clocks.c hw->clk, rate, *prate, div); prate 617 drivers/clk/renesas/r9a06g032-clocks.c clk->min, DIV_ROUND_UP(*prate, clk->min), prate 618 drivers/clk/renesas/r9a06g032-clocks.c clk->max, DIV_ROUND_UP(*prate, clk->max)); prate 620 drivers/clk/renesas/r9a06g032-clocks.c div = r9a06g032_div_clamp_div(clk, rate, *prate); prate 636 drivers/clk/renesas/r9a06g032-clocks.c *prate, div, DIV_ROUND_UP(*prate, div)); prate 637 drivers/clk/renesas/r9a06g032-clocks.c return DIV_ROUND_UP(*prate, div); prate 69 drivers/clk/renesas/rcar-gen2-cpg.c unsigned long prate = *parent_rate; prate 72 drivers/clk/renesas/rcar-gen2-cpg.c if (!prate) prate 73 drivers/clk/renesas/rcar-gen2-cpg.c prate = 1; prate 75 drivers/clk/renesas/rcar-gen2-cpg.c mult = div_u64((u64)rate * 32, prate); prate 121 drivers/clk/renesas/rcar-gen3-cpg.c unsigned long prate; prate 124 drivers/clk/renesas/rcar-gen3-cpg.c prate = *parent_rate / zclk->fixed_div; prate 125 drivers/clk/renesas/rcar-gen3-cpg.c mult = div_u64(rate * 32ULL, prate); prate 128 drivers/clk/renesas/rcar-gen3-cpg.c return (u64)prate * mult / 32; prate 79 drivers/clk/rockchip/clk-cpu.c if (rate == rate_table[i].prate) prate 30 drivers/clk/rockchip/clk-ddr.c unsigned long prate) prate 60 drivers/clk/rockchip/clk-ddr.c unsigned long *prate) prate 96 drivers/clk/rockchip/clk-half-divider.c unsigned long *prate) prate 101 drivers/clk/rockchip/clk-half-divider.c div = clk_half_divider_bestdiv(hw, rate, prate, prate 105 drivers/clk/rockchip/clk-half-divider.c return DIV_ROUND_UP_ULL(((u64)*prate * 2), div * 2 + 3); prate 64 drivers/clk/rockchip/clk-pll.c unsigned long drate, unsigned long *prate) prate 153 drivers/clk/rockchip/clk-pll.c unsigned long prate) prate 157 drivers/clk/rockchip/clk-pll.c u64 rate64 = prate; prate 166 drivers/clk/rockchip/clk-pll.c u64 frac_rate64 = prate * cur.frac; prate 238 drivers/clk/rockchip/clk-pll.c unsigned long prate) prate 244 drivers/clk/rockchip/clk-pll.c __func__, __clk_get_name(hw->clk), drate, prate); prate 388 drivers/clk/rockchip/clk-pll.c unsigned long prate) prate 392 drivers/clk/rockchip/clk-pll.c u64 rate64 = prate; prate 399 drivers/clk/rockchip/clk-pll.c return prate; prate 471 drivers/clk/rockchip/clk-pll.c unsigned long prate) prate 477 drivers/clk/rockchip/clk-pll.c __func__, clk_hw_get_name(hw), drate, prate); prate 630 drivers/clk/rockchip/clk-pll.c unsigned long prate) prate 634 drivers/clk/rockchip/clk-pll.c u64 rate64 = prate; prate 643 drivers/clk/rockchip/clk-pll.c u64 frac_rate64 = prate * cur.frac; prate 717 drivers/clk/rockchip/clk-pll.c unsigned long prate) prate 723 drivers/clk/rockchip/clk-pll.c __func__, __clk_get_name(hw->clk), drate, prate); prate 89 drivers/clk/rockchip/clk-px30.c .prate = _prate, \ prate 92 drivers/clk/rockchip/clk-rk3036.c .prate = _prate, \ prate 91 drivers/clk/rockchip/clk-rk3128.c .prate = _prate, \ prate 130 drivers/clk/rockchip/clk-rk3188.c .prate = _prate, \ prate 168 drivers/clk/rockchip/clk-rk3188.c .prate = _prate, \ prate 92 drivers/clk/rockchip/clk-rk3228.c .prate = _prate, \ prate 152 drivers/clk/rockchip/clk-rk3288.c .prate = _prate, \ prate 85 drivers/clk/rockchip/clk-rk3308.c .prate = _prate, \ prate 104 drivers/clk/rockchip/clk-rk3328.c .prate = _prate, \ prate 201 drivers/clk/rockchip/clk-rk3368.c .prate = _prate, \ prate 211 drivers/clk/rockchip/clk-rk3368.c .prate = _prate, \ prate 336 drivers/clk/rockchip/clk-rk3399.c .prate = _prate##U, \ prate 346 drivers/clk/rockchip/clk-rk3399.c .prate = _prate##U, \ prate 81 drivers/clk/rockchip/clk-rv1108.c .prate = _prate, \ prate 327 drivers/clk/rockchip/clk.h unsigned long prate; prate 106 drivers/clk/samsung/clk-cpu.c unsigned long drate, unsigned long *prate) prate 109 drivers/clk/samsung/clk-cpu.c *prate = clk_hw_round_rate(parent, drate); prate 110 drivers/clk/samsung/clk-cpu.c return *prate; prate 159 drivers/clk/samsung/clk-cpu.c while ((cfg_data->prate * 1000) != ndata->new_rate) { prate 160 drivers/clk/samsung/clk-cpu.c if (cfg_data->prate == 0) prate 236 drivers/clk/samsung/clk-cpu.c while ((cfg_data->prate * 1000) != ndata->new_rate) { prate 237 drivers/clk/samsung/clk-cpu.c if (cfg_data->prate == 0) prate 287 drivers/clk/samsung/clk-cpu.c while ((cfg_data->prate * 1000) != ndata->new_rate) { prate 288 drivers/clk/samsung/clk-cpu.c if (cfg_data->prate == 0) prate 26 drivers/clk/samsung/clk-cpu.h unsigned long prate; prate 50 drivers/clk/samsung/clk-pll.c unsigned long drate, unsigned long *prate) prate 205 drivers/clk/samsung/clk-pll.c unsigned long prate) prate 435 drivers/clk/samsung/clk-pll.c unsigned long prate) prate 586 drivers/clk/samsung/clk-pll.c unsigned long prate) prate 805 drivers/clk/samsung/clk-pll.c unsigned long prate) prate 1001 drivers/clk/samsung/clk-pll.c unsigned long prate) prate 1101 drivers/clk/samsung/clk-pll.c unsigned long prate) prate 44 drivers/clk/spear/clk-aux-synth.c static unsigned long aux_calc_rate(struct clk_hw *hw, unsigned long prate, prate 51 drivers/clk/spear/clk-aux-synth.c return (((prate / 10000) * rtbl[index].xscale) / prate 56 drivers/clk/spear/clk-aux-synth.c unsigned long *prate) prate 61 drivers/clk/spear/clk-aux-synth.c return clk_round_rate_index(hw, drate, *prate, aux_calc_rate, prate 100 drivers/clk/spear/clk-aux-synth.c unsigned long prate) prate 107 drivers/clk/spear/clk-aux-synth.c clk_round_rate_index(hw, drate, prate, aux_calc_rate, aux->rtbl_cnt, prate 44 drivers/clk/spear/clk-frac-synth.c static unsigned long frac_calc_rate(struct clk_hw *hw, unsigned long prate, prate 50 drivers/clk/spear/clk-frac-synth.c prate /= 10000; prate 51 drivers/clk/spear/clk-frac-synth.c prate <<= 14; prate 52 drivers/clk/spear/clk-frac-synth.c prate /= (2 * rtbl[index].div); prate 53 drivers/clk/spear/clk-frac-synth.c prate *= 10000; prate 55 drivers/clk/spear/clk-frac-synth.c return prate; prate 59 drivers/clk/spear/clk-frac-synth.c unsigned long *prate) prate 64 drivers/clk/spear/clk-frac-synth.c return clk_round_rate_index(hw, drate, *prate, frac_calc_rate, prate 96 drivers/clk/spear/clk-frac-synth.c unsigned long prate) prate 103 drivers/clk/spear/clk-frac-synth.c clk_round_rate_index(hw, drate, prate, frac_calc_rate, frac->rtbl_cnt, prate 34 drivers/clk/spear/clk-gpt-synth.c static unsigned long gpt_calc_rate(struct clk_hw *hw, unsigned long prate, prate 40 drivers/clk/spear/clk-gpt-synth.c prate /= ((1 << (rtbl[index].nscale + 1)) * (rtbl[index].mscale + 1)); prate 42 drivers/clk/spear/clk-gpt-synth.c return prate; prate 46 drivers/clk/spear/clk-gpt-synth.c unsigned long *prate) prate 51 drivers/clk/spear/clk-gpt-synth.c return clk_round_rate_index(hw, drate, *prate, gpt_calc_rate, prate 81 drivers/clk/spear/clk-gpt-synth.c unsigned long prate) prate 88 drivers/clk/spear/clk-gpt-synth.c clk_round_rate_index(hw, drate, prate, gpt_calc_rate, gpt->rtbl_cnt, prate 70 drivers/clk/spear/clk-vco-pll.c unsigned long prate, int index, unsigned long *pll_rate) prate 72 drivers/clk/spear/clk-vco-pll.c unsigned long rate = prate; prate 85 drivers/clk/spear/clk-vco-pll.c unsigned long *prate, int *index) prate 92 drivers/clk/spear/clk-vco-pll.c if (!prate) { prate 99 drivers/clk/spear/clk-vco-pll.c vco_prev_rate = *prate; prate 100 drivers/clk/spear/clk-vco-pll.c *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index, prate 106 drivers/clk/spear/clk-vco-pll.c *prate = vco_prev_rate; prate 117 drivers/clk/spear/clk-vco-pll.c unsigned long *prate) prate 121 drivers/clk/spear/clk-vco-pll.c return clk_pll_round_rate_index(hw, drate, prate, &unused); prate 145 drivers/clk/spear/clk-vco-pll.c unsigned long prate) prate 175 drivers/clk/spear/clk-vco-pll.c unsigned long prate, int index) prate 179 drivers/clk/spear/clk-vco-pll.c return pll_calc_rate(vco->rtbl, prate, index, NULL); prate 183 drivers/clk/spear/clk-vco-pll.c unsigned long *prate) prate 188 drivers/clk/spear/clk-vco-pll.c return clk_round_rate_index(hw, drate, *prate, vco_calc_rate, prate 231 drivers/clk/spear/clk-vco-pll.c unsigned long prate) prate 238 drivers/clk/spear/clk-vco-pll.c clk_round_rate_index(hw, drate, prate, vco_calc_rate, vco->rtbl_cnt, prate 109 drivers/clk/spear/clk.h typedef unsigned long (*clk_calc_rate)(struct clk_hw *hw, unsigned long prate, prate 257 drivers/clk/sprd/pll.c unsigned long *prate) prate 116 drivers/clk/st/clk-flexgen.c unsigned long *prate) prate 121 drivers/clk/st/clk-flexgen.c div = clk_best_div(*prate, rate); prate 124 drivers/clk/st/clk-flexgen.c *prate = rate * div; prate 128 drivers/clk/st/clk-flexgen.c return *prate / div; prate 318 drivers/clk/st/clkgen-fsyn.c unsigned long *prate) prate 322 drivers/clk/st/clkgen-fsyn.c if (clk_fs660c32_vco_get_params(*prate, rate, ¶ms)) prate 325 drivers/clk/st/clkgen-fsyn.c clk_fs660c32_vco_get_rate(*prate, ¶ms, &rate); prate 714 drivers/clk/st/clkgen-fsyn.c unsigned long prate, struct stm_fs *params) prate 725 drivers/clk/st/clkgen-fsyn.c if (!clk_fs_get_params(prate, drate, params)) prate 726 drivers/clk/st/clkgen-fsyn.c clk_fs_get_rate(prate, params, &rate); prate 756 drivers/clk/st/clkgen-fsyn.c unsigned long *prate) prate 760 drivers/clk/st/clkgen-fsyn.c rate = quadfs_find_best_rate(hw, rate, *prate, ¶ms); prate 337 drivers/clk/st/clkgen-pll.c unsigned long *prate) prate 341 drivers/clk/st/clkgen-pll.c if (!clk_pll3200c32_get_params(*prate, rate, ¶ms)) prate 342 drivers/clk/st/clkgen-pll.c clk_pll3200c32_get_rate(*prate, ¶ms, &rate); prate 491 drivers/clk/st/clkgen-pll.c unsigned long *prate) prate 495 drivers/clk/st/clkgen-pll.c if (!clk_pll4600c28_get_params(*prate, rate, ¶ms)) { prate 496 drivers/clk/st/clkgen-pll.c clk_pll4600c28_get_rate(*prate, ¶ms, &rate); prate 88 drivers/clk/sunxi-ng/ccu_gate.c unsigned long *prate) prate 101 drivers/clk/sunxi-ng/ccu_gate.c *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); prate 104 drivers/clk/sunxi-ng/ccu_gate.c return *prate / div; prate 21 drivers/clk/tegra/clk-audio-sync.c unsigned long *prate) prate 57 drivers/clk/tegra/clk-divider.c unsigned long *prate) prate 61 drivers/clk/tegra/clk-divider.c unsigned long output_rate = *prate; prate 68 drivers/clk/tegra/clk-divider.c return *prate; prate 48 drivers/clk/tegra/clk-periph.c unsigned long *prate) prate 56 drivers/clk/tegra/clk-periph.c return div_ops->round_rate(div_hw, rate, prate); prate 821 drivers/clk/tegra/clk-pll.c unsigned long *prate) prate 833 drivers/clk/tegra/clk-pll.c if (_get_table_rate(hw, &cfg, rate, *prate) && prate 834 drivers/clk/tegra/clk-pll.c pll->params->calc_rate(hw, &cfg, rate, *prate)) prate 1311 drivers/clk/tegra/clk-pll.c unsigned long *prate) prate 1316 drivers/clk/tegra/clk-pll.c u64 output_rate = *prate; prate 1318 drivers/clk/tegra/clk-pll.c ret = _pll_ramp_calc_pll(hw, &cfg, rate, *prate); prate 1556 drivers/clk/tegra/clk-pll.c unsigned long *prate) prate 1560 drivers/clk/tegra/clk-pll.c return _pllre_calc_rate(pll, NULL, rate, *prate); prate 38 drivers/clk/ti/composite.c unsigned long *prate) prate 231 drivers/clk/ti/divider.c unsigned long *prate) prate 234 drivers/clk/ti/divider.c div = ti_clk_divider_bestdiv(hw, rate, prate); prate 236 drivers/clk/ti/divider.c return DIV_ROUND_UP(*prate, div); prate 249 drivers/clk/versatile/clk-icst.c unsigned long *prate) prate 79 drivers/clk/zte/clk.c unsigned long *prate) prate 242 drivers/clk/zte/clk.c unsigned long *prate) prate 246 drivers/clk/zte/clk.c if (rate * 2 > *prate) prate 249 drivers/clk/zte/clk.c reg = calc_reg(*prate, rate); prate 250 drivers/clk/zte/clk.c return calc_rate(reg, *prate); prate 405 drivers/clk/zte/clk.c unsigned long *prate) prate 410 drivers/clk/zte/clk.c audio_calc_reg(zx_audio_div, &divt, rate, *prate); prate 412 drivers/clk/zte/clk.c return audio_calc_rate(zx_audio_div, divt.frac_reg, divt.int_reg, *prate); prate 52 drivers/clk/zynq/pll.c unsigned long *prate) prate 56 drivers/clk/zynq/pll.c fbdiv = DIV_ROUND_CLOSEST(rate, *prate); prate 62 drivers/clk/zynq/pll.c return *prate * fbdiv; prate 101 drivers/clk/zynqmp/divider.c unsigned long *prate) prate 123 drivers/clk/zynqmp/divider.c return DIV_ROUND_UP_ULL((u64)*prate, bestdiv); prate 126 drivers/clk/zynqmp/divider.c bestdiv = zynqmp_divider_get_val(*prate, rate); prate 129 drivers/clk/zynqmp/divider.c bestdiv = rate % *prate ? 1 : bestdiv; prate 130 drivers/clk/zynqmp/divider.c *prate = rate * bestdiv; prate 98 drivers/clk/zynqmp/pll.c unsigned long *prate) prate 104 drivers/clk/zynqmp/pll.c rate_div = (rate * FRAC_DIV) / *prate; prate 120 drivers/clk/zynqmp/pll.c fbdiv = DIV_ROUND_CLOSEST(rate, *prate); prate 122 drivers/clk/zynqmp/pll.c return *prate * fbdiv; prate 73 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c unsigned long prate; prate 102 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c prate = clk_get_rate(crtc->dc->hlcdc->sys_clk); prate 105 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c prate *= 2; prate 110 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c div = DIV_ROUND_UP(prate, mode_rate); prate 116 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c prate /= 2; prate 117 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c div = DIV_ROUND_UP(prate, mode_rate); prate 121 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c int div_low = prate / mode_rate; prate 124 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c (10 * (prate / div_low - mode_rate) < prate 125 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c (mode_rate - prate / div))) prate 400 drivers/gpu/drm/imx/imx-tve.c unsigned long *prate) prate 404 drivers/gpu/drm/imx/imx-tve.c div = *prate / rate; prate 406 drivers/gpu/drm/imx/imx-tve.c return *prate / 4; prate 408 drivers/gpu/drm/imx/imx-tve.c return *prate / 2; prate 409 drivers/gpu/drm/imx/imx-tve.c return *prate; prate 285 drivers/gpu/drm/mediatek/mtk_mipi_tx.c unsigned long *prate) prate 698 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c unsigned long *prate) prate 705 drivers/gpu/drm/msm/dsi/pll/dsi_pll_14nm.c return divider_round_rate(hw, rate, prate, NULL, prate 248 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c unsigned long *prate) prate 256 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c *prate = clk_hw_round_rate(clk_hw_get_parent(hw), best_parent); prate 258 drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c return *prate / factor; prate 403 drivers/gpu/drm/msm/edp/edp_ctrl.c u32 prate; prate 409 drivers/gpu/drm/msm/edp/edp_ctrl.c prate = ctrl->pixel_rate; prate 418 drivers/gpu/drm/msm/edp/edp_ctrl.c prate *= bpp; prate 419 drivers/gpu/drm/msm/edp/edp_ctrl.c prate /= 8; /* in kByte */ prate 426 drivers/gpu/drm/msm/edp/edp_ctrl.c if (lrate >= prate) prate 698 drivers/gpu/drm/msm/edp/edp_ctrl.c u32 prate, lrate, bpp; prate 707 drivers/gpu/drm/msm/edp/edp_ctrl.c prate = ctrl->pixel_rate; prate 708 drivers/gpu/drm/msm/edp/edp_ctrl.c prate *= bpp; prate 709 drivers/gpu/drm/msm/edp/edp_ctrl.c prate /= 8; /* in kByte */ prate 726 drivers/gpu/drm/msm/edp/edp_ctrl.c lrate, prate, rate, lane, prate 730 drivers/gpu/drm/msm/edp/edp_ctrl.c if (lrate > prate) { prate 605 drivers/gpu/drm/omapdrm/dss/dss.c unsigned long prate; prate 625 drivers/gpu/drm/omapdrm/dss/dss.c prate = clk_get_rate(dss->parent_clk); prate 629 drivers/gpu/drm/omapdrm/dss/dss.c fckd_start = min(prate * m / fck_min, fckd_hw_max); prate 630 drivers/gpu/drm/omapdrm/dss/dss.c fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul); prate 633 drivers/gpu/drm/omapdrm/dss/dss.c fck = DIV_ROUND_UP(prate, fckd) * m; prate 672 drivers/gpu/drm/omapdrm/dss/dss.c unsigned long max_dss_fck, prate; prate 682 drivers/gpu/drm/omapdrm/dss/dss.c prate = clk_get_rate(dss->parent_clk); prate 684 drivers/gpu/drm/omapdrm/dss/dss.c fck_div = DIV_ROUND_UP(prate * dss->feat->dss_fck_multiplier, prate 686 drivers/gpu/drm/omapdrm/dss/dss.c fck = DIV_ROUND_UP(prate, fck_div) prate 448 drivers/gpu/drm/pl111/pl111_display.c unsigned long *prate, bool set_parent) prate 462 drivers/gpu/drm/pl111/pl111_display.c this_prate = *prate; prate 473 drivers/gpu/drm/pl111/pl111_display.c *prate = best_prate; prate 478 drivers/gpu/drm/pl111/pl111_display.c unsigned long *prate) prate 480 drivers/gpu/drm/pl111/pl111_display.c int div = pl111_clk_div_choose_div(hw, rate, prate, true); prate 482 drivers/gpu/drm/pl111/pl111_display.c return DIV_ROUND_UP_ULL(*prate, div); prate 486 drivers/gpu/drm/pl111/pl111_display.c unsigned long prate) prate 494 drivers/gpu/drm/pl111/pl111_display.c return prate; prate 501 drivers/gpu/drm/pl111/pl111_display.c return DIV_ROUND_UP_ULL(prate, div); prate 505 drivers/gpu/drm/pl111/pl111_display.c unsigned long prate) prate 509 drivers/gpu/drm/pl111/pl111_display.c int div = pl111_clk_div_choose_div(hw, rate, &prate, false); prate 63 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c unsigned long *prate) prate 67 drivers/gpu/drm/sun4i/sun4i_hdmi_ddc_clk.c return sun4i_ddc_calc_divider(rate, *prate, ddc->pre_div, prate 754 drivers/media/dvb-frontends/stv0900_sw.c enum fe_stv0900_fec prate; prate 759 drivers/media/dvb-frontends/stv0900_sw.c prate = STV0900_FEC_1_2; prate 762 drivers/media/dvb-frontends/stv0900_sw.c prate = STV0900_FEC_2_3; prate 765 drivers/media/dvb-frontends/stv0900_sw.c prate = STV0900_FEC_3_4; prate 768 drivers/media/dvb-frontends/stv0900_sw.c prate = STV0900_FEC_5_6; prate 771 drivers/media/dvb-frontends/stv0900_sw.c prate = STV0900_FEC_6_7; prate 774 drivers/media/dvb-frontends/stv0900_sw.c prate = STV0900_FEC_7_8; prate 777 drivers/media/dvb-frontends/stv0900_sw.c prate = STV0900_FEC_UNKNOWN; prate 781 drivers/media/dvb-frontends/stv0900_sw.c return prate; prate 120 drivers/rtc/rtc-ac100.c unsigned long prate) prate 128 drivers/rtc/rtc-ac100.c if (prate != AC100_RTC_32K_RATE) { prate 131 drivers/rtc/rtc-ac100.c prate = divider_recalc_rate(hw, prate, div, prate 138 drivers/rtc/rtc-ac100.c return divider_recalc_rate(hw, prate, div, NULL, prate 144 drivers/rtc/rtc-ac100.c unsigned long prate) prate 149 drivers/rtc/rtc-ac100.c if (prate == AC100_RTC_32K_RATE) prate 150 drivers/rtc/rtc-ac100.c return divider_round_rate(hw, rate, &prate, NULL, prate 155 drivers/rtc/rtc-ac100.c tmp_prate = DIV_ROUND_UP(prate, ac100_clkout_prediv[i].val); prate 178 drivers/rtc/rtc-ac100.c unsigned long tmp, prate; prate 200 drivers/rtc/rtc-ac100.c prate = clk_hw_get_rate(parent); prate 202 drivers/rtc/rtc-ac100.c tmp = ac100_clkout_round_rate(hw, req->rate, prate); prate 223 drivers/rtc/rtc-ac100.c unsigned long prate) prate 230 drivers/rtc/rtc-ac100.c prate, NULL, AC100_CLKOUT_DIV_WIDTH, prate 234 drivers/rtc/rtc-ac100.c } while (prate != AC100_RTC_32K_RATE && prate 1367 drivers/rtc/rtc-ds1307.c unsigned long *prate) prate 311 drivers/rtc/rtc-hym8563.c unsigned long *prate) prate 461 drivers/rtc/rtc-m41t80.c unsigned long *prate) prate 416 drivers/rtc/rtc-pcf8563.c unsigned long *prate) prate 517 drivers/video/fbdev/omap2/omapfb/dss/dss.c unsigned long prate; prate 537 drivers/video/fbdev/omap2/omapfb/dss/dss.c prate = clk_get_rate(dss.parent_clk); prate 541 drivers/video/fbdev/omap2/omapfb/dss/dss.c fckd_start = min(prate * m / fck_min, fckd_hw_max); prate 542 drivers/video/fbdev/omap2/omapfb/dss/dss.c fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul); prate 545 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck = DIV_ROUND_UP(prate, fckd) * m; prate 580 drivers/video/fbdev/omap2/omapfb/dss/dss.c unsigned long max_dss_fck, prate; prate 590 drivers/video/fbdev/omap2/omapfb/dss/dss.c prate = clk_get_rate(dss.parent_clk); prate 592 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck_div = DIV_ROUND_UP(prate * dss.feat->dss_fck_multiplier, prate 594 drivers/video/fbdev/omap2/omapfb/dss/dss.c fck = DIV_ROUND_UP(prate, fck_div) * dss.feat->dss_fck_multiplier; prate 475 include/linux/clk-provider.h unsigned long rate, unsigned long *prate, prate 479 include/linux/clk-provider.h unsigned long rate, unsigned long *prate, prate 853 include/linux/clk-provider.h unsigned long *prate, prate 858 include/linux/clk-provider.h rate, prate, table, width, flags); prate 862 include/linux/clk-provider.h unsigned long *prate, prate 868 include/linux/clk-provider.h rate, prate, table, width, flags, prate 2325 sound/pci/asihpi/hpifunc.c u32 *prate) prate 2328 sound/pci/asihpi/hpifunc.c index, 0, prate); prate 375 sound/soc/stm/stm32_sai_sub.c unsigned long *prate) prate 381 sound/soc/stm/stm32_sai_sub.c div = stm32_sai_get_clk_div(sai, *prate, rate); prate 385 sound/soc/stm/stm32_sai_sub.c mclk->freq = *prate / div;