/drivers/cpufreq/ |
D | dbx500-cpufreq.c | 19 static struct cpufreq_frequency_table *freq_table; variable 29 return cpufreq_frequency_table_verify(policy, freq_table); in dbx500_cpufreq_verify_speed() 41 if (cpufreq_frequency_table_target(policy, freq_table, target_freq, in dbx500_cpufreq_target() 46 freqs.new = freq_table[idx].frequency; in dbx500_cpufreq_target() 75 while (freq_table[i + 1].frequency != CPUFREQ_TABLE_END) { in dbx500_cpufreq_getspeed() 76 if (freq < freq_table[i].frequency + in dbx500_cpufreq_getspeed() 77 (freq_table[i + 1].frequency - freq_table[i].frequency) / 2) in dbx500_cpufreq_getspeed() 78 return freq_table[i].frequency; in dbx500_cpufreq_getspeed() 82 return freq_table[i].frequency; in dbx500_cpufreq_getspeed() 90 res = cpufreq_frequency_table_cpuinfo(policy, freq_table); in dbx500_cpufreq_init() [all …]
|
D | exynos-cpufreq.c | 37 exynos_info->freq_table); in exynos_verify_speed() 47 struct cpufreq_frequency_table *freq_table = exynos_info->freq_table; in exynos_cpufreq_get_index() local 51 freq_table[index].frequency != CPUFREQ_TABLE_END; index++) in exynos_cpufreq_get_index() 52 if (freq_table[index].frequency == freq) in exynos_cpufreq_get_index() 55 if (freq_table[index].frequency == CPUFREQ_TABLE_END) in exynos_cpufreq_get_index() 63 struct cpufreq_frequency_table *freq_table = exynos_info->freq_table; in exynos_cpufreq_scale() local 101 (freq_table[index].frequency < mpll_freq_khz) && in exynos_cpufreq_scale() 102 (freq_table[old_index].frequency < mpll_freq_khz)) in exynos_cpufreq_scale() 158 struct cpufreq_frequency_table *freq_table = exynos_info->freq_table; in exynos_target() local 168 if (cpufreq_frequency_table_target(policy, freq_table, in exynos_target() [all …]
|
D | exynos5440-cpufreq.c | 105 struct cpufreq_frequency_table *freq_table; member 118 struct cpufreq_frequency_table *freq_tbl = dvfs_info->freq_table; in init_div_table() 171 struct cpufreq_frequency_table *freq_table = dvfs_info->freq_table; in exynos_enable_dvfs() local 186 for (i = 0; freq_table[i].frequency != CPUFREQ_TABLE_END; i++) in exynos_enable_dvfs() 187 if (freq_table[i].frequency == dvfs_info->cur_frequency) in exynos_enable_dvfs() 190 if (freq_table[i].frequency == CPUFREQ_TABLE_END) { in exynos_enable_dvfs() 194 dvfs_info->cur_frequency = freq_table[i].frequency; in exynos_enable_dvfs() 215 dvfs_info->freq_table); in exynos_verify_speed() 229 struct cpufreq_frequency_table *freq_table = dvfs_info->freq_table; in exynos_target() local 233 ret = cpufreq_frequency_table_target(policy, freq_table, in exynos_target() [all …]
|
D | sh-cpufreq.c | 84 struct cpufreq_frequency_table *freq_table; in sh_cpufreq_verify() local 86 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_verify() 87 if (freq_table) in sh_cpufreq_verify() 88 return cpufreq_frequency_table_verify(policy, freq_table); in sh_cpufreq_verify() 106 struct cpufreq_frequency_table *freq_table; in sh_cpufreq_cpu_init() local 119 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_cpu_init() 120 if (freq_table) { in sh_cpufreq_cpu_init() 123 result = cpufreq_frequency_table_cpuinfo(policy, freq_table); in sh_cpufreq_cpu_init() 125 cpufreq_frequency_table_get_attr(freq_table, cpu); in sh_cpufreq_cpu_init()
|
D | cpufreq-cpu0.c | 30 static struct cpufreq_frequency_table *freq_table; variable 34 return cpufreq_frequency_table_verify(policy, freq_table); in cpu0_verify_speed() 52 ret = cpufreq_frequency_table_target(policy, freq_table, target_freq, in cpu0_set_target() 60 freq_Hz = clk_round_rate(cpu_clk, freq_table[index].frequency * 1000); in cpu0_set_target() 62 freq_Hz = freq_table[index].frequency * 1000; in cpu0_set_target() 131 ret = cpufreq_frequency_table_cpuinfo(policy, freq_table); in cpu0_cpufreq_init() 147 cpufreq_frequency_table_get_attr(freq_table, policy->cpu); in cpu0_cpufreq_init() 229 ret = opp_init_cpufreq_table(cpu_dev, &freq_table); in cpu0_cpufreq_probe() 250 for (i = 0; freq_table[i].frequency != CPUFREQ_TABLE_END; i++) in cpu0_cpufreq_probe() 254 freq_table[0].frequency * 1000, true); in cpu0_cpufreq_probe() [all …]
|
D | cpufreq_stats.c | 39 unsigned int *freq_table; member 48 unsigned int *freq_table; member 54 unsigned int *freq_table; member 58 unsigned int *freq_table; member 117 len += sprintf(buf + len, "%u %llu\n", stat->freq_table[i], in show_time_in_state() 131 if (all_stat->freq_table[i] == freq) in get_index_all_cpufreq_stat() 171 "%d=%d ", powerstats->freq_table[i], in show_current_in_state() 197 freq = all_freq_table->freq_table[i]; in show_all_time_in_state() 238 stat->freq_table[i]); in show_trans_table() 250 stat->freq_table[i]); in show_trans_table() [all …]
|
D | davinci-cpufreq.c | 44 struct cpufreq_frequency_table *freq_table = pdata->freq_table; in davinci_verify_speed() local 47 if (freq_table) in davinci_verify_speed() 48 return cpufreq_frequency_table_verify(policy, freq_table); in davinci_verify_speed() 88 ret = cpufreq_frequency_table_target(policy, pdata->freq_table, in davinci_target() 126 struct cpufreq_frequency_table *freq_table = pdata->freq_table; in davinci_cpu_init() local 140 result = cpufreq_frequency_table_cpuinfo(policy, freq_table); in davinci_cpu_init() 147 cpufreq_frequency_table_get_attr(freq_table, policy->cpu); in davinci_cpu_init() 188 if (!pdata->freq_table) in davinci_cpufreq_probe()
|
D | omap-cpufreq.c | 37 static struct cpufreq_frequency_table *freq_table; variable 45 if (!freq_table) in omap_verify_speed() 47 return cpufreq_frequency_table_verify(policy, freq_table); in omap_verify_speed() 71 if (!freq_table) { in omap_target() 77 ret = cpufreq_frequency_table_target(policy, freq_table, target_freq, in omap_target() 84 freqs.new = freq_table[i].frequency; in omap_target() 165 opp_free_cpufreq_table(mpu_dev, &freq_table); in freq_table_free() 183 if (!freq_table) in omap_cpu_init() 184 result = opp_init_cpufreq_table(mpu_dev, &freq_table); in omap_cpu_init() 194 result = cpufreq_frequency_table_cpuinfo(policy, freq_table); in omap_cpu_init() [all …]
|
D | imx6q-cpufreq.c | 34 static struct cpufreq_frequency_table *freq_table; variable 39 return cpufreq_frequency_table_verify(policy, freq_table); in imx6q_verify_speed() 56 ret = cpufreq_frequency_table_target(policy, freq_table, target_freq, in imx6q_set_target() 64 freqs.new = freq_table[index].frequency; in imx6q_set_target() 175 ret = cpufreq_frequency_table_cpuinfo(policy, freq_table); in imx6q_cpufreq_init() 184 cpufreq_frequency_table_get_attr(freq_table, policy->cpu); in imx6q_cpufreq_init() 256 ret = opp_init_cpufreq_table(cpu_dev, &freq_table); in imx6q_cpufreq_probe() 272 freq_table[0].frequency * 1000, true); in imx6q_cpufreq_probe() 275 freq_table[--num].frequency * 1000, true); in imx6q_cpufreq_probe() 283 if (freq_table[num].frequency == FREQ_1P2_GHZ / 1000) { in imx6q_cpufreq_probe() [all …]
|
D | tegra-cpufreq.c | 32 static struct cpufreq_frequency_table freq_table[] = { variable 57 return cpufreq_frequency_table_verify(policy, freq_table); in tegra_verify_speed() 174 cpufreq_frequency_table_target(policy, freq_table, target_freq, in tegra_target() 177 freq = freq_table[idx].frequency; in tegra_target() 196 freq_table[0].frequency); in tegra_pm_notify() 197 tegra_update_cpu_speed(policy, freq_table[0].frequency); in tegra_pm_notify() 219 cpufreq_frequency_table_cpuinfo(policy, freq_table); in tegra_cpu_init() 220 cpufreq_frequency_table_get_attr(freq_table, policy->cpu); in tegra_cpu_init() 237 cpufreq_frequency_table_cpuinfo(policy, freq_table); in tegra_cpu_exit()
|
D | ia64-acpi-cpufreq.c | 32 struct cpufreq_frequency_table *freq_table; member 172 cpufreq_freqs.old = data->freq_table[data->acpi_data.state].frequency; in processor_set_freq() 173 cpufreq_freqs.new = data->freq_table[state].frequency; in processor_set_freq() 240 data->freq_table, target_freq, relation, &next_state); in acpi_cpufreq_target() 260 data->freq_table); in acpi_cpufreq_verify() 307 data->freq_table = kmalloc(sizeof(struct cpufreq_frequency_table) * in acpi_cpufreq_cpu_init() 310 if (!data->freq_table) { in acpi_cpufreq_cpu_init() 329 data->freq_table[i].index = i; in acpi_cpufreq_cpu_init() 331 data->freq_table[i].frequency = in acpi_cpufreq_cpu_init() 334 data->freq_table[i].frequency = CPUFREQ_TABLE_END; in acpi_cpufreq_cpu_init() [all …]
|
D | arm_big_little.c | 40 static struct cpufreq_frequency_table *freq_table[MAX_CLUSTERS]; variable 55 return cpufreq_frequency_table_verify(policy, freq_table[cur_cluster]); in bL_cpufreq_verify_policy() 71 cpufreq_frequency_table_target(policy, freq_table[cur_cluster], in bL_cpufreq_set_target() 73 freqs.new = freq_table[cur_cluster][freq_tab_idx].frequency; in bL_cpufreq_set_target() 103 opp_free_cpufreq_table(cpu_dev, &freq_table[cluster]); in put_cluster_clk_and_freq_table() 124 ret = opp_init_cpufreq_table(cpu_dev, &freq_table[cluster]); in get_cluster_clk_and_freq_table() 135 __func__, clk[cluster], freq_table[cluster], in get_cluster_clk_and_freq_table() 143 opp_free_cpufreq_table(cpu_dev, &freq_table[cluster]); in get_cluster_clk_and_freq_table() 170 ret = cpufreq_frequency_table_cpuinfo(policy, freq_table[cur_cluster]); in bL_cpufreq_init() 178 cpufreq_frequency_table_get_attr(freq_table[cur_cluster], policy->cpu); in bL_cpufreq_init()
|
D | acpi-cpufreq.c | 70 struct cpufreq_frequency_table *freq_table; member 217 return data->freq_table[i].frequency; in extract_io() 234 for (i = 0; data->freq_table[i].frequency != CPUFREQ_TABLE_END; i++) { in extract_msr() 235 if (msr == perf->states[data->freq_table[i].index].status) in extract_msr() 236 return data->freq_table[i].frequency; in extract_msr() 238 return data->freq_table[0].frequency; in extract_msr() 383 data->acpi_data == NULL || data->freq_table == NULL)) { in get_cur_freq_on_cpu() 387 cached_freq = data->freq_table[data->acpi_data->state].frequency; in get_cur_freq_on_cpu() 431 data->acpi_data == NULL || data->freq_table == NULL)) { in acpi_cpufreq_target() 437 data->freq_table, in acpi_cpufreq_target() [all …]
|
D | s3c2416-cpufreq.c | 37 struct cpufreq_frequency_table *freq_table; member 97 return cpufreq_frequency_table_verify(policy, s3c_freq->freq_table); in s3c2416_cpufreq_verify_speed() 242 ret = cpufreq_frequency_table_target(policy, s3c_freq->freq_table, in s3c2416_cpufreq_set_target() 247 idx = s3c_freq->freq_table[i].index; in s3c2416_cpufreq_set_target() 269 : s3c_freq->freq_table[i].frequency; in s3c2416_cpufreq_set_target() 310 freq = s3c_freq->freq_table; in s3c2416_cpufreq_cfg_regulator() 397 s3c_freq->freq_table = s3c2416_freq_table; in s3c2416_cpufreq_driver_init() 402 s3c_freq->freq_table = s3c2450_freq_table; in s3c2416_cpufreq_driver_init() 409 if (s3c_freq->freq_table == NULL) { in s3c2416_cpufreq_driver_init() 462 freq = s3c_freq->freq_table; in s3c2416_cpufreq_driver_init() [all …]
|
D | e_powersaver.c | 39 struct cpufreq_frequency_table freq_table[]; member 183 &eps_cpu[cpu]->freq_table[0], in eps_target() 191 dest_state = centaur->freq_table[newstate].index & 0xffff; in eps_target() 201 &eps_cpu[policy->cpu]->freq_table[0]); in eps_verify() 380 f_table = ¢aur->freq_table[0]; in eps_cpu_init() 403 ret = cpufreq_frequency_table_cpuinfo(policy, ¢aur->freq_table[0]); in eps_cpu_init() 409 cpufreq_frequency_table_get_attr(¢aur->freq_table[0], policy->cpu); in eps_cpu_init()
|
D | cpufreq_ondemand.c | 56 dbs_info->freq_table = cpufreq_frequency_get_table(cpu); in ondemand_powersave_bias_init_cpu() 100 if (!dbs_info->freq_table) { in generic_powersave_bias_target() 106 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_next, in generic_powersave_bias_target() 108 freq_req = dbs_info->freq_table[index].frequency; in generic_powersave_bias_target() 114 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_avg, in generic_powersave_bias_target() 116 freq_lo = dbs_info->freq_table[index].frequency; in generic_powersave_bias_target() 118 cpufreq_frequency_table_target(policy, dbs_info->freq_table, freq_avg, in generic_powersave_bias_target() 120 freq_hi = dbs_info->freq_table[index].frequency; in generic_powersave_bias_target()
|
D | amd_freq_sensitivity.c | 53 if (!od_info->freq_table) in amd_powersave_bias_target() 96 od_info->freq_table, policy->cur - 1, in amd_powersave_bias_target() 98 freq_next = od_info->freq_table[index].frequency; in amd_powersave_bias_target()
|
D | cpufreq_interactive.c | 48 struct cpufreq_frequency_table *freq_table; member 283 pcpu->policy, pcpu->freq_table, loadadjfreq / tl, in choose_freq() 286 freq = pcpu->freq_table[index].frequency; in choose_freq() 298 pcpu->policy, pcpu->freq_table, in choose_freq() 302 freq = pcpu->freq_table[index].frequency; in choose_freq() 325 pcpu->policy, pcpu->freq_table, in choose_freq() 329 freq = pcpu->freq_table[index].frequency; in choose_freq() 438 if (cpufreq_frequency_table_target(pcpu->policy, pcpu->freq_table, in cpufreq_interactive_timer() 445 new_freq = pcpu->freq_table[index].frequency; in cpufreq_interactive_timer() 1175 struct cpufreq_frequency_table *freq_table; in cpufreq_governor_interactive() local [all …]
|
D | pxa2xx-cpufreq.c | 213 static void find_freq_tables(struct cpufreq_frequency_table **freq_table, in find_freq_tables() argument 219 *freq_table = pxa255_run_freq_table; in find_freq_tables() 222 *freq_table = pxa255_turbo_freq_table; in find_freq_tables() 226 *freq_table = pxa27x_freq_table; in find_freq_tables()
|
/drivers/sh/clk/ |
D | cpg.c | 89 return clk_rate_table_round(clk, clk->freq_table, rate); in sh_clk_div_round_rate() 97 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div_recalc() 102 return clk->freq_table[idx].frequency; in sh_clk_div_recalc() 111 idx = clk_rate_table_find(clk, clk->freq_table, rate); in sh_clk_div_set_rate() 207 void *freq_table; in sh_clk_div_register_ops() local 214 freq_table = kzalloc(freq_table_size * nr, GFP_KERNEL); in sh_clk_div_register_ops() 215 if (!freq_table) { in sh_clk_div_register_ops() 226 clkp->freq_table = freq_table + (k * freq_table_size); in sh_clk_div_register_ops() 227 clkp->freq_table[nr_divs].frequency = CPUFREQ_TABLE_END; in sh_clk_div_register_ops() 283 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div6_set_parent() [all …]
|
D | core.c | 40 struct cpufreq_frequency_table *freq_table, in clk_rate_table_build() argument 66 freq_table[i].index = i; in clk_rate_table_build() 67 freq_table[i].frequency = freq; in clk_rate_table_build() 71 freq_table[i].index = i; in clk_rate_table_build() 72 freq_table[i].frequency = CPUFREQ_TABLE_END; in clk_rate_table_build() 128 struct cpufreq_frequency_table *freq_table = rounder->arg; in clk_rate_table_iter() local 129 unsigned long freq = freq_table[pos].frequency; in clk_rate_table_iter() 138 struct cpufreq_frequency_table *freq_table, in clk_rate_table_round() argument 145 .arg = freq_table, in clk_rate_table_round() 196 struct cpufreq_frequency_table *freq_table, in clk_rate_table_find() argument [all …]
|
/drivers/base/power/ |
D | opp.c | 626 struct cpufreq_frequency_table *freq_table; in opp_init_cpufreq_table() local 640 freq_table = kzalloc(sizeof(struct cpufreq_frequency_table) * in opp_init_cpufreq_table() 642 if (!freq_table) { in opp_init_cpufreq_table() 651 freq_table[i].index = i; in opp_init_cpufreq_table() 652 freq_table[i].frequency = opp->rate / 1000; in opp_init_cpufreq_table() 658 freq_table[i].index = i; in opp_init_cpufreq_table() 659 freq_table[i].frequency = CPUFREQ_TABLE_END; in opp_init_cpufreq_table() 661 *table = &freq_table[0]; in opp_init_cpufreq_table()
|
/drivers/clk/tegra/ |
D | clk.h | 223 struct tegra_clk_pll_freq_table *freq_table; member 247 struct tegra_clk_pll_freq_table *freq_table, spinlock_t *lock); 253 struct tegra_clk_pll_freq_table *freq_table, spinlock_t *lock); 260 struct tegra_clk_pll_freq_table *freq_table, 268 struct tegra_clk_pll_freq_table *freq_table, 276 struct tegra_clk_pll_freq_table *freq_table, 284 struct tegra_clk_pll_freq_table *freq_table, 292 struct tegra_clk_pll_freq_table *freq_table,
|
D | clk-pll.c | 307 for (sel = pll->freq_table; sel->input_rate != 0; sel++) in _get_table_rate() 1226 struct tegra_clk_pll_freq_table *freq_table, spinlock_t *lock) in _tegra_init_pll() argument 1237 pll->freq_table = freq_table; in _tegra_init_pll() 1275 struct tegra_clk_pll_freq_table *freq_table, spinlock_t *lock) in tegra_clk_register_pll() argument 1283 freq_table, lock); in tegra_clk_register_pll() 1299 struct tegra_clk_pll_freq_table *freq_table, spinlock_t *lock) in tegra_clk_register_plle() argument 1307 freq_table, lock); in tegra_clk_register_plle() 1369 struct tegra_clk_pll_freq_table *freq_table, in tegra_clk_register_pllxc() argument 1380 freq_table, lock); in tegra_clk_register_pllxc() 1397 struct tegra_clk_pll_freq_table *freq_table, in tegra_clk_register_pllre() argument [all …]
|
/drivers/net/irda/ |
D | sh_sir.c | 219 struct cpufreq_frequency_table *freq_table = irda_clk->freq_table; in sh_sir_find_sclk() local 229 freq_table[i].frequency != CPUFREQ_TABLE_END; in sh_sir_find_sclk() 231 u32 freq = freq_table[i].frequency; in sh_sir_find_sclk() 247 return freq_table[index].frequency; in sh_sir_find_sclk()
|