s3c_freq 41 arch/arm/mach-s3c24xx/mach-osiris-dvs.c static bool is_dvs(struct s3c_freq *f) s3c_freq 116 arch/arm/plat-samsung/include/plat/cpu-freq-core.h struct s3c_freq freq; s3c_freq 117 arch/arm/plat-samsung/include/plat/cpu-freq-core.h struct s3c_freq max; s3c_freq 155 arch/arm/plat-samsung/include/plat/cpu-freq-core.h struct s3c_freq max; s3c_freq 60 arch/arm/plat-samsung/include/plat/cpu-freq.h struct s3c_freq old; s3c_freq 61 arch/arm/plat-samsung/include/plat/cpu-freq.h struct s3c_freq new; s3c_freq 121 arch/arm/plat-samsung/include/plat/cpu-freq.h struct s3c_freq max; /* frequency limits */ s3c_freq 89 drivers/cpufreq/s3c2416-cpufreq.c struct s3c2416_data *s3c_freq = &s3c2416_cpufreq; s3c_freq 95 drivers/cpufreq/s3c2416-cpufreq.c if (s3c_freq->is_dvs) s3c_freq 98 drivers/cpufreq/s3c2416-cpufreq.c return clk_get_rate(s3c_freq->armclk) / 1000; s3c_freq 101 drivers/cpufreq/s3c2416-cpufreq.c static int s3c2416_cpufreq_set_armdiv(struct s3c2416_data *s3c_freq, s3c_freq 106 drivers/cpufreq/s3c2416-cpufreq.c if (clk_get_rate(s3c_freq->armdiv) / 1000 != freq) { s3c_freq 107 drivers/cpufreq/s3c2416-cpufreq.c ret = clk_set_rate(s3c_freq->armdiv, freq * 1000); s3c_freq 118 drivers/cpufreq/s3c2416-cpufreq.c static int s3c2416_cpufreq_enter_dvs(struct s3c2416_data *s3c_freq, int idx) s3c_freq 125 drivers/cpufreq/s3c2416-cpufreq.c if (s3c_freq->is_dvs) { s3c_freq 131 drivers/cpufreq/s3c2416-cpufreq.c clk_get_rate(s3c_freq->hclk) / 1000); s3c_freq 132 drivers/cpufreq/s3c2416-cpufreq.c ret = clk_set_parent(s3c_freq->armclk, s3c_freq->hclk); s3c_freq 140 drivers/cpufreq/s3c2416-cpufreq.c if (s3c_freq->vddarm) { s3c_freq 145 drivers/cpufreq/s3c2416-cpufreq.c ret = regulator_set_voltage(s3c_freq->vddarm, s3c_freq 155 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->is_dvs = 1; s3c_freq 160 drivers/cpufreq/s3c2416-cpufreq.c static int s3c2416_cpufreq_leave_dvs(struct s3c2416_data *s3c_freq, int idx) s3c_freq 167 drivers/cpufreq/s3c2416-cpufreq.c if (!s3c_freq->is_dvs) { s3c_freq 173 drivers/cpufreq/s3c2416-cpufreq.c if (s3c_freq->vddarm) { s3c_freq 178 drivers/cpufreq/s3c2416-cpufreq.c ret = regulator_set_voltage(s3c_freq->vddarm, s3c_freq 189 drivers/cpufreq/s3c2416-cpufreq.c if (clk_get_rate(s3c_freq->armdiv) > clk_get_rate(s3c_freq->hclk)) { s3c_freq 191 drivers/cpufreq/s3c2416-cpufreq.c clk_get_rate(s3c_freq->hclk) / 1000); s3c_freq 192 drivers/cpufreq/s3c2416-cpufreq.c ret = s3c2416_cpufreq_set_armdiv(s3c_freq, s3c_freq 193 drivers/cpufreq/s3c2416-cpufreq.c clk_get_rate(s3c_freq->hclk) / 1000); s3c_freq 196 drivers/cpufreq/s3c2416-cpufreq.c clk_get_rate(s3c_freq->hclk) / 1000, ret); s3c_freq 202 drivers/cpufreq/s3c2416-cpufreq.c clk_get_rate(s3c_freq->armdiv) / 1000); s3c_freq 204 drivers/cpufreq/s3c2416-cpufreq.c ret = clk_set_parent(s3c_freq->armclk, s3c_freq->armdiv); s3c_freq 211 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->is_dvs = 0; s3c_freq 219 drivers/cpufreq/s3c2416-cpufreq.c struct s3c2416_data *s3c_freq = &s3c2416_cpufreq; s3c_freq 225 drivers/cpufreq/s3c2416-cpufreq.c idx = s3c_freq->freq_table[index].driver_data; s3c_freq 231 drivers/cpufreq/s3c2416-cpufreq.c if (to_dvs && s3c_freq->disable_dvs) { s3c_freq 241 drivers/cpufreq/s3c2416-cpufreq.c new_freq = (s3c_freq->is_dvs && !to_dvs) s3c_freq 242 drivers/cpufreq/s3c2416-cpufreq.c ? clk_get_rate(s3c_freq->hclk) / 1000 s3c_freq 243 drivers/cpufreq/s3c2416-cpufreq.c : s3c_freq->freq_table[index].frequency; s3c_freq 247 drivers/cpufreq/s3c2416-cpufreq.c ret = s3c2416_cpufreq_enter_dvs(s3c_freq, idx); s3c_freq 248 drivers/cpufreq/s3c2416-cpufreq.c } else if (s3c_freq->is_dvs) { s3c_freq 250 drivers/cpufreq/s3c2416-cpufreq.c ret = s3c2416_cpufreq_leave_dvs(s3c_freq, idx); s3c_freq 253 drivers/cpufreq/s3c2416-cpufreq.c ret = s3c2416_cpufreq_set_armdiv(s3c_freq, new_freq); s3c_freq 263 drivers/cpufreq/s3c2416-cpufreq.c static void s3c2416_cpufreq_cfg_regulator(struct s3c2416_data *s3c_freq) s3c_freq 269 drivers/cpufreq/s3c2416-cpufreq.c count = regulator_count_voltages(s3c_freq->vddarm); s3c_freq 278 drivers/cpufreq/s3c2416-cpufreq.c cpufreq_for_each_valid_entry(pos, s3c_freq->freq_table) { s3c_freq 284 drivers/cpufreq/s3c2416-cpufreq.c v = regulator_list_voltage(s3c_freq->vddarm, i); s3c_freq 298 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->regulator_latency = 1 * 1000 * 1000; s3c_freq 305 drivers/cpufreq/s3c2416-cpufreq.c struct s3c2416_data *s3c_freq = &s3c2416_cpufreq; s3c_freq 311 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->disable_dvs = 1; s3c_freq 319 drivers/cpufreq/s3c2416-cpufreq.c if (s3c_freq->is_dvs) { s3c_freq 335 drivers/cpufreq/s3c2416-cpufreq.c struct s3c2416_data *s3c_freq = &s3c2416_cpufreq; s3c_freq 360 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->freq_table = s3c2416_freq_table; s3c_freq 365 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->freq_table = s3c2450_freq_table; s3c_freq 372 drivers/cpufreq/s3c2416-cpufreq.c if (s3c_freq->freq_table == NULL) { s3c_freq 378 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->is_dvs = 0; s3c_freq 380 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->armdiv = clk_get(NULL, "armdiv"); s3c_freq 381 drivers/cpufreq/s3c2416-cpufreq.c if (IS_ERR(s3c_freq->armdiv)) { s3c_freq 382 drivers/cpufreq/s3c2416-cpufreq.c ret = PTR_ERR(s3c_freq->armdiv); s3c_freq 387 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->hclk = clk_get(NULL, "hclk"); s3c_freq 388 drivers/cpufreq/s3c2416-cpufreq.c if (IS_ERR(s3c_freq->hclk)) { s3c_freq 389 drivers/cpufreq/s3c2416-cpufreq.c ret = PTR_ERR(s3c_freq->hclk); s3c_freq 397 drivers/cpufreq/s3c2416-cpufreq.c rate = clk_get_rate(s3c_freq->hclk); s3c_freq 404 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->armclk = clk_get(NULL, "armclk"); s3c_freq 405 drivers/cpufreq/s3c2416-cpufreq.c if (IS_ERR(s3c_freq->armclk)) { s3c_freq 406 drivers/cpufreq/s3c2416-cpufreq.c ret = PTR_ERR(s3c_freq->armclk); s3c_freq 412 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->vddarm = regulator_get(NULL, "vddarm"); s3c_freq 413 drivers/cpufreq/s3c2416-cpufreq.c if (IS_ERR(s3c_freq->vddarm)) { s3c_freq 414 drivers/cpufreq/s3c2416-cpufreq.c ret = PTR_ERR(s3c_freq->vddarm); s3c_freq 419 drivers/cpufreq/s3c2416-cpufreq.c s3c2416_cpufreq_cfg_regulator(s3c_freq); s3c_freq 421 drivers/cpufreq/s3c2416-cpufreq.c s3c_freq->regulator_latency = 0; s3c_freq 424 drivers/cpufreq/s3c2416-cpufreq.c cpufreq_for_each_entry(pos, s3c_freq->freq_table) { s3c_freq 427 drivers/cpufreq/s3c2416-cpufreq.c if (!s3c_freq->hclk) { s3c_freq 437 drivers/cpufreq/s3c2416-cpufreq.c rate = clk_round_rate(s3c_freq->armdiv, s3c_freq 450 drivers/cpufreq/s3c2416-cpufreq.c cpufreq_generic_init(policy, s3c_freq->freq_table, s3c_freq 451 drivers/cpufreq/s3c2416-cpufreq.c (500 * 1000) + s3c_freq->regulator_latency); s3c_freq 458 drivers/cpufreq/s3c2416-cpufreq.c clk_put(s3c_freq->armclk); s3c_freq 461 drivers/cpufreq/s3c2416-cpufreq.c clk_put(s3c_freq->hclk); s3c_freq 463 drivers/cpufreq/s3c2416-cpufreq.c clk_put(s3c_freq->armdiv); s3c_freq 30 drivers/cpufreq/s3c24xx-cpufreq-debugfs.c static void show_max(struct seq_file *seq, struct s3c_freq *f) s3c_freq 516 drivers/cpufreq/s3c24xx-cpufreq.c static void s3c_cpufreq_freq_min(struct s3c_freq *dst, s3c_freq 517 drivers/cpufreq/s3c24xx-cpufreq.c struct s3c_freq *a, struct s3c_freq *b)