Home
last modified time | relevance | path

Searched refs:calc_rate (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/sound/pci/pcxhr/
Dpcxhr_mix22.c406 int rate, calc_rate = 0; in hr222_get_external_clock() local
454 calc_rate = 28224000 / ticks; in hr222_get_external_clock()
456 if (calc_rate > 184200) in hr222_get_external_clock()
458 else if (calc_rate > 152200) in hr222_get_external_clock()
460 else if (calc_rate > 112000) in hr222_get_external_clock()
462 else if (calc_rate > 92100) in hr222_get_external_clock()
464 else if (calc_rate > 76100) in hr222_get_external_clock()
466 else if (calc_rate > 56000) in hr222_get_external_clock()
468 else if (calc_rate > 46050) in hr222_get_external_clock()
470 else if (calc_rate > 38050) in hr222_get_external_clock()
[all …]
/kernel/linux/linux-5.10/drivers/clk/spear/
Dclk.c17 unsigned long parent_rate, clk_calc_rate calc_rate, u8 rtbl_cnt, in clk_round_rate_index() argument
24 rate = calc_rate(hw, parent_rate, *index); in clk_round_rate_index()
Dclk.h131 unsigned long parent_rate, clk_calc_rate calc_rate, u8 rtbl_cnt,
/kernel/linux/linux-5.10/drivers/clk/actions/
Dowl-factor.c49 u64 calc_rate; in _get_table_val() local
52 calc_rate = parent_rate * clkt->mul; in _get_table_val()
53 do_div(calc_rate, clkt->div); in _get_table_val()
55 if ((unsigned long)calc_rate <= rate) { in _get_table_val()
/kernel/linux/linux-5.10/drivers/clk/renesas/
Drcar-gen3-cpg.c323 unsigned long calc_rate, diff; in cpg_sd_clock_determine_rate() local
327 calc_rate = DIV_ROUND_CLOSEST(req->best_parent_rate, in cpg_sd_clock_determine_rate()
329 if (calc_rate < req->min_rate || calc_rate > req->max_rate) in cpg_sd_clock_determine_rate()
332 diff = calc_rate > req->rate ? calc_rate - req->rate in cpg_sd_clock_determine_rate()
333 : req->rate - calc_rate; in cpg_sd_clock_determine_rate()
335 best_rate = calc_rate; in cpg_sd_clock_determine_rate()
/kernel/linux/linux-5.10/net/can/
Dproc.c99 static unsigned long calc_rate(unsigned long oldjif, unsigned long newjif, in calc_rate() function
150 pkg_stats->total_tx_rate = calc_rate(pkg_stats->jiffies_init, j, in can_stat_update()
152 pkg_stats->total_rx_rate = calc_rate(pkg_stats->jiffies_init, j, in can_stat_update()
161 pkg_stats->current_tx_rate = calc_rate(0, HZ, pkg_stats->tx_frames_delta); in can_stat_update()
162 pkg_stats->current_rx_rate = calc_rate(0, HZ, pkg_stats->rx_frames_delta); in can_stat_update()
/kernel/linux/linux-5.10/drivers/clk/zte/
Dclk.c212 static u32 calc_rate(u32 reg, u32 parent_rate) in calc_rate() function
238 return calc_rate(reg, parent_rate); in zx_audio_recalc_rate()
250 return calc_rate(reg, *prate); in zx_audio_round_rate()
/kernel/linux/linux-5.10/drivers/clk/qcom/
Dclk-rcg2.c148 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 hid_div) in calc_rate() function
189 return calc_rate(parent_rate, m, n, mode, hid_div); in clk_rcg2_recalc_rate()
498 req->rate = calc_rate(req->best_parent_rate, in clk_edp_pixel_determine_rate()
537 req->rate = calc_rate(parent_rate, 0, 0, 0, div); in clk_byte_determine_rate()
594 req->rate = calc_rate(parent_rate, 0, 0, 0, div); in clk_byte2_determine_rate()
1008 f->freq = calc_rate(prate, f->m, f->n, mode, f->pre_div); in clk_rcg2_dfs_populate_freq()
1090 return calc_rate(parent_rate, m, n, mode, pre_div); in clk_rcg2_dfs_recalc_rate()
Dclk-rcg.c326 calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 pre_div) in calc_rate() function
363 return calc_rate(parent_rate, m, n, mode, pre_div); in clk_rcg_recalc_rate()
396 return calc_rate(parent_rate, m, n, mode, pre_div); in clk_dyn_rcg_recalc_rate()
/kernel/linux/linux-5.10/drivers/clk/tegra/
Dclk-tegra210.c1634 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
1680 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
1719 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
1749 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
1809 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
1865 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
1889 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
1931 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
1971 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
2009 .calc_rate = tegra210_pll_fixed_mdiv_cfg,
[all …]
Dclk-pll.c817 pll->params->calc_rate(hw, &cfg, rate, parent_rate)) { in clk_pll_set_rate()
854 pll->params->calc_rate(hw, &cfg, rate, *prate)) in clk_pll_round_rate()
1901 if (!pll->params->calc_rate) { in _tegra_clk_register_pll()
1903 pll->params->calc_rate = _calc_dynamic_ramp_rate; in _tegra_clk_register_pll()
1905 pll->params->calc_rate = _calc_rate; in _tegra_clk_register_pll()
Dclk.h341 int (*calc_rate)(struct clk_hw *hw, member