/linux/drivers/media/dvb-frontends/ |
H A D | tda665x.c | 21 u32 frequency; member 57 static int tda665x_get_frequency(struct dvb_frontend *fe, u32 *frequency) in tda665x_get_frequency() argument 61 *frequency = state->frequency; in tda665x_get_frequency() 94 u32 frequency, status = 0; in tda665x_set_frequency() local 105 frequency = new_frequency; in tda665x_set_frequency() 107 frequency += config->frequency_offst; in tda665x_set_frequency() 108 frequency *= config->ref_multiplier; in tda665x_set_frequency() 109 frequency += config->ref_divider >> 1; in tda665x_set_frequency() 110 frequency /= config->ref_divider; in tda665x_set_frequency() 112 buf[0] = (u8) ((frequency & 0x7f00) >> 8); in tda665x_set_frequency() [all …]
|
H A D | ix2505v.c | 27 u32 frequency; member 122 u32 frequency = c->frequency; in ix2505v_set_params() local 129 if ((frequency < fe->ops.info.frequency_min_hz / kHz) in ix2505v_set_params() 130 || (frequency > fe->ops.info.frequency_max_hz / kHz)) in ix2505v_set_params() 147 div_factor = (frequency * ref) / 40; /* local osc = 4Mhz */ in ix2505v_set_params() 156 deb_info("Frq=%d x=%d N=%d A=%d\n", frequency, x, N, A); in ix2505v_set_params() 158 if (frequency <= 1065000) in ix2505v_set_params() 160 else if (frequency <= 1170000) in ix2505v_set_params() 162 else if (frequency <= 1300000) in ix2505v_set_params() 164 else if (frequency <= 1445000) in ix2505v_set_params() [all …]
|
H A D | tda8261.c | 23 u32 frequency; member 74 static int tda8261_get_frequency(struct dvb_frontend *fe, u32 *frequency) in tda8261_get_frequency() argument 78 *frequency = state->frequency; in tda8261_get_frequency() 88 u32 frequency, N, status = 0; in tda8261_set_params() local 97 frequency = c->frequency; in tda8261_set_params() 98 if ((frequency < 950000) || (frequency > 2150000)) { in tda8261_set_params() 100 __func__, frequency); in tda8261_set_params() 103 N = (frequency + (div_tab[config->step_size] - 1)) / div_tab[config->step_size]; in tda8261_set_params() 111 if (frequency < 1450000) in tda8261_set_params() 113 else if (frequency < 2000000) in tda8261_set_params() [all …]
|
H A D | horus3a.c | 29 u32 frequency; member 169 u32 frequency = p->frequency; in horus3a_set_params() local 180 __func__, frequency, symbol_rate); in horus3a_set_params() 187 frequency = DIV_ROUND_CLOSEST(frequency, 1000) * 1000; in horus3a_set_params() 188 if (frequency <= 1155000) { in horus3a_set_params() 196 ms = DIV_ROUND_CLOSEST((frequency * mixdiv) / 2, 1000); in horus3a_set_params() 199 frequency); in horus3a_set_params() 202 if (frequency < 975000) { in horus3a_set_params() 206 } else if (frequency < 1050000) { in horus3a_set_params() 210 } else if (frequency < 1150000) { in horus3a_set_params() [all …]
|
H A D | tdhd1.h | 35 div = (p->frequency + 36166666) / 166666; in alps_tdhd1_204a_tuner_set_params() 41 if (p->frequency >= 174000000 && p->frequency <= 230000000) in alps_tdhd1_204a_tuner_set_params() 43 else if (p->frequency >= 470000000 && p->frequency <= 823000000) in alps_tdhd1_204a_tuner_set_params() 45 else if (p->frequency > 823000000 && p->frequency <= 862000000) in alps_tdhd1_204a_tuner_set_params()
|
H A D | stb6100_cfg.h | 13 static int stb6100_get_frequency(struct dvb_frontend *fe, u32 *frequency) in stb6100_get_frequency() argument 20 err = tuner_ops->get_frequency(fe, frequency); in stb6100_get_frequency() 29 static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency) in stb6100_set_frequency() argument 37 c->frequency = frequency; in stb6100_set_frequency() 72 u32 freq = c->frequency; in stb6100_set_bandwidth() 76 c->frequency = 0; /* Don't adjust the frequency */ in stb6100_set_bandwidth() 80 c->frequency = freq; in stb6100_set_bandwidth()
|
H A D | tua6100.c | 30 u32 frequency; member 75 if (c->frequency < 2000000) in tua6100_set_params() 81 if (c->frequency < 1630000) in tua6100_set_params() 88 if (c->frequency >= 1525000) in tua6100_set_params() 94 if (c->frequency < 1455000) in tua6100_set_params() 96 else if (c->frequency < 1630000) in tua6100_set_params() 105 prediv = (c->frequency * _R_VAL) / (_ri / 1000); in tua6100_set_params() 110 priv->frequency = ((div * _P_VAL) * (_ri / 1000)) / _R_VAL; in tua6100_set_params() 140 static int tua6100_get_frequency(struct dvb_frontend *fe, u32 *frequency) in tua6100_get_frequency() argument 143 *frequency = priv->frequency; in tua6100_get_frequency()
|
H A D | stb6100_proc.h | 11 static int stb6100_get_freq(struct dvb_frontend *fe, u32 *frequency) in stb6100_get_freq() argument 21 err = tuner_ops->get_frequency(fe, frequency); in stb6100_get_freq() 34 static int stb6100_set_freq(struct dvb_frontend *fe, u32 frequency) in stb6100_set_freq() argument 42 c->frequency = frequency; in stb6100_set_freq() 92 u32 freq = c->frequency; in stb6100_set_bandw() 96 c->frequency = 0; /* Don't adjust the frequency */ in stb6100_set_bandw() 103 c->frequency = freq; in stb6100_set_bandw()
|
/linux/drivers/cpufreq/ |
H A D | freq_table.c | 41 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo() 82 freq = pos->frequency; in cpufreq_frequency_table_verify() 124 .frequency = 0, in cpufreq_table_index_unsorted() 128 .frequency = 0, in cpufreq_table_index_unsorted() 140 suboptimal.frequency = ~0; in cpufreq_table_index_unsorted() 144 optimal.frequency = ~0; in cpufreq_table_index_unsorted() 149 freq = pos->frequency; in cpufreq_table_index_unsorted() 160 if (freq >= optimal.frequency) { in cpufreq_table_index_unsorted() 161 optimal.frequency = freq; in cpufreq_table_index_unsorted() 165 if (freq <= suboptimal.frequency) { in cpufreq_table_index_unsorted() [all …]
|
H A D | s3c64xx-cpufreq.c | 59 new_freq = s3c64xx_freq_table[index].frequency; in s3c64xx_cpufreq_set_target() 131 freq->frequency); in s3c64xx_cpufreq_config_regulator() 132 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_config_regulator() 172 r = clk_round_rate(policy->clk, freq->frequency * 1000); in s3c64xx_cpufreq_driver_init() 174 if (r != freq->frequency) { in s3c64xx_cpufreq_driver_init() 176 freq->frequency); in s3c64xx_cpufreq_driver_init() 177 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_driver_init() 182 if (!vddarm && freq->frequency > clk_get_rate(policy->clk) / 1000) in s3c64xx_cpufreq_driver_init() 183 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_driver_init()
|
/linux/drivers/platform/x86/intel/uncore-frequency/ |
H A D | Makefile | 6 obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency.o 7 intel-uncore-frequency-y := uncore-frequency.o 8 obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL) += intel-uncore-frequency-common.o 9 intel-uncore-frequency-common-y := uncore-frequency-common.o 10 obj-$(CONFIG_INTEL_UNCORE_FREQ_CONTROL_TPMI) += intel-uncore-frequency-tpmi.o 11 intel-uncore-frequency-tpmi-y := uncore-frequency-tpmi.o
|
/linux/Documentation/cpu-freq/ |
H A D | cpu-drivers.rst | 62 frequency while changing CPU frequency. 64 .get - Returns current frequency of the CPU. 66 .bios_limit - Returns HW/BIOS max frequency limitations for the CPU. 106 |policy->cpuinfo.max_freq | the minimum and maximum frequency | 115 |policy->cur | The current operating frequency of | 135 frequency table helpers might be helpful. See the section 2 for more information 147 See section 2 for details on frequency table helpers. 149 You need to make sure that at least one valid frequency (or operating 157 Most cpufreq drivers or even most cpu frequency scaling algorithms 158 only allow the CPU frequency to be set to predefined fixed values. For [all …]
|
/linux/arch/arm/boot/dts/intel/axm/ |
H A D | axm5516-cpus.dtsi | 76 clock-frequency = <1400000000>; 84 clock-frequency = <1400000000>; 92 clock-frequency = <1400000000>; 100 clock-frequency = <1400000000>; 108 clock-frequency = <1400000000>; 116 clock-frequency = <1400000000>; 124 clock-frequency = <1400000000>; 132 clock-frequency = <1400000000>; 140 clock-frequency = <1400000000>; 148 clock-frequency = <1400000000>; [all …]
|
/linux/arch/arm/mach-sa1100/ |
H A D | generic.c | 48 { .frequency = 59000, /* 59.0 MHz */}, 49 { .frequency = 73700, /* 73.7 MHz */}, 50 { .frequency = 88500, /* 88.5 MHz */}, 51 { .frequency = 103200, /* 103.2 MHz */}, 52 { .frequency = 118000, /* 118.0 MHz */}, 53 { .frequency = 132700, /* 132.7 MHz */}, 54 { .frequency = 147500, /* 147.5 MHz */}, 55 { .frequency = 162200, /* 162.2 MHz */}, 56 { .frequency = 176900, /* 176.9 MHz */}, 57 { .frequency = 191700, /* 191.7 MHz */}, [all …]
|
/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | mxl111sf-tuner.c | 30 u32 frequency; member 300 ret = mxl1x1sf_tune_rf(fe, c->frequency, bw); in mxl111sf_tuner_set_params() 304 state->frequency = c->frequency; in mxl111sf_tuner_set_params() 383 static int mxl111sf_tuner_get_frequency(struct dvb_frontend *fe, u32 *frequency) in mxl111sf_tuner_get_frequency() argument 386 *frequency = state->frequency; in mxl111sf_tuner_get_frequency() 398 u32 *frequency) in mxl111sf_tuner_get_if_frequency() argument 402 *frequency = 0; in mxl111sf_tuner_get_if_frequency() 406 *frequency = 4000000; in mxl111sf_tuner_get_if_frequency() 409 *frequency = 4500000; in mxl111sf_tuner_get_if_frequency() 412 *frequency = 4570000; in mxl111sf_tuner_get_if_frequency() [all …]
|
/linux/drivers/devfreq/ |
H A D | Kconfig | 9 operating frequency based on the device driver's policy. 19 clock frequency of the device, which is also attached 21 responsibility to "interpret" the representative frequency and 37 Chooses frequency based on the recent load on the device. Works 46 Sets the frequency at the maximum available frequency. 47 This governor always returns UINT_MAX as frequency so that 48 the DEVFREQ framework returns the highest frequency available 54 Sets the frequency at the minimum available frequency. 55 This governor always returns 0 as frequency so that 56 the DEVFREQ framework returns the lowest frequency available [all …]
|
/linux/drivers/media/tuners/ |
H A D | tuner-simple.c | 117 u32 frequency; member 261 unsigned *frequency, u8 *config, u8 *cb) in simple_config_lookup() argument 267 if (*frequency > t_params->ranges[i].limit) in simple_config_lookup() 273 *frequency, t_params->ranges[i - 1].limit); in simple_config_lookup() 274 *frequency = t_params->ranges[--i].limit; in simple_config_lookup() 280 *frequency / 16, *frequency % 16 * 100 / 16, *frequency, in simple_config_lookup() 583 i = simple_config_lookup(fe, t_params, ¶ms->frequency, in simple_set_tv_freq() 586 div = params->frequency + IFPCoff + offset; in simple_set_tv_freq() 589 params->frequency / 16, params->frequency % 16 * 100 / 16, in simple_set_tv_freq() 673 unsigned int freq = params->frequency; in simple_set_radio_freq() [all …]
|
/linux/drivers/media/pci/bt8xx/ |
H A D | dvb-bt8xx.c | 153 div = (((c->frequency + 83333) * 3) / 500000) + IF_FREQUENCYx6; in thomson_dtt7579_tuner_calc_regs() 155 if (c->frequency < 542000000) in thomson_dtt7579_tuner_calc_regs() 157 else if (c->frequency < 771000000) in thomson_dtt7579_tuner_calc_regs() 162 if (c->frequency == 0) in thomson_dtt7579_tuner_calc_regs() 164 else if (c->frequency < 443250000) in thomson_dtt7579_tuner_calc_regs() 190 u32 freq = c->frequency; in cx24108_tuner_set_params() 275 div = (36000000 + c->frequency + 83333) / 166666; in microtune_mt7202dtf_tuner_set_params() 278 if (c->frequency < 175000000) in microtune_mt7202dtf_tuner_set_params() 280 else if (c->frequency < 390000000) in microtune_mt7202dtf_tuner_set_params() 282 else if (c->frequency < 470000000) in microtune_mt7202dtf_tuner_set_params() [all …]
|
/linux/drivers/clk/ |
H A D | clk-si570.c | 84 u64 frequency; member 158 data->frequency = fout; in si570_get_defaults() 195 static int si570_calc_divs(unsigned long frequency, struct clk_si570 *data, in si570_calc_divs() argument 206 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs() 210 fdco = (u64)frequency * (u64)hs_div * (u64)n1; in si570_calc_divs() 240 return data->frequency; in si570_recalc_rate() 260 if (div64_u64(abs(rate - data->frequency) * 10000LL, in si570_round_rate() 261 data->frequency) < 35) { in si570_round_rate() 263 div64_u64(data->frequency, 2), data->frequency); in si570_round_rate() 287 static int si570_set_frequency(struct clk_si570 *data, unsigned long frequency) in si570_set_frequency() argument [all …]
|
/linux/drivers/staging/sm750fb/ |
H A D | ddk750_chip.c | 56 static void set_chip_clock(unsigned int frequency) in set_chip_clock() argument 64 if (frequency) { in set_chip_clock() 78 sm750_calc_pll_value(frequency, &pll); in set_chip_clock() 85 static void set_memory_clock(unsigned int frequency) in set_memory_clock() argument 96 if (frequency) { in set_memory_clock() 101 if (frequency > MHz(336)) in set_memory_clock() 102 frequency = MHz(336); in set_memory_clock() 105 divisor = DIV_ROUND_CLOSEST(get_mxclk_freq(), frequency); in set_memory_clock() 137 static void set_master_clock(unsigned int frequency) in set_master_clock() argument 148 if (frequency) { in set_master_clock() [all …]
|
/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm11351.dtsi | 271 clock-frequency = <1000000>; 277 clock-frequency = <32768>; 283 clock-frequency = <32768>; 289 clock-frequency = <13000000>; 295 clock-frequency = <13000000>; 301 clock-frequency = <19500000>; 307 clock-frequency = <26000000>; 313 clock-frequency = <40000000>; 319 clock-frequency = <52000000>; 325 clock-frequency = <52000000>; [all …]
|
/linux/arch/arm/boot/dts/intel/socfpga/ |
H A D | socfpga_vt.dts | 27 clock-frequency = <10000000>; 45 clock-frequency = <7000000>; 49 clock-frequency = <7000000>; 53 clock-frequency = <7000000>; 57 clock-frequency = <7000000>; 61 clock-frequency = <7372800>; 65 clock-frequency = <7372800>;
|
/linux/arch/arm64/boot/dts/amd/ |
H A D | amd-seattle-clks.dtsi | 11 clock-frequency = <100000000>; 18 clock-frequency = <375000000>; 25 clock-frequency = <333000000>; 32 clock-frequency = <500000000>; 39 clock-frequency = <500000000>; 46 clock-frequency = <250000000>; 53 clock-frequency = <100000000>;
|
/linux/arch/arm/boot/dts/nuvoton/ |
H A D | nuvoton-npcm750-evb.dts | 76 spi-max-frequency = <5000000>; 137 spi-max-frequency = <5000000>; 198 clock-frequency = <100000>; 209 clock-frequency = <100000>; 220 clock-frequency = <100000>; 230 clock-frequency = <100000>; 235 clock-frequency = <100000>; 241 clock-frequency = <100000>; 251 clock-frequency = <100000>; 256 clock-frequency = <100000>; [all …]
|
/linux/arch/riscv/boot/dts/starfive/ |
H A D | jh7110-common.dtsi | 68 timebase-frequency = <4000000>; 72 clock-frequency = <74250000>; 76 clock-frequency = <125000000>; 80 clock-frequency = <50000000>; 84 clock-frequency = <125000000>; 88 clock-frequency = <50000000>; 92 clock-frequency = <297000000>; 96 clock-frequency = <12288000>; 100 clock-frequency = <192000>; 104 clock-frequency = <12288000>; [all …]
|