Searched refs:ratio (Results 51 - 75 of 217) sorted by relevance

123456789

/linux-master/sound/soc/codecs/
H A Darizona.c2057 int ratio; member in struct:__anon220
2143 return fll_fratios[i].ratio;
2155 int init_ratio, ratio; local
2198 arizona_fll_dbg(fll, "pseudo: initial ratio=%u fref=%u refdiv=%u\n",
2205 for (ratio = init_ratio; ratio > 0; ratio--) {
2206 if (target % (ratio * Fref)) {
2208 cfg->fratio = ratio - 1;
2210 "pseudo: found fref=%u refdiv=%d(%d) ratio
2260 int i, ratio; local
[all...]
H A Dcs4270.c153 * struct cs4270_mode_ratios - clock ratio tables
154 * @ratio: the ratio of MCLK to the sample rate
156 * this ratio
158 * ratio
173 * In situations where a single ratio is represented by multiple speed
174 * modes, we favor the slowest speed. E.g, for a ratio of 128, we pick
185 unsigned int ratio; member in struct:cs4270_mode_ratios
232 * by the CS4270. The ratio of MCLK / Fs must be equal to one of nine
328 unsigned int ratio; local
[all...]
H A Dwm8523.c101 int ratio; member in struct:__anon2401
114 int ratio; member in struct:__anon2402
153 /* Find a supported LRCLK ratio */
156 lrclk_ratios[i].ratio)
162 dev_err(component->dev, "MCLK/fs ratio %d unsupported\n",
171 /* Find a fs->bclk ratio */
173 if (params_width(params) * 2 <= bclk_ratios[i].ratio)
178 "No matching BCLK/fs ratio for word length %d\n",
220 val = freq / lrclk_ratios[i].ratio;
H A Des8316.c27 * MCLK/LRCK ratios, but we also add ratio 400, which is commonly used on
385 const unsigned int ratio = supported_mclk_lrck_ratios[i]; local
387 if (freq % ratio == 0)
388 es8316->allowed_rates[count++] = freq / ratio;
485 const unsigned int ratio = supported_mclk_lrck_ratios[i]; local
487 if (clk % ratio != 0)
489 if (clk / ratio == params_rate(params))
H A Dmadera.c3393 int ratio; member in struct:__anon288
3453 return fll_sync_fratios[i].ratio;
3463 int ratio = 1; local
3465 while ((fout / (ratio * fref)) > MADERA_FLL_MAX_N)
3466 ratio++;
3469 *fratio = ratio - 1;
3471 return ratio;
3508 int init_ratio, ratio; local
3565 for (ratio = init_ratio; ratio >
3628 int ratio, ret; local
4425 unsigned int fll_n, min_n, max_n, ratio, theta, lambda; local
[all...]
H A Dwm9081.c86 int ratio; member in struct:__anon4276
453 int ratio; member in struct:__anon4279
508 target /= fll_fratios[i].ratio;
669 target = wm9081->fs * clk_sys_rates[i].ratio;
681 new_sysclk = clk_sys_rates[i].ratio
1055 best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio)
1059 clk_sys_rates[i].ratio) - wm9081->fs);
1066 clk_sys_rates[best].ratio);
H A Duda1334.c80 int ratio; member in struct:__anon2384
136 val = freq / lrclk_ratios[i].ratio;
/linux-master/drivers/cpufreq/
H A Dspeedstep-lib.c38 unsigned int ratio; /* Frequency Multiplier (x10) */ member in struct:__anon192
102 (msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100));
104 return msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100;
H A Dpmac32-cpufreq.c481 const u32 *freqs, *ratio; local
489 ratio = of_get_property(cpunode, "processor-to-bus-ratio*2",
491 if (ratio == NULL) {
492 pr_err("processor-to-bus-ratio*2 missing\n");
509 low_freq = (low_freq * (*ratio)) / 2000;
510 hi_freq = (hi_freq * (*ratio)) / 2000;
H A Dlonghaul.c213 /* Disable bus ratio bit */
242 * Sets a new clock ratio.
427 unsigned int ratio; local
483 ratio = mults[j];
484 if (ratio == -1)
486 if (ratio > maxmult || ratio < minmult)
488 longhaul_table[k].frequency = calc_speed(ratio);
/linux-master/mm/
H A Dbacking-dev.c166 unsigned int ratio; local
169 ret = kstrtouint(buf, 10, &ratio);
173 ret = bdi_set_min_ratio(bdi, ratio);
185 unsigned int ratio; local
188 ret = kstrtouint(buf, 10, &ratio);
192 ret = bdi_set_min_ratio_no_scale(bdi, ratio);
204 unsigned int ratio; local
207 ret = kstrtouint(buf, 10, &ratio);
211 ret = bdi_set_max_ratio(bdi, ratio);
223 unsigned int ratio; local
[all...]
/linux-master/drivers/platform/x86/intel/uncore-frequency/
H A Duncore-frequency.c94 u64 ratio; local
100 ret = rdmsrl_on_cpu(data->control_cpu, MSR_UNCORE_PERF_STATUS, &ratio);
104 *freq = (ratio & 0x7F) * UNCORE_FREQ_KHZ_MULTIPLIER;
/linux-master/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c118 * then we must translate between MSR format and simple ratio
121 int ratio_2_msr_perf(int ratio) argument
126 return ratio;
128 msr_perf = ratio * 255 / bdx_highest_ratio;
131 fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio);
137 int ratio; local
145 ratio = (int)d;
148 fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d);
150 return ratio;
946 int ratio_2_sysfs_khz(int ratio) argument
959 update_cpufreq_scaling_freq(int is_max, int cpu, unsigned int ratio) argument
[all...]
/linux-master/sound/soc/intel/avs/boards/
H A Drt274.c48 int ratio = 100; local
50 snd_soc_dai_set_bclk_ratio(codec_dai, ratio);
53 AVS_RT274_BE_FIXUP_RATE * ratio, AVS_RT274_FREQ_OUT);
/linux-master/drivers/accel/ivpu/
H A Divpu_hw.h24 u32 (*ratio_to_freq)(struct ivpu_device *vdev, u32 ratio);
55 * Pll ratio for the efficiency frequency. The VPU has optimum
56 * performance to power ratio at this frequency.
134 static inline u32 ivpu_hw_ratio_to_freq(struct ivpu_device *vdev, u32 ratio) argument
136 return vdev->hw->ops->ratio_to_freq(vdev, ratio);
/linux-master/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_dpp_dscl.c65 /* Autocal calculate the scaling ratio and initial phase and the
215 static const uint16_t *dpp1_dscl_get_filter_coeffs_64p(int taps, struct fixed31_32 ratio) argument
218 return get_filter_8tap_64p(ratio);
220 return get_filter_7tap_64p(ratio);
222 return get_filter_6tap_64p(ratio);
224 return get_filter_5tap_64p(ratio);
226 return get_filter_4tap_64p(ratio);
228 return get_filter_3tap_64p(ratio);
684 /* Manually calculate scale ratio and init values */
/linux-master/drivers/media/dvb-frontends/
H A Dtda10021.c142 u32 tmp, ratio; local
172 ratio = (symbolrate << 4) / FIN;
174 ratio = (ratio << 8) + tmp / FIN;
176 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, FIN);
178 BDR = ratio;
H A Ddib8000.h46 struct dibx000_bandwidth_config *pll, u32 bw, u8 ratio);
/linux-master/sound/soc/rockchip/
H A Drockchip_pdm.c47 unsigned int ratio; member in struct:rk_pdm_ds_ratio
111 unsigned int i, count, ratio; local
113 ratio = 0;
115 return ratio;
120 ratio = ds_ratio[i].ratio;
122 return ratio;
/linux-master/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-resizer.c213 u32 ratio, rsz_ctrl = 0; local
232 ratio = rkisp1_rsz_calc_ratio(sink_y->width, src_y->width);
233 rkisp1_rsz_write(rsz, RKISP1_CIF_RSZ_SCALE_HY, ratio);
240 ratio = rkisp1_rsz_calc_ratio(sink_c->width, src_c->width);
241 rkisp1_rsz_write(rsz, RKISP1_CIF_RSZ_SCALE_HCB, ratio);
242 rkisp1_rsz_write(rsz, RKISP1_CIF_RSZ_SCALE_HCR, ratio);
249 ratio = rkisp1_rsz_calc_ratio(sink_y->height, src_y->height);
250 rkisp1_rsz_write(rsz, RKISP1_CIF_RSZ_SCALE_VY, ratio);
257 ratio = rkisp1_rsz_calc_ratio(sink_c->height, src_c->height);
258 rkisp1_rsz_write(rsz, RKISP1_CIF_RSZ_SCALE_VC, ratio);
[all...]
/linux-master/tools/perf/util/
H A Dblock-info.c201 double ratio = 0.0; local
204 ratio = (double)bi->cycles_aggr / (double)block_fmt->total_cycles;
206 return color_pct(hpp, block_fmt->width, 100.0 * ratio);
257 double ratio = 0.0; local
262 ratio = (double)avg / (double)block_fmt->block_cycles;
265 return color_pct(hpp, block_fmt->width, 100.0 * ratio);
/linux-master/include/uapi/linux/
H A Dppp_defs.h125 /* the compression ratio is defined as in_count / bytes_out */
129 double ratio; /* not computed in kernel. */ member in struct:compstat
/linux-master/drivers/devfreq/
H A Dexynos-bus.c38 unsigned int ratio; member in struct:exynos_bus
135 stat->busy_time = (edata.load_count * 100) / bus->ratio;
221 * Optionally, Get the saturation ratio according to Exynos SoC
230 if (of_property_read_u32(np, "exynos,saturation-ratio", &bus->ratio))
231 bus->ratio = DEFAULT_SATURATION_RATIO;
/linux-master/sound/soc/samsung/
H A Dspdif.c70 * @clk_rate: Current clock rate for calcurate ratio.
186 int i, ratio; local
220 ratio = spdif->clk_rate / params_rate(params);
222 if (ratio == spdif_sysclk_ratios[i])
225 dev_err(spdif->dev, "Invalid clock ratio %ld/%d\n",
231 switch (ratio) {
/linux-master/sound/soc/tegra/
H A Dtegra210_mbdrc.c72 .ratio = {40960, 8192, 2867, 2048, 410},
122 .ratio = {40960, 2867, 4096, 2867, 410},
172 .ratio = {40960, 2867, 4096, 2867, 410},
912 params->ratio[0] << TEGRA210_MBDRC_RATIO_1ST_SHIFT);
917 params->ratio[1] << TEGRA210_MBDRC_RATIO_2ND_SHIFT);
922 params->ratio[2] << TEGRA210_MBDRC_RATIO_3RD_SHIFT);
927 params->ratio[3] << TEGRA210_MBDRC_RATIO_4TH_SHIFT);
932 params->ratio[4] << TEGRA210_MBDRC_RATIO_5TH_SHIFT);

Completed in 432 milliseconds

123456789