/drivers/media/dvb-frontends/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
D | zl10036.c | 36 u32 frequency; member 170 static int zl10036_set_frequency(struct zl10036_state *state, u32 frequency) in zl10036_set_frequency() argument 175 div = (frequency + _FR/2) / _FR; in zl10036_set_frequency() 176 state->frequency = div * _FR; in zl10036_set_frequency() 178 foffset = frequency - state->frequency; in zl10036_set_frequency() 184 frequency, state->frequency, foffset, div); in zl10036_set_frequency() 299 u32 frequency = p->frequency; in zl10036_set_params() local 306 if ((frequency < fe->ops.info.frequency_min_hz / kHz) in zl10036_set_params() 307 || (frequency > fe->ops.info.frequency_max_hz / kHz)) in zl10036_set_params() 324 if (frequency < 950000) in zl10036_set_params() [all …]
|
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()
|
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()
|
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()
|
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()
|
/drivers/cpufreq/ |
D | freq_table.c | 42 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo() 84 freq = pos->frequency; in cpufreq_frequency_table_verify() 126 .frequency = 0, in cpufreq_table_index_unsorted() 130 .frequency = 0, in cpufreq_table_index_unsorted() 142 suboptimal.frequency = ~0; in cpufreq_table_index_unsorted() 146 optimal.frequency = ~0; in cpufreq_table_index_unsorted() 151 freq = pos->frequency; in cpufreq_table_index_unsorted() 162 if (freq >= optimal.frequency) { in cpufreq_table_index_unsorted() 163 optimal.frequency = freq; in cpufreq_table_index_unsorted() 167 if (freq <= suboptimal.frequency) { in cpufreq_table_index_unsorted() [all …]
|
D | Kconfig | 31 bool "CPU frequency transition statistics" 33 Export CPU frequency statistics information through sysfs. 38 bool "CPU frequency time-in-state statistics" 59 the frequency statically to the highest frequency supported by 67 the frequency statically to the lowest frequency supported by 75 you to set the CPU frequency manually or when a userspace 86 you to get a full dynamic frequency capable system by simply 99 you to get a full dynamic frequency capable system by simply 120 This cpufreq governor sets the frequency statically to the 121 highest available CPU frequency. [all …]
|
D | qoriq-cpufreq.c | 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() 132 max_freq = freq_table[i].frequency; in freq_table_sort() 135 freq = freq_table[j].frequency; in freq_table_sort() 146 table.frequency = freq_table[i].frequency; in freq_table_sort() 148 freq_table[i].frequency = freq_table[ind].frequency; in freq_table_sort() 150 freq_table[ind].frequency = table.frequency; in freq_table_sort() 196 table[i].frequency = freq / 1000; in qoriq_cpufreq_cpu_init() [all …]
|
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()
|
/drivers/platform/x86/intel/uncore-frequency/ |
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
|
/drivers/media/usb/dvb-usb-v2/ |
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 …]
|
/drivers/devfreq/ |
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 …]
|
/drivers/media/pci/bt8xx/ |
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() 271 div = (36000000 + c->frequency + 83333) / 166666; in microtune_mt7202dtf_tuner_set_params() 274 if (c->frequency < 175000000) in microtune_mt7202dtf_tuner_set_params() 276 else if (c->frequency < 390000000) in microtune_mt7202dtf_tuner_set_params() 278 else if (c->frequency < 470000000) in microtune_mt7202dtf_tuner_set_params() [all …]
|
/drivers/media/tuners/ |
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 …]
|
D | it913x.c | 219 dev->role, c->frequency, c->bandwidth_hz); in it913x_set_params() 226 if (c->frequency <= 74000000) { in it913x_set_params() 229 } else if (c->frequency <= 111000000) { in it913x_set_params() 232 } else if (c->frequency <= 148000000) { in it913x_set_params() 235 } else if (c->frequency <= 222000000) { in it913x_set_params() 238 } else if (c->frequency <= 296000000) { in it913x_set_params() 241 } else if (c->frequency <= 445000000) { in it913x_set_params() 244 } else if (c->frequency <= dev->fn_min) { in it913x_set_params() 247 } else if (c->frequency <= 950000000) { in it913x_set_params() 274 t_cal_freq = (c->frequency / 1000) * n_div * dev->fdiv; in it913x_set_params() [all …]
|
D | tda18250.c | 263 utmp = ((c->frequency < 100000000) && in tda18250_set_agc() 281 utmp = (c->frequency < 800000000) ? 6 : 4; in tda18250_set_agc() 284 utmp = (c->frequency < 100000000) ? 2 : 3; in tda18250_set_agc() 299 utmp = (c->frequency < 320000000) ? 20 : 16; in tda18250_set_agc() 300 utmp2 = (c->frequency < 320000000) ? 22 : 18; in tda18250_set_agc() 305 if (c->frequency < 600000000) { in tda18250_set_agc() 308 } else if (c->frequency < 800000000) { in tda18250_set_agc() 317 utmp = (c->frequency < 320000000) ? 16 : 18; in tda18250_set_agc() 318 utmp2 = (c->frequency < 320000000) ? 18 : 20; in tda18250_set_agc() 348 (c->frequency > 800000000) ? 0x40 : 0x20); in tda18250_set_agc() [all …]
|
D | qm1d1b0004.c | 76 u32 frequency; member 91 static u8 lookup_cb(u32 frequency) in lookup_cb() argument 98 if (frequency < map->frequency) in lookup_cb() 107 u32 frequency, pll, lpf_freq; in qm1d1b0004_set_params() local 113 frequency = fe->dtv_property_cache.frequency; in qm1d1b0004_set_params() 118 word = DIV_ROUND_CLOSEST(frequency, pll); in qm1d1b0004_set_params() 119 cb = lookup_cb(frequency); in qm1d1b0004_set_params()
|
/drivers/clk/ |
D | clk-si570.c | 74 u64 frequency; member 153 data->frequency = fout; in si570_get_defaults() 190 static int si570_calc_divs(unsigned long frequency, struct clk_si570 *data, in si570_calc_divs() argument 201 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs() 205 fdco = (u64)frequency * (u64)hs_div * (u64)n1; in si570_calc_divs() 235 return data->frequency; in si570_recalc_rate() 255 if (div64_u64(abs(rate - data->frequency) * 10000LL, in si570_round_rate() 256 data->frequency) < 35) { in si570_round_rate() 258 div64_u64(data->frequency, 2), data->frequency); in si570_round_rate() 282 static int si570_set_frequency(struct clk_si570 *data, unsigned long frequency) in si570_set_frequency() argument [all …]
|
/drivers/staging/sm750fb/ |
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 …]
|
/drivers/i2c/busses/ |
D | i2c-pasemi-platform.c | 25 u32 frequency) in pasemi_platform_i2c_calc_clk_div() argument 32 data->smbus.clk_div = DIV_ROUND_UP(clk_rate, 16 * frequency); in pasemi_platform_i2c_calc_clk_div() 36 frequency); in pasemi_platform_i2c_calc_clk_div() 40 frequency); in pasemi_platform_i2c_calc_clk_div() 50 u32 frequency; in pasemi_platform_i2c_probe() local 66 if (of_property_read_u32(dev->of_node, "clock-frequency", &frequency)) in pasemi_platform_i2c_probe() 67 frequency = I2C_MAX_STANDARD_MODE_FREQ; in pasemi_platform_i2c_probe() 73 error = pasemi_platform_i2c_calc_clk_div(data, frequency); in pasemi_platform_i2c_probe()
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | ppatomfwctrl.c | 493 uint32_t *frequency) in pp_atomfwctrl_get_clk_information_by_clkid() argument 512 *frequency = le32_to_cpu(output->atom_smu_outputclkfreq.smu_clock_freq_hz) / 10000; in pp_atomfwctrl_get_clk_information_by_clkid() 521 uint32_t frequency = 0; in pp_atomfwctrl_copy_vbios_bootup_values_3_2() local 534 …mfwctrl_get_clk_information_by_clkid(hwmgr, SMU11_SYSPLL0_SOCCLK_ID, SMU11_SYSPLL0_ID, &frequency)) in pp_atomfwctrl_copy_vbios_bootup_values_3_2() 535 boot_values->ulSocClk = frequency; in pp_atomfwctrl_copy_vbios_bootup_values_3_2() 537 …fwctrl_get_clk_information_by_clkid(hwmgr, SMU11_SYSPLL0_DCEFCLK_ID, SMU11_SYSPLL0_ID, &frequency)) in pp_atomfwctrl_copy_vbios_bootup_values_3_2() 538 boot_values->ulDCEFClk = frequency; in pp_atomfwctrl_copy_vbios_bootup_values_3_2() 540 …tomfwctrl_get_clk_information_by_clkid(hwmgr, SMU11_SYSPLL0_ECLK_ID, SMU11_SYSPLL0_ID, &frequency)) in pp_atomfwctrl_copy_vbios_bootup_values_3_2() 541 boot_values->ulEClk = frequency; in pp_atomfwctrl_copy_vbios_bootup_values_3_2() 543 …tomfwctrl_get_clk_information_by_clkid(hwmgr, SMU11_SYSPLL0_VCLK_ID, SMU11_SYSPLL0_ID, &frequency)) in pp_atomfwctrl_copy_vbios_bootup_values_3_2() [all …]
|