/drivers/media/dvb-frontends/ |
D | tda665x.c | 33 u32 frequency; member 78 tstate->frequency = state->frequency; in tda665x_get_state() 120 u32 frequency, status = 0; in tda665x_set_state() local 126 frequency = tstate->frequency; in tda665x_set_state() 127 if ((frequency < config->frequency_max) || (frequency > config->frequency_min)) { in tda665x_set_state() 128 printk(KERN_ERR "%s: Frequency beyond limits, frequency=%d\n", __func__, frequency); in tda665x_set_state() 132 frequency += config->frequency_offst; in tda665x_set_state() 133 frequency *= config->ref_multiplier; in tda665x_set_state() 134 frequency += config->ref_divider >> 1; in tda665x_set_state() 135 frequency /= config->ref_divider; in tda665x_set_state() [all …]
|
D | ix2505v.c | 40 u32 frequency; member 136 u32 frequency = c->frequency; in ix2505v_set_params() local 143 if ((frequency < fe->ops.info.frequency_min) in ix2505v_set_params() 144 || (frequency > fe->ops.info.frequency_max)) in ix2505v_set_params() 161 div_factor = (frequency * ref) / 40; /* local osc = 4Mhz */ in ix2505v_set_params() 170 deb_info("Frq=%d x=%d N=%d A=%d\n", frequency, x, N, A); in ix2505v_set_params() 172 if (frequency <= 1065000) in ix2505v_set_params() 174 else if (frequency <= 1170000) in ix2505v_set_params() 176 else if (frequency <= 1300000) in ix2505v_set_params() 178 else if (frequency <= 1445000) in ix2505v_set_params() [all …]
|
D | tda8261.c | 35 u32 frequency; member 95 tstate->frequency = state->frequency; in tda8261_get_state() 115 u32 frequency, N, status = 0; in tda8261_set_state() local 125 frequency = tstate->frequency; in tda8261_set_state() 126 if ((frequency < 950000) || (frequency > 2150000)) { in tda8261_set_state() 127 pr_warn("%s: Frequency beyond limits, frequency=%d\n", __func__, frequency); in tda8261_set_state() 130 N = (frequency + (div_tab[config->step_size] - 1)) / div_tab[config->step_size]; in tda8261_set_state() 138 if (frequency < 1450000) in tda8261_set_state() 140 else if (frequency < 2000000) in tda8261_set_state() 142 else if (frequency < 2150000) in tda8261_set_state() [all …]
|
D | zl10036.c | 48 u32 frequency; member 184 static int zl10036_set_frequency(struct zl10036_state *state, u32 frequency) in zl10036_set_frequency() argument 189 div = (frequency + _FR/2) / _FR; in zl10036_set_frequency() 190 state->frequency = div * _FR; in zl10036_set_frequency() 192 foffset = frequency - state->frequency; in zl10036_set_frequency() 198 frequency, state->frequency, foffset, div); in zl10036_set_frequency() 313 u32 frequency = p->frequency; in zl10036_set_params() local 320 if ((frequency < fe->ops.info.frequency_min) in zl10036_set_params() 321 || (frequency > fe->ops.info.frequency_max)) in zl10036_set_params() 338 if (frequency < 950000) in zl10036_set_params() [all …]
|
D | tda8261_cfg.h | 20 static int tda8261_get_frequency(struct dvb_frontend *fe, u32 *frequency) in tda8261_get_frequency() argument 33 *frequency = t_state.frequency; in tda8261_get_frequency() 34 printk("%s: Frequency=%d\n", __func__, t_state.frequency); in tda8261_get_frequency() 39 static int tda8261_set_frequency(struct dvb_frontend *fe, u32 frequency) in tda8261_set_frequency() argument 46 t_state.frequency = frequency; in tda8261_set_frequency() 55 printk("%s: Frequency=%d\n", __func__, t_state.frequency); in tda8261_set_frequency()
|
D | tua6100.c | 42 u32 frequency; member 88 if (c->frequency < 2000000) in tua6100_set_params() 94 if (c->frequency < 1630000) in tua6100_set_params() 101 if (c->frequency >= 1525000) in tua6100_set_params() 107 if (c->frequency < 1455000) in tua6100_set_params() 109 else if (c->frequency < 1630000) in tua6100_set_params() 118 prediv = (c->frequency * _R) / (_ri / 1000); in tua6100_set_params() 123 priv->frequency = ((div * _P) * (_ri / 1000)) / _R; in tua6100_set_params() 153 static int tua6100_get_frequency(struct dvb_frontend *fe, u32 *frequency) in tua6100_get_frequency() argument 156 *frequency = priv->frequency; in tua6100_get_frequency()
|
D | tdhd1.h | 51 div = (p->frequency + 36166666) / 166666; in alps_tdhd1_204a_tuner_set_params() 57 if (p->frequency >= 174000000 && p->frequency <= 230000000) in alps_tdhd1_204a_tuner_set_params() 59 else if (p->frequency >= 470000000 && p->frequency <= 823000000) in alps_tdhd1_204a_tuner_set_params() 61 else if (p->frequency > 823000000 && p->frequency <= 862000000) in alps_tdhd1_204a_tuner_set_params()
|
D | dvb-pll.c | 40 u32 frequency; member 564 const u32 frequency) in dvb_pll_configure() argument 571 if (frequency && (frequency < desc->min || frequency > desc->max)) in dvb_pll_configure() 575 if (frequency > desc->entries[i].limit) in dvb_pll_configure() 582 frequency, i, desc->count); in dvb_pll_configure() 586 div = (frequency + desc->iffreq + in dvb_pll_configure() 646 u32 frequency = 0; in dvb_pll_set_params() local 651 result = dvb_pll_configure(fe, buf, c->frequency); in dvb_pll_set_params() 655 frequency = result; in dvb_pll_set_params() 663 priv->frequency = frequency; in dvb_pll_set_params() [all …]
|
D | stb6100_cfg.h | 22 static int stb6100_get_frequency(struct dvb_frontend *fe, u32 *frequency) in stb6100_get_frequency() argument 35 *frequency = t_state.frequency; in stb6100_get_frequency() 40 static int stb6100_set_frequency(struct dvb_frontend *fe, u32 frequency) in stb6100_set_frequency() argument 47 t_state.frequency = frequency; in stb6100_set_frequency()
|
/drivers/cpufreq/ |
D | freq_table.c | 30 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo() 67 freq = pos->frequency; in cpufreq_frequency_table_verify() 113 .frequency = 0, in cpufreq_frequency_table_target() 117 .frequency = 0, in cpufreq_frequency_table_target() 127 suboptimal.frequency = ~0; in cpufreq_frequency_table_target() 131 optimal.frequency = ~0; in cpufreq_frequency_table_target() 136 freq = pos->frequency; in cpufreq_frequency_table_target() 148 if (freq >= optimal.frequency) { in cpufreq_frequency_table_target() 149 optimal.frequency = freq; in cpufreq_frequency_table_target() 153 if (freq <= suboptimal.frequency) { in cpufreq_frequency_table_target() [all …]
|
D | at32ap-cpufreq.c | 34 new_freq = freq_table[index].frequency; in at32_set_target() 54 unsigned int frequency, rate, min_freq; in at32_cpufreq_driver_init() local 69 frequency = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; in at32_cpufreq_driver_init() 79 steps = fls(frequency / min_freq) + 1; in at32_cpufreq_driver_init() 88 rate = clk_round_rate(cpuclk, frequency * 1000) / 1000; in at32_cpufreq_driver_init() 90 if (rate != frequency) in at32_cpufreq_driver_init() 91 freq_table[i].frequency = CPUFREQ_ENTRY_INVALID; in at32_cpufreq_driver_init() 93 freq_table[i].frequency = frequency; in at32_cpufreq_driver_init() 95 frequency /= 2; in at32_cpufreq_driver_init() 99 freq_table[steps - 1].frequency = CPUFREQ_TABLE_END; in at32_cpufreq_driver_init()
|
D | tegra-cpufreq.c | 31 { .frequency = 216000 }, 32 { .frequency = 312000 }, 33 { .frequency = 456000 }, 34 { .frequency = 608000 }, 35 { .frequency = 760000 }, 36 { .frequency = 816000 }, 37 { .frequency = 912000 }, 38 { .frequency = 1000000 }, 39 { .frequency = CPUFREQ_TABLE_END }, 60 if ((freq_table[index].frequency == ifreq) || (policy->cur == ifreq)) in tegra_get_intermediate() [all …]
|
D | Kconfig | 28 tristate "CPU frequency translation statistics" 31 This driver exports CPU frequency statistics information through sysfs 40 bool "CPU frequency translation statistics details" 43 This will show detail CPU frequency translation table in sysfs file 61 the frequency statically to the highest frequency supported by 70 the frequency statically to the lowest frequency supported by 78 you to set the CPU frequency manually or when a userspace 88 you to get a full dynamic frequency capable system by simply 100 you to get a full dynamic frequency capable system by simply 111 you to get a full dynamic cpu frequency capable system by simply [all …]
|
D | ppc-corenet-cpufreq.c | 90 if (freq_table[j].frequency == CPUFREQ_ENTRY_INVALID || in freq_table_redup() 91 freq_table[j].frequency != in freq_table_redup() 92 freq_table[i].frequency) in freq_table_redup() 95 freq_table[i].frequency = CPUFREQ_ENTRY_INVALID; in freq_table_redup() 109 max_freq = freq_table[i].frequency; in freq_table_sort() 112 freq = freq_table[j].frequency; in freq_table_sort() 123 table.frequency = freq_table[i].frequency; in freq_table_sort() 125 freq_table[i].frequency = freq_table[ind].frequency; in freq_table_sort() 127 freq_table[ind].frequency = table.frequency; in freq_table_sort() 185 table[i].frequency = CPUFREQ_ENTRY_INVALID; in corenet_cpufreq_cpu_init() [all …]
|
D | Kconfig.powerpc | 2 tristate "CBE frequency scaling" 11 bool "CBE frequency scaling using PMI interface" 23 This adds support for frequency switching on Maple 970FX 27 tristate "CPU frequency scaling driver for Freescale E500MC SoCs" 33 the CPU's frequency dynamically. 39 This adds support for frequency switching on Apple PowerBooks, 47 This adds support for frequency switching on Apple iMac G5, 55 This adds the support for frequency switching on PA Semi 59 tristate "CPU frequency scaling for IBM POWERNV platform" 63 This adds support for CPU frequency switching on IBM POWERNV
|
D | s3c64xx-cpufreq.c | 64 new_freq = s3c64xx_freq_table[index].frequency; in s3c64xx_cpufreq_set_target() 136 freq->frequency); in s3c64xx_cpufreq_config_regulator() 137 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_config_regulator() 184 r = clk_round_rate(policy->clk, freq->frequency * 1000); in s3c64xx_cpufreq_driver_init() 186 if (r != freq->frequency) { in s3c64xx_cpufreq_driver_init() 188 freq->frequency); in s3c64xx_cpufreq_driver_init() 189 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_driver_init() 194 if (!vddarm && freq->frequency > clk_get_rate(policy->clk) / 1000) in s3c64xx_cpufreq_driver_init() 195 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_driver_init()
|
D | speedstep-centrino.c | 85 .frequency = (mhz) * 1000, \ 102 { .frequency = CPUFREQ_TABLE_END } 112 { .frequency = CPUFREQ_TABLE_END } 123 { .frequency = CPUFREQ_TABLE_END } 136 { .frequency = CPUFREQ_TABLE_END } 147 { .frequency = CPUFREQ_TABLE_END } 158 { .frequency = CPUFREQ_TABLE_END } 170 { .frequency = CPUFREQ_TABLE_END } 182 { .frequency = CPUFREQ_TABLE_END } 194 { .frequency = CPUFREQ_TABLE_END } [all …]
|
/drivers/media/tuners/ |
D | tuner-simple.c | 116 u32 frequency; member 260 unsigned *frequency, u8 *config, u8 *cb) in simple_config_lookup() argument 266 if (*frequency > t_params->ranges[i].limit) in simple_config_lookup() 272 *frequency, t_params->ranges[i - 1].limit); in simple_config_lookup() 273 *frequency = t_params->ranges[--i].limit; in simple_config_lookup() 280 *frequency / 16, *frequency % 16 * 100 / 16, *frequency, in simple_config_lookup() 584 i = simple_config_lookup(fe, t_params, ¶ms->frequency, in simple_set_tv_freq() 587 div = params->frequency + IFPCoff + offset; in simple_set_tv_freq() 591 params->frequency / 16, params->frequency % 16 * 100 / 16, in simple_set_tv_freq() 675 unsigned int freq = params->frequency; in simple_set_radio_freq() [all …]
|
D | it913x.c | 228 dev->role, c->frequency, c->bandwidth_hz); in it913x_set_params() 235 if (c->frequency <= 74000000) { in it913x_set_params() 238 } else if (c->frequency <= 111000000) { in it913x_set_params() 241 } else if (c->frequency <= 148000000) { in it913x_set_params() 244 } else if (c->frequency <= 222000000) { in it913x_set_params() 247 } else if (c->frequency <= 296000000) { in it913x_set_params() 250 } else if (c->frequency <= 445000000) { in it913x_set_params() 253 } else if (c->frequency <= dev->fn_min) { in it913x_set_params() 256 } else if (c->frequency <= 950000000) { in it913x_set_params() 283 t_cal_freq = (c->frequency / 1000) * n_div * dev->fdiv; in it913x_set_params() [all …]
|
D | tua9001.c | 141 u32 frequency; in tua9001_set_params() local 146 c->delivery_system, c->frequency, c->bandwidth_hz); in tua9001_set_params() 176 frequency = (c->frequency - 150000000); in tua9001_set_params() 177 frequency /= 100; in tua9001_set_params() 178 frequency *= 48; in tua9001_set_params() 179 frequency /= 10000; in tua9001_set_params() 182 data[1].val = frequency; in tua9001_set_params() 217 static int tua9001_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) in tua9001_get_if_frequency() argument 223 *frequency = 0; /* Zero-IF */ in tua9001_get_if_frequency()
|
/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-tuner.c | 43 u32 frequency; member 313 ret = mxl1x1sf_tune_rf(fe, c->frequency, bw); in mxl111sf_tuner_set_params() 317 state->frequency = c->frequency; in mxl111sf_tuner_set_params() 396 static int mxl111sf_tuner_get_frequency(struct dvb_frontend *fe, u32 *frequency) in mxl111sf_tuner_get_frequency() argument 399 *frequency = state->frequency; in mxl111sf_tuner_get_frequency() 411 u32 *frequency) in mxl111sf_tuner_get_if_frequency() argument 415 *frequency = 0; in mxl111sf_tuner_get_if_frequency() 419 *frequency = 4000000; in mxl111sf_tuner_get_if_frequency() 422 *frequency = 4500000; in mxl111sf_tuner_get_if_frequency() 425 *frequency = 4570000; in mxl111sf_tuner_get_if_frequency() [all …]
|
/drivers/media/pci/bt8xx/ |
D | dvb-bt8xx.c | 164 div = (((c->frequency + 83333) * 3) / 500000) + IF_FREQUENCYx6; in thomson_dtt7579_tuner_calc_regs() 166 if (c->frequency < 542000000) in thomson_dtt7579_tuner_calc_regs() 168 else if (c->frequency < 771000000) in thomson_dtt7579_tuner_calc_regs() 173 if (c->frequency == 0) in thomson_dtt7579_tuner_calc_regs() 175 else if (c->frequency < 443250000) in thomson_dtt7579_tuner_calc_regs() 201 u32 freq = c->frequency; in cx24108_tuner_set_params() 282 div = (36000000 + c->frequency + 83333) / 166666; in microtune_mt7202dtf_tuner_set_params() 285 if (c->frequency < 175000000) in microtune_mt7202dtf_tuner_set_params() 287 else if (c->frequency < 390000000) in microtune_mt7202dtf_tuner_set_params() 289 else if (c->frequency < 470000000) in microtune_mt7202dtf_tuner_set_params() [all …]
|
/drivers/clk/ |
D | clk-si570.c | 82 u64 frequency; member 157 data->frequency = fout; in si570_get_defaults() 194 static int si570_calc_divs(unsigned long frequency, struct clk_si570 *data, in si570_calc_divs() argument 205 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs() 209 fdco = (u64)frequency * (u64)hs_div * (u64)n1; in si570_calc_divs() 239 return data->frequency; in si570_recalc_rate() 259 if (div64_u64(abs(rate - data->frequency) * 10000LL, in si570_round_rate() 260 data->frequency) < 35) { in si570_round_rate() 262 div64_u64(data->frequency, 2), data->frequency); in si570_round_rate() 286 static int si570_set_frequency(struct clk_si570 *data, unsigned long frequency) in si570_set_frequency() argument [all …]
|
/drivers/devfreq/ |
D | Kconfig | 7 operating frequency based on the device driver's policy. 17 clock frequency of the device, which is also attached 19 responsibility to "interpret" the representative frequency and 35 Chooses frequency based on the recent load on the device. Works 44 Sets the frequency at the maximum available frequency. 45 This governor always returns UINT_MAX as frequency so that 46 the DEVFREQ framework returns the highest frequency available 52 Sets the frequency at the minimum available frequency. 53 This governor always returns 0 as frequency so that 54 the DEVFREQ framework returns the lowest frequency available [all …]
|
/drivers/media/radio/si4713/ |
D | si4713.c | 526 static int si4713_tx_tune_freq(struct si4713_device *sdev, u16 frequency) in si4713_tx_tune_freq() argument 537 msb(frequency), in si4713_tx_tune_freq() 538 lsb(frequency), in si4713_tx_tune_freq() 550 frequency, val[0]); in si4713_tx_tune_freq() 618 static int si4713_tx_tune_measure(struct si4713_device *sdev, u16 frequency, in si4713_tx_tune_measure() argument 631 msb(frequency), in si4713_tx_tune_measure() 632 lsb(frequency), in si4713_tx_tune_measure() 650 __func__, frequency, antcap, val[0]); in si4713_tx_tune_measure() 670 u16 *frequency, u8 *power, in si4713_tx_tune_status() argument 689 *frequency = compose_u16(val[2], val[3]); in si4713_tx_tune_status() [all …]
|