/linux-4.1.27/arch/unicore32/kernel/ |
D | clock.c | 306 unsigned long drate; member 308 {.prate = 0x00100800, .drate = 44236800}, 309 {.prate = 0x00100C00, .drate = 66355200}, 310 {.prate = 0x00101000, .drate = 88473600}, 311 {.prate = 0x00101400, .drate = 110592000}, 312 {.prate = 0x00101800, .drate = 132710400}, 313 {.prate = 0x00101C01, .drate = 154828800}, 314 {.prate = 0x00102001, .drate = 176947200}, 315 {.prate = 0x00102401, .drate = 199065600}, 316 {.prate = 0x00102801, .drate = 221184000}, [all …]
|
/linux-4.1.27/drivers/clk/spear/ |
D | clk-vco-pll.c | 84 static long clk_pll_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate_index() argument 102 if (drate < rate) { in clk_pll_round_rate_index() 116 static long clk_pll_round_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_round_rate() argument 121 return clk_pll_round_rate_index(hw, drate, prate, &unused); in clk_pll_round_rate() 144 static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, in clk_pll_set_rate() argument 152 clk_pll_round_rate_index(hw, drate, NULL, &i); in clk_pll_set_rate() 182 static long clk_vco_round_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_round_rate() argument 188 return clk_round_rate_index(hw, drate, *prate, vco_calc_rate, in clk_vco_round_rate() 230 static int clk_vco_set_rate(struct clk_hw *hw, unsigned long drate, in clk_vco_set_rate() argument 238 clk_round_rate_index(hw, drate, prate, vco_calc_rate, vco->rtbl_cnt, in clk_vco_set_rate()
|
D | clk-frac-synth.c | 58 static long clk_frac_round_rate(struct clk_hw *hw, unsigned long drate, in clk_frac_round_rate() argument 64 return clk_round_rate_index(hw, drate, *prate, frac_calc_rate, in clk_frac_round_rate() 95 static int clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, 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-gpt-synth.c | 45 static long clk_gpt_round_rate(struct clk_hw *hw, unsigned long drate, in clk_gpt_round_rate() argument 51 return clk_round_rate_index(hw, drate, *prate, gpt_calc_rate, in clk_gpt_round_rate() 80 static int clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, 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.c | 16 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate, in clk_round_rate_index() argument 25 if (drate < rate) { in clk_round_rate_index()
|
D | clk-aux-synth.c | 55 static long clk_aux_round_rate(struct clk_hw *hw, unsigned long drate, in clk_aux_round_rate() argument 61 return clk_round_rate_index(hw, drate, *prate, aux_calc_rate, in clk_aux_round_rate() 99 static int clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, 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 | 130 long clk_round_rate_index(struct clk_hw *hw, unsigned long drate,
|
/linux-4.1.27/drivers/clk/rockchip/ |
D | clk-pll.c | 67 unsigned long drate, unsigned long *prate) in rockchip_pll_round_rate() argument 75 if (drate >= rate_table[i].rate) in rockchip_pll_round_rate() 158 static int rockchip_rk3066_pll_set_rate(struct clk_hw *hw, unsigned long drate, in rockchip_rk3066_pll_set_rate() argument 178 __func__, __clk_get_name(hw->clk), old_rate, drate, prate); in rockchip_rk3066_pll_set_rate() 181 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3066_pll_set_rate() 184 drate, __clk_get_name(hw->clk)); in rockchip_rk3066_pll_set_rate() 266 unsigned long drate; in rockchip_rk3066_pll_init() local 272 drate = __clk_get_rate(hw->clk); in rockchip_rk3066_pll_init() 273 rate = rockchip_get_pll_settings(pll, drate); in rockchip_rk3066_pll_init() 290 __func__, __clk_get_name(hw->clk), drate, rate->nr, nr, in rockchip_rk3066_pll_init() [all …]
|
/linux-4.1.27/arch/blackfin/mach-bf609/ |
D | clock.c | 186 unsigned long drate; in sys_clk_get_rate() local 196 drate = clk->parent->rate / (df + 1); in sys_clk_get_rate() 197 drate *= msel; in sys_clk_get_rate() 198 drate /= div; in sys_clk_get_rate() 199 return drate; in sys_clk_get_rate() 215 unsigned long drate; in sys_clk_round_rate() local 229 drate = max_rate / i; in sys_clk_round_rate() 230 if (rate >= drate) in sys_clk_round_rate() 231 return drate; in sys_clk_round_rate()
|
/linux-4.1.27/drivers/clk/mmp/ |
D | clk-frac.c | 27 static long clk_factor_round_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_round_rate() argument 38 if (rate > drate) in clk_factor_round_rate() 44 if ((drate - prev_rate) > (rate - drate)) in clk_factor_round_rate() 74 static int clk_factor_set_rate(struct clk_hw *hw, unsigned long drate, in clk_factor_set_rate() argument 88 if (rate > drate) in clk_factor_set_rate()
|
/linux-4.1.27/drivers/clk/samsung/ |
D | clk-pll.c | 46 unsigned long drate, unsigned long *prate) in samsung_pll_round_rate() argument 54 if (drate >= rate_table[i].rate) in samsung_pll_round_rate() 172 static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll35xx_set_rate() argument 180 rate = samsung_get_pll_settings(pll, drate); in samsung_pll35xx_set_rate() 183 drate, __clk_get_name(hw->clk)); in samsung_pll35xx_set_rate() 281 static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll36xx_set_rate() argument 288 rate = samsung_get_pll_settings(pll, drate); in samsung_pll36xx_set_rate() 291 drate, __clk_get_name(hw->clk)); in samsung_pll36xx_set_rate() 394 static int samsung_pll45xx_set_rate(struct clk_hw *hw, unsigned long drate, in samsung_pll45xx_set_rate() argument 403 rate = samsung_get_pll_settings(pll, drate); in samsung_pll45xx_set_rate() [all …]
|
/linux-4.1.27/arch/arm/mach-vexpress/ |
D | spc.c | 510 static long spc_round_rate(struct clk_hw *hw, unsigned long drate, in spc_round_rate() argument 515 return ve_spc_round_performance(spc->cluster, drate); in spc_round_rate()
|
/linux-4.1.27/drivers/staging/xgifb/ |
D | XGI_main_26.c | 936 unsigned int drate = 0, hrate = 0; in XGIfb_do_set_var() local 956 drate = 1000000000 / var->pixclock; in XGIfb_do_set_var() 957 hrate = (drate * 1000) / htotal; in XGIfb_do_set_var() 1234 unsigned int drate = 0, hrate = 0; in XGIfb_check_var() local 1259 drate = 1000000000 / var->pixclock; in XGIfb_check_var() 1260 hrate = (drate * 1000) / htotal; in XGIfb_check_var() 1267 __func__, drate, hrate, xgifb_info->refresh_rate); in XGIfb_check_var()
|
/linux-4.1.27/drivers/clk/st/ |
D | clkgen-fsyn.c | 890 static long quadfs_find_best_rate(struct clk_hw *hw, unsigned long drate, in quadfs_find_best_rate() argument 911 diff_rate = abs(drate - rate); in quadfs_find_best_rate() 921 if (drate == rate) in quadfs_find_best_rate()
|
/linux-4.1.27/drivers/video/fbdev/sis/ |
D | sis_main.c | 1187 unsigned int drate = 0, hrate = 0; in sisfb_do_set_var() local 1215 drate = 1000000000 / pixclock; in sisfb_do_set_var() 1216 hrate = (drate * 1000) / htotal; in sisfb_do_set_var() 1433 unsigned int drate = 0, hrate = 0, maxyres; in sisfb_check_var() local 1519 drate = 1000000000 / pixclock; in sisfb_check_var() 1520 hrate = (drate * 1000) / htotal; in sisfb_check_var() 1537 drate = 1000000000 / pixclock; in sisfb_check_var() 1538 hrate = (drate * 1000) / htotal; in sisfb_check_var()
|