| /drivers/cpufreq/ |
| A D | tegra124-cpufreq.c | 24 struct clk *cpu_clk; member 40 orig_parent = clk_get_parent(priv->cpu_clk); in tegra124_cpu_switch_to_dfll() 41 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_dfll() 47 clk_set_parent(priv->cpu_clk, priv->dfll_clk); in tegra124_cpu_switch_to_dfll() 52 clk_set_parent(priv->cpu_clk, orig_parent); in tegra124_cpu_switch_to_dfll() 75 priv->cpu_clk = of_clk_get_by_name(np, "cpu_g"); in tegra124_cpufreq_probe() 76 if (IS_ERR(priv->cpu_clk)) in tegra124_cpufreq_probe() 77 return PTR_ERR(priv->cpu_clk); in tegra124_cpufreq_probe() 118 clk_put(priv->cpu_clk); in tegra124_cpufreq_probe() 133 err = clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpufreq_suspend() [all …]
|
| A D | kirkwood-cpufreq.c | 21 struct clk *cpu_clk; member 65 clk_set_parent(priv.powersave_clk, priv.cpu_clk); in kirkwood_cpufreq_target() 118 priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk"); in kirkwood_cpufreq_probe() 119 if (IS_ERR(priv.cpu_clk)) { in kirkwood_cpufreq_probe() 121 err = PTR_ERR(priv.cpu_clk); in kirkwood_cpufreq_probe() 125 err = clk_prepare_enable(priv.cpu_clk); in kirkwood_cpufreq_probe() 131 kirkwood_freq_table[0].frequency = clk_get_rate(priv.cpu_clk) / 1000; in kirkwood_cpufreq_probe() 173 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_probe() 186 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_remove()
|
| A D | mediatek-cpufreq.c | 45 struct clk *cpu_clk; member 204 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local 214 pre_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target() 278 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 284 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 303 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 407 if (IS_ERR(info->cpu_clk)) in mtk_cpu_dvfs_info_init() 530 clk_disable_unprepare(info->cpu_clk); in mtk_cpu_dvfs_info_init() 553 clk_put(info->cpu_clk); in mtk_cpu_dvfs_info_init() 567 clk_put(info->cpu_clk); in mtk_cpu_dvfs_info_release() [all …]
|
| A D | highbank-cpufreq.c | 62 struct clk *cpu_clk; in hb_cpufreq_driver_init() local 82 cpu_clk = clk_get(cpu_dev, NULL); in hb_cpufreq_driver_init() 83 if (IS_ERR(cpu_clk)) { in hb_cpufreq_driver_init() 84 ret = PTR_ERR(cpu_clk); in hb_cpufreq_driver_init() 89 ret = clk_notifier_register(cpu_clk, &hb_cpufreq_clk_nb); in hb_cpufreq_driver_init()
|
| A D | cpufreq-dt.c | 87 struct clk *cpu_clk; in cpufreq_init() local 98 cpu_clk = clk_get(cpu_dev, NULL); in cpufreq_init() 99 if (IS_ERR(cpu_clk)) { in cpufreq_init() 100 ret = PTR_ERR(cpu_clk); in cpufreq_init() 111 policy->clk = cpu_clk; in cpufreq_init()
|
| A D | qcom-cpufreq-hw.c | 59 struct clk_hw cpu_clk; member 612 struct qcom_cpufreq_data *data = container_of(hw, struct qcom_cpufreq_data, cpu_clk); in qcom_cpufreq_hw_recalc_rate() 706 data->cpu_clk.init = &clk_init; in qcom_cpufreq_hw_driver_probe() 708 ret = devm_clk_hw_register(dev, &data->cpu_clk); in qcom_cpufreq_hw_driver_probe() 715 clk_data->hws[i] = &data->cpu_clk; in qcom_cpufreq_hw_driver_probe()
|
| /drivers/clk/mvebu/ |
| A D | clk-cpu.c | 33 struct cpu_clk { struct 46 #define to_cpu_clk(p) container_of(p, struct cpu_clk, hw) argument 51 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate() 78 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate() 113 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate() 168 struct cpu_clk *cpuclk; in of_cpu_clk_setup()
|
| /drivers/clk/sunxi-ng/ |
| A D | ccu-suniv-f1c100s.c | 110 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents, 327 &cpu_clk.common, 419 [CLK_CPU] = &cpu_clk.common.hw, 529 .common = &cpu_clk.common, 530 .cm = &cpu_clk.mux,
|
| A D | ccu-sun8i-v3s.c | 142 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents, 401 &cpu_clk.common, 502 [CLK_CPU] = &cpu_clk.common.hw, 582 [CLK_CPU] = &cpu_clk.common.hw,
|
| A D | ccu-sun5i.c | 180 static struct ccu_mux cpu_clk = { variable 520 &cpu_clk.common, 648 [CLK_CPU] = &cpu_clk.common.hw, 787 [CLK_CPU] = &cpu_clk.common.hw, 893 [CLK_CPU] = &cpu_clk.common.hw,
|
| A D | ccu-sun6i-a31.c | 182 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpux_parents, 818 &cpu_clk.common, 1006 [CLK_CPU] = &cpu_clk.common.hw, 1224 .common = &cpu_clk.common, 1225 .cm = &cpu_clk.mux,
|
| A D | ccu-sun8i-r40.c | 264 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents, 816 &cpu_clk.common, 1019 [CLK_CPU] = &cpu_clk.common.hw, 1273 .common = &cpu_clk.common, 1274 .cm = &cpu_clk.mux,
|
| A D | ccu-sun4i-a10.c | 223 static struct ccu_mux cpu_clk = { variable 876 &cpu_clk.common, 1079 [CLK_CPU] = &cpu_clk.common.hw, 1232 [CLK_CPU] = &cpu_clk.common.hw,
|
| /drivers/clk/ralink/ |
| A D | clk-mt7621.c | 263 unsigned long cpu_clk; in mt7621_cpu_recalc_rate() local 274 cpu_clk = 500000000; in mt7621_cpu_recalc_rate() 280 cpu_clk = ((fbdiv + 1) * xtal_clk) >> prediv_tbl[prediv]; in mt7621_cpu_recalc_rate() 283 cpu_clk = xtal_clk; in mt7621_cpu_recalc_rate() 286 return cpu_clk / ffiv * ffrac; in mt7621_cpu_recalc_rate()
|
| /drivers/base/ |
| A D | arch_topology.c | 264 struct clk *cpu_clk; in topology_parse_cpu_capacity() local 294 cpu_clk = of_clk_get(cpu_node, 0); in topology_parse_cpu_capacity() 295 if (!PTR_ERR_OR_ZERO(cpu_clk)) { in topology_parse_cpu_capacity() 297 clk_get_rate(cpu_clk) / HZ_PER_KHZ; in topology_parse_cpu_capacity() 298 clk_put(cpu_clk); in topology_parse_cpu_capacity()
|
| /drivers/pmdomain/qcom/ |
| A D | cpr.c | 236 struct clk *cpu_clk; member 1295 if (!drv->cpu_clk) { in cpr_find_initial_corner() 1301 rate = clk_get_rate(drv->cpu_clk); in cpr_find_initial_corner() 1461 drv->cpu_clk = devm_clk_get(dev, NULL); in cpr_pd_attach_dev() 1462 if (IS_ERR(drv->cpu_clk)) in cpr_pd_attach_dev() 1463 return dev_err_probe(drv->dev, PTR_ERR(drv->cpu_clk), in cpr_pd_attach_dev()
|
| /drivers/clk/actions/ |
| A D | owl-s900.c | 114 static OWL_MUX(cpu_clk, "cpu_clk", cpu_clk_mux_p, CMU_BUSCLK, 0, 2, CLK_SET_RATE_PARENT); 511 &cpu_clk.common, 604 [CLK_CPU] = &cpu_clk.common.hw,
|
| /drivers/misc/ |
| A D | lan966x_pci.dtso | 32 cpu_clk: clock-600000000 {
|
| /drivers/clk/meson/ |
| A D | meson8b.c | 3603 struct clk_hw *cpu_clk; member 3617 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 0); in meson8b_cpu_clk_notifier_cb() 3622 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 1); in meson8b_cpu_clk_notifier_cb() 3629 ret = clk_hw_set_parent(nb_data->cpu_clk, parent_clk); in meson8b_cpu_clk_notifier_cb() 3705 meson8b_cpu_nb_data.cpu_clk = hw_clks->hws[CLKID_CPUCLK]; in meson8b_clkc_init_common()
|
| A D | g12a.c | 1154 struct clk_hw *cpu_clk; member 1175 clk_hw_set_parent(nb_data->cpu_clk, in g12a_sys_pll_notifier_cb() 1200 clk_hw_set_parent(nb_data->cpu_clk, in g12a_sys_pll_notifier_cb() 1220 .cpu_clk = &g12a_cpu_clk.hw, 1228 .cpu_clk = &g12b_cpu_clk.hw, 1236 .cpu_clk = &g12b_cpub_clk.hw,
|