/openbmc/linux/drivers/cpufreq/ |
H A D | qoriq-cpufreq.c | 113 freq_table[j].frequency != in freq_table_redup() 114 freq_table[i].frequency) in freq_table_redup() 117 freq_table[i].frequency = CPUFREQ_ENTRY_INVALID; in freq_table_redup() 132 max_freq = freq_table[i].frequency; in freq_table_sort() 135 freq = freq_table[j].frequency; in freq_table_sort() 145 table.driver_data = freq_table[i].driver_data; in freq_table_sort() 146 table.frequency = freq_table[i].frequency; in freq_table_sort() 147 freq_table[i].driver_data = freq_table[ind].driver_data; in freq_table_sort() 148 freq_table[i].frequency = freq_table[ind].frequency; in freq_table_sort() 150 freq_table[ind].frequency = table.frequency; in freq_table_sort() [all …]
|
H A D | sh-cpufreq.c | 92 struct cpufreq_frequency_table *freq_table; in sh_cpufreq_verify() local 94 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_verify() 95 if (freq_table) in sh_cpufreq_verify() 96 return cpufreq_frequency_table_verify(policy, freq_table); in sh_cpufreq_verify() 111 struct cpufreq_frequency_table *freq_table; in sh_cpufreq_cpu_init() local 122 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_cpu_init() 123 if (freq_table) { in sh_cpufreq_cpu_init() 124 policy->freq_table = freq_table; in sh_cpufreq_cpu_init()
|
H A D | apple-soc-cpufreq.c | 125 cpufreq_for_each_valid_entry(p, policy->freq_table) in apple_soc_cpufreq_get_rate() 138 unsigned int pstate = policy->freq_table[index].driver_data; in apple_soc_cpufreq_set_target() 167 return policy->freq_table[policy->cached_resolved_idx].frequency; in apple_soc_cpufreq_fast_switch() 212 struct cpufreq_frequency_table *freq_table; in apple_soc_cpufreq_init() local 251 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in apple_soc_cpufreq_init() 258 for (i = 0; freq_table[i].frequency != CPUFREQ_TABLE_END; i++) { in apple_soc_cpufreq_init() 259 unsigned long rate = freq_table[i].frequency * 1000 + 999; in apple_soc_cpufreq_init() 266 freq_table[i].driver_data = dev_pm_opp_get_level(opp); in apple_soc_cpufreq_init() 274 policy->freq_table = freq_table; in apple_soc_cpufreq_init() 283 policy->suspend_freq = freq_table[0].frequency; in apple_soc_cpufreq_init() [all …]
|
H A D | bmips-cpufreq.c | 108 unsigned int div = policy->freq_table[index].driver_data; in bmips_cpufreq_target_index() 126 kfree(policy->freq_table); in bmips_cpufreq_exit() 133 struct cpufreq_frequency_table *freq_table; in bmips_cpufreq_init() local 135 freq_table = bmips_cpufreq_get_freq_table(policy); in bmips_cpufreq_init() 136 if (IS_ERR(freq_table)) { in bmips_cpufreq_init() 138 BMIPS_CPUFREQ_NAME, PTR_ERR(freq_table)); in bmips_cpufreq_init() 139 return PTR_ERR(freq_table); in bmips_cpufreq_init() 142 cpufreq_generic_init(policy, freq_table, TRANSITION_LATENCY); in bmips_cpufreq_init()
|
H A D | tegra194-cpufreq.c | 440 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_KERNEL); in tegra_cpufreq_init_cpufreq_table() 441 if (!freq_table) in tegra_cpufreq_init_cpufreq_table() 460 freq_table[j].frequency = pos->frequency; in tegra_cpufreq_init_cpufreq_table() 467 *opp_table = &freq_table[0]; in tegra_cpufreq_init_cpufreq_table() 478 struct cpufreq_frequency_table *freq_table; in tegra194_cpufreq_init() local 501 policy->freq_table = freq_table; in tegra194_cpufreq_init() 507 policy->freq_table = bpmp_lut; in tegra194_cpufreq_init() 644 sizeof(*freq_table), GFP_KERNEL); in tegra_cpufreq_bpmp_read_lut() 645 if (!freq_table) in tegra_cpufreq_bpmp_read_lut() 651 freq_table[index].driver_data = ndiv; in tegra_cpufreq_bpmp_read_lut() [all …]
|
H A D | vexpress-spc-cpufreq.c | 186 freqs_new = freq_table[cur_cluster][index].frequency; in ve_spc_cpufreq_set_target() 253 count += get_table_count(freq_table[i]); in merge_cluster_tables() 259 freq_table[MAX_CLUSTERS] = table; in merge_cluster_tables() 263 for (j = 0; freq_table[i][j].frequency != CPUFREQ_TABLE_END; in merge_cluster_tables() 269 VIRT_FREQ(i, freq_table[i][j].frequency); in merge_cluster_tables() 284 if (!freq_table[cluster]) in _put_cluster_clk_and_freq_table() 313 kfree(freq_table[cluster]); in put_cluster_clk_and_freq_table() 322 if (freq_table[cluster]) in _get_cluster_clk_and_freq_table() 388 clk_big_min = get_table_min(freq_table[A15_CLUSTER]); in get_cluster_clk_and_freq_table() 390 get_table_max(freq_table[A7_CLUSTER])); in get_cluster_clk_and_freq_table() [all …]
|
H A D | scpi-cpufreq.c | 42 u64 rate = policy->freq_table[index].frequency * 1000; in scpi_cpufreq_set_target() 89 struct cpufreq_frequency_table *freq_table; in scpi_cpufreq_init() local 129 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in scpi_cpufreq_init() 145 policy->freq_table = freq_table; in scpi_cpufreq_init() 161 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); in scpi_cpufreq_init() 175 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table); in scpi_cpufreq_exit()
|
H A D | ia64-acpi-cpufreq.c | 209 struct cpufreq_frequency_table *freq_table; in acpi_cpufreq_cpu_init() local 243 freq_table = kcalloc(data->acpi_data.state_count + 1, in acpi_cpufreq_cpu_init() 244 sizeof(*freq_table), in acpi_cpufreq_cpu_init() 246 if (!freq_table) { in acpi_cpufreq_cpu_init() 265 freq_table[i].frequency = in acpi_cpufreq_cpu_init() 268 freq_table[i].frequency = CPUFREQ_TABLE_END; in acpi_cpufreq_cpu_init() 272 policy->freq_table = freq_table; in acpi_cpufreq_cpu_init() 316 kfree(policy->freq_table); in acpi_cpufreq_cpu_exit()
|
H A D | cpufreq_stats.c | 22 unsigned int *freq_table; member 95 len += sprintf(buf + len, "%u %llu\n", stats->freq_table[i], in show_time_in_state() 136 len += sysfs_emit_at(buf, len, "%9u ", stats->freq_table[i]); in show_trans_table() 147 len += sysfs_emit_at(buf, len, "%9u: ", stats->freq_table[i]); in show_trans_table() 189 if (stats->freq_table[index] == freq) in freq_table_get_index() 238 stats->freq_table = (unsigned int *)(stats->time_in_state + count); in cpufreq_stats_create_table() 240 stats->trans_table = stats->freq_table + count; in cpufreq_stats_create_table() 245 cpufreq_for_each_valid_entry(pos, policy->freq_table) in cpufreq_stats_create_table() 248 stats->freq_table[i++] = pos->frequency; in cpufreq_stats_create_table()
|
H A D | freq_table.c | 19 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() 111 if (!policy->freq_table) in cpufreq_generic_frequency_table_verify() 114 return cpufreq_frequency_table_verify(policy, policy->freq_table); in cpufreq_generic_frequency_table_verify() 131 struct cpufreq_frequency_table *table = policy->freq_table; in cpufreq_table_index_unsorted() 214 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in cpufreq_frequency_table_get_index() 237 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in show_available_freqs() 301 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in set_freq_table_sorted() 358 if (!policy->freq_table) { in cpufreq_table_validate_and_sort() 366 ret = cpufreq_frequency_table_cpuinfo(policy, policy->freq_table); in cpufreq_table_validate_and_sort()
|
H A D | omap-cpufreq.c | 37 static struct cpufreq_frequency_table *freq_table; variable 50 new_freq = freq_table[index].frequency; in omap_target() 108 dev_pm_opp_free_cpufreq_table(mpu_dev, &freq_table); in freq_table_free() 119 if (!freq_table) { in omap_cpu_init() 120 result = dev_pm_opp_init_cpufreq_table(mpu_dev, &freq_table); in omap_cpu_init() 133 cpufreq_generic_init(policy, freq_table, 300 * 1000); in omap_cpu_init()
|
H A D | acpi-cpufreq.c | 211 return policy->freq_table[i].frequency; in extract_io() 234 return policy->freq_table[0].frequency; in extract_msr() 381 if (unlikely(!data || !policy->freq_table)) in get_cur_freq_on_cpu() 453 policy->freq_table[index].frequency)) { in acpi_cpufreq_target() 482 entry = &policy->freq_table[index]; in acpi_cpufreq_fast_switch() 793 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init() 795 if (!freq_table) { in acpi_cpufreq_cpu_init() 822 freq_table[valid_states].driver_data = i; in acpi_cpufreq_cpu_init() 823 freq_table[valid_states].frequency = in acpi_cpufreq_cpu_init() 850 policy->freq_table = freq_table; in acpi_cpufreq_cpu_init() [all …]
|
H A D | davinci-cpufreq.c | 43 new_freq = pdata->freq_table[idx].frequency; in davinci_target() 73 struct cpufreq_frequency_table *freq_table = pdata->freq_table; in davinci_cpu_init() local 93 cpufreq_generic_init(policy, freq_table, 2000 * 1000); in davinci_cpu_init() 114 if (!pdata->freq_table) in davinci_cpufreq_probe()
|
H A D | pxa2xx-cpufreq.c | 147 static void find_freq_tables(struct cpufreq_frequency_table **freq_table, in find_freq_tables() argument 153 *freq_table = pxa255_run_freq_table; in find_freq_tables() 156 *freq_table = pxa255_turbo_freq_table; in find_freq_tables() 160 *freq_table = pxa27x_freq_table; in find_freq_tables() 277 policy->freq_table = pxa255_freq_table; in pxa_cpufreq_init() 280 policy->freq_table = pxa27x_freq_table; in pxa_cpufreq_init()
|
H A D | armada-8k-cpufreq.c | 39 struct freq_table { struct 73 struct freq_table *freq_tables, in armada_8k_add_opp() 102 static void armada_8k_cpufreq_free_table(struct freq_table *freq_tables) in armada_8k_cpufreq_free_table() 133 struct freq_table *freq_tables; in armada_8k_cpufreq_init() 208 struct freq_table *freq_tables = platform_get_drvdata(armada_8k_pdev); in armada_8k_cpufreq_exit()
|
H A D | imx6q-cpufreq.c | 51 static struct cpufreq_frequency_table *freq_table; variable 66 new_freq = freq_table[index].frequency; in imx6q_set_target() 193 cpufreq_generic_init(policy, freq_table, transition_latency); in imx6q_cpufreq_init() 412 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in imx6q_cpufreq_probe() 443 if (freq_table[j].frequency == freq) { in imx6q_cpufreq_probe() 456 if (freq_table[num - 1].frequency * 1000 == FREQ_1P2_GHZ) in imx6q_cpufreq_probe() 481 max_freq = freq_table[--num].frequency; in imx6q_cpufreq_probe() 483 freq_table[0].frequency * 1000, true); in imx6q_cpufreq_probe() 504 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); in imx6q_cpufreq_probe() 525 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); in imx6q_cpufreq_remove()
|
H A D | cpufreq-dt.c | 32 struct cpufreq_frequency_table *freq_table; member 60 unsigned long freq = policy->freq_table[index].frequency; in set_target() 132 policy->freq_table = priv->freq_table; in cpufreq_init() 283 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &priv->freq_table); in dt_cpufreq_early_init() 306 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &priv->freq_table); in dt_cpufreq_release()
|
H A D | scmi-cpufreq.c | 56 u64 freq = policy->freq_table[index].frequency; in scmi_cpufreq_set_target() 133 struct cpufreq_frequency_table *freq_table; in scmi_cpufreq_init() local 205 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in scmi_cpufreq_init() 215 policy->freq_table = freq_table; in scmi_cpufreq_init() 247 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table); in scmi_cpufreq_exit()
|
/openbmc/linux/drivers/opp/ |
H A D | cpu.c | 47 struct cpufreq_frequency_table *freq_table = NULL; in dev_pm_opp_init_cpufreq_table() local 55 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_KERNEL); in dev_pm_opp_init_cpufreq_table() 56 if (!freq_table) in dev_pm_opp_init_cpufreq_table() 66 freq_table[i].driver_data = i; in dev_pm_opp_init_cpufreq_table() 67 freq_table[i].frequency = rate / 1000; in dev_pm_opp_init_cpufreq_table() 71 freq_table[i].flags = CPUFREQ_BOOST_FREQ; in dev_pm_opp_init_cpufreq_table() 76 freq_table[i].driver_data = i; in dev_pm_opp_init_cpufreq_table() 77 freq_table[i].frequency = CPUFREQ_TABLE_END; in dev_pm_opp_init_cpufreq_table() 79 *opp_table = &freq_table[0]; in dev_pm_opp_init_cpufreq_table() 83 kfree(freq_table); in dev_pm_opp_init_cpufreq_table()
|
/openbmc/linux/drivers/sh/clk/ |
H A D | cpg.c | 112 return clk_rate_table_round(clk, clk->freq_table, rate); in sh_clk_div_round_rate() 120 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div_recalc() 125 return clk->freq_table[idx].frequency; in sh_clk_div_recalc() 134 idx = clk_rate_table_find(clk, clk->freq_table, rate); in sh_clk_div_set_rate() 230 void *freq_table; in sh_clk_div_register_ops() local 237 freq_table = kcalloc(nr, freq_table_size, GFP_KERNEL); in sh_clk_div_register_ops() 238 if (!freq_table) { in sh_clk_div_register_ops() 249 clkp->freq_table = freq_table + (k * freq_table_size); in sh_clk_div_register_ops() 250 clkp->freq_table[nr_divs].frequency = CPUFREQ_TABLE_END; in sh_clk_div_register_ops() 306 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div6_set_parent() [all …]
|
H A D | core.c | 40 struct cpufreq_frequency_table *freq_table, in clk_rate_table_build() argument 66 freq_table[i].driver_data = i; in clk_rate_table_build() 67 freq_table[i].frequency = freq; in clk_rate_table_build() 71 freq_table[i].driver_data = 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 …]
|
/openbmc/linux/sound/firewire/fireworks/ |
H A D | fireworks_pcm.c | 30 static const unsigned int freq_table[] = { variable 53 for (i = 0; i < ARRAY_SIZE(freq_table); i++) { in snd_efw_get_multiplier_mode() 54 if (freq_table[i] == sampling_rate) { in snd_efw_get_multiplier_mode() 76 for (i = 0; i < ARRAY_SIZE(freq_table); i++) { in hw_rule_rate() 81 t.min = min(t.min, freq_table[i]); in hw_rule_rate() 82 t.max = max(t.max, freq_table[i]); in hw_rule_rate() 101 for (i = 0; i < ARRAY_SIZE(freq_table); i++) { in hw_rule_channels() 103 if (!snd_interval_test(r, freq_table[i])) in hw_rule_channels() 121 for (i = 0; i < ARRAY_SIZE(freq_table); i++) { in limit_channels()
|
/openbmc/linux/drivers/thermal/ |
H A D | devfreq_cooling.c | 55 u32 *freq_table; member 105 freq = dfc->freq_table[state]; in devfreq_cooling_set_cur_state() 325 dfc->freq_table = kcalloc(num_opps, sizeof(*dfc->freq_table), in devfreq_cooling_gen_tables() 327 if (!dfc->freq_table) in devfreq_cooling_gen_tables() 335 kfree(dfc->freq_table); in devfreq_cooling_gen_tables() 340 dfc->freq_table[i] = freq; in devfreq_cooling_gen_tables() 444 kfree(dfc->freq_table); in of_devfreq_cooling_register_power() 541 kfree(dfc->freq_table); in devfreq_cooling_unregister()
|
/openbmc/linux/Documentation/translations/zh_CN/cpu-freq/ |
H A D | core.rst | 98 r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); 100 policy->freq_table = freq_table;
|
/openbmc/linux/Documentation/translations/zh_TW/cpu-freq/ |
H A D | core.rst | 96 r = dev_pm_opp_init_cpufreq_table(dev, &freq_table); 98 policy->freq_table = freq_table;
|