/linux-4.4.14/arch/arm/mach-mvebu/ |
D | platsmp.c | 40 struct clk *cpu_clk; in get_cpu_clk() local 45 cpu_clk = of_clk_get(np, 0); in get_cpu_clk() 46 if (WARN_ON(IS_ERR(cpu_clk))) in get_cpu_clk() 48 return cpu_clk; in get_cpu_clk() 55 struct clk *cpu_clk; in set_secondary_cpu_clock() local 59 cpu_clk = get_cpu_clk(thiscpu); in set_secondary_cpu_clock() 60 if (!cpu_clk) in set_secondary_cpu_clock() 62 clk_prepare_enable(cpu_clk); in set_secondary_cpu_clock() 63 rate = clk_get_rate(cpu_clk); in set_secondary_cpu_clock() 65 cpu_clk = get_cpu_clk(cpu); in set_secondary_cpu_clock() [all …]
|
/linux-4.4.14/drivers/cpufreq/ |
D | tegra20-cpufreq.c | 44 static struct clk *cpu_clk; variable 83 ret = clk_set_parent(cpu_clk, pll_p_clk); in tegra_target_intermediate() 114 return clk_set_parent(cpu_clk, pll_p_clk); in tegra_target() 121 ret = clk_set_parent(cpu_clk, pll_x_clk); in tegra_target() 145 clk_prepare_enable(cpu_clk); in tegra_cpu_init() 150 clk_disable_unprepare(cpu_clk); in tegra_cpu_init() 155 policy->clk = cpu_clk; in tegra_cpu_init() 162 clk_disable_unprepare(cpu_clk); in tegra_cpu_exit() 183 cpu_clk = clk_get_sys(NULL, "cclk"); in tegra_cpufreq_init() 184 if (IS_ERR(cpu_clk)) in tegra_cpufreq_init() [all …]
|
D | tegra124-cpufreq.c | 31 struct clk *cpu_clk; member 43 ret = clk_set_rate(priv->dfll_clk, clk_get_rate(priv->cpu_clk)); in tegra124_cpu_switch_to_dfll() 47 orig_parent = clk_get_parent(priv->cpu_clk); in tegra124_cpu_switch_to_dfll() 48 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_dfll() 54 clk_set_parent(priv->cpu_clk, priv->dfll_clk); in tegra124_cpu_switch_to_dfll() 59 clk_set_parent(priv->cpu_clk, orig_parent); in tegra124_cpu_switch_to_dfll() 66 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_pllx() 69 clk_set_parent(priv->cpu_clk, priv->pllx_clk); in tegra124_cpu_switch_to_pllx() 102 priv->cpu_clk = of_clk_get_by_name(np, "cpu_g"); in tegra124_cpufreq_probe() 103 if (IS_ERR(priv->cpu_clk)) { in tegra124_cpufreq_probe() [all …]
|
D | mt8173-cpufreq.c | 47 struct clk *cpu_clk; member 176 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local 177 struct clk *armpll = clk_get_parent(cpu_clk); in mtk_cpufreq_set_target() 186 old_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target() 218 ret = clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target() 232 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 238 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 256 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target() 258 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 295 struct clk *cpu_clk = ERR_PTR(-ENODEV); in mtk_cpu_dvfs_info_init() local [all …]
|
D | cpufreq-dt.c | 49 struct clk *cpu_clk = policy->clk; in set_target() local 58 freq_Hz = clk_round_rate(cpu_clk, freq_table[index].frequency * 1000); in set_target() 64 old_freq = clk_get_rate(cpu_clk) / 1000; in set_target() 100 ret = clk_set_rate(cpu_clk, freq_exact); in set_target() 114 clk_set_rate(cpu_clk, old_freq * 1000); in set_target() 126 struct clk *cpu_clk; in allocate_resources() local 165 cpu_clk = clk_get(cpu_dev, NULL); in allocate_resources() 166 if (IS_ERR(cpu_clk)) { in allocate_resources() 171 ret = PTR_ERR(cpu_clk); in allocate_resources() 185 *cclk = cpu_clk; in allocate_resources() [all …]
|
D | kirkwood-cpufreq.c | 25 struct clk *cpu_clk; member 69 clk_set_parent(priv.powersave_clk, priv.cpu_clk); in kirkwood_cpufreq_target() 124 priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk"); in kirkwood_cpufreq_probe() 125 if (IS_ERR(priv.cpu_clk)) { in kirkwood_cpufreq_probe() 127 return PTR_ERR(priv.cpu_clk); in kirkwood_cpufreq_probe() 130 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() 164 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_probe() 176 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_remove()
|
D | highbank-cpufreq.c | 65 struct clk *cpu_clk; in hb_cpufreq_driver_init() local 85 cpu_clk = clk_get(cpu_dev, NULL); in hb_cpufreq_driver_init() 86 if (IS_ERR(cpu_clk)) { in hb_cpufreq_driver_init() 87 ret = PTR_ERR(cpu_clk); in hb_cpufreq_driver_init() 92 ret = clk_notifier_register(cpu_clk, &hb_cpufreq_clk_nb); in hb_cpufreq_driver_init()
|
D | exynos5440-cpufreq.c | 102 struct clk *cpu_clk; member 303 policy->clk = dvfs_info->cpu_clk; in exynos_cpufreq_cpu_init() 382 dvfs_info->cpu_clk = devm_clk_get(dvfs_info->dev, "armclk"); in exynos_cpufreq_probe() 383 if (IS_ERR(dvfs_info->cpu_clk)) { in exynos_cpufreq_probe() 385 ret = PTR_ERR(dvfs_info->cpu_clk); in exynos_cpufreq_probe() 389 cur_frequency = clk_get_rate(dvfs_info->cpu_clk); in exynos_cpufreq_probe()
|
/linux-4.4.14/arch/mips/ar7/ |
D | time.c | 31 struct clk *cpu_clk; in plat_time_init() local 36 cpu_clk = clk_get(NULL, "cpu"); in plat_time_init() 37 if (IS_ERR(cpu_clk)) { in plat_time_init() 42 mips_hpt_frequency = clk_get_rate(cpu_clk) / 2; in plat_time_init()
|
D | clock.c | 104 static struct clk cpu_clk = { variable 195 base_clock = cpu_clk.rate; in tnetd7300_get_clock() 235 base_clock = cpu_clk.rate; in tnetd7300_set_clock() 261 cpu_clk.rate = tnetd7300_get_clock(CPU_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks() 264 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks() 362 cpu_clk.rate = in tnetd7200_init_clocks() 366 cpu_clk.rate); in tnetd7200_init_clocks() 375 cpu_clk.rate = ((cpu_base / cpu_prediv) * cpu_mul) in tnetd7200_init_clocks() 379 cpu_clk.rate); in tnetd7200_init_clocks() 384 bus_clk.rate = cpu_clk.rate / 2; in tnetd7200_init_clocks() [all …]
|
/linux-4.4.14/arch/mips/lantiq/xway/ |
D | clk.c | 146 unsigned int ocp_sel, cpu_clk; in ltq_vr9_fpi_hz() local 149 cpu_clk = ltq_vr9_cpu_hz(); in ltq_vr9_fpi_hz() 155 clk = cpu_clk; in ltq_vr9_fpi_hz() 159 clk = cpu_clk / 2; in ltq_vr9_fpi_hz() 163 clk = (cpu_clk * 2) / 5; in ltq_vr9_fpi_hz() 167 clk = cpu_clk / 3; in ltq_vr9_fpi_hz()
|
/linux-4.4.14/Documentation/devicetree/bindings/arm/ |
D | kirkwood.txt | 12 cpus/cpu@0 with three clocks, "cpu_clk", "ddrclk" and "powersave", 14 between the "cpu_clk" and the "ddrclk". 26 clock-names = "cpu_clk", "ddrclk", "powersave";
|
/linux-4.4.14/arch/sh/kernel/cpu/ |
D | clock-cpg.c | 23 static struct clk cpu_clk = { variable 35 &cpu_clk, 43 CLKDEV_CON_ID("cpu_clk", &cpu_clk),
|
/linux-4.4.14/drivers/clk/mvebu/ |
D | clk-cpu.c | 35 struct cpu_clk { struct 48 #define to_cpu_clk(p) container_of(p, struct cpu_clk, hw) argument 53 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate() 80 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate() 115 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate() 170 struct cpu_clk *cpuclk; in of_cpu_clk_setup()
|
/linux-4.4.14/arch/avr32/kernel/ |
D | setup.c | 556 struct clk *cpu_clk; in setup_arch() local 578 cpu_clk = clk_get(NULL, "cpu"); in setup_arch() 579 if (IS_ERR(cpu_clk)) { in setup_arch() 582 unsigned long cpu_hz = clk_get_rate(cpu_clk); in setup_arch() 588 clk_enable(cpu_clk); in setup_arch() 590 boot_cpu_data.clk = cpu_clk; in setup_arch()
|
/linux-4.4.14/arch/mips/loongson64/lemote-2f/ |
D | clock.c | 44 static struct clk cpu_clk = { variable 52 return &cpu_clk; in clk_get()
|
/linux-4.4.14/Documentation/devicetree/bindings/timer/ |
D | cadence,ttc-timer.txt | 19 clocks = <&cpu_clk 3>;
|
/linux-4.4.14/arch/arc/boot/dts/ |
D | abilis_tb10x.dtsi | 51 cpu_clk: clkdiv_cpu { label 55 clock-output-names = "cpu_clk";
|
D | abilis_tb101.dtsi | 34 cpu_clk: clkdiv_cpu { label
|
D | abilis_tb100.dtsi | 34 cpu_clk: clkdiv_cpu { label
|
/linux-4.4.14/kernel/sched/ |
D | debug.c | 349 u64 ktime, sched_clk, cpu_clk; in sched_debug_header() local 355 cpu_clk = local_clock(); in sched_debug_header() 369 PN(cpu_clk); in sched_debug_header()
|
/linux-4.4.14/arch/avr32/mach-at32ap/ |
D | at32ap700x.c | 482 static struct clk cpu_clk = { variable 490 .parent = &cpu_clk, 721 .parent = &cpu_clk, 2202 &cpu_clk, 2268 cpu_clk.parent = &pll0; in setup_platform() 2271 cpu_clk.parent = &osc0; in setup_platform()
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | kirkwood.dtsi | 20 clock-names = "cpu_clk", "ddrclk", "powersave";
|
D | ste-u300.dts | 101 cpu_clk@208M {
|
D | sun8i-a23-a33.dtsi | 139 cpu: cpu_clk@01c20050 {
|