/linux-master/drivers/gpu/drm/amd/display/dc/dcn201/ |
H A D | dcn201_dpp.c | 181 #define IDENTITY_RATIO(ratio) (dc_fixpt_u3d19(ratio) == (1 << 19))
|
/linux-master/sound/soc/bcm/ |
H A D | bcm2835-i2s.c | 228 unsigned int ratio) 232 if (!ratio) { 237 if (ratio > BCM2835_I2S_MAX_FRAME_LENGTH) 243 dev->slot_width = ratio / 2; 244 dev->frame_length = ratio; 227 bcm2835_i2s_set_dai_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
|
/linux-master/sound/soc/codecs/ |
H A D | cs42l51.c | 340 unsigned int ratio; member in struct:cs42l51_ratios 402 unsigned int ratio; local 422 /* Figure out which MCLK/LRCK ratio to use */ 424 ratio = cs42l51->mclk / rate; /* MCLK/LRCK ratio */ 426 if (ratios[i].ratio == ratio) 431 /* We did not find a matching ratio */ 432 dev_err(component->dev, "could not find matching ratio\n");
|
H A D | cs4271.c | 299 unsigned short ratio; /* MCLK / sample rate */ member in struct:cs4271_clk_cfg 300 u8 ratio_mask; /* ratio bit mask for Master mode */ 342 unsigned int ratio, val; local 381 ratio = cs4271->mclk / cs4271->rate; 385 (cs4271_clk_tab[i].ratio == ratio))
|
H A D | wm8770.c | 416 int ratio; local 449 /* Only need to set MCLK/LRCLK ratio if we're master */ 452 ratio = wm8770->sysclk / params_rate(params); 453 if (ratio == mclk_ratios[i]) 459 "Unable to configure MCLK ratio %d/%d\n",
|
H A D | es8328.c | 484 int ratio; local 508 ratio = es8328->mclk_ratios[i]; 510 ratio = 0; 550 return snd_soc_component_update_bits(component, reg, ES8328_RATEMASK, ratio);
|
H A D | cs42l56.c | 630 u8 ratio; member in struct:cs42l56_clk_para 709 return clk_ratio_table[i].ratio; 864 int ratio; local 866 ratio = cs42l56_get_mclk_ratio(cs42l56->mclk, params_rate(params)); 867 if (ratio >= 0) { 869 CS42L56_CLK_RATIO_MASK, ratio); 871 dev_err(component->dev, "unsupported mclk/sclk/lrclk ratio\n");
|
H A D | wm8350.c | 966 int ratio; /* FLL_FRATIO */ member in struct:_fll_div 993 fll_div->ratio = 1; 995 fll_div->ratio = 8; 998 t2 = input * fll_div->ratio; 1046 "FLL in %u FLL out %u N 0x%x K 0x%x div %d ratio %d", 1048 fll_div.ratio); 1056 (fll_div.ratio << 11) | (fll_div. 1063 (fll_div.ratio == 8 ? WM8350_FLL_SLOW_LOCK_REF : 0));
|
/linux-master/sound/soc/sh/rcar/ |
H A D | src.c | 215 uint ratio; local 227 /* 6 - 1/6 are very enough ratio for SRC_BSDSR */ 229 ratio = 0; 231 ratio = 100 * fin / fout; 233 ratio = 100 * fout / fin; 235 if (ratio > 600) { 236 dev_err(dev, "FSO/FSI ratio error\n");
|
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_histo.c | 298 unsigned int ratio; local 314 * compute the closest rounded dividing ratio. 316 * Ratio Rounded ratio 322 * The rounded ratio can be computed using 324 * 1 << (ceil(ratio * 2) / 3) 327 ratio = 1 << (crop->width * 2 / sel->r.width / 3); 328 sel->r.width = crop->width / ratio; 332 ratio = 1 << (crop->height * 2 / sel->r.height / 3); 333 sel->r.height = crop->height / ratio;
|
/linux-master/drivers/thermal/ |
H A D | sprd_thermal.c | 155 * and the default ratio is 1000. 157 int dt_offset = 64, ratio = 1000; local 163 ratio += thm->ratio_sign * thm->ratio_off; 169 * k_cal = (k * ratio) / 1000. 172 sen->cal_slope = (thm->var_data->ideal_k * ratio) / 1000;
|
/linux-master/sound/soc/fsl/ |
H A D | fsl_sai.c | 178 unsigned int ratio) 182 sai->bclk_ratio = ratio; 408 u32 savediv = 0, ratio, bestdiff = freq; local 432 ratio = DIV_ROUND_CLOSEST(clk_rate, freq); 433 if (!ratio || ratio > 512) 435 if (ratio == 1 && !support_1_1_ratio) 437 if ((ratio & 1) && ratio > 1) 440 diff = abs((long)clk_rate - ratio * fre 177 fsl_sai_set_dai_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument [all...] |
/linux-master/drivers/media/common/b2c2/ |
H A D | flexcop-fe-tuner.c | 199 u32 srate, u32 ratio) 220 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); 221 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); 222 stv0299_writereg(fe, 0x21, ratio & 0xf0); 198 samsung_tbmu24112_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
|
/linux-master/sound/soc/tegra/ |
H A D | tegra210_mbdrc.h | 188 u32 ratio[TEGRA210_MBDRC_RATIO_NUM]; member in struct:tegra210_mbdrc_band_params
|
/linux-master/drivers/iio/adc/ |
H A D | sc27xx_adc.c | 70 /* ADC voltage ratio definition */ 101 * address and ratio, we should save ratio config and base 587 u32 ratio; local 589 ratio = data->var_data->get_ratio(channel, scale); 590 fract->numerator = ratio >> SC27XX_RATIO_NUMERATOR_OFFSET; 591 fract->denominator = ratio & SC27XX_RATIO_DENOMINATOR_MASK; 627 * voltage ratio.
|
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | opera1.c | 185 u32 ratio) 189 stv0299_writereg(fe, REG_1F_SYMBOLRATE_BYTE0, (ratio >> 16) & 0xff); 190 stv0299_writereg(fe, REG_20_SYMBOLRATE_BYTE1, (ratio >> 8) & 0xff); 191 stv0299_writereg(fe, REG_21_SYMBOLRATE_BYTE2, (ratio) & 0xf0); 184 opera1_stv0299_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
|
/linux-master/drivers/media/platform/qcom/venus/ |
H A D | venc_ctrls.c | 28 u32 b, p, ratio; local 47 ratio = b / p; 49 if (ratio == conseq_b) { 54 if (ratio > conseq_b)
|
/linux-master/sound/soc/xtensa/ |
H A D | xtfpga-i2s.c | 288 unsigned freq, ratio, level; local 300 /* ratio field of the config register controls MCLK->I2S clock 301 * derivation: I2S clock = MCLK / (2 * (ratio + 2)). 303 * So with MCLK = 256 * sample rate ratio is 0 for 32 bit stereo 306 ratio = (freq - (srate * sample_size * 8)) / 311 ratio << XTFPGA_I2S_CONFIG_RATIO_BASE); 331 dev_dbg(i2s->dev, "%s freq: %u, ratio: %u, level: %u\n", 332 __func__, freq, ratio, level);
|
/linux-master/drivers/net/ppp/ |
H A D | bsd_comp.c | 94 * The compression ratio is checked at the first end of a packet 150 unsigned int ratio; /* recent compression ratio */ member in struct:bsd_db 151 unsigned int checkpoint; /* when to next check the ratio */ 229 db->ratio = 0; 236 * Compute the compression ratio using fixed-point arithmetic 240 * watch only the local compression ratio. 244 * must compute the same ratio. 253 /* age the ratio by limiting the size of the counts */ 264 /* Reset the dictionary only if the ratio i [all...] |
/linux-master/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-hw.c | 104 unsigned int ratio = from / to; local 106 if (ratio < 2) 108 else if (ratio < 4) 110 else if (ratio < 8)
|
/linux-master/arch/s390/kernel/ |
H A D | perf_cpum_sf.c | 492 static unsigned long compute_sfb_extent(unsigned long ratio, unsigned long base) argument 499 if (ratio <= 5) 501 if (ratio <= 25) 503 if (ratio <= 50) 505 if (ratio <= 75) 507 if (ratio <= 100) 509 if (ratio <= 250) 518 unsigned long ratio, num; local 527 * discarded. Then calculate the ratio of lost samples to total samples 530 ratio [all...] |
/linux-master/arch/x86/kernel/cpu/ |
H A D | aperfmperf.c | 52 * APERF/MPERF frequency ratio computation. 55 * ratio to account for the 'current' frequency, corresponding to 72 * Benchmarks show that's a good compromise between the 1C turbo ratio 81 * Setting freq_max to anything less than the 1C turbo ratio makes the ratio 271 * Some CPUs have turbo boost but don't declare any turbo ratio 281 pr_debug("Non-zero turbo and base frequencies led to a 0 ratio.\n"); 312 pr_info("Estimated ratio of average max frequency by base frequency (times 1024): %llu\n", arch_max_freq_ratio); 315 void freq_invariance_set_perf_ratio(u64 ratio, bool turbo_disabled) argument 317 arch_turbo_freq_ratio = ratio; [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | cx24123.c | 444 u32 sample_rate, ratio, sample_gain; local 478 ratio = (u32) tmp; 482 cx24123_writereg(state, 0x08, (ratio >> 16) & 0x3f); 483 cx24123_writereg(state, 0x09, (ratio >> 8) & 0xff); 484 cx24123_writereg(state, 0x0a, ratio & 0xff); 491 dprintk("srate=%d, ratio=0x%08x, sample_rate=%i sample_gain=%d\n", 492 srate, ratio, sample_rate, sample_gain);
|
/linux-master/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_transform.c | 44 #define IDENTITY_RATIO(ratio) (dc_fixpt_u2d19(ratio) == (1 << 19)) 391 static const uint16_t *get_filter_coeffs_16p(int taps, struct fixed31_32 ratio) argument 394 return get_filter_4tap_16p(ratio); 396 return get_filter_3tap_16p(ratio); 432 /* 3. Calculate and program ratio, filter initialization */ 515 /* 3. Calculate and program ratio, DCE6 filter initialization */ 1141 static uint32_t decide_taps(struct fixed31_32 ratio, uint32_t in_taps, bool chroma) argument 1145 if (IDENTITY_RATIO(ratio)) {
|
/linux-master/drivers/iio/light/ |
H A D | ltr501.c | 311 unsigned long ratio, lux; local 316 /* multiply numerator by 100 to avoid handling ratio < 1 */ 317 ratio = DIV_ROUND_UP(ir_data * 100, ir_data + vis_data); 319 if (ratio < 45) 321 else if (ratio >= 45 && ratio < 64) 323 else if (ratio >= 64 && ratio < 85)
|