/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A 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 …]
|
H A 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, 609 if (e_r7->freq == freq) { in r2057_get_chantabent_rev7() [all …]
|
H A 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 …]
|
H A D | radio_2056.c | 9048 .freq = 4920, 9057 .freq = 4930, 9066 .freq = 4940, 9075 .freq = 4950, 9084 .freq = 4960, 9093 .freq = 4970, 9102 .freq = 4980, 9111 .freq = 4990, 9120 .freq = 5000, 9129 .freq = 5010, [all …]
|
/openbmc/linux/drivers/devfreq/ |
H A D | imx8m-ddrc.c | 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() 247 if (*freq == old_freq) in imx8m_ddrc_target() 269 *freq, old_freq); in imx8m_ddrc_target() 306 freq->rate = res.a0; in imx8m_ddrc_init_freq_info() 307 freq->smcarg = index; in imx8m_ddrc_init_freq_info() 334 unsigned long freq; in imx8m_ddrc_check_opps() local 341 for (i = 0, freq = 0; i < opp_count; ++i, ++freq) { in imx8m_ddrc_check_opps() [all …]
|
/openbmc/linux/sound/pci/lola/ |
H A D | lola_clock.c | 17 unsigned int freq; in lola_sample_rate_convert() local 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() 45 return freq; in lola_sample_rate_convert() 57 unsigned int freq) in check_gran_clock_compatibility() argument 163 freq = lola_sample_rate_convert(freq); in lola_init_clock_widget() 172 freq = lola_sample_rate_convert(freq); in lola_init_clock_widget() 186 sc->freq = freq; in lola_init_clock_widget() 262 int freq = 0; in lola_set_clock() local 272 freq = chip->clock.sample_clock[idx].freq; in lola_set_clock() [all …]
|
/openbmc/linux/sound/drivers/vx/ |
H A 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() 127 return freq; in vx_read_uer_status() 256 if (chip->freq == freq) in vx_set_clock() 262 if (chip->freq == freq) in vx_set_clock() 264 chip->freq = freq; in vx_set_clock() 275 int freq; in vx_change_frequency() local 286 if (freq < 0) in vx_change_frequency() 287 return freq; in vx_change_frequency() [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | imx6ul_ccm.c | 301 return freq; in imx6ul_analog_get_osc_clk() 317 return freq; in imx6ul_analog_get_pll2_clk() 326 return freq; in imx6ul_analog_get_pll3_clk() 339 return freq; in imx6ul_analog_get_pll2_pfd0_clk() 352 return freq; in imx6ul_analog_get_pll2_pfd2_clk() 361 return freq; in imx6ul_analog_pll2_bypass_clk() 391 return freq; in imx6ul_ccm_get_periph_clk2_sel_clk() 417 return freq; in imx6ul_ccm_get_periph_clk_sel_clk() 429 return freq; in imx6ul_ccm_get_periph_clk2_clk() 449 return freq; in imx6ul_ccm_get_periph_sel_clk() [all …]
|
H A D | imx25_ccm.c | 112 uint32_t freq; in imx25_ccm_get_mpll_clk() local 123 return freq; in imx25_ccm_get_mpll_clk() 128 uint32_t freq; in imx25_ccm_get_mcu_clk() local 134 freq = (freq * 3 / 4); in imx25_ccm_get_mcu_clk() 137 freq = freq / (1 + EXTRACT(s->reg[IMX25_CCM_CCTL_REG], ARM_CLK_DIV)); in imx25_ccm_get_mcu_clk() 141 return freq; in imx25_ccm_get_mcu_clk() 146 uint32_t freq; in imx25_ccm_get_ahb_clk() local 154 return freq; in imx25_ccm_get_ahb_clk() 159 uint32_t freq; in imx25_ccm_get_ipg_clk() local 165 return freq; in imx25_ccm_get_ipg_clk() [all …]
|
H A D | imx31_ccm.c | 109 uint32_t freq = 0; in imx31_ccm_get_pll_ref_clk() local 125 return freq; in imx31_ccm_get_pll_ref_clk() 130 uint32_t freq; in imx31_ccm_get_mpll_clk() local 138 return freq; in imx31_ccm_get_mpll_clk() 143 uint32_t freq; in imx31_ccm_get_mcu_main_clk() local 155 return freq; in imx31_ccm_get_mcu_main_clk() 160 uint32_t freq; in imx31_ccm_get_hclk_clk() local 168 return freq; in imx31_ccm_get_hclk_clk() 173 uint32_t freq; in imx31_ccm_get_ipg_clk() local 181 return freq; in imx31_ccm_get_ipg_clk() [all …]
|
H A D | imx6_ccm.c | 250 freq *= 22; in imx6_analog_get_pll2_clk() 252 freq *= 20; in imx6_analog_get_pll2_clk() 257 return freq; in imx6_analog_get_pll2_clk() 262 uint64_t freq = 0; in imx6_analog_get_pll2_pfd0_clk() local 269 return freq; in imx6_analog_get_pll2_pfd0_clk() 281 return freq; in imx6_analog_get_pll2_pfd2_clk() 309 return freq; in imx6_analog_get_periph_clk() 321 return freq; in imx6_ccm_get_ahb_clk() 333 return freq; in imx6_ccm_get_ipg_clk() 345 return freq; in imx6_ccm_get_per_clk() [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | freq_table.c | 38 unsigned int freq; in cpufreq_frequency_table_cpuinfo() local 41 freq = pos->frequency; 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() 84 if ((freq >= policy->min) && (freq <= policy->max)) { in cpufreq_frequency_table_verify() 89 if ((next_larger > freq) && (freq > policy->max)) in cpufreq_frequency_table_verify() 90 next_larger = freq; in cpufreq_frequency_table_verify() 151 if ((freq < policy->min) || (freq > policy->max)) in cpufreq_table_index_unsorted() [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/vf610/ |
H A D | generic.c | 43 u32 freq = 0; in get_mcu_main_clk() local 56 freq = FASE_CLK_FREQ; in get_mcu_main_clk() 59 freq = SLOW_CLK_FREQ; in get_mcu_main_clk() 65 freq = PLL2_MAIN_FREQ; in get_mcu_main_clk() 67 freq = PLL2_PFD1_FREQ; in get_mcu_main_clk() 76 freq = PLL2_MAIN_FREQ; in get_mcu_main_clk() 93 freq = PLL3_MAIN_FREQ; in get_mcu_main_clk() 139 u32 freq = 0; in get_sdhc_clk() local 161 freq = get_bus_clk(); in get_sdhc_clk() 172 u32 freq = 0; in get_fec_clk() local [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv8/s32v234/ |
H A D | generic.c | 97 u32 freq = 0; in get_mcu_main_clk() local 109 freq = FIRC_CLK_FREQ; in get_mcu_main_clk() 112 freq = XOSC_CLK_FREQ; in get_mcu_main_clk() 132 u32 freq = 0; in get_sys_clk() local 156 freq = FIRC_CLK_FREQ; in get_sys_clk() 159 freq = XOSC_CLK_FREQ; in get_sys_clk() 178 u32 freq = 0; in get_peripherals_clk() local 208 freq = FIRC_CLK_FREQ; in get_uart_clk() 211 freq = XOSC_CLK_FREQ; in get_uart_clk() 229 u32 freq = 0; in get_fec_clk() local [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/ |
H A D | syscounter.c | 36 unsigned long freq; in tick_to_time() local 38 asm volatile("mrc p15, 0, %0, c14, c0, 0" : "=r" (freq)); in tick_to_time() 41 do_div(tick, freq); in tick_to_time() 48 unsigned long freq; in us_to_tick() local 50 asm volatile("mrc p15, 0, %0, c14, c0, 0" : "=r" (freq)); in us_to_tick() 52 usec = usec * freq + 999999; in us_to_tick() 62 unsigned long val, freq; in timer_init() local 64 freq = CONFIG_SC_TIMER_CLK; in timer_init() 67 writel(freq, &sctr->cntfid0); in timer_init() 117 unsigned long freq; in get_tbclk() local [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/ |
H A D | timer.c | 33 unsigned long freq; in tick_to_time() local 35 asm volatile("mrc p15, 0, %0, c14, c0, 0" : "=r" (freq)); in tick_to_time() 38 do_div(tick, freq); in tick_to_time() 45 unsigned long freq; in us_to_tick() local 47 asm volatile("mrc p15, 0, %0, c14, c0, 0" : "=r" (freq)); in us_to_tick() 49 usec = usec * freq + 999999; in us_to_tick() 58 unsigned long ctrl, freq; in timer_init() local 64 freq = COUNTER_FREQUENCY; in timer_init() 65 asm("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq)); in timer_init() 117 unsigned long freq; in get_tbclk() local [all …]
|
/openbmc/linux/arch/mips/mti-malta/ |
H A D | malta-time.c | 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() 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() 235 freq = freqround(freq, 5000); in plat_time_init() 237 (freq%1000000)*100/1000000); in plat_time_init() [all …]
|
/openbmc/linux/drivers/media/i2c/cx25840/ |
H A D | cx25840-audio.c | 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() 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() 333 switch (freq) { in cx231xx_set_audclk_freq() 359 switch (freq) { in cx231xx_set_audclk_freq() 399 state->audclk_freq = freq; in cx231xx_set_audclk_freq() 408 if (freq != 32000 && freq != 44100 && freq != 48000) in set_audclk_freq() [all …]
|
/openbmc/linux/drivers/media/tuners/ |
H A 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 …]
|
/openbmc/u-boot/arch/arm/mach-imx/mx5/ |
H A D | clock.c | 254 u32 reg, freq; in get_mcu_main_clk() local 292 freq = get_ahb_clk(); in get_ipg_clk() 297 return freq / div; in get_ipg_clk() 311 freq = get_lp_apm(); in get_ipg_per_clk() 324 u32 freq = 0; in get_standard_pll_sel_clk() local 337 freq = get_lp_apm(); in get_standard_pll_sel_clk() 341 return freq; in get_standard_pll_sel_clk() 360 return freq; in get_uart_clk() 415 return freq; in get_esdhc_clk() 888 freq *= SZ_DEC_1M; in mxc_set_clock() [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | thermal_trace.h | 117 TP_ARGS(cpus, freq, cdev_state, power), 121 __field(unsigned int, freq ) 129 __entry->freq = freq; 146 TP_ARGS(cdev, status, freq, power), 150 __field(unsigned long, freq ) 158 __entry->freq = freq; 165 __get_str(type), __entry->freq, 175 TP_ARGS(cdev, freq, cdev_state, power), 179 __field(unsigned int, freq ) 186 __entry->freq = freq; [all …]
|
/openbmc/u-boot/arch/arm/mach-at91/armv7/ |
H A D | clock.c | 46 freq /= div; in at91_pll_rate() 47 freq *= mul + 1; in at91_pll_rate() 49 freq = 0; in at91_pll_rate() 52 return freq; in at91_pll_rate() 57 unsigned freq, mckr; in at91_clock_init() local 91 freq = gd->arch.mck_rate_hz; in at91_clock_init() 261 u32 freq; in at91_get_periph_generated_clk() local 278 freq = gd->arch.plla_rate_hz; in at91_get_periph_generated_clk() 284 freq = gd->arch.mck_rate_hz; in at91_get_periph_generated_clk() 288 freq = 0; in at91_get_periph_generated_clk() [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/imx8m/ |
H A D | clock.c | 349 void mxs_set_lcdclk(u32 base_addr, u32 freq) in mxs_set_lcdclk() argument 822 u32 freq; in do_imx8m_showclocks() local 824 freq = decode_frac_pll(ARM_PLL_CLK); in do_imx8m_showclocks() 826 freq = decode_sscg_pll(SYSTEM_PLL1_800M_CLK); in do_imx8m_showclocks() 840 freq = decode_sscg_pll(SYSTEM_PLL1_80M_CLK); in do_imx8m_showclocks() 842 freq = decode_sscg_pll(SYSTEM_PLL1_40M_CLK); in do_imx8m_showclocks() 860 freq = decode_sscg_pll(SYSTEM_PLL2_50M_CLK); in do_imx8m_showclocks() 862 freq = decode_sscg_pll(SYSTEM_PLL3_CLK); in do_imx8m_showclocks() 864 freq = mxc_get_clock(UART1_CLK_ROOT); in do_imx8m_showclocks() 866 freq = mxc_get_clock(USDHC1_CLK_ROOT); in do_imx8m_showclocks() [all …]
|
/openbmc/linux/drivers/media/radio/ |
H A D | tea575x.c | 153 freq /= 10; in snd_tea575x_val_to_freq() 160 freq /= 10; in snd_tea575x_val_to_freq() 181 u32 freq = tea->freq / 16; /* to kHz */ in snd_tea575x_set_freq() local 190 freq *= 10; in snd_tea575x_set_freq() 198 freq *= 10; in snd_tea575x_set_freq() 384 tea->freq = clamp(tea->freq, bands[i].rangelow, in snd_tea575x_s_hw_freq_seek() 411 u32 freq; in snd_tea575x_s_hw_freq_seek() local 426 if (abs(tea->freq - freq) < 16 * spacing || in snd_tea575x_s_hw_freq_seek() 427 (a->seek_upward && freq < tea->freq) || in snd_tea575x_s_hw_freq_seek() 428 (!a->seek_upward && freq > tea->freq)) { in snd_tea575x_s_hw_freq_seek() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A 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()
|