Home
last modified time | relevance | path

Searched refs:base_freq (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/arch/x86/kernel/cpu/
Daperfmperf.c109 static bool __init slv_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq) in slv_set_max_freq_ratio() argument
113 err = rdmsrl_safe(MSR_ATOM_CORE_RATIOS, base_freq); in slv_set_max_freq_ratio()
121 *base_freq = (*base_freq >> 16) & 0x3F; /* max P state */ in slv_set_max_freq_ratio()
149 static bool __init knl_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq, in knl_set_max_freq_ratio() argument
156 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in knl_set_max_freq_ratio()
160 *base_freq = (*base_freq >> 8) & 0xFF; /* max P state */ in knl_set_max_freq_ratio()
188 static bool __init skx_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq, int size) in skx_set_max_freq_ratio() argument
194 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq); in skx_set_max_freq_ratio()
198 *base_freq = (*base_freq >> 8) & 0xFF; /* max P state */ in skx_set_max_freq_ratio()
219 static bool __init core_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq) in core_set_max_freq_ratio() argument
[all …]
/linux-6.1.9/arch/loongarch/include/asm/
Dtime.h20 unsigned int base_freq; in calc_const_freq() local
27 base_freq = read_cpucfg(LOONGARCH_CPUCFG4); in calc_const_freq()
32 if (!base_freq || !cfm || !cfd) in calc_const_freq()
35 return (base_freq * cfm / cfd); in calc_const_freq()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dintel_gt_clock_utils.c15 u32 base_freq, frac_freq; in read_reference_ts_freq() local
17 base_freq = ((ts_override & GEN9_TIMESTAMP_OVERRIDE_US_COUNTER_DIVIDER_MASK) >> in read_reference_ts_freq()
19 base_freq *= 1000000; in read_reference_ts_freq()
26 return base_freq + frac_freq; in read_reference_ts_freq()
/linux-6.1.9/drivers/iio/accel/
Dsca3000.c574 int *base_freq) in __sca3000_get_base_freq() argument
583 *base_freq = info->measurement_mode_freq; in __sca3000_get_base_freq()
586 *base_freq = info->option_mode_1_freq; in __sca3000_get_base_freq()
589 *base_freq = info->option_mode_2_freq; in __sca3000_get_base_freq()
641 int ret, base_freq, ctrlval; in sca3000_write_raw_samp_freq() local
643 ret = __sca3000_get_base_freq(st, st->info, &base_freq); in sca3000_write_raw_samp_freq()
653 if (val == base_freq / 2) in sca3000_write_raw_samp_freq()
655 if (val == base_freq / 4) in sca3000_write_raw_samp_freq()
657 else if (val != base_freq) in sca3000_write_raw_samp_freq()
/linux-6.1.9/drivers/media/dvb-frontends/
Dstv0297.c27 unsigned long base_freq; member
598 state->base_freq = p->frequency; in stv0297_set_frontend()
615 p->frequency = state->base_freq; in stv0297_get_frontend()
665 state->base_freq = 0; in stv0297_attach()
/linux-6.1.9/drivers/devfreq/
Dsun8i-a33-mbus.c336 unsigned long base_freq; in sun8i_a33_mbus_probe() local
413 base_freq = clk_get_rate(clk_get_parent(priv->clk_dram)); in sun8i_a33_mbus_probe()
417 priv->freq_table[i] = base_freq / div; in sun8i_a33_mbus_probe()
/linux-6.1.9/tools/power/x86/intel-speed-select/
Disst-config.c1497 int base_freq, scaling_max_freq; in adjust_scaling_max_from_base_freq() local
1500 base_freq = get_cpufreq_base_freq(cpu); in adjust_scaling_max_from_base_freq()
1501 if (scaling_max_freq < base_freq || no_turbo()) in adjust_scaling_max_from_base_freq()
1502 set_cpufreq_scaling_min_max(cpu, 1, base_freq); in adjust_scaling_max_from_base_freq()
1507 int base_freq, scaling_min_freq; in adjust_scaling_min_from_base_freq() local
1510 base_freq = get_cpufreq_base_freq(cpu); in adjust_scaling_min_from_base_freq()
1511 if (scaling_min_freq < base_freq) in adjust_scaling_min_from_base_freq()
1512 set_cpufreq_scaling_min_max(cpu, 0, base_freq); in adjust_scaling_min_from_base_freq()
2345 int base_freq; in set_turbo_mode_for_cpu() local
2348 base_freq = get_cpufreq_base_freq(id->cpu); in set_turbo_mode_for_cpu()
[all …]
/linux-6.1.9/sound/soc/codecs/
Dadau1977.c778 static bool adau1977_check_sysclk(unsigned int mclk, unsigned int base_freq) in adau1977_check_sysclk() argument
782 if (mclk % (base_freq * 128) != 0) in adau1977_check_sysclk()
785 mcs = mclk / (128 * base_freq); in adau1977_check_sysclk()
/linux-6.1.9/sound/synth/emux/
Dsoundfont.c1031 zone->v.rate_offset = calc_rate_offset(patch.base_freq); in load_guspatch()
1042 (int)patch.base_freq, zone->v.rate_offset, in load_guspatch()
/linux-6.1.9/include/uapi/linux/
Dsoundcard.h265 unsigned int base_freq; member