Home
last modified time | relevance | path

Searched refs:max_freq (Results 1 – 25 of 179) sorted by relevance

12345678

/openbmc/linux/arch/arm/mach-shmobile/
H A Dtimer.c18 u32 max_freq = 0; in shmobile_init_delay() local
24 max_freq = max(max_freq, freq); in shmobile_init_delay()
27 if (!max_freq) in shmobile_init_delay()
40 preset_lpj = max_freq / HZ; in shmobile_init_delay()
/openbmc/linux/drivers/cpufreq/
H A Damd-pstate.c591 max_freq = READ_ONCE(cpudata->max_freq); in amd_pstate_adjust_perf()
700 policy->cpuinfo.max_freq = cpudata->max_freq; in amd_pstate_set_boost()
839 if (min_freq < 0 || max_freq < 0 || min_freq > max_freq) { in amd_pstate_cpu_init()
853 policy->cpuinfo.max_freq = max_freq; in amd_pstate_cpu_init()
876 cpudata->max_freq = max_freq; in amd_pstate_cpu_init()
942 int max_freq; in show_amd_pstate_max_freq() local
946 if (max_freq < 0) in show_amd_pstate_max_freq()
947 return max_freq; in show_amd_pstate_max_freq()
1296 if (min_freq < 0 || max_freq < 0 || min_freq > max_freq) { in amd_pstate_epp_cpu_init()
1304 policy->cpuinfo.max_freq = max_freq; in amd_pstate_epp_cpu_init()
[all …]
H A Delanfreq.c32 static int max_freq; variable
155 if (!max_freq) in elanfreq_cpu_init()
156 max_freq = elanfreq_get_cpu_frequency(0); in elanfreq_cpu_init()
160 if (pos->frequency > max_freq) in elanfreq_cpu_init()
182 max_freq = simple_strtoul(str, &str, 0); in elanfreq_setup()
220 module_param(max_freq, int, 0444);
H A Dfreq_table.c37 unsigned int max_freq = 0; in cpufreq_frequency_table_cpuinfo() local
50 if (freq > max_freq) in cpufreq_frequency_table_cpuinfo()
51 max_freq = freq; in cpufreq_frequency_table_cpuinfo()
55 policy->max = max_freq; in cpufreq_frequency_table_cpuinfo()
60 if (policy->cpuinfo.max_freq < max_freq) in cpufreq_frequency_table_cpuinfo()
61 policy->max = policy->cpuinfo.max_freq = max_freq; in cpufreq_frequency_table_cpuinfo()
H A Dppc_cbe_cpufreq.c58 u32 max_freq; in cbe_cpufreq_cpu_init() local
87 max_freq = *max_freqp / 1000; in cbe_cpufreq_cpu_init()
89 pr_debug("max clock-frequency is at %u kHz\n", max_freq); in cbe_cpufreq_cpu_init()
94 pos->frequency = max_freq / pos->driver_data; in cbe_cpufreq_cpu_init()
H A Dpmac64-cpufreq.c344 unsigned long max_freq; in g5_neo2_cpufreq_init() local
436 max_freq = (*valp)/1000; in g5_neo2_cpufreq_init()
437 g5_cpu_freqs[0].frequency = max_freq; in g5_neo2_cpufreq_init()
438 g5_cpu_freqs[1].frequency = max_freq/2; in g5_neo2_cpufreq_init()
484 u64 max_freq, min_freq, ih, il; in g5_pm72_cpufreq_init() local
574 max_freq = (*valp)/1000; in g5_pm72_cpufreq_init()
592 min_freq = (max_freq * il) / ih; in g5_pm72_cpufreq_init()
595 if (min_freq >= max_freq || min_freq < 1000) { in g5_pm72_cpufreq_init()
600 g5_cpu_freqs[0].frequency = max_freq; in g5_pm72_cpufreq_init()
H A Dmaple-cpufreq.c161 unsigned long max_freq; in maple_cpufreq_init() local
212 max_freq = (*valp)/1000; in maple_cpufreq_init()
213 maple_cpu_freqs[0].frequency = max_freq; in maple_cpufreq_init()
214 maple_cpu_freqs[1].frequency = max_freq/2; in maple_cpufreq_init()
H A Dvexpress-spc-cpufreq.c74 u32 max_freq = 0, cpu_freq; in find_cluster_maxfreq() local
80 max_freq < cpu_freq) in find_cluster_maxfreq()
81 max_freq = cpu_freq; in find_cluster_maxfreq()
84 return max_freq; in find_cluster_maxfreq()
226 u32 max_freq = 0; in get_table_max() local
229 if (pos->frequency > max_freq) in get_table_max()
230 max_freq = pos->frequency; in get_table_max()
231 return max_freq; in get_table_max()
/openbmc/linux/tools/testing/selftests/intel_pstate/
H A Drun.sh92 max_freq=$(($_max_freq / 1000))
95 [ $EVALUATE_ONLY -eq 0 ] && for freq in `seq $max_freq -100 $min_freq`
102 [ $EVALUATE_ONLY -eq 0 ] && cpupower frequency-set -g powersave --max=${max_freq}MHz >& /dev/null
106 echo "The maximum frequency of the cpu is $max_freq MHz"
111 for freq in `seq $max_freq -100 $min_freq`
121 $((max_perf_pct * max_freq))
/openbmc/linux/drivers/macintosh/
H A Dwindfarm_cpufreq_clamp.c20 static unsigned int min_freq, max_freq; variable
31 freq = max_freq; in clamp_set()
77 max_freq = policy->cpuinfo.max_freq; in wf_cpufreq_clamp_init()
80 max_freq); in wf_cpufreq_clamp_init()
/openbmc/linux/drivers/clk/tegra/
H A Dcvb.c57 int speedo_value, unsigned long max_freq) in build_opp_table() argument
67 if (!entry->freq || (entry->freq > max_freq)) in build_opp_table()
106 unsigned long max_freq) in tegra_cvb_add_opp_table() argument
121 max_freq); in tegra_cvb_add_opp_table()
130 unsigned long max_freq) in tegra_cvb_remove_opp_table() argument
137 if (!entry->freq || (entry->freq > max_freq)) in tegra_cvb_remove_opp_table()
H A Dcvb.h55 unsigned long max_freq);
58 unsigned long max_freq);
/openbmc/linux/drivers/memory/
H A Djedec_ddr_data.c35 .max_freq = 200000000,
56 .max_freq = 266666666,
77 .max_freq = 400000000,
98 .max_freq = 533333333,
/openbmc/linux/drivers/clk/hisilicon/
H A Dclk-hi6220-stub.c97 unsigned int max_freq; in hi6220_acpu_round_freq() local
105 regmap_read(stub_clk->dfs_map, ACPU_DFS_FREQ_MAX, &max_freq); in hi6220_acpu_round_freq()
108 max_freq = min(max_freq, limit_freq); in hi6220_acpu_round_freq()
110 if (WARN_ON(freq > max_freq)) in hi6220_acpu_round_freq()
111 freq = max_freq; in hi6220_acpu_round_freq()
/openbmc/linux/drivers/spi/
H A Dspi-dw-pci.c31 u32 max_freq; member
47 dws->max_freq = MRST_SPI_CLK_BASE / (clk_cdiv + 1); in dw_spi_pci_mid_init()
79 .max_freq = 100000000,
119 dws->max_freq = desc->max_freq; in dw_spi_pci_probe()
/openbmc/u-boot/drivers/spi/
H A Drk_spi.c40 unsigned int max_freq; member
208 static int rockchip_spi_calc_modclk(ulong max_freq) in rockchip_spi_calc_modclk() argument
232 div = DIV_ROUND_UP(gpll_hz, max_freq * 4); in rockchip_spi_calc_modclk()
251 priv->max_freq = plat->frequency; in rockchip_spi_probe()
254 if (priv->max_freq > ROCKCHIP_SPI_MAX_RATE) in rockchip_spi_probe()
255 priv->max_freq = ROCKCHIP_SPI_MAX_RATE; in rockchip_spi_probe()
259 rockchip_spi_calc_modclk(priv->max_freq)); in rockchip_spi_probe()
420 if (speed > priv->max_freq) in rockchip_spi_set_speed()
421 speed = priv->max_freq; in rockchip_spi_set_speed()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dpll.c258 info->vco1.max_freq = nvbios_rd32(bios, data + 4); in nvbios_pll_parse()
260 info->vco2.max_freq = nvbios_rd32(bios, data + 12); in nvbios_pll_parse()
304 info->vco1.max_freq = nvbios_rd16(bios, data + 6) * 1000; in nvbios_pll_parse()
306 info->vco2.max_freq = nvbios_rd16(bios, data + 10) * 1000; in nvbios_pll_parse()
333 info->vco1.max_freq = nvbios_rd16(bios, data + 2) * 1000; in nvbios_pll_parse()
335 info->vco2.max_freq = nvbios_rd16(bios, data + 6) * 1000; in nvbios_pll_parse()
357 info->vco1.max_freq = nvbios_rd16(bios, data + 2) * 1000; in nvbios_pll_parse()
371 info->vco1.max_freq = nvbios_rd16(bios, data + 7) * 1000; in nvbios_pll_parse()
405 if (!info->vco1.max_freq) { in nvbios_pll_parse()
406 info->vco1.max_freq = nvbios_rd32(bios, bios->bmp_offset + 67); in nvbios_pll_parse()
[all …]
/openbmc/linux/drivers/thermal/ti-soc-thermal/
H A Ddra752-thermal-data.c153 .max_freq = DRA752_MPU_MAX_FREQ,
161 .max_freq = DRA752_GPU_MAX_FREQ,
169 .max_freq = DRA752_CORE_MAX_FREQ,
177 .max_freq = DRA752_DSPEVE_MAX_FREQ,
185 .max_freq = DRA752_IVA_MAX_FREQ,
H A Domap3-thermal-data.c42 .max_freq = 32768,
110 .max_freq = 32768,
/openbmc/linux/drivers/devfreq/
H A Ddevfreq.c107 max_freq = 0; in find_available_max_freq()
111 return max_freq; in find_available_max_freq()
124 unsigned long *max_freq) in devfreq_get_freq_range() argument
141 *max_freq = freq_table[0]; in devfreq_get_freq_range()
151 *max_freq = min(*max_freq, in devfreq_get_freq_range()
156 *max_freq = min(*max_freq, devfreq->scaling_max_freq); in devfreq_get_freq_range()
158 if (*min_freq > *max_freq) in devfreq_get_freq_range()
159 *min_freq = *max_freq; in devfreq_get_freq_range()
424 if (freq > max_freq) { in devfreq_update_target()
425 freq = max_freq; in devfreq_update_target()
[all …]
/openbmc/u-boot/arch/arm/mach-imx/
H A Dcpu.c188 __maybe_unused u32 max_freq; in print_cpuinfo() local
200 max_freq = get_cpu_speed_grade_hz(); in print_cpuinfo()
201 if (!max_freq || max_freq == mxc_get_clock(MXC_ARM_CLK)) { in print_cpuinfo()
204 printf(" %d MHz (running at %d MHz)\n", max_freq / 1000000, in print_cpuinfo()
/openbmc/u-boot/board/freescale/bsc9131rdb/
H A Dddr.c72 for (i = 0; fixed_ddr_parm_0[i].max_freq > 0; i++) { in fixed_sdram()
74 (ddr_freq_mhz <= fixed_ddr_parm_0[i].max_freq)) { in fixed_sdram()
81 if (fixed_ddr_parm_0[i].max_freq == 0) { in fixed_sdram()
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_slpc.c114 u32 step, max_freq, req_freq; in vary_max_freq() local
121 for (max_freq = slpc->rp0_freq; max_freq > slpc->min_freq; in vary_max_freq()
122 max_freq -= step) { in vary_max_freq()
123 err = slpc_set_max_freq(slpc, max_freq); in vary_max_freq()
130 if (req_freq > (max_freq + FREQUENCY_REQ_UNIT)) { in vary_max_freq()
132 max_freq + FREQUENCY_REQ_UNIT); in vary_max_freq()
/openbmc/linux/drivers/acpi/
H A Dprocessor_thermal.c89 unsigned long max_freq; in cpufreq_set_cur_state() local
116 max_freq = (policy->cpuinfo.max_freq * (100 - reduction_pctg(i) * 20)) / 100; in cpufreq_set_cur_state()
120 ret = freq_qos_update_request(&pr->thermal_req, max_freq); in cpufreq_set_cur_state()
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dthc63lvd1024.c59 unsigned int max_freq; in thc63_mode_valid() local
69 max_freq = 150000; in thc63_mode_valid()
72 max_freq = 135000; in thc63_mode_valid()
78 if (mode->clock > max_freq) in thc63_mode_valid()

12345678