Home
last modified time | relevance | path

Searched refs:drate (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/drivers/clk/rockchip/
H A Dclk-pll.c65 unsigned long drate, unsigned long *prate) in rockchip_pll_round_rate() argument
73 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate()
248 static int rockchip_rk3036_pll_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_rk3036_pll_set_rate() argument
255 __func__, __clk_get_name(hw->clk), drate, prate); in rockchip_rk3036_pll_set_rate()
258 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3036_pll_set_rate()
261 drate, __clk_get_name(hw->clk)); in rockchip_rk3036_pll_set_rate()
301 unsigned long drate; in rockchip_rk3036_pll_init() local
306 drate = clk_hw_get_rate(hw); in rockchip_rk3036_pll_init()
307 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3036_pll_init()
316 drate); in rockchip_rk3036_pll_init()
[all …]
H A Dclk-ddr.c29 static int rockchip_ddrclk_sip_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_ddrclk_sip_set_rate() argument
37 arm_smccc_smc(ROCKCHIP_SIP_DRAM_FREQ, drate, 0, in rockchip_ddrclk_sip_set_rate()
/openbmc/linux/drivers/clk/spear/
H A Dclk-vco-pll.c81 static long clk_pll_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate_index() argument
99 if (drate < rate) { in clk_pll_round_rate_index()
113 static long clk_pll_round_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate() argument
118 return clk_pll_round_rate_index(hw, drate, prate, &unused); in clk_pll_round_rate()
141 static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_set_rate() argument
149 clk_pll_round_rate_index(hw, drate, NULL, &i); in clk_pll_set_rate()
179 static long clk_vco_round_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_round_rate() argument
185 return clk_round_rate_index(hw, drate, *prate, vco_calc_rate, in clk_vco_round_rate()
227 static int clk_vco_set_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_set_rate() argument
235 clk_round_rate_index(hw, drate, prate, vco_calc_rate, vco->rtbl_cnt, in clk_vco_set_rate()
H A Dclk-gpt-synth.c42 static long clk_gpt_round_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_round_rate() argument
48 return clk_round_rate_index(hw, drate, *prate, gpt_calc_rate, in clk_gpt_round_rate()
77 static int clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_set_rate() argument
85 clk_round_rate_index(hw, drate, prate, gpt_calc_rate, gpt->rtbl_cnt, in clk_gpt_set_rate()
H A Dclk-frac-synth.c55 static long clk_frac_round_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_round_rate() argument
61 return clk_round_rate_index(hw, drate, *prate, frac_calc_rate, in clk_frac_round_rate()
92 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_set_rate() argument
100 clk_round_rate_index(hw, drate, prate, frac_calc_rate, frac->rtbl_cnt, in clk_frac_set_rate()
H A Dclk.c13 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_round_rate_index() argument
22 if (drate < rate) { in clk_round_rate_index()
H A Dclk-aux-synth.c52 static long clk_aux_round_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_round_rate() argument
58 return clk_round_rate_index(hw, drate, *prate, aux_calc_rate, in clk_aux_round_rate()
96 static int clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_set_rate() argument
104 clk_round_rate_index(hw, drate, prate, aux_calc_rate, aux->rtbl_cnt, in clk_aux_set_rate()
H A Dclk.h127 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
/openbmc/linux/drivers/clk/samsung/
H A Dclk-pll.c53 unsigned long drate, unsigned long *prate) in samsung_pll_round_rate() argument
61 if (drate >= rate_table[i].rate) in samsung_pll_round_rate()
248 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate() argument
256 rate = samsung_get_pll_settings(pll, drate); in samsung_pll35xx_set_rate()
259 drate, clk_hw_get_name(hw)); in samsung_pll35xx_set_rate()
358 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate() argument
365 rate = samsung_get_pll_settings(pll, drate); in samsung_pll36xx_set_rate()
368 drate, clk_hw_get_name(hw)); in samsung_pll36xx_set_rate()
451 static int samsung_pll0822x_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll0822x_set_rate() argument
459 rate = samsung_get_pll_settings(pll, drate); in samsung_pll0822x_set_rate()
[all …]
H A Dclk-cpu.c106 unsigned long drate, unsigned long *prate) in exynos_cpuclk_round_rate() argument
109 *prate = clk_hw_round_rate(parent, drate); in exynos_cpuclk_round_rate()
/openbmc/linux/drivers/clk/mmp/
H A Dclk-frac.c24 static long clk_factor_round_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_round_rate() argument
37 if (rate > drate) in clk_factor_round_rate()
43 if ((drate - prev_rate) > (rate - drate)) in clk_factor_round_rate()
77 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_set_rate() argument
92 if (rate > drate) in clk_factor_set_rate()
/openbmc/u-boot/board/freescale/imx8mq_evk/
H A Dlpddr4_timing.c1281 .drate = 3200,
1288 .drate = 400,
1295 .drate = 100,
1302 .drate = 3200,
H A Dlpddr4_timing_b0.c1155 .drate = 3200,
1162 .drate = 667,
1169 .drate = 3200,
/openbmc/u-boot/drivers/ddr/imx/imx8m/
H A Dddrphy_train.c31 debug("DRAM PHY training for %dMTS\n", fsp_msg->drate); in ddr_cfg_phy()
33 ddrphy_init_set_dfi_clk(fsp_msg->drate); in ddr_cfg_phy()
H A Dddrphy_utils.c106 void ddrphy_init_set_dfi_clk(unsigned int drate) in ddrphy_init_set_dfi_clk() argument
108 switch (drate) { in ddrphy_init_set_dfi_clk()
/openbmc/linux/drivers/clk/imx/
H A Dclk-pll14xx.c283 static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1416x_set_rate() argument
291 rate = imx_get_pll_settings(pll, drate); in clk_pll1416x_set_rate()
293 pr_err("Invalid rate %lu for pll clk %s\n", drate, in clk_pll1416x_set_rate()
349 static int clk_pll1443x_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll1443x_set_rate() argument
357 imx_pll14xx_calc_settings(pll, drate, prate, &rate); in clk_pll1443x_set_rate()
H A Dclk-fracn-gppll.c224 static int clk_fracn_gppll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_fracn_gppll_set_rate() argument
232 rate = imx_get_pll_settings(pll, drate); in clk_fracn_gppll_set_rate()
/openbmc/linux/arch/arm/mach-versatile/
H A Dspc.c500 static long spc_round_rate(struct clk_hw *hw, unsigned long drate, in spc_round_rate() argument
505 return ve_spc_round_performance(spc->cluster, drate); in spc_round_rate()
/openbmc/linux/drivers/clk/st/
H A Dclkgen-fsyn.c775 static long quadfs_find_best_rate(struct clk_hw *hw, unsigned long drate, in quadfs_find_best_rate() argument
787 if (!clk_fs_get_params(prate, drate, params)) in quadfs_find_best_rate()
/openbmc/u-boot/arch/arm/include/asm/arch-imx8m/
H A Dddr.h677 unsigned int drate; member
714 void ddrphy_init_set_dfi_clk(unsigned int drate);
/openbmc/linux/drivers/video/fbdev/sis/
H A Dsis_main.c1222 unsigned int drate = 0, hrate = 0; in sisfb_do_set_var() local
1250 drate = 1000000000 / pixclock; in sisfb_do_set_var()
1251 hrate = (drate * 1000) / htotal; in sisfb_do_set_var()
1468 unsigned int drate = 0, hrate = 0, maxyres; in sisfb_check_var() local
1556 drate = 1000000000 / pixclock; in sisfb_check_var()
1557 hrate = (drate * 1000) / htotal; in sisfb_check_var()
1574 drate = 1000000000 / pixclock; in sisfb_check_var()
1575 hrate = (drate * 1000) / htotal; in sisfb_check_var()