Home
last modified time | relevance | path

Searched refs:freq_table (Results 1 – 25 of 87) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/cpufreq/
Dsfi-cpufreq.c19 static struct cpufreq_frequency_table *freq_table; variable
52 next_perf_state = policy->freq_table[index].driver_data; in sfi_cpufreq_target()
67 policy->freq_table = freq_table; in sfi_cpufreq_cpu_init()
90 freq_table = kcalloc(num_freq_table_entries + 1, sizeof(*freq_table), in sfi_cpufreq_init()
92 if (!freq_table) { in sfi_cpufreq_init()
98 freq_table[i].driver_data = i; in sfi_cpufreq_init()
99 freq_table[i].frequency = sfi_cpufreq_array[i].freq_mhz * 1000; in sfi_cpufreq_init()
101 freq_table[i].frequency = CPUFREQ_TABLE_END; in sfi_cpufreq_init()
110 kfree(freq_table); in sfi_cpufreq_init()
120 kfree(freq_table); in sfi_cpufreq_exit()
Dqoriq-cpufreq.c105 static void freq_table_redup(struct cpufreq_frequency_table *freq_table, in freq_table_redup() argument
112 if (freq_table[j].frequency == CPUFREQ_ENTRY_INVALID || in freq_table_redup()
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()
124 static void freq_table_sort(struct cpufreq_frequency_table *freq_table, in freq_table_sort() argument
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()
[all …]
Dsh-cpufreq.c93 struct cpufreq_frequency_table *freq_table; in sh_cpufreq_verify() local
95 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_verify()
96 if (freq_table) in sh_cpufreq_verify()
97 return cpufreq_frequency_table_verify(policy, freq_table); in sh_cpufreq_verify()
112 struct cpufreq_frequency_table *freq_table; in sh_cpufreq_cpu_init() local
123 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_cpu_init()
124 if (freq_table) { in sh_cpufreq_cpu_init()
125 policy->freq_table = freq_table; in sh_cpufreq_cpu_init()
Dbmips-cpufreq.c108 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()
Dvexpress-spc-cpufreq.c52 static struct cpufreq_frequency_table *freq_table[MAX_CLUSTERS + 1]; variable
189 freqs_new = freq_table[cur_cluster][index].frequency; in ve_spc_cpufreq_set_target()
256 count += get_table_count(freq_table[i]); in merge_cluster_tables()
262 freq_table[MAX_CLUSTERS] = table; in merge_cluster_tables()
266 for (j = 0; freq_table[i][j].frequency != CPUFREQ_TABLE_END; in merge_cluster_tables()
269 search_frequency(table, count, freq_table[i][j].frequency)) in merge_cluster_tables()
272 VIRT_FREQ(i, freq_table[i][j].frequency); in merge_cluster_tables()
287 if (!freq_table[cluster]) in _put_cluster_clk_and_freq_table()
291 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table[cluster]); in _put_cluster_clk_and_freq_table()
316 kfree(freq_table[cluster]); in put_cluster_clk_and_freq_table()
[all …]
Dtegra194-cpufreq.c206 policy->freq_table = data->tables[cl]; in tegra194_cpufreq_init()
223 struct cpufreq_frequency_table *tbl = policy->freq_table + index; in tegra194_cpufreq_set_target()
255 struct cpufreq_frequency_table *freq_table; in init_freq_table() local
298 freq_table = devm_kcalloc(&pdev->dev, num_freqs + 1, in init_freq_table()
299 sizeof(*freq_table), GFP_KERNEL); in init_freq_table()
300 if (!freq_table) in init_freq_table()
306 freq_table[index].driver_data = ndiv; in init_freq_table()
307 freq_table[index].frequency = map_ndiv_to_freq(&resp, ndiv); in init_freq_table()
310 freq_table[index].driver_data = resp.ndiv_max; in init_freq_table()
311 freq_table[index++].frequency = map_ndiv_to_freq(&resp, resp.ndiv_max); in init_freq_table()
[all …]
Dscpi-cpufreq.c50 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()
171 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); in scpi_cpufreq_init()
185 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table); in scpi_cpufreq_exit()
Dacpi-cpufreq.c205 return policy->freq_table[i].frequency; in extract_io()
225 cpufreq_for_each_entry(pos, policy->freq_table) in extract_msr()
228 return policy->freq_table[0].frequency; in extract_msr()
375 if (unlikely(!data || !policy->freq_table)) in get_cur_freq_on_cpu()
378 cached_freq = policy->freq_table[to_perf_data(data)->state].frequency; in get_cur_freq_on_cpu()
423 next_perf_state = policy->freq_table[index].driver_data; in acpi_cpufreq_target()
447 policy->freq_table[index].frequency)) { in acpi_cpufreq_target()
475 entry = &policy->freq_table[index]; in acpi_cpufreq_fast_switch()
670 struct cpufreq_frequency_table *freq_table; in acpi_cpufreq_cpu_init() local
791 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init()
[all …]
Dia64-acpi-cpufreq.c209 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()
Dcpufreq_stats.c22 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()
Dfreq_table.c19 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()
Domap-cpufreq.c37 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()
Ddavinci-cpufreq.c43 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()
Ds3c2416-cpufreq.c34 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()
Dpxa2xx-cpufreq.c151 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()
Darmada-8k-cpufreq.c32 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()
Dscmi-cpufreq.c54 u64 freq = policy->freq_table[index].frequency; in scmi_cpufreq_set_target()
127 struct cpufreq_frequency_table *freq_table; in scmi_cpufreq_init() local
168 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in scmi_cpufreq_init()
178 policy->freq_table = freq_table; in scmi_cpufreq_init()
208 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table); in scmi_cpufreq_exit()
Dimx6q-cpufreq.c51 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()
Dcpufreq-dt.c60 unsigned long freq = policy->freq_table[index].frequency; in set_target()
105 struct cpufreq_frequency_table *freq_table; in cpufreq_init() local
152 ret = dev_pm_opp_init_cpufreq_table(cpu_dev, &freq_table); in cpufreq_init()
160 policy->freq_table = freq_table; in cpufreq_init()
185 dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); in cpufreq_init()
213 dev_pm_opp_free_cpufreq_table(priv->cpu_dev, &policy->freq_table); in cpufreq_exit()
/kernel/linux/linux-5.10/drivers/opp/
Dcpu.c47 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()
/kernel/linux/linux-5.10/drivers/thermal/
Ddevfreq_cooling.c60 u32 *freq_table; member
104 freq = dfc->freq_table[state]; in devfreq_cooling_set_cur_state()
128 if (dfc->freq_table[i] == freq) in freq_get_state()
301 freq = dfc->freq_table[state]; in devfreq_cooling_state2power()
381 u32 *freq_table; in devfreq_cooling_gen_tables() local
393 freq_table = kcalloc(num_opps, sizeof(*freq_table), in devfreq_cooling_gen_tables()
395 if (!freq_table) { in devfreq_cooling_gen_tables()
425 freq_table[i] = freq; in devfreq_cooling_gen_tables()
431 dfc->freq_table = freq_table; in devfreq_cooling_gen_tables()
437 kfree(freq_table); in devfreq_cooling_gen_tables()
[all …]
/kernel/linux/linux-5.10/drivers/sh/clk/
Dcpg.c112 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 …]
Dcore.c40 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 …]
/kernel/linux/linux-5.10/sound/firewire/fireworks/
Dfireworks_pcm.c30 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()
/kernel/linux/linux-5.10/drivers/devfreq/
Dgovernor_passive.c50 if (!devfreq->profile || !devfreq->profile->freq_table in devfreq_passive_get_target_freq()
72 if (parent_devfreq->profile->freq_table[i] == *freq) in devfreq_passive_get_target_freq()
82 child_freq = devfreq->profile->freq_table[i]; in devfreq_passive_get_target_freq()
85 child_freq = devfreq->profile->freq_table[count - 1]; in devfreq_passive_get_target_freq()
112 if (devfreq->profile->freq_table in update_devfreq_passive()

1234