/linux/drivers/cpufreq/ |
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 …]
|
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()
|
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()
|
A D | vexpress-spc-cpufreq.c | 187 freqs_new = freq_table[cur_cluster][index].frequency; in ve_spc_cpufreq_set_target() 254 count += get_table_count(freq_table[i]); in merge_cluster_tables() 260 freq_table[MAX_CLUSTERS] = table; in merge_cluster_tables() 264 for (j = 0; freq_table[i][j].frequency != CPUFREQ_TABLE_END; in merge_cluster_tables() 270 VIRT_FREQ(i, freq_table[i][j].frequency); in merge_cluster_tables() 285 if (!freq_table[cluster]) in _put_cluster_clk_and_freq_table() 314 kfree(freq_table[cluster]); in put_cluster_clk_and_freq_table() 323 if (freq_table[cluster]) in _get_cluster_clk_and_freq_table() 389 clk_big_min = get_table_min(freq_table[A15_CLUSTER]); in get_cluster_clk_and_freq_table() 391 get_table_max(freq_table[A7_CLUSTER])); in get_cluster_clk_and_freq_table() [all …]
|
A D | tegra194-cpufreq.c | 252 policy->freq_table = data->tables[cl]; in tegra194_cpufreq_init() 261 struct cpufreq_frequency_table *tbl = policy->freq_table + index; in tegra194_cpufreq_set_target() 292 struct cpufreq_frequency_table *freq_table; in init_freq_table() local 341 freq_table = devm_kcalloc(&pdev->dev, num_freqs + 1, in init_freq_table() 342 sizeof(*freq_table), GFP_KERNEL); in init_freq_table() 343 if (!freq_table) in init_freq_table() 349 freq_table[index].driver_data = ndiv; in init_freq_table() 350 freq_table[index].frequency = map_ndiv_to_freq(&resp, ndiv); in init_freq_table() 353 freq_table[index].driver_data = resp.ndiv_max; in init_freq_table() 355 freq_table[index].frequency = CPUFREQ_TABLE_END; in init_freq_table() [all …]
|
A D | acpi-cpufreq.c | 205 return policy->freq_table[i].frequency; in extract_io() 228 return policy->freq_table[0].frequency; in extract_msr() 375 if (unlikely(!data || !policy->freq_table)) in get_cur_freq_on_cpu() 447 policy->freq_table[index].frequency)) { in acpi_cpufreq_target() 476 entry = &policy->freq_table[index]; in acpi_cpufreq_fast_switch() 796 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init() 798 if (!freq_table) { in acpi_cpufreq_cpu_init() 825 freq_table[valid_states].driver_data = i; in acpi_cpufreq_cpu_init() 826 freq_table[valid_states].frequency = in acpi_cpufreq_cpu_init() 853 policy->freq_table = freq_table; in acpi_cpufreq_cpu_init() [all …]
|
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() 137 stats->freq_table[i]); in show_trans_table() 149 stats->freq_table[i]); in show_trans_table() 191 if (stats->freq_table[index] == freq) in freq_table_get_index() 240 stats->freq_table = (unsigned int *)(stats->time_in_state + count); in cpufreq_stats_create_table() 242 stats->trans_table = stats->freq_table + count; in cpufreq_stats_create_table() 247 cpufreq_for_each_valid_entry(pos, policy->freq_table) in cpufreq_stats_create_table() 249 stats->freq_table[i++] = pos->frequency; in cpufreq_stats_create_table()
|
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() 361 ret = cpufreq_frequency_table_cpuinfo(policy, policy->freq_table); in cpufreq_table_validate_and_sort()
|
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()
|
A D | scpi-cpufreq.c | 50 u64 rate = policy->freq_table[index].frequency * 1000; in scpi_cpufreq_set_target() 97 struct cpufreq_frequency_table *freq_table; in scpi_cpufreq_init() local 137 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in scpi_cpufreq_init() 153 policy->freq_table = freq_table; in scpi_cpufreq_init() 169 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); in scpi_cpufreq_init() 183 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table); in scpi_cpufreq_exit()
|
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()
|
A D | s3c2416-cpufreq.c | 34 struct cpufreq_frequency_table *freq_table; member 225 idx = s3c_freq->freq_table[index].driver_data; in s3c2416_cpufreq_set_target() 243 : s3c_freq->freq_table[index].frequency; in s3c2416_cpufreq_set_target() 278 cpufreq_for_each_valid_entry(pos, s3c_freq->freq_table) { in s3c2416_cpufreq_cfg_regulator() 370 s3c_freq->freq_table = s3c2416_freq_table; in s3c2416_cpufreq_driver_init() 375 s3c_freq->freq_table = s3c2450_freq_table; in s3c2416_cpufreq_driver_init() 382 if (s3c_freq->freq_table == NULL) { in s3c2416_cpufreq_driver_init() 434 cpufreq_for_each_entry(pos, s3c_freq->freq_table) { in s3c2416_cpufreq_driver_init() 460 cpufreq_generic_init(policy, s3c_freq->freq_table, in s3c2416_cpufreq_driver_init()
|
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()
|
A D | pxa2xx-cpufreq.c | 151 static void find_freq_tables(struct cpufreq_frequency_table **freq_table, in find_freq_tables() argument 157 *freq_table = pxa255_run_freq_table; in find_freq_tables() 160 *freq_table = pxa255_turbo_freq_table; in find_freq_tables() 164 *freq_table = pxa27x_freq_table; in find_freq_tables() 281 policy->freq_table = pxa255_freq_table; in pxa_cpufreq_init() 284 policy->freq_table = pxa27x_freq_table; in pxa_cpufreq_init()
|
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()
|
A D | armada-8k-cpufreq.c | 32 struct freq_table { struct 66 struct freq_table *freq_tables, in armada_8k_add_opp() 95 static void armada_8k_cpufreq_free_table(struct freq_table *freq_tables) in armada_8k_cpufreq_free_table() 126 struct freq_table *freq_tables; in armada_8k_cpufreq_init() 200 struct freq_table *freq_tables = platform_get_drvdata(armada_8k_pdev); in armada_8k_cpufreq_exit()
|
A D | scmi-cpufreq.c | 55 u64 freq = policy->freq_table[index].frequency; in scmi_cpufreq_set_target() 127 struct cpufreq_frequency_table *freq_table; in scmi_cpufreq_init() local 199 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in scmi_cpufreq_init() 209 policy->freq_table = freq_table; in scmi_cpufreq_init() 241 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table); in scmi_cpufreq_exit()
|
A D | cpufreq-dt.c | 33 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() 286 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &priv->freq_table); in dt_cpufreq_early_init() 309 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &priv->freq_table); in dt_cpufreq_release()
|
A D | mediatek-cpufreq.c | 205 struct cpufreq_frequency_table *freq_table = policy->freq_table; in mtk_cpufreq_set_target() local 223 freq_hz = freq_table[index].frequency * 1000; in mtk_cpufreq_set_target() 429 struct cpufreq_frequency_table *freq_table; in mtk_cpufreq_init() local 439 ret = dev_pm_opp_init_cpufreq_table(info->cpu_dev, &freq_table); in mtk_cpufreq_init() 447 policy->freq_table = freq_table; in mtk_cpufreq_init() 458 dev_pm_opp_free_cpufreq_table(info->cpu_dev, &policy->freq_table); in mtk_cpufreq_exit()
|
/linux/drivers/opp/ |
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 *table = &freq_table[0]; in dev_pm_opp_init_cpufreq_table() 83 kfree(freq_table); in dev_pm_opp_init_cpufreq_table()
|
/linux/drivers/sh/clk/ |
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 …]
|
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 …]
|
/linux/drivers/thermal/ |
A D | devfreq_cooling.c | 53 u32 *freq_table; member 103 freq = dfc->freq_table[state]; in devfreq_cooling_set_cur_state() 318 dfc->freq_table = kcalloc(num_opps, sizeof(*dfc->freq_table), in devfreq_cooling_gen_tables() 320 if (!dfc->freq_table) in devfreq_cooling_gen_tables() 328 kfree(dfc->freq_table); in devfreq_cooling_gen_tables() 333 dfc->freq_table[i] = freq; in devfreq_cooling_gen_tables() 429 kfree(dfc->freq_table); in of_devfreq_cooling_register_power() 526 kfree(dfc->freq_table); in devfreq_cooling_unregister()
|
/linux/sound/firewire/fireworks/ |
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()
|
/linux/drivers/devfreq/ |
A D | governor_passive.c | 48 if (!devfreq->profile || !devfreq->profile->freq_table in devfreq_passive_get_target_freq() 82 if (parent_devfreq->profile->freq_table[i] == *freq) in devfreq_passive_get_target_freq() 90 child_freq = devfreq->profile->freq_table[i]; in devfreq_passive_get_target_freq() 93 child_freq = devfreq->profile->freq_table[count - 1]; in devfreq_passive_get_target_freq()
|