/linux-4.1.27/arch/unicore32/kernel/ |
D | clock.c | 119 unsigned long prate; member 121 {.mrate = 500000000, .prate = 0x00109801}, 122 {.mrate = 525000000, .prate = 0x00104C00}, 123 {.mrate = 550000000, .prate = 0x00105000}, 124 {.mrate = 575000000, .prate = 0x00105400}, 125 {.mrate = 600000000, .prate = 0x00105800}, 126 {.mrate = 625000000, .prate = 0x00105C00}, 127 {.mrate = 650000000, .prate = 0x00106000}, 128 {.mrate = 675000000, .prate = 0x00106400}, 129 {.mrate = 700000000, .prate = 0x00106800}, [all …]
|
/linux-4.1.27/drivers/clk/spear/ |
D | clk-frac-synth.c | 44 static unsigned long frac_calc_rate(struct clk_hw *hw, unsigned long prate, in frac_calc_rate() argument 50 prate /= 10000; in frac_calc_rate() 51 prate <<= 14; in frac_calc_rate() 52 prate /= (2 * rtbl[index].div); in frac_calc_rate() 53 prate *= 10000; in frac_calc_rate() 55 return prate; in frac_calc_rate() 59 unsigned long *prate) in clk_frac_round_rate() argument 64 return clk_round_rate_index(hw, drate, *prate, frac_calc_rate, in clk_frac_round_rate() 96 unsigned long prate) in clk_frac_set_rate() argument 103 clk_round_rate_index(hw, drate, prate, frac_calc_rate, frac->rtbl_cnt, in clk_frac_set_rate()
|
D | clk-vco-pll.c | 70 unsigned long prate, int index, unsigned long *pll_rate) in pll_calc_rate() argument 72 unsigned long rate = prate; in pll_calc_rate() 85 unsigned long *prate, int *index) in clk_pll_round_rate_index() argument 92 if (!prate) { in clk_pll_round_rate_index() 99 vco_prev_rate = *prate; in clk_pll_round_rate_index() 100 *prate = pll_calc_rate(pll->vco->rtbl, vco_parent_rate, *index, in clk_pll_round_rate_index() 106 *prate = vco_prev_rate; in clk_pll_round_rate_index() 117 unsigned long *prate) in clk_pll_round_rate() argument 121 return clk_pll_round_rate_index(hw, drate, prate, &unused); in clk_pll_round_rate() 145 unsigned long prate) in clk_pll_set_rate() argument [all …]
|
D | clk-gpt-synth.c | 34 static unsigned long gpt_calc_rate(struct clk_hw *hw, unsigned long prate, in gpt_calc_rate() argument 40 prate /= ((1 << (rtbl[index].nscale + 1)) * (rtbl[index].mscale + 1)); in gpt_calc_rate() 42 return prate; in gpt_calc_rate() 46 unsigned long *prate) in clk_gpt_round_rate() argument 51 return clk_round_rate_index(hw, drate, *prate, gpt_calc_rate, in clk_gpt_round_rate() 81 unsigned long prate) in clk_gpt_set_rate() argument 88 clk_round_rate_index(hw, drate, prate, gpt_calc_rate, gpt->rtbl_cnt, in clk_gpt_set_rate()
|
D | clk-aux-synth.c | 44 static unsigned long aux_calc_rate(struct clk_hw *hw, unsigned long prate, in aux_calc_rate() argument 51 return (((prate / 10000) * rtbl[index].xscale) / in aux_calc_rate() 56 unsigned long *prate) in clk_aux_round_rate() argument 61 return clk_round_rate_index(hw, drate, *prate, aux_calc_rate, in clk_aux_round_rate() 100 unsigned long prate) in clk_aux_set_rate() argument 107 clk_round_rate_index(hw, drate, prate, aux_calc_rate, aux->rtbl_cnt, in clk_aux_set_rate()
|
D | clk.h | 109 typedef unsigned long (*clk_calc_rate)(struct clk_hw *hw, unsigned long prate,
|
/linux-4.1.27/drivers/clk/rockchip/ |
D | clk-pll.c | 67 unsigned long drate, unsigned long *prate) in rockchip_pll_round_rate() argument 131 unsigned long prate) in rockchip_rk3066_pll_recalc_rate() argument 134 u64 nf, nr, no, rate64 = prate; in rockchip_rk3066_pll_recalc_rate() 141 return prate; in rockchip_rk3066_pll_recalc_rate() 159 unsigned long prate) in rockchip_rk3066_pll_set_rate() argument 163 unsigned long old_rate = rockchip_rk3066_pll_recalc_rate(hw, prate); in rockchip_rk3066_pll_set_rate() 178 __func__, __clk_get_name(hw->clk), old_rate, drate, prate); in rockchip_rk3066_pll_set_rate() 225 rockchip_rk3066_pll_set_rate(hw, old_rate, prate); in rockchip_rk3066_pll_set_rate() 295 unsigned long prate; in rockchip_rk3066_pll_init() local 305 prate = __clk_get_rate(parent); in rockchip_rk3066_pll_init() [all …]
|
D | clk-cpu.c | 81 if (rate == rate_table[i].prate) in rockchip_get_cpuclk_settings()
|
D | clk-rk3188.c | 136 .prate = _prate, \ 171 .prate = _prate, \
|
D | clk.h | 156 unsigned long prate; member
|
D | clk-rk3288.c | 140 .prate = _prate, \
|
/linux-4.1.27/drivers/clk/ |
D | clk-fractional-divider.c | 49 unsigned long *prate) in clk_fd_round_rate() argument 55 if (!rate || rate >= *prate) in clk_fd_round_rate() 56 return *prate; in clk_fd_round_rate() 58 div = gcd(*prate, rate); in clk_fd_round_rate() 60 while ((*prate / div) > maxn) { in clk_fd_round_rate()
|
D | clk-vt8500.c | 141 unsigned long *prate) in vt8500_dclk_round_rate() argument 149 divisor = *prate / rate; in vt8500_dclk_round_rate() 152 if (rate * divisor < *prate) in vt8500_dclk_round_rate() 163 return *prate / divisor; in vt8500_dclk_round_rate() 583 unsigned long *prate) in vtwm_pll_round_rate() argument 591 vt8500_find_pll_bits(rate, *prate, &mul, &div1); in vtwm_pll_round_rate() 592 round_rate = VT8500_BITS_TO_FREQ(*prate, mul, div1); in vtwm_pll_round_rate() 595 wm8650_find_pll_bits(rate, *prate, &mul, &div1, &div2); in vtwm_pll_round_rate() 596 round_rate = WM8650_BITS_TO_FREQ(*prate, mul, div1, div2); in vtwm_pll_round_rate() 599 wm8750_find_pll_bits(rate, *prate, &filter, &mul, &div1, &div2); in vtwm_pll_round_rate() [all …]
|
D | clk-fixed-factor.c | 40 unsigned long *prate) in clk_factor_round_rate() argument 48 *prate = __clk_round_rate(__clk_get_parent(hw->clk), in clk_factor_round_rate() 52 return (*prate / fix->div) * fix->mult; in clk_factor_round_rate()
|
D | clk-divider.c | 333 unsigned long *prate, const struct clk_div_table *table, in divider_round_rate() argument 338 div = clk_divider_bestdiv(hw, rate, prate, table, width, flags); in divider_round_rate() 340 return DIV_ROUND_UP(*prate, div); in divider_round_rate() 345 unsigned long *prate) in clk_divider_round_rate() argument 355 return DIV_ROUND_UP(*prate, bestdiv); in clk_divider_round_rate() 358 return divider_round_rate(hw, rate, prate, divider->table, in clk_divider_round_rate()
|
D | clk-composite.c | 134 unsigned long *prate) in clk_composite_round_rate() argument 142 return rate_ops->round_rate(rate_hw, rate, prate); in clk_composite_round_rate()
|
D | clk-u300.c | 633 unsigned long *prate) in syscon_clk_round_rate() argument 638 return *prate; in syscon_clk_round_rate() 1042 unsigned long *prate) in mclk_clk_round_rate() argument
|
D | clk-xgene.c | 371 unsigned long *prate) in xgene_clk_round_rate() argument 374 unsigned long parent_rate = *prate; in xgene_clk_round_rate()
|
/linux-4.1.27/arch/arm/mach-lpc32xx/ |
D | clock.c | 940 unsigned long div, prate; in mmc_round_rate() local 943 prate = clk->parent->get_rate(clk->parent); in mmc_round_rate() 945 if (rate >= prate) in mmc_round_rate() 946 return prate; in mmc_round_rate() 948 div = prate / rate; in mmc_round_rate() 952 return prate / div; in mmc_round_rate() 958 unsigned long prate, div, crate = mmc_round_rate(clk, rate); in mmc_set_rate() local 960 prate = clk->parent->get_rate(clk->parent); in mmc_set_rate() 962 div = prate / crate; in mmc_set_rate() 1009 u32 tmp, prate, div, oldclk; in clcd_set_rate() local [all …]
|
/linux-4.1.27/arch/arm/mach-imx/ |
D | clk-pllv3.c | 108 unsigned long *prate) in clk_pllv3_round_rate() argument 110 unsigned long parent_rate = *prate; in clk_pllv3_round_rate() 155 unsigned long *prate) in clk_pllv3_sys_round_rate() argument 157 unsigned long parent_rate = *prate; in clk_pllv3_sys_round_rate() 211 unsigned long *prate) in clk_pllv3_av_round_rate() argument 213 unsigned long parent_rate = *prate; in clk_pllv3_av_round_rate()
|
D | clk-pfd.c | 72 unsigned long *prate) in clk_pfd_round_rate() argument 74 u64 tmp = *prate; in clk_pfd_round_rate() 84 tmp = *prate; in clk_pfd_round_rate()
|
D | clk-pllv2.c | 184 unsigned long *prate) in clk_pllv2_round_rate() argument 188 __clk_pllv2_set_rate(rate, *prate, &dp_op, &dp_mfd, &dp_mfn); in clk_pllv2_round_rate() 189 return __clk_pllv2_recalc_rate(*prate, MXC_PLL_DP_CTL_DPDCK0_2_EN, in clk_pllv2_round_rate()
|
D | clk-fixup-div.c | 52 unsigned long *prate) in clk_fixup_div_round_rate() argument 56 return fixup_div->ops->round_rate(&fixup_div->divider.hw, rate, prate); in clk_fixup_div_round_rate()
|
D | clk-busy.c | 55 unsigned long *prate) in clk_busy_divider_round_rate() argument 59 return busy->div_ops->round_rate(&busy->div.hw, rate, prate); in clk_busy_divider_round_rate()
|
D | clk-cpu.c | 38 unsigned long *prate) in clk_cpu_round_rate() argument
|
/linux-4.1.27/drivers/clk/mmp/ |
D | clk-frac.c | 28 unsigned long *prate) in clk_factor_round_rate() argument 36 rate = (((*prate / 10000) * factor->ftbl[i].den) / in clk_factor_round_rate() 75 unsigned long prate) in clk_factor_set_rate() argument 86 rate = (((prate / 10000) * factor->ftbl[i].den) / in clk_factor_set_rate()
|
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_crtc.c | 64 unsigned long prate; in atmel_hlcdc_crtc_mode_set_nofb() local 90 prate = clk_get_rate(crtc->dc->hlcdc->sys_clk); in atmel_hlcdc_crtc_mode_set_nofb() 92 if ((prate / 2) < mode_rate) { in atmel_hlcdc_crtc_mode_set_nofb() 93 prate *= 2; in atmel_hlcdc_crtc_mode_set_nofb() 97 div = DIV_ROUND_UP(prate, mode_rate); in atmel_hlcdc_crtc_mode_set_nofb()
|
/linux-4.1.27/drivers/clk/zynq/ |
D | pll.c | 64 unsigned long *prate) in zynq_pll_round_rate() argument 68 fbdiv = DIV_ROUND_CLOSEST(rate, *prate); in zynq_pll_round_rate() 74 return *prate * fbdiv; in zynq_pll_round_rate()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
D | dpll3xxx.c | 772 unsigned long *prate) in omap3_clkoutx2_round_rate() argument 778 if (!*prate) in omap3_clkoutx2_round_rate() 790 *prate = __clk_round_rate(__clk_get_parent(pclk->hw.clk), rate); in omap3_clkoutx2_round_rate() 791 return *prate; in omap3_clkoutx2_round_rate() 801 return *prate; in omap3_clkoutx2_round_rate() 807 *prate = __clk_round_rate(__clk_get_parent(hw->clk), in omap3_clkoutx2_round_rate() 811 return *prate * 2; in omap3_clkoutx2_round_rate()
|
/linux-4.1.27/drivers/clk/qcom/ |
D | clk-regmap-divider.c | 27 unsigned long *prate) in div_round_rate() argument 31 return divider_round_rate(hw, rate, prate, NULL, divider->width, in div_round_rate()
|
/linux-4.1.27/drivers/clk/tegra/ |
D | clk-divider.c | 89 unsigned long *prate) in clk_frac_div_round_rate() argument 93 unsigned long output_rate = *prate; in clk_frac_div_round_rate() 100 return *prate; in clk_frac_div_round_rate()
|
D | clk-periph.c | 60 unsigned long *prate) in clk_periph_round_rate() argument 68 return div_ops->round_rate(div_hw, rate, prate); in clk_periph_round_rate()
|
D | clk-audio-sync.c | 32 unsigned long *prate) in clk_sync_source_round_rate() argument
|
D | clk-pll.c | 627 unsigned long *prate) in clk_pll_round_rate() argument 639 if (_get_table_rate(hw, &cfg, rate, *prate) && in clk_pll_round_rate() 640 _calc_rate(hw, &cfg, rate, *prate)) in clk_pll_round_rate() 1005 unsigned long *prate) in clk_pll_ramp_round_rate() argument 1009 u64 output_rate = *prate; in clk_pll_ramp_round_rate() 1011 ret = _pll_ramp_calc_pll(hw, &cfg, rate, *prate); in clk_pll_ramp_round_rate() 1277 unsigned long *prate) in clk_pllre_round_rate() argument 1281 return _pllre_calc_rate(pll, NULL, rate, *prate); in clk_pllre_round_rate()
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
D | dss.c | 518 unsigned long prate; in dss_div_calc() local 538 prate = clk_get_rate(dss.parent_clk); in dss_div_calc() 542 fckd_start = min(prate * m / fck_min, fckd_hw_max); in dss_div_calc() 543 fckd_stop = max(DIV_ROUND_UP(prate * m, fck_hw_max), 1ul); in dss_div_calc() 546 fck = DIV_ROUND_UP(prate, fckd) * m; in dss_div_calc() 581 unsigned long max_dss_fck, prate; in dss_setup_default_clock() local 591 prate = clk_get_rate(dss.parent_clk); in dss_setup_default_clock() 593 fck_div = DIV_ROUND_UP(prate * dss.feat->dss_fck_multiplier, in dss_setup_default_clock() 595 fck = DIV_ROUND_UP(prate, fck_div) * dss.feat->dss_fck_multiplier; in dss_setup_default_clock()
|
/linux-4.1.27/drivers/clk/mxs/ |
D | clk-div.c | 51 unsigned long *prate) in clk_div_round_rate() argument 55 return div->ops->round_rate(&div->divider.hw, rate, prate); in clk_div_round_rate()
|
D | clk-frac.c | 53 unsigned long *prate) in clk_frac_round_rate() argument 56 unsigned long parent_rate = *prate; in clk_frac_round_rate()
|
D | clk-ref.c | 68 unsigned long *prate) in clk_ref_round_rate() argument 70 unsigned long parent_rate = *prate; in clk_ref_round_rate()
|
/linux-4.1.27/drivers/clk/st/ |
D | clk-flexgen.c | 104 unsigned long *prate) in flexgen_round_rate() argument 109 div = clk_best_div(*prate, rate); in flexgen_round_rate() 112 *prate = rate * div; in flexgen_round_rate() 116 return *prate / div; in flexgen_round_rate()
|
D | clkgen-fsyn.c | 552 , unsigned long *prate) in quadfs_pll_fs660c32_round_rate() argument 556 if (!clk_fs660c32_vco_get_params(*prate, rate, ¶ms)) in quadfs_pll_fs660c32_round_rate() 557 clk_fs660c32_vco_get_rate(*prate, ¶ms, &rate); in quadfs_pll_fs660c32_round_rate() 891 unsigned long prate, struct stm_fs *params) in quadfs_find_best_rate() argument 909 clk_fs_get_rate(prate, &fs->data->rtbl[index], &rate); in quadfs_find_best_rate() 957 unsigned long *prate) in quadfs_round_rate() argument 961 rate = quadfs_find_best_rate(hw, rate, *prate, ¶ms); in quadfs_round_rate()
|
D | clkgen-mux.c | 194 unsigned long *prate) in clkgena_divmux_round_rate() argument 201 return clk_divider_ops.round_rate(div_hw, rate, prate); in clkgena_divmux_round_rate()
|
/linux-4.1.27/drivers/clk/shmobile/ |
D | clk-rcar-gen2.c | 74 unsigned long prate = *parent_rate; in cpg_z_clk_round_rate() local 77 if (!prate) in cpg_z_clk_round_rate() 78 prate = 1; in cpg_z_clk_round_rate() 80 mult = div_u64((u64)rate * 32, prate); in cpg_z_clk_round_rate()
|
/linux-4.1.27/drivers/gpu/drm/msm/edp/ |
D | edp_ctrl.c | 429 u32 prate; in edp_fill_link_cfg() local 435 prate = ctrl->pixel_rate; in edp_fill_link_cfg() 444 prate *= bpp; in edp_fill_link_cfg() 445 prate /= 8; /* in kByte */ in edp_fill_link_cfg() 452 if (lrate >= prate) in edp_fill_link_cfg() 724 u32 prate, lrate, bpp; in edp_link_rate_down_shift() local 733 prate = ctrl->pixel_rate; in edp_link_rate_down_shift() 734 prate *= bpp; in edp_link_rate_down_shift() 735 prate /= 8; /* in kByte */ in edp_link_rate_down_shift() 752 lrate, prate, rate, lane, in edp_link_rate_down_shift() [all …]
|
/linux-4.1.27/drivers/gpu/drm/imx/ |
D | imx-tve.c | 427 unsigned long *prate) in clk_tve_di_round_rate() argument 431 div = *prate / rate; in clk_tve_di_round_rate() 433 return *prate / 4; in clk_tve_di_round_rate() 435 return *prate / 2; in clk_tve_di_round_rate() 436 return *prate; in clk_tve_di_round_rate()
|
/linux-4.1.27/drivers/clk/ti/ |
D | divider.c | 204 unsigned long *prate) in ti_clk_divider_round_rate() argument 207 div = ti_clk_divider_bestdiv(hw, rate, prate); in ti_clk_divider_round_rate() 209 return DIV_ROUND_UP(*prate, div); in ti_clk_divider_round_rate()
|
D | composite.c | 40 unsigned long *prate) in ti_composite_round_rate() argument
|
/linux-4.1.27/drivers/clk/samsung/ |
D | clk-pll.c | 46 unsigned long drate, unsigned long *prate) in samsung_pll_round_rate() argument 173 unsigned long prate) in samsung_pll35xx_set_rate() argument 395 unsigned long prate) in samsung_pll45xx_set_rate() argument 546 unsigned long prate) in samsung_pll46xx_set_rate() argument 765 unsigned long prate) in samsung_s3c2410_pll_set_rate() argument 1006 unsigned long prate) in samsung_pll2550xx_set_rate() argument
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
D | stv0900_sw.c | 768 enum fe_stv0900_fec prate; in stv0900_get_vit_fec() local 773 prate = STV0900_FEC_1_2; in stv0900_get_vit_fec() 776 prate = STV0900_FEC_2_3; in stv0900_get_vit_fec() 779 prate = STV0900_FEC_3_4; in stv0900_get_vit_fec() 782 prate = STV0900_FEC_5_6; in stv0900_get_vit_fec() 785 prate = STV0900_FEC_6_7; in stv0900_get_vit_fec() 788 prate = STV0900_FEC_7_8; in stv0900_get_vit_fec() 791 prate = STV0900_FEC_UNKNOWN; in stv0900_get_vit_fec() 795 return prate; in stv0900_get_vit_fec()
|
/linux-4.1.27/drivers/clk/versatile/ |
D | clk-icst.c | 95 unsigned long *prate) in icst_round_rate() argument
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
D | low_i2c.c | 491 const u32 *psteps, *prate, *addrp; in kw_i2c_host_init() local 525 prate = of_get_property(np, "AAPL,i2c-rate", NULL); in kw_i2c_host_init() 526 if (prate) switch(*prate) { in kw_i2c_host_init()
|
/linux-4.1.27/include/linux/clk/ |
D | ti.h | 299 unsigned long *prate);
|
/linux-4.1.27/arch/mips/alchemy/common/ |
D | clock.c | 367 static long alchemy_calc_div(unsigned long rate, unsigned long prate, in alchemy_calc_div() argument 372 div1 = prate / rate; in alchemy_calc_div() 373 if ((prate / div1) > rate) in alchemy_calc_div()
|
/linux-4.1.27/include/linux/ |
D | clk-provider.h | 369 unsigned long *prate, const struct clk_div_table *table,
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-hym8563.c | 320 unsigned long *prate) in hym8563_clkout_round_rate() argument
|
/linux-4.1.27/sound/pci/asihpi/ |
D | hpifunc.c | 2324 u32 *prate) in hpi_sample_clock_query_local_rate() argument 2328 index, 0, prate); in hpi_sample_clock_query_local_rate()
|