Searched refs:ratio (Results 101 - 125 of 217) sorted by relevance

123456789

/linux-master/drivers/devfreq/
H A Dtegra30-devfreq.c327 const struct tegra_actmon_emc_ratio *ratio = actmon_emc_ratios; local
329 for (i = 0; i < ARRAY_SIZE(actmon_emc_ratios); i++, ratio++) {
330 if (cpu_freq >= ratio->cpu_freq) {
331 if (ratio->emc_freq >= tegra->max_freq)
334 return ratio->emc_freq;
/linux-master/sound/soc/codecs/
H A Dsta32x.c536 /* MCLK interpolation ratio per fs */
652 unsigned int rate, ratio; local
657 "sta32x->mclk is unset. Unable to determine ratio\n");
662 ratio = sta32x->mclk / rate;
663 dev_dbg(component->dev, "rate: %u, ratio: %u\n", rate, ratio);
678 if (mcs_ratio_table[ir][i] == ratio) {
685 dev_err(component->dev, "Unresolvable ratio: %u\n", ratio);
H A Dsta350.c570 /* MCLK interpolation ratio per fs */
681 unsigned int rate, ratio; local
686 "sta350->mclk is unset. Unable to determine ratio\n");
691 ratio = sta350->mclk / rate;
692 dev_dbg(component->dev, "rate: %u, ratio: %u\n", rate, ratio);
707 if (mcs_ratio_table[ir][i] == ratio) {
714 dev_err(component->dev, "Unresolvable ratio: %u\n", ratio);
H A Dpcm3168a.c445 unsigned int reg, mask, ms, ms_shift, fmt, fmt_shift, ratio, tdm_slots; local
465 ratio = pcm3168a->sysclk / params_rate(params);
468 if (pcm3168a_scki_ratios[i] == ratio)
473 dev_err(component->dev, "unsupported sysclk ratio\n");
H A Dwm8961.c470 int ratio; member in struct:__anon4264
531 /* Select a CLK_SYS/fs ratio equal to or higher than required */
546 if (wm8961_clk_sys_ratio[i].ratio >= target)
554 wm8961_clk_sys_ratio[i].ratio, wm8961->sysclk, fs,
H A Dmax9867.c329 unsigned long int rate, ratio; local
345 ratio = max9867->pclk / rate;
349 switch (ratio) {
H A Dwm8993.c151 int ratio; member in struct:__anon4270
373 int ratio; member in struct:__anon4273
429 target /= fll_fratios[i].ratio;
1242 best_val = abs((wm8993->sysclk_rate / clk_sys_rates[0].ratio)
1246 clk_sys_rates[i].ratio) - wm8993->fs);
1253 clk_sys_rates[best].ratio);
H A Dwm8580.c542 int i, ratio, osr; local
565 /* Look up the SYSCLK ratio; accept only exact matches */
566 ratio = wm8580->sysclk[dai->driver->id] / params_rate(params);
568 if (ratio == wm8580_sysclk_ratios[i])
571 dev_err(component->dev, "Invalid clock ratio %d/%d\n",
580 switch (ratio) {
H A Drt274.c874 static int rt274_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
879 dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio);
880 rt274->fs = ratio;
881 if ((ratio / 50) == 0)
H A Dnau8540.c50 /* ratio for input clk freq */
679 /* Choose the FLL ratio based on FREF */
686 fll_param->ratio = fll_ratio[i].val;
708 * input based on FDCO, FREF and FLL ratio.
710 fvco = div_u64(fvco_max << 16, fref * fll_param->ratio);
724 fll_param->ratio | (0x6 << NAU8540_ICTRL_LATCH_SFT));
798 dev_dbg(nau8540->dev, "mclk_src=%x ratio=%x fll_frac=%x fll_int=%x clk_ref_div=%x\n",
799 fll_param.mclk_src, fll_param.ratio, fll_param.fll_frac,
H A Dnau8540.h247 int ratio; member in struct:nau8540_fll
/linux-master/drivers/iio/light/
H A Dtsl2563.c373 * kinds of light, determined by the ratio adc1/adc0 (basically the ratio
375 * lists the upper threshold of the adc1/adc0 ratio and the corresponding
425 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; local
427 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX;
429 while (lp->ch_ratio < ratio)
/linux-master/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-core.c123 static int camif_get_scaler_factor(u32 src, u32 tar, u32 *ratio, u32 *shift) argument
134 *ratio = tmp;
139 *ratio = 1;
177 pr_debug("H: ratio: %u, shift: %u. V: ratio: %u, shift: %u.\n",
/linux-master/drivers/media/dvb-frontends/
H A Dstv0299.c218 u32 ratio; local
227 ratio = big << 4;
229 return state->config->set_symbol_rate(fe, srate, ratio);
/linux-master/sound/soc/sh/rcar/
H A Dadg.c86 int ratio = 2 << (i * 2); local
87 if (0 == (div % ratio))
88 return (u32)((i << 8) | ((div / ratio) - 1));
/linux-master/include/sound/
H A Dsoc-dai.h180 int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio);
295 int (*set_bclk_ratio)(struct snd_soc_dai *dai, unsigned int ratio);
/linux-master/drivers/media/platform/renesas/rcar-vin/
H A Drcar-dma.c603 unsigned int ratio; local
605 ratio = in * 4096 / out;
606 return ratio >= 0x10000 ? 0xffff : ratio;
609 static unsigned int rvin_uds_filter_width(unsigned int ratio) argument
611 if (ratio >= 0x1000)
612 return 64 * (ratio & 0xf000) / ratio;
/linux-master/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_dpp.c70 /* Autocal calculate the scaling ratio and initial phase and the
122 #define IDENTITY_RATIO(ratio) (dc_fixpt_u2d19(ratio) == (1 << 19))
143 /* No support for programming ratio of 4, drop to 3.99999.. */
/linux-master/mm/
H A Dpage-writeback.c255 * user-configurable dirty ratio is the effective number of pages that
371 * vm_dirty_{bytes|ratio} and dirty_background_{bytes|ratio}. The caller
382 unsigned long ratio = (vm_dirty_ratio * PAGE_SIZE) / 100; local
400 ratio = min(DIV_ROUND_UP(bytes, global_avail),
411 thresh = (ratio * available_memory) / PAGE_SIZE;
668 unsigned long ratio; local
671 ratio = div64_u64(pages * 100ULL * BDI_RATIO_SCALE, dirty_thresh);
673 return ratio;
676 static u64 bdi_get_bytes(unsigned int ratio) argument
[all...]
/linux-master/drivers/media/pci/ttpci/
H A Dbudget-av.c459 static int philips_su1278_ty_ci_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
481 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
482 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
483 stv0299_writereg(fe, 0x21, (ratio) & 0xf0);
832 u32 srate, u32 ratio)
858 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
859 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
860 stv0299_writereg(fe, 0x21, (ratio) & 0xf0);
831 philips_sd1878_ci_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
/linux-master/sound/soc/stm/
H A Dstm32_i2s.c224 * @divider: prescaler division ratio
268 unsigned int ratio, div, divider = 1; local
271 ratio = DIV_ROUND_CLOSEST(input_rate, output_rate);
274 odd = ratio & 0x1;
277 div = ratio >> 1;
/linux-master/drivers/gpu/drm/exynos/
H A Dexynos_drm_gsc.c73 * @pre_hratio: horizontal ratio of the prescaler.
74 * @pre_vratio: vertical ratio of the prescaler.
75 * @main_hratio: the main scaler's horizontal ratio.
76 * @main_vratio: the main scaler's vertical ratio.
709 u32 *ratio)
714 DRM_DEV_ERROR(ctx->dev, "failed to make ratio and shift.\n");
717 *ratio = 4;
719 *ratio = 2;
721 *ratio = 1;
764 DRM_DEV_ERROR(ctx->dev, "failed to get ratio horizonta
708 gsc_get_ratio_shift(struct gsc_context *ctx, u32 src, u32 dst, u32 *ratio) argument
[all...]
/linux-master/drivers/accel/ivpu/
H A Divpu_hw_37xx.c23 #define WP_CONFIG(tile, ratio) (((tile) << 8) | (ratio))
205 ivpu_dbg(vdev, PM, "PLL workpoint request: config 0x%04x pll ratio 0x%x\n",
806 static u32 ivpu_hw_37xx_ratio_to_freq(struct ivpu_device *vdev, u32 ratio) argument
808 u32 pll_clock = PLL_REF_CLK_FREQ * ratio;
/linux-master/sound/pci/au88x0/
H A Dau88x0_core.c475 vortex_src_persist_convratio(vortex_t * vortex, unsigned char src, int ratio) argument
480 hwwrite(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2), ratio);
487 while (temp != ratio);
505 vortex_src_change_convratio(vortex_t * vortex, unsigned char src, int ratio)
509 if ((ratio & 0x10000) && (ratio != 0x10000)) {
510 if (ratio & 0x3fff)
511 a = (0x11 - ((ratio >> 0xe) & 0x3)) - 1;
513 a = (0x11 - ((ratio >> 0xe) & 0x3)) - 2;
521 vortex_src_persist_convratio(vortex, src, ratio);
[all...]
/linux-master/sound/soc/fsl/
H A Dfsl_asrc.c125 * Check if the divider is available for internal ratio mode
316 * fsl_asrc_set_ideal_ratio - Calculate and set the ratio for Ideal Ratio mode only
321 * The ratio is a 32-bit fixed point value with 26 fractional bits.
328 unsigned long ratio; local
336 /* Calculate the intergal part of the ratio */
337 ratio = (inrate / outrate) << IDEAL_RATIO_DECIMAL_DEPTH;
348 ratio |= 1 << (IDEAL_RATIO_DECIMAL_DEPTH - i);
355 regmap_write(asrc->regmap, REG_ASRIDRL(index), ratio);
356 regmap_write(asrc->regmap, REG_ASRIDRH(index), ratio >> 24);
371 * The ideal ratio configuratio
[all...]

Completed in 497 milliseconds

123456789