/openbmc/linux/tools/power/cpupower/bench/ |
H A D | cpufreq-bench_script.sh | 28 for sampling_rate in $SAMPLING_RATE;do 31 echo $sampling_rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 33 sampling_rate_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate) 41 if [ ${sampling_rate_set} -eq ${sampling_rate} ];then 42 echo "sampling_rate: $sampling_rate, set in sysfs: ${sampling_rate_set}" 59 for sampling_rate in $SAMPLING_RATE;do 60 …-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}/* \"sampling_rate = $sampling_r… 67 for sampling_rate in $SAMPLING_RATE;do 68 …ESHOLD}_sampling_rate_${sampling_rate}\" -t \"Ondemand up_threshold: ${UP_THRESHOLD} % comparison … 78 for sampling_rate in $SAMPLING_RATE;do [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | max98373-i2c.c | 221 unsigned int sampling_rate = 0; in max98373_dai_hw_params() local 253 sampling_rate = MAX98373_PCM_SR_SET1_SR_8000; in max98373_dai_hw_params() 256 sampling_rate = MAX98373_PCM_SR_SET1_SR_11025; in max98373_dai_hw_params() 259 sampling_rate = MAX98373_PCM_SR_SET1_SR_12000; in max98373_dai_hw_params() 262 sampling_rate = MAX98373_PCM_SR_SET1_SR_16000; in max98373_dai_hw_params() 265 sampling_rate = MAX98373_PCM_SR_SET1_SR_22050; in max98373_dai_hw_params() 268 sampling_rate = MAX98373_PCM_SR_SET1_SR_24000; in max98373_dai_hw_params() 271 sampling_rate = MAX98373_PCM_SR_SET1_SR_32000; in max98373_dai_hw_params() 295 sampling_rate); in max98373_dai_hw_params() 307 sampling_rate - 3); in max98373_dai_hw_params() [all …]
|
H A D | max98520.c | 174 unsigned int sampling_rate = 0; in max98520_dai_hw_params() local 206 sampling_rate = MAX98520_PCM_SR_8000; in max98520_dai_hw_params() 209 sampling_rate = MAX98520_PCM_SR_11025; in max98520_dai_hw_params() 212 sampling_rate = MAX98520_PCM_SR_12000; in max98520_dai_hw_params() 215 sampling_rate = MAX98520_PCM_SR_16000; in max98520_dai_hw_params() 218 sampling_rate = MAX98520_PCM_SR_22050; in max98520_dai_hw_params() 221 sampling_rate = MAX98520_PCM_SR_24000; in max98520_dai_hw_params() 224 sampling_rate = MAX98520_PCM_SR_32000; in max98520_dai_hw_params() 227 sampling_rate = MAX98520_PCM_SR_44100; in max98520_dai_hw_params() 230 sampling_rate = MAX98520_PCM_SR_48000; in max98520_dai_hw_params() [all …]
|
H A D | max98388.c | 562 unsigned int sampling_rate = 0; in max98388_dai_hw_params() local 613 sampling_rate = MAX98388_PCM_SR_8000; in max98388_dai_hw_params() 616 sampling_rate = MAX98388_PCM_SR_11025; in max98388_dai_hw_params() 619 sampling_rate = MAX98388_PCM_SR_12000; in max98388_dai_hw_params() 622 sampling_rate = MAX98388_PCM_SR_16000; in max98388_dai_hw_params() 625 sampling_rate = MAX98388_PCM_SR_22050; in max98388_dai_hw_params() 628 sampling_rate = MAX98388_PCM_SR_24000; in max98388_dai_hw_params() 631 sampling_rate = MAX98388_PCM_SR_32000; in max98388_dai_hw_params() 634 sampling_rate = MAX98388_PCM_SR_44100; in max98388_dai_hw_params() 637 sampling_rate = MAX98388_PCM_SR_48000; in max98388_dai_hw_params() [all …]
|
H A D | max98927.c | 304 unsigned int sampling_rate = 0; in max98927_dai_hw_params() local 335 sampling_rate = MAX98927_PCM_SR_SET1_SR_8000; in max98927_dai_hw_params() 338 sampling_rate = MAX98927_PCM_SR_SET1_SR_11025; in max98927_dai_hw_params() 341 sampling_rate = MAX98927_PCM_SR_SET1_SR_12000; in max98927_dai_hw_params() 344 sampling_rate = MAX98927_PCM_SR_SET1_SR_16000; in max98927_dai_hw_params() 347 sampling_rate = MAX98927_PCM_SR_SET1_SR_22050; in max98927_dai_hw_params() 350 sampling_rate = MAX98927_PCM_SR_SET1_SR_24000; in max98927_dai_hw_params() 353 sampling_rate = MAX98927_PCM_SR_SET1_SR_32000; in max98927_dai_hw_params() 356 sampling_rate = MAX98927_PCM_SR_SET1_SR_44100; in max98927_dai_hw_params() 379 sampling_rate - 3); in max98927_dai_hw_params() [all …]
|
H A D | max98373-sdw.c | 525 int ret, chan_sz, sampling_rate; in max98373_sdw_dai_hw_params() local 593 sampling_rate = MAX98373_PCM_SR_SET1_SR_8000; in max98373_sdw_dai_hw_params() 596 sampling_rate = MAX98373_PCM_SR_SET1_SR_11025; in max98373_sdw_dai_hw_params() 599 sampling_rate = MAX98373_PCM_SR_SET1_SR_12000; in max98373_sdw_dai_hw_params() 602 sampling_rate = MAX98373_PCM_SR_SET1_SR_16000; in max98373_sdw_dai_hw_params() 605 sampling_rate = MAX98373_PCM_SR_SET1_SR_22050; in max98373_sdw_dai_hw_params() 608 sampling_rate = MAX98373_PCM_SR_SET1_SR_24000; in max98373_sdw_dai_hw_params() 611 sampling_rate = MAX98373_PCM_SR_SET1_SR_32000; in max98373_sdw_dai_hw_params() 614 sampling_rate = MAX98373_PCM_SR_SET1_SR_44100; in max98373_sdw_dai_hw_params() 617 sampling_rate = MAX98373_PCM_SR_SET1_SR_48000; in max98373_sdw_dai_hw_params() [all …]
|
H A D | rt1318-sdw.c | 574 unsigned int sampling_rate; in rt1318_sdw_hw_params() local 616 sampling_rate = RT1318_SDCA_RATE_16000HZ; in rt1318_sdw_hw_params() 619 sampling_rate = RT1318_SDCA_RATE_32000HZ; in rt1318_sdw_hw_params() 622 sampling_rate = RT1318_SDCA_RATE_44100HZ; in rt1318_sdw_hw_params() 625 sampling_rate = RT1318_SDCA_RATE_48000HZ; in rt1318_sdw_hw_params() 628 sampling_rate = RT1318_SDCA_RATE_96000HZ; in rt1318_sdw_hw_params() 631 sampling_rate = RT1318_SDCA_RATE_192000HZ; in rt1318_sdw_hw_params() 642 sampling_rate); in rt1318_sdw_hw_params()
|
H A D | max98396.c | 511 unsigned int sampling_rate = 0; in max98396_dai_hw_params() local 539 sampling_rate = MAX98396_PCM_SR_8000; in max98396_dai_hw_params() 542 sampling_rate = MAX98396_PCM_SR_11025; in max98396_dai_hw_params() 545 sampling_rate = MAX98396_PCM_SR_12000; in max98396_dai_hw_params() 548 sampling_rate = MAX98396_PCM_SR_16000; in max98396_dai_hw_params() 551 sampling_rate = MAX98396_PCM_SR_22050; in max98396_dai_hw_params() 554 sampling_rate = MAX98396_PCM_SR_24000; in max98396_dai_hw_params() 557 sampling_rate = MAX98396_PCM_SR_32000; in max98396_dai_hw_params() 560 sampling_rate = MAX98396_PCM_SR_44100; in max98396_dai_hw_params() 563 sampling_rate = MAX98396_PCM_SR_48000; in max98396_dai_hw_params() [all …]
|
H A D | max98390.c | 310 unsigned int sampling_rate; in max98390_dai_hw_params() local 340 sampling_rate = MAX98390_PCM_SR_SET1_SR_8000; in max98390_dai_hw_params() 343 sampling_rate = MAX98390_PCM_SR_SET1_SR_11025; in max98390_dai_hw_params() 346 sampling_rate = MAX98390_PCM_SR_SET1_SR_12000; in max98390_dai_hw_params() 349 sampling_rate = MAX98390_PCM_SR_SET1_SR_16000; in max98390_dai_hw_params() 352 sampling_rate = MAX98390_PCM_SR_SET1_SR_22050; in max98390_dai_hw_params() 355 sampling_rate = MAX98390_PCM_SR_SET1_SR_24000; in max98390_dai_hw_params() 358 sampling_rate = MAX98390_PCM_SR_SET1_SR_32000; in max98390_dai_hw_params() 361 sampling_rate = MAX98390_PCM_SR_SET1_SR_44100; in max98390_dai_hw_params() 364 sampling_rate = MAX98390_PCM_SR_SET1_SR_48000; in max98390_dai_hw_params() [all …]
|
H A D | rt1017-sdca-sdw.c | 583 unsigned int sampling_rate; in rt1017_sdca_pcm_hw_params() local 629 sampling_rate = RT1017_SDCA_RATE_44100HZ; in rt1017_sdca_pcm_hw_params() 632 sampling_rate = RT1017_SDCA_RATE_48000HZ; in rt1017_sdca_pcm_hw_params() 635 sampling_rate = RT1017_SDCA_RATE_96000HZ; in rt1017_sdca_pcm_hw_params() 638 sampling_rate = RT1017_SDCA_RATE_192000HZ; in rt1017_sdca_pcm_hw_params() 650 sampling_rate); in rt1017_sdca_pcm_hw_params()
|
H A D | rt712-sdca-dmic.c | 647 unsigned int sampling_rate; in rt712_sdca_dmic_hw_params() local 683 sampling_rate = RT712_SDCA_RATE_16000HZ; in rt712_sdca_dmic_hw_params() 686 sampling_rate = RT712_SDCA_RATE_32000HZ; in rt712_sdca_dmic_hw_params() 689 sampling_rate = RT712_SDCA_RATE_44100HZ; in rt712_sdca_dmic_hw_params() 692 sampling_rate = RT712_SDCA_RATE_48000HZ; in rt712_sdca_dmic_hw_params() 695 sampling_rate = RT712_SDCA_RATE_96000HZ; in rt712_sdca_dmic_hw_params() 698 sampling_rate = RT712_SDCA_RATE_192000HZ; in rt712_sdca_dmic_hw_params() 709 sampling_rate); in rt712_sdca_dmic_hw_params() 712 sampling_rate); in rt712_sdca_dmic_hw_params()
|
H A D | rt712-sdca.c | 1023 unsigned int sampling_rate; in rt712_sdca_pcm_hw_params() local 1076 sampling_rate = RT712_SDCA_RATE_44100HZ; in rt712_sdca_pcm_hw_params() 1079 sampling_rate = RT712_SDCA_RATE_48000HZ; in rt712_sdca_pcm_hw_params() 1082 sampling_rate = RT712_SDCA_RATE_96000HZ; in rt712_sdca_pcm_hw_params() 1085 sampling_rate = RT712_SDCA_RATE_192000HZ; in rt712_sdca_pcm_hw_params() 1098 sampling_rate); in rt712_sdca_pcm_hw_params() 1101 sampling_rate); in rt712_sdca_pcm_hw_params() 1106 sampling_rate); in rt712_sdca_pcm_hw_params()
|
H A D | rt722-sdca.c | 1168 unsigned int sampling_rate; in rt722_sdca_pcm_hw_params() local 1227 sampling_rate = RT722_SDCA_RATE_44100HZ; in rt722_sdca_pcm_hw_params() 1230 sampling_rate = RT722_SDCA_RATE_48000HZ; in rt722_sdca_pcm_hw_params() 1233 sampling_rate = RT722_SDCA_RATE_96000HZ; in rt722_sdca_pcm_hw_params() 1236 sampling_rate = RT722_SDCA_RATE_192000HZ; in rt722_sdca_pcm_hw_params() 1248 RT722_SDCA_CTL_SAMPLE_FREQ_INDEX, 0), sampling_rate); in rt722_sdca_pcm_hw_params() 1251 RT722_SDCA_CTL_SAMPLE_FREQ_INDEX, 0), sampling_rate); in rt722_sdca_pcm_hw_params() 1257 RT722_SDCA_CTL_SAMPLE_FREQ_INDEX, 0), sampling_rate); in rt722_sdca_pcm_hw_params() 1262 RT722_SDCA_CTL_SAMPLE_FREQ_INDEX, 0), sampling_rate); in rt722_sdca_pcm_hw_params()
|
/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-vbi-gen.c | 23 u8 *buf, unsigned sampling_rate) in vivid_vbi_gen_wss_raw() argument 41 unsigned n = ((bit + 1) * sampling_rate) / rate; in vivid_vbi_gen_wss_raw() 49 u8 *buf, unsigned sampling_rate) in vivid_vbi_gen_teletext_raw() argument 58 sampling_rate /= 10; in vivid_vbi_gen_teletext_raw() 61 unsigned n = ((bit + 1) * sampling_rate) / rate; in vivid_vbi_gen_teletext_raw() 84 u8 *buf, unsigned sampling_rate) in vivid_vbi_gen_cc_raw() argument 102 unsigned n = ((bit + 1) * sampling_rate) / rate; in vivid_vbi_gen_cc_raw() 132 vivid_vbi_gen_cc_raw(data, linebuf, vbi_fmt->sampling_rate); in vivid_vbi_gen_raw() 134 vivid_vbi_gen_wss_raw(data, linebuf, vbi_fmt->sampling_rate); in vivid_vbi_gen_raw() 136 vivid_vbi_gen_teletext_raw(data, linebuf, vbi_fmt->sampling_rate); in vivid_vbi_gen_raw()
|
/openbmc/linux/drivers/cpufreq/ |
H A D | cpufreq_governor.c | 56 dbs_data->sampling_rate = sampling_interval; in sampling_rate_store() 120 unsigned int sampling_rate, io_busy, j; in dbs_update() local 128 sampling_rate = dbs_data->sampling_rate * policy_dbs->rate_mult; in dbs_update() 165 } else if (unlikely((int)idle_time > 2 * sampling_rate && in dbs_update() 215 if (unlikely((int)idle_time > 2 * sampling_rate)) { in dbs_update() 216 unsigned int periods = idle_time / sampling_rate; in dbs_update() 449 dbs_data->sampling_rate = max_t(unsigned int, in cpufreq_dbs_governor_init() 518 unsigned int sampling_rate, ignore_nice, j; in cpufreq_dbs_governor_start() local 527 sampling_rate = dbs_data->sampling_rate; in cpufreq_dbs_governor_start() 546 gov_set_update_util(policy_dbs, sampling_rate); in cpufreq_dbs_governor_start()
|
H A D | cpufreq_ondemand.c | 99 delay_hi_us = (freq_avg - freq_lo) * dbs_data->sampling_rate; in generic_powersave_bias_target() 104 dbs_info->freq_lo_delay_us = dbs_data->sampling_rate - delay_hi_us; in generic_powersave_bias_target() 199 return dbs_data->sampling_rate * policy_dbs->rate_mult; in od_dbs_update() 317 gov_show_one_common(sampling_rate); 324 gov_attr_rw(sampling_rate); 332 &sampling_rate.attr,
|
H A D | cpufreq_conservative.c | 144 return dbs_data->sampling_rate; in cs_dbs_update() 246 gov_show_one_common(sampling_rate); 253 gov_attr_rw(sampling_rate); 261 &sampling_rate.attr,
|
/openbmc/linux/sound/firewire/fireworks/ |
H A D | fireworks_command.c | 30 u32 sampling_rate; member 284 be32_to_cpus(&clock->sampling_rate); in command_get_clock() 311 if ((clock.source == source) && (clock.sampling_rate == rate)) in command_set_clock() 317 if ((rate != UINT_MAX) && (clock.sampling_rate != rate)) in command_set_clock() 318 clock.sampling_rate = rate; in command_set_clock() 322 cpu_to_be32s(&clock.sampling_rate); in command_set_clock() 362 *rate = clock.sampling_rate; in snd_efw_command_get_sampling_rate()
|
H A D | fireworks_pcm.c | 49 int snd_efw_get_multiplier_mode(unsigned int sampling_rate, unsigned int *mode) in snd_efw_get_multiplier_mode() argument 54 if (freq_table[i] == sampling_rate) { in snd_efw_get_multiplier_mode() 201 unsigned int sampling_rate; in pcm_open() local 203 err = snd_efw_command_get_sampling_rate(efw, &sampling_rate); in pcm_open() 208 substream->runtime->hw.rate_min = sampling_rate; in pcm_open() 209 substream->runtime->hw.rate_max = sampling_rate; in pcm_open()
|
H A D | fireworks_proc.c | 109 unsigned int sampling_rate; in proc_read_clock() local 114 if (snd_efw_command_get_sampling_rate(efw, &sampling_rate) < 0) in proc_read_clock() 118 snd_iprintf(buffer, "Sampling Rate: %d\n", sampling_rate); in proc_read_clock()
|
/openbmc/u-boot/drivers/sound/ |
H A D | wm8994.c | 279 uint sampling_rate, uint bits_per_sample, in wm8994_hw_params() argument 312 bclk_rate = sampling_rate * 32; in wm8994_hw_params() 335 if (src_rate[i] == sampling_rate) in wm8994_hw_params() 348 best_val = abs((fs_ratios[0] * sampling_rate) - priv->aifclk[id]); in wm8994_hw_params() 351 cur_val = abs(fs_ratios[i] * sampling_rate - priv->aifclk[id]); in wm8994_hw_params() 813 enum en_audio_interface aif_id, int sampling_rate, in _wm8994_init() argument 831 ret = wm8994_hw_params(priv, aif_id, sampling_rate, bits_per_sample, in _wm8994_init()
|
H A D | wm8994.h | 66 int sampling_rate, int mclk_freq,
|
H A D | max98090.c | 302 static int max98090_do_init(struct maxim_priv *priv, int sampling_rate, in max98090_do_init() argument 319 ret = max98090_hw_params(priv, sampling_rate, bits_per_sample); in max98090_do_init()
|
/openbmc/linux/sound/firewire/bebob/ |
H A D | bebob_pcm.c | 161 unsigned int sampling_rate; in pcm_open() local 163 err = spec->get(bebob, &sampling_rate); in pcm_open() 171 substream->runtime->hw.rate_min = sampling_rate; in pcm_open() 172 substream->runtime->hw.rate_max = sampling_rate; in pcm_open()
|
/openbmc/linux/include/linux/ |
H A D | serial_sci.h | 55 unsigned int sampling_rate; member
|