Home
last modified time | relevance | path

Searched refs:prate (Results 1 – 55 of 55) sorted by relevance

/linux-4.1.27/arch/unicore32/kernel/
Dclock.c119 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/
Dclk-frac-synth.c44 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()
Dclk-vco-pll.c70 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 …]
Dclk-gpt-synth.c34 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()
Dclk-aux-synth.c44 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()
Dclk.h109 typedef unsigned long (*clk_calc_rate)(struct clk_hw *hw, unsigned long prate,
/linux-4.1.27/drivers/clk/rockchip/
Dclk-pll.c67 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 …]
Dclk-cpu.c81 if (rate == rate_table[i].prate) in rockchip_get_cpuclk_settings()
Dclk-rk3188.c136 .prate = _prate, \
171 .prate = _prate, \
Dclk.h156 unsigned long prate; member
Dclk-rk3288.c140 .prate = _prate, \
/linux-4.1.27/drivers/clk/
Dclk-fractional-divider.c49 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()
Dclk-vt8500.c141 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 …]
Dclk-fixed-factor.c40 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()
Dclk-divider.c333 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()
Dclk-composite.c134 unsigned long *prate) in clk_composite_round_rate() argument
142 return rate_ops->round_rate(rate_hw, rate, prate); in clk_composite_round_rate()
Dclk-u300.c633 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
Dclk-xgene.c371 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/
Dclock.c940 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/
Dclk-pllv3.c108 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()
Dclk-pfd.c72 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()
Dclk-pllv2.c184 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()
Dclk-fixup-div.c52 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()
Dclk-busy.c55 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()
Dclk-cpu.c38 unsigned long *prate) in clk_cpu_round_rate() argument
/linux-4.1.27/drivers/clk/mmp/
Dclk-frac.c28 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/
Datmel_hlcdc_crtc.c64 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/
Dpll.c64 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/
Ddpll3xxx.c772 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/
Dclk-regmap-divider.c27 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/
Dclk-divider.c89 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()
Dclk-periph.c60 unsigned long *prate) in clk_periph_round_rate() argument
68 return div_ops->round_rate(div_hw, rate, prate); in clk_periph_round_rate()
Dclk-audio-sync.c32 unsigned long *prate) in clk_sync_source_round_rate() argument
Dclk-pll.c627 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/
Ddss.c518 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/
Dclk-div.c51 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()
Dclk-frac.c53 unsigned long *prate) in clk_frac_round_rate() argument
56 unsigned long parent_rate = *prate; in clk_frac_round_rate()
Dclk-ref.c68 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/
Dclk-flexgen.c104 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()
Dclkgen-fsyn.c552 , unsigned long *prate) in quadfs_pll_fs660c32_round_rate() argument
556 if (!clk_fs660c32_vco_get_params(*prate, rate, &params)) in quadfs_pll_fs660c32_round_rate()
557 clk_fs660c32_vco_get_rate(*prate, &params, &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, &params); in quadfs_round_rate()
Dclkgen-mux.c194 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/
Dclk-rcar-gen2.c74 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/
Dedp_ctrl.c429 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/
Dimx-tve.c427 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/
Ddivider.c204 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()
Dcomposite.c40 unsigned long *prate) in ti_composite_round_rate() argument
/linux-4.1.27/drivers/clk/samsung/
Dclk-pll.c46 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/
Dstv0900_sw.c768 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/
Dclk-icst.c95 unsigned long *prate) in icst_round_rate() argument
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dlow_i2c.c491 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/
Dti.h299 unsigned long *prate);
/linux-4.1.27/arch/mips/alchemy/common/
Dclock.c367 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/
Dclk-provider.h369 unsigned long *prate, const struct clk_div_table *table,
/linux-4.1.27/drivers/rtc/
Drtc-hym8563.c320 unsigned long *prate) in hym8563_clkout_round_rate() argument
/linux-4.1.27/sound/pci/asihpi/
Dhpifunc.c2324 u32 *prate) in hpi_sample_clock_query_local_rate() argument
2328 index, 0, prate); in hpi_sample_clock_query_local_rate()