cpufreq 195 arch/powerpc/boot/ops.h void dt_fixup_cpu_clocks(u32 cpufreq, u32 tbfreq, u32 busfreq); cpufreq 37 drivers/clk/bcm/clk-raspberrypi.c struct platform_device *cpufreq; cpufreq 288 drivers/clk/bcm/clk-raspberrypi.c rpi->cpufreq = platform_device_register_data(dev, "raspberrypi-cpufreq", cpufreq 298 drivers/clk/bcm/clk-raspberrypi.c platform_device_unregister(rpi->cpufreq); cpufreq 33 drivers/cpufreq/davinci-cpufreq.c static struct davinci_cpufreq cpufreq; cpufreq 37 drivers/cpufreq/davinci-cpufreq.c struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; cpufreq 38 drivers/cpufreq/davinci-cpufreq.c struct clk *armclk = cpufreq.armclk; cpufreq 56 drivers/cpufreq/davinci-cpufreq.c if (cpufreq.asyncclk) { cpufreq 57 drivers/cpufreq/davinci-cpufreq.c ret = clk_set_rate(cpufreq.asyncclk, cpufreq.asyncrate); cpufreq 72 drivers/cpufreq/davinci-cpufreq.c struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; cpufreq 85 drivers/cpufreq/davinci-cpufreq.c policy->clk = cpufreq.armclk; cpufreq 117 drivers/cpufreq/davinci-cpufreq.c cpufreq.dev = &pdev->dev; cpufreq 119 drivers/cpufreq/davinci-cpufreq.c cpufreq.armclk = clk_get(NULL, "arm"); cpufreq 120 drivers/cpufreq/davinci-cpufreq.c if (IS_ERR(cpufreq.armclk)) { cpufreq 121 drivers/cpufreq/davinci-cpufreq.c dev_err(cpufreq.dev, "Unable to get ARM clock\n"); cpufreq 122 drivers/cpufreq/davinci-cpufreq.c return PTR_ERR(cpufreq.armclk); cpufreq 125 drivers/cpufreq/davinci-cpufreq.c asyncclk = clk_get(cpufreq.dev, "async"); cpufreq 127 drivers/cpufreq/davinci-cpufreq.c cpufreq.asyncclk = asyncclk; cpufreq 128 drivers/cpufreq/davinci-cpufreq.c cpufreq.asyncrate = clk_get_rate(asyncclk); cpufreq 136 drivers/cpufreq/davinci-cpufreq.c clk_put(cpufreq.armclk); cpufreq 138 drivers/cpufreq/davinci-cpufreq.c if (cpufreq.asyncclk) cpufreq 139 drivers/cpufreq/davinci-cpufreq.c clk_put(cpufreq.asyncclk); cpufreq 34 drivers/cpufreq/loongson1-cpufreq.c static struct ls1x_cpufreq *cpufreq; cpufreq 67 drivers/cpufreq/loongson1-cpufreq.c clk_set_parent(policy->clk, cpufreq->osc_clk); cpufreq 72 drivers/cpufreq/loongson1-cpufreq.c clk_set_rate(cpufreq->mux_clk, new_freq * 1000); cpufreq 73 drivers/cpufreq/loongson1-cpufreq.c clk_set_parent(policy->clk, cpufreq->mux_clk); cpufreq 86 drivers/cpufreq/loongson1-cpufreq.c pll_freq = clk_get_rate(cpufreq->pll_clk) / 1000; cpufreq 95 drivers/cpufreq/loongson1-cpufreq.c if ((freq < cpufreq->min_freq) || (freq > cpufreq->max_freq)) cpufreq 105 drivers/cpufreq/loongson1-cpufreq.c policy->clk = cpufreq->clk; cpufreq 148 drivers/cpufreq/loongson1-cpufreq.c cpufreq = cpufreq 150 drivers/cpufreq/loongson1-cpufreq.c if (!cpufreq) cpufreq 153 drivers/cpufreq/loongson1-cpufreq.c cpufreq->dev = &pdev->dev; cpufreq 161 drivers/cpufreq/loongson1-cpufreq.c cpufreq->clk = clk; cpufreq 166 drivers/cpufreq/loongson1-cpufreq.c __clk_get_name(cpufreq->clk)); cpufreq 169 drivers/cpufreq/loongson1-cpufreq.c cpufreq->mux_clk = clk; cpufreq 174 drivers/cpufreq/loongson1-cpufreq.c __clk_get_name(cpufreq->mux_clk)); cpufreq 177 drivers/cpufreq/loongson1-cpufreq.c cpufreq->pll_clk = clk; cpufreq 185 drivers/cpufreq/loongson1-cpufreq.c cpufreq->osc_clk = clk; cpufreq 187 drivers/cpufreq/loongson1-cpufreq.c cpufreq->max_freq = pdata->max_freq; cpufreq 188 drivers/cpufreq/loongson1-cpufreq.c cpufreq->min_freq = pdata->min_freq; cpufreq 51 drivers/cpufreq/pxa3xx-cpufreq.c #define OP(cpufreq, _xl, _xn, _hss, _dmc, _smc, _sfl, _dfi, vcore, vsram) \ cpufreq 53 drivers/cpufreq/pxa3xx-cpufreq.c .cpufreq_mhz = cpufreq, \ cpufreq 42 drivers/cpufreq/tegra20-cpufreq.c struct tegra20_cpufreq *cpufreq = cpufreq_get_driver_data(); cpufreq 43 drivers/cpufreq/tegra20-cpufreq.c unsigned int ifreq = clk_get_rate(cpufreq->pll_p_clk) / 1000; cpufreq 59 drivers/cpufreq/tegra20-cpufreq.c struct tegra20_cpufreq *cpufreq = cpufreq_get_driver_data(); cpufreq 72 drivers/cpufreq/tegra20-cpufreq.c clk_prepare_enable(cpufreq->pll_x_clk); cpufreq 74 drivers/cpufreq/tegra20-cpufreq.c ret = clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_p_clk); cpufreq 76 drivers/cpufreq/tegra20-cpufreq.c clk_disable_unprepare(cpufreq->pll_x_clk); cpufreq 78 drivers/cpufreq/tegra20-cpufreq.c cpufreq->pll_x_prepared = true; cpufreq 85 drivers/cpufreq/tegra20-cpufreq.c struct tegra20_cpufreq *cpufreq = cpufreq_get_driver_data(); cpufreq 87 drivers/cpufreq/tegra20-cpufreq.c unsigned int ifreq = clk_get_rate(cpufreq->pll_p_clk) / 1000; cpufreq 95 drivers/cpufreq/tegra20-cpufreq.c return clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_p_clk); cpufreq 97 drivers/cpufreq/tegra20-cpufreq.c ret = clk_set_rate(cpufreq->pll_x_clk, rate * 1000); cpufreq 100 drivers/cpufreq/tegra20-cpufreq.c dev_err(cpufreq->dev, "Failed to change pll_x to %lu\n", rate); cpufreq 102 drivers/cpufreq/tegra20-cpufreq.c ret = clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_x_clk); cpufreq 110 drivers/cpufreq/tegra20-cpufreq.c if (cpufreq->pll_x_prepared) { cpufreq 111 drivers/cpufreq/tegra20-cpufreq.c clk_disable_unprepare(cpufreq->pll_x_clk); cpufreq 112 drivers/cpufreq/tegra20-cpufreq.c cpufreq->pll_x_prepared = false; cpufreq 120 drivers/cpufreq/tegra20-cpufreq.c struct tegra20_cpufreq *cpufreq = cpufreq_get_driver_data(); cpufreq 122 drivers/cpufreq/tegra20-cpufreq.c clk_prepare_enable(cpufreq->cpu_clk); cpufreq 126 drivers/cpufreq/tegra20-cpufreq.c policy->clk = cpufreq->cpu_clk; cpufreq 133 drivers/cpufreq/tegra20-cpufreq.c struct tegra20_cpufreq *cpufreq = cpufreq_get_driver_data(); cpufreq 135 drivers/cpufreq/tegra20-cpufreq.c clk_disable_unprepare(cpufreq->cpu_clk); cpufreq 141 drivers/cpufreq/tegra20-cpufreq.c struct tegra20_cpufreq *cpufreq; cpufreq 144 drivers/cpufreq/tegra20-cpufreq.c cpufreq = devm_kzalloc(&pdev->dev, sizeof(*cpufreq), GFP_KERNEL); cpufreq 145 drivers/cpufreq/tegra20-cpufreq.c if (!cpufreq) cpufreq 148 drivers/cpufreq/tegra20-cpufreq.c cpufreq->cpu_clk = clk_get_sys(NULL, "cclk"); cpufreq 149 drivers/cpufreq/tegra20-cpufreq.c if (IS_ERR(cpufreq->cpu_clk)) cpufreq 150 drivers/cpufreq/tegra20-cpufreq.c return PTR_ERR(cpufreq->cpu_clk); cpufreq 152 drivers/cpufreq/tegra20-cpufreq.c cpufreq->pll_x_clk = clk_get_sys(NULL, "pll_x"); cpufreq 153 drivers/cpufreq/tegra20-cpufreq.c if (IS_ERR(cpufreq->pll_x_clk)) { cpufreq 154 drivers/cpufreq/tegra20-cpufreq.c err = PTR_ERR(cpufreq->pll_x_clk); cpufreq 158 drivers/cpufreq/tegra20-cpufreq.c cpufreq->pll_p_clk = clk_get_sys(NULL, "pll_p"); cpufreq 159 drivers/cpufreq/tegra20-cpufreq.c if (IS_ERR(cpufreq->pll_p_clk)) { cpufreq 160 drivers/cpufreq/tegra20-cpufreq.c err = PTR_ERR(cpufreq->pll_p_clk); cpufreq 164 drivers/cpufreq/tegra20-cpufreq.c cpufreq->dev = &pdev->dev; cpufreq 165 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.get = cpufreq_generic_get; cpufreq 166 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.attr = cpufreq_generic_attr; cpufreq 167 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.init = tegra_cpu_init; cpufreq 168 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.exit = tegra_cpu_exit; cpufreq 169 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.flags = CPUFREQ_NEED_INITIAL_FREQ_CHECK; cpufreq 170 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.verify = cpufreq_generic_frequency_table_verify; cpufreq 171 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.suspend = cpufreq_generic_suspend; cpufreq 172 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.driver_data = cpufreq; cpufreq 173 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.target_index = tegra_target; cpufreq 174 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.get_intermediate = tegra_get_intermediate; cpufreq 175 drivers/cpufreq/tegra20-cpufreq.c cpufreq->driver.target_intermediate = tegra_target_intermediate; cpufreq 176 drivers/cpufreq/tegra20-cpufreq.c snprintf(cpufreq->driver.name, CPUFREQ_NAME_LEN, "tegra"); cpufreq 178 drivers/cpufreq/tegra20-cpufreq.c err = cpufreq_register_driver(&cpufreq->driver); cpufreq 182 drivers/cpufreq/tegra20-cpufreq.c platform_set_drvdata(pdev, cpufreq); cpufreq 187 drivers/cpufreq/tegra20-cpufreq.c clk_put(cpufreq->pll_p_clk); cpufreq 189 drivers/cpufreq/tegra20-cpufreq.c clk_put(cpufreq->pll_x_clk); cpufreq 191 drivers/cpufreq/tegra20-cpufreq.c clk_put(cpufreq->cpu_clk); cpufreq 198 drivers/cpufreq/tegra20-cpufreq.c struct tegra20_cpufreq *cpufreq = platform_get_drvdata(pdev); cpufreq 200 drivers/cpufreq/tegra20-cpufreq.c cpufreq_unregister_driver(&cpufreq->driver); cpufreq 202 drivers/cpufreq/tegra20-cpufreq.c clk_put(cpufreq->pll_p_clk); cpufreq 203 drivers/cpufreq/tegra20-cpufreq.c clk_put(cpufreq->pll_x_clk); cpufreq 204 drivers/cpufreq/tegra20-cpufreq.c clk_put(cpufreq->cpu_clk);