/linux-6.6.21/drivers/net/wireless/broadcom/b43/ |
D | radio_2059.c | 60 .freq = 2412, 67 .freq = 2417, 74 .freq = 2422, 81 .freq = 2427, 88 .freq = 2432, 95 .freq = 2437, 102 .freq = 2442, 109 .freq = 2447, 116 .freq = 2452, 123 .freq = 2457, [all …]
|
D | radio_2057.c | 180 .freq = 2412, 187 .freq = 2417, 194 .freq = 2422, 201 .freq = 2427, 208 .freq = 2432, 215 .freq = 2437, 222 .freq = 2442, 229 .freq = 2447, 236 .freq = 2452, 243 .freq = 2457, [all …]
|
D | radio_2055.c | 293 .freq = 4920, /* MHz */ 301 .freq = 4930, /* MHz */ 309 .freq = 4940, /* MHz */ 317 .freq = 4950, /* MHz */ 325 .freq = 4960, /* MHz */ 333 .freq = 4970, /* MHz */ 341 .freq = 4980, /* MHz */ 349 .freq = 4990, /* MHz */ 357 .freq = 5000, /* MHz */ 365 .freq = 5010, /* MHz */ [all …]
|
D | radio_2056.c | 3077 { .freq = 4920, 3085 { .freq = 4930, 3093 { .freq = 4940, 3101 { .freq = 4950, 3109 { .freq = 4960, 3117 { .freq = 4970, 3125 { .freq = 4980, 3133 { .freq = 4990, 3141 { .freq = 5000, 3149 { .freq = 5010, [all …]
|
/linux-6.6.21/drivers/devfreq/ |
D | imx8m-ddrc.c | 82 struct imx8m_ddrc_freq *freq; in imx8m_ddrc_find_freq() local 91 freq = &priv->freq_table[i]; in imx8m_ddrc_find_freq() 92 if (freq->rate == rate || in imx8m_ddrc_find_freq() 93 freq->rate + 1 == rate || in imx8m_ddrc_find_freq() 94 freq->rate - 1 == rate) in imx8m_ddrc_find_freq() 95 return freq; in imx8m_ddrc_find_freq() 128 static int imx8m_ddrc_set_freq(struct device *dev, struct imx8m_ddrc_freq *freq) in imx8m_ddrc_set_freq() argument 143 priv->dram_core, freq->dram_core_parent_index - 1); in imx8m_ddrc_set_freq() 148 if (freq->dram_alt_parent_index) { in imx8m_ddrc_set_freq() 151 freq->dram_alt_parent_index - 1); in imx8m_ddrc_set_freq() [all …]
|
/linux-6.6.21/sound/pci/lola/ |
D | lola_clock.c | 17 unsigned int freq; in lola_sample_rate_convert() local 21 case 0: freq = 48000; break; in lola_sample_rate_convert() 22 case 1: freq = 44100; break; in lola_sample_rate_convert() 23 case 2: freq = 32000; break; in lola_sample_rate_convert() 31 case (1 << 2): freq *= 2; break; in lola_sample_rate_convert() 32 case (2 << 2): freq *= 4; break; in lola_sample_rate_convert() 33 case (5 << 2): freq /= 2; break; in lola_sample_rate_convert() 34 case (6 << 2): freq /= 4; break; in lola_sample_rate_convert() 41 case (1 << 5): freq = (freq * 999) / 1000; break; in lola_sample_rate_convert() 42 case (2 << 5): freq = (freq * 1001) / 1000; break; in lola_sample_rate_convert() [all …]
|
/linux-6.6.21/sound/drivers/vx/ |
D | vx_uer.c | 94 int val, freq; in vx_read_uer_status() local 97 freq = 0; in vx_read_uer_status() 110 freq = 32000; in vx_read_uer_status() 113 freq = 44100; in vx_read_uer_status() 116 freq = 48000; in vx_read_uer_status() 127 return freq; in vx_read_uer_status() 148 static int vx_calc_clock_from_freq(struct vx_core *chip, int freq) in vx_calc_clock_from_freq() argument 152 if (snd_BUG_ON(freq <= 0)) in vx_calc_clock_from_freq() 155 hexfreq = (28224000 * 10) / freq; in vx_calc_clock_from_freq() 193 void vx_set_internal_clock(struct vx_core *chip, unsigned int freq) in vx_set_internal_clock() argument [all …]
|
/linux-6.6.21/drivers/cpufreq/ |
D | freq_table.c | 38 unsigned int freq; in cpufreq_frequency_table_cpuinfo() local 41 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo() 47 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo() 48 if (freq < min_freq) in cpufreq_frequency_table_cpuinfo() 49 min_freq = freq; in cpufreq_frequency_table_cpuinfo() 50 if (freq > max_freq) in cpufreq_frequency_table_cpuinfo() 51 max_freq = freq; in cpufreq_frequency_table_cpuinfo() 73 unsigned int freq, next_larger = ~0; in cpufreq_frequency_table_verify() local 82 freq = pos->frequency; in cpufreq_frequency_table_verify() 84 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify() [all …]
|
D | s3c64xx-cpufreq.c | 108 struct cpufreq_frequency_table *freq; in s3c64xx_cpufreq_config_regulator() local 119 cpufreq_for_each_valid_entry(freq, s3c64xx_freq_table) { in s3c64xx_cpufreq_config_regulator() 120 dvfs = &s3c64xx_dvfs_table[freq->driver_data]; in s3c64xx_cpufreq_config_regulator() 131 freq->frequency); in s3c64xx_cpufreq_config_regulator() 132 freq->frequency = CPUFREQ_ENTRY_INVALID; in s3c64xx_cpufreq_config_regulator() 145 struct cpufreq_frequency_table *freq; in s3c64xx_cpufreq_driver_init() local 168 cpufreq_for_each_entry(freq, s3c64xx_freq_table) { in s3c64xx_cpufreq_driver_init() 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() [all …]
|
/linux-6.6.21/drivers/media/i2c/cx25840/ |
D | cx25840-audio.c | 31 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25840_set_audclk_freq() argument 36 switch (freq) { in cx25840_set_audclk_freq() 150 switch (freq) { in cx25840_set_audclk_freq() 276 state->audclk_freq = freq; in cx25840_set_audclk_freq() 281 static inline int cx25836_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25836_set_audclk_freq() argument 283 return cx25840_set_audclk_freq(client, freq); in cx25836_set_audclk_freq() 286 static int cx23885_set_audclk_freq(struct i2c_client *client, u32 freq) in cx23885_set_audclk_freq() argument 291 switch (freq) { in cx23885_set_audclk_freq() 301 switch (freq) { in cx23885_set_audclk_freq() 323 state->audclk_freq = freq; in cx23885_set_audclk_freq() [all …]
|
/linux-6.6.21/drivers/media/tuners/ |
D | mt2131.c | 86 u32 freq; in mt2131_set_params() local 95 freq = c->frequency / 1000; /* Hz -> kHz */ in mt2131_set_params() 96 dprintk(1, "%s() freq=%d\n", __func__, freq); in mt2131_set_params() 98 f_lo1 = freq + MT2131_IF1 * 1000; in mt2131_set_params() 100 f_lo2 = f_lo1 - freq - MT2131_IF2; in mt2131_set_params() 114 if (freq <= 82500) if_band_center = 0x00; else in mt2131_set_params() 115 if (freq <= 137500) if_band_center = 0x01; else in mt2131_set_params() 116 if (freq <= 192500) if_band_center = 0x02; else in mt2131_set_params() 117 if (freq <= 247500) if_band_center = 0x03; else in mt2131_set_params() 118 if (freq <= 302500) if_band_center = 0x04; else in mt2131_set_params() [all …]
|
/linux-6.6.21/arch/mips/mti-malta/ |
D | malta-time.c | 51 static unsigned int freqround(unsigned int freq, unsigned int amount) in freqround() argument 53 freq += amount; in freqround() 54 freq -= freq % (amount*2); in freqround() 55 return freq; in freqround() 181 unsigned char freq, ctrl; in init_rtc() local 184 freq = CMOS_READ(RTC_FREQ_SELECT); in init_rtc() 185 if ((freq & RTC_DIV_CTL) != RTC_REF_CLCK_32KHZ) in init_rtc() 226 unsigned int freq; in plat_time_init() local 231 freq = mips_hpt_frequency; in plat_time_init() 234 freq *= 2; in plat_time_init() [all …]
|
/linux-6.6.21/drivers/media/radio/ |
D | tea575x.c | 144 u32 freq = val & TEA575X_BIT_FREQ_MASK; in snd_tea575x_val_to_freq() local 146 if (freq == 0) in snd_tea575x_val_to_freq() 147 return freq; in snd_tea575x_val_to_freq() 152 freq *= 125; in snd_tea575x_val_to_freq() 153 freq /= 10; in snd_tea575x_val_to_freq() 155 freq -= TEA575X_FMIF; in snd_tea575x_val_to_freq() 159 freq *= 125; in snd_tea575x_val_to_freq() 160 freq /= 10; in snd_tea575x_val_to_freq() 162 freq += TEA575X_FMIF; in snd_tea575x_val_to_freq() 166 freq -= TEA575X_AMIF; in snd_tea575x_val_to_freq() [all …]
|
D | radio-tea5777.c | 162 static u32 tea5777_freq_to_v4l2_freq(struct radio_tea5777 *tea, u32 freq) in tea5777_freq_to_v4l2_freq() argument 166 return (freq * TEA5777_FM_FREQ_STEP + TEA5777_FM_IF) * 16; in tea5777_freq_to_v4l2_freq() 168 return (freq * TEA5777_AM_FREQ_STEP + TEA5777_AM_IF) * 16; in tea5777_freq_to_v4l2_freq() 175 u32 freq; in radio_tea5777_set_freq() local 178 freq = clamp(tea->freq, bands[tea->band].rangelow, in radio_tea5777_set_freq() 180 freq = (freq + 8) / 16; /* to kHz */ in radio_tea5777_set_freq() 185 freq = (freq - TEA5777_FM_IF) / TEA5777_FM_FREQ_STEP; in radio_tea5777_set_freq() 187 tea->write_reg |= (u64)freq << TEA5777_W_FM_PLL_SHIFT; in radio_tea5777_set_freq() 198 freq = (freq - TEA5777_AM_IF) / TEA5777_AM_FREQ_STEP; in radio_tea5777_set_freq() 200 tea->write_reg |= (u64)freq << TEA5777_W_AM_PLL_SHIFT; in radio_tea5777_set_freq() [all …]
|
/linux-6.6.21/drivers/thermal/ |
D | thermal_trace.h | 114 TP_PROTO(const struct cpumask *cpus, unsigned int freq, 117 TP_ARGS(cpus, freq, cdev_state, power), 121 __field(unsigned int, freq ) 129 __entry->freq = freq; 135 __get_bitmask(cpumask), __entry->freq, __entry->cdev_state, 143 struct devfreq_dev_status *status, unsigned long freq, 146 TP_ARGS(cdev, status, freq, power), 150 __field(unsigned long, freq ) 158 __entry->freq = freq; 165 __get_str(type), __entry->freq, [all …]
|
D | devfreq_cooling.c | 90 unsigned long freq; in devfreq_cooling_set_cur_state() local 103 freq = dfc->em_pd->table[perf_idx].frequency * 1000; in devfreq_cooling_set_cur_state() 105 freq = dfc->freq_table[state]; in devfreq_cooling_set_cur_state() 109 DIV_ROUND_UP(freq, HZ_PER_KHZ)); in devfreq_cooling_set_cur_state() 124 static int get_perf_idx(struct em_perf_domain *em_pd, unsigned long freq) in get_perf_idx() argument 129 if (em_pd->table[i].frequency == freq) in get_perf_idx() 136 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument 142 opp = dev_pm_opp_find_freq_exact(dev, freq, true); in get_voltage() 144 opp = dev_pm_opp_find_freq_exact(dev, freq, false); in get_voltage() 148 freq, PTR_ERR(opp)); in get_voltage() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | selftest_rps.c | 151 static u8 wait_for_freq(struct intel_rps *rps, u8 freq, int timeout_ms) in wait_for_freq() argument 158 memset(history, freq, sizeof(history)); in wait_for_freq() 171 if (act == freq) in wait_for_freq() 188 static u8 rps_set_check(struct intel_rps *rps, u8 freq) in rps_set_check() argument 192 if (wait_for(!intel_rps_set(rps, freq), 50)) { in rps_set_check() 196 GEM_BUG_ON(rps->last_freq != freq); in rps_set_check() 199 return wait_for_freq(rps, freq, 50); in rps_set_check() 550 static u64 measure_frequency_at(struct intel_rps *rps, u32 *cntr, int *freq) in measure_frequency_at() argument 555 *freq = rps_set_check(rps, *freq); in measure_frequency_at() 558 *freq = (*freq + read_cagf(rps)) / 2; in measure_frequency_at() [all …]
|
/linux-6.6.21/arch/mips/kernel/ |
D | time.c | 39 struct cpufreq_freqs *freq = data; in cpufreq_callback() local 40 struct cpumask *cpus = freq->policy->cpus; in cpufreq_callback() 48 if (freq->flags & CPUFREQ_CONST_LOOPS) in cpufreq_callback() 54 glb_lpj_ref_freq = freq->old; in cpufreq_callback() 59 per_cpu(pcp_lpj_ref_freq, cpu) = freq->old; in cpufreq_callback() 67 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in cpufreq_callback() 68 (val == CPUFREQ_POSTCHANGE && freq->old > freq->new)) { in cpufreq_callback() 71 freq->new); in cpufreq_callback() 76 freq->new); in cpufreq_callback()
|
/linux-6.6.21/drivers/clk/mediatek/ |
D | clk-mt2712-apmixedsys.c | 53 { .div = 0, .freq = MT2712_PLL_FMAX }, 54 { .div = 1, .freq = 1202500000 }, 55 { .div = 2, .freq = 500500000 }, 56 { .div = 3, .freq = 315250000 }, 57 { .div = 4, .freq = 157625000 }, 62 { .div = 0, .freq = MT2712_PLL_FMAX }, 63 { .div = 1, .freq = 994500000 }, 64 { .div = 2, .freq = 520000000 }, 65 { .div = 3, .freq = 315250000 }, 66 { .div = 4, .freq = 157625000 }, [all …]
|
D | clk-mt8365-apmixedsys.c | 56 { .div = 0, .freq = MT8365_PLL_FMAX }, 57 { .div = 1, .freq = 1500 * MHZ }, 58 { .div = 2, .freq = 750 * MHZ }, 59 { .div = 3, .freq = 375 * MHZ }, 60 { .div = 4, .freq = 182500000 }, 65 { .div = 0, .freq = MT8365_PLL_FMAX }, 66 { .div = 1, .freq = 1600 * MHZ }, 67 { .div = 2, .freq = 800 * MHZ }, 68 { .div = 3, .freq = 400 * MHZ }, 69 { .div = 4, .freq = 200 * MHZ }, [all …]
|
/linux-6.6.21/drivers/misc/ |
D | ics932s401.c | 179 int m, n, freq; in calculate_cpu_freq() local 188 freq = BASE_CLOCK * (n + 8) / (m + 2); in calculate_cpu_freq() 189 freq /= divisors[data->regs[ICS932S401_REG_CPU_DIVISOR] >> in calculate_cpu_freq() 192 return freq; in calculate_cpu_freq() 209 int freq; in show_cpu_clock_sel() local 212 freq = calculate_cpu_freq(data); in show_cpu_clock_sel() 217 freq = fs_speeds[fid]; in show_cpu_clock_sel() 219 switch (freq) { in show_cpu_clock_sel() 221 freq = 160000; in show_cpu_clock_sel() 224 freq = 320000; in show_cpu_clock_sel() [all …]
|
/linux-6.6.21/net/ipv6/ |
D | ip6_flowlabel.c | 376 fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq, in fl_create() argument 384 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create() 408 CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create() 430 err = fl6_renew(fl, freq->flr_linger, freq->flr_expires); in fl_create() 433 fl->share = freq->flr_share; in fl_create() 434 addr_type = ipv6_addr_type(&freq->flr_dst); in fl_create() 440 fl->dst = freq->flr_dst; in fl_create() 505 int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq, in ipv6_flowlabel_opt_get() argument 512 freq->flr_label = np->rcv_flowinfo & IPV6_FLOWLABEL_MASK; in ipv6_flowlabel_opt_get() 517 freq->flr_label = np->flow_label; in ipv6_flowlabel_opt_get() [all …]
|
/linux-6.6.21/drivers/clocksource/ |
D | timer-fsl-ftm.c | 179 static int __init ftm_clockevent_init(unsigned long freq, int irq) in ftm_clockevent_init() argument 199 freq / (1 << priv->ps), in ftm_clockevent_init() 207 static int __init ftm_clocksource_init(unsigned long freq) in ftm_clocksource_init() argument 216 sched_clock_register(ftm_read_sched_clock, 16, freq / (1 << priv->ps)); in ftm_clocksource_init() 218 freq / (1 << priv->ps), 300, 16, in ftm_clocksource_init() 263 long freq; in ftm_clk_init() local 265 freq = __ftm_clk_init(np, "ftm-evt-counter-en", "ftm-evt"); in ftm_clk_init() 266 if (freq <= 0) in ftm_clk_init() 269 freq = __ftm_clk_init(np, "ftm-src-counter-en", "ftm-src"); in ftm_clk_init() 270 if (freq <= 0) in ftm_clk_init() [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | record.c | 76 attr->freq = 0; in evsel__config_leader_sampling() 164 opts->freq = opts->user_freq; in record_opts__config_freq() 170 opts->freq = 0; in record_opts__config_freq() 171 else if (opts->freq) { in record_opts__config_freq() 172 opts->default_interval = opts->freq; in record_opts__config_freq() 184 if (user_freq && (max_rate < opts->freq)) { in record_opts__config_freq() 196 max_rate, opts->freq, max_rate); in record_opts__config_freq() 198 opts->freq = max_rate; in record_opts__config_freq() 205 if (max_rate < opts->freq) { in record_opts__config_freq() 209 opts->freq, max_rate); in record_opts__config_freq() [all …]
|
/linux-6.6.21/drivers/ssb/ |
D | driver_chipcommon_pmu.c | 51 u16 freq; /* Crystal frequency in kHz.*/ member 58 { .freq = 12000, .xf = 1, .wb_int = 73, .wb_frac = 349525, }, 59 { .freq = 13000, .xf = 2, .wb_int = 67, .wb_frac = 725937, }, 60 { .freq = 14400, .xf = 3, .wb_int = 61, .wb_frac = 116508, }, 61 { .freq = 15360, .xf = 4, .wb_int = 57, .wb_frac = 305834, }, 62 { .freq = 16200, .xf = 5, .wb_int = 54, .wb_frac = 336579, }, 63 { .freq = 16800, .xf = 6, .wb_int = 52, .wb_frac = 399457, }, 64 { .freq = 19200, .xf = 7, .wb_int = 45, .wb_frac = 873813, }, 65 { .freq = 19800, .xf = 8, .wb_int = 44, .wb_frac = 466033, }, 66 { .freq = 20000, .xf = 9, .wb_int = 44, .wb_frac = 0, }, [all …]
|