/linux-master/sound/soc/codecs/ |
H A D | wm8940.c | 650 unsigned int ratio = 2 * f_in / f_out; local 652 if (ratio <= 2) { 654 ratio = 2; 655 } else if (ratio == 3) { 657 } else if (ratio == 4) { 659 } else if (ratio <= 6) { 661 ratio = 6; 662 } else if (ratio <= 8) { 664 ratio = 8; 665 } else if (ratio < [all...] |
H A D | wm8974.c | 378 unsigned int ratio = 2 * f_in / f_out; local 380 if (ratio <= 2) { 382 ratio = 2; 383 } else if (ratio == 3) { 385 } else if (ratio == 4) { 387 } else if (ratio <= 6) { 389 ratio = 6; 390 } else if (ratio <= 8) { 392 ratio = 8; 393 } else if (ratio < [all...] |
H A D | pcm3060.c | 115 unsigned int ratio; local 130 ratio = priv->dai[dai->id].sclk_freq / rate; 132 switch (ratio) { 152 dev_err(comp->dev, "unsupported ratio: %d\n", ratio);
|
H A D | wm8524.c | 48 int ratio; member in struct:__anon2403 104 val = freq / lrclk_ratios[i].ratio;
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | tda8083.c | 124 u32 ratio; local 140 ratio = tmp / srate; 143 ratio = (ratio << 8) + tmp / srate; 146 ratio = (ratio << 8) + tmp / srate; 148 dprintk("tda8083: ratio == %08x\n", (unsigned int) ratio); 151 tda8083_writereg (state, 0x02, (ratio >> 16) & 0xff); 152 tda8083_writereg (state, 0x03, (ratio >> [all...] |
H A D | cx24110.c | 230 u32 ratio; local 276 ratio=(tmp/BDRI); 279 ratio=(ratio<<8)+(tmp/BDRI); 282 ratio=(ratio<<8)+(tmp/BDRI); 285 ratio=(ratio<<1)+(tmp/BDRI); 289 dprintk("ratio= %08x\n", ratio); [all...] |
H A D | stv0299.h | 80 int (*set_symbol_rate)(struct dvb_frontend *fe, u32 srate, u32 ratio);
|
H A D | ves1820.c | 108 u32 ratio; local 153 ratio = (symbolrate << 4) / fin; 155 ratio = (ratio << 8) + tmp / fin; 157 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin); 159 BDR = ratio;
|
/linux-master/drivers/clk/ |
H A D | clk-cs2000-cp.c | 202 u64 ratio; local 206 * ratio = rate_out / rate_in * 2^multiplier 211 ratio = (u64)rate_out << multiplier; 212 do_div(ratio, rate_in); 214 return ratio; 217 static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in, bool lf_ratio) argument 223 * ratio = rate_out / rate_in * 2^multiplier 229 rate_out = (u64)ratio * rate_in; 301 u32 ratio; local 303 ratio 312 u32 ratio; local [all...] |
/linux-master/drivers/clk/analogbits/ |
H A D | wrpll-cln28hpc.c | 229 unsigned long ratio; local 265 /* Precalculate the pre-Q divider target ratio */ 266 ratio = div64_u64((target_vco_rate << ROUND_SHIFT), parent_rate); 278 f_pre_div = ratio * r;
|
/linux-master/sound/soc/samsung/ |
H A D | smdk_spdif.c | 106 int ret, ratio; local 121 /* Setting ratio to 512fs helps to use S/PDIF with HDMI without 124 ratio = 512; 125 rclk_rate = params_rate(params) * ratio;
|
/linux-master/sound/soc/fsl/ |
H A D | fsl_utils.c | 117 * @ratio: target requency for root clock 119 * This function set root clock parent according to the target ratio 123 struct clk *pll11k_clk, u64 ratio) 144 npll = (do_div(ratio, 8000) ? pll11k_clk : pll8k_clk); 121 fsl_asoc_reparent_pll_clocks(struct device *dev, struct clk *clk, struct clk *pll8k_clk, struct clk *pll11k_clk, u64 ratio) argument
|
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-dv-timings.c | 380 struct v4l2_fract ratio = { 1, 1 }; local 384 return ratio; 386 return ratio; 388 ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; 389 ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; 391 rational_best_approximation(ratio.numerator, ratio.denominator, 392 ratio.numerator, ratio.denominator, &n, &d); 393 ratio 832 u8 ratio; local [all...] |
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | ispresizer.h | 102 struct resizer_ratio ratio; member in struct:isp_res_device
|
/linux-master/include/trace/events/ |
H A D | mptcp.h | 30 __field(u64, ratio) 54 __entry->ratio = div_u64((u64)ssk->sk_wmem_queued << 32, __entry->pace); 56 __entry->ratio = 0; 59 TP_printk("active=%d free=%d snd_wnd=%u pace=%u backup=%u ratio=%llu", 62 __entry->backup, __entry->ratio)
|
/linux-master/sound/pci/ice1712/ |
H A D | maya44.c | 50 /* clock ratio identifiers for snd_wm8776_set_rate() */ 590 unsigned int ratio, adc_ratio, val; local 595 ratio = WM8776_CLOCK_RATIO_128FS; 598 ratio = WM8776_CLOCK_RATIO_128FS; 601 ratio = WM8776_CLOCK_RATIO_256FS; 604 ratio = WM8776_CLOCK_RATIO_384FS; 607 ratio = WM8776_CLOCK_RATIO_512FS; 610 ratio = WM8776_CLOCK_RATIO_512FS; 613 ratio = WM8776_CLOCK_RATIO_768FS; 629 adc_ratio = ratio; [all...] |
/linux-master/drivers/iio/light/ |
H A D | tsl2583.c | 69 unsigned int ratio; member in struct:tsl2583_lux 156 * using gain index. Limit checks are done next, then the ratio of a multiple 158 * declared above is then scanned to find the first ratio value that is just 159 * above the ratio we just calculated. The ch0 and ch1 multiplier constants in 168 u32 ratio; local 229 * zero below when calculating the ratio. 236 /* calculate ratio */ 237 ratio = (ch1 << 15) / ch0; 241 p->ratio != 0 && p->ratio < rati [all...] |
/linux-master/tools/power/x86/turbostat/ |
H A D | turbostat.c | 3785 unsigned int ratio; local 3794 ratio = (msr >> 40) & 0xFF; 3795 fprintf(outf, "%d * %.1f = %.1f MHz max efficiency frequency\n", ratio, bclk, ratio * bclk); 3797 ratio = (msr >> 8) & 0xFF; 3798 fprintf(outf, "%d * %.1f = %.1f MHz base frequency\n", ratio, bclk, ratio * bclk); 3822 unsigned int ratio; local 3828 ratio = (msr >> 8) & 0xFF; 3829 if (ratio) 3841 unsigned int ratio; local 3898 unsigned int ratio, group_size; local 3913 unsigned int ratio; local 3958 unsigned int ratio[buckets_no]; local [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_scl_filters.c | 1341 const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio) argument 1343 if (ratio.value < dc_fixpt_one.value) 1345 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) 1347 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) 1353 const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio) argument 1355 if (ratio.value < dc_fixpt_one.value) 1357 else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) 1359 else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) 1365 const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio) argument 1367 if (ratio 1377 get_filter_4tap_64p(struct fixed31_32 ratio) argument 1389 get_filter_5tap_64p(struct fixed31_32 ratio) argument 1401 get_filter_6tap_64p(struct fixed31_32 ratio) argument 1413 get_filter_7tap_64p(struct fixed31_32 ratio) argument 1425 get_filter_8tap_64p(struct fixed31_32 ratio) argument [all...] |
/linux-master/drivers/ata/ |
H A D | pata_pdc2027x.c | 506 long ratio = pout_required / pll_clock_khz; local 526 * Calculate the ratio of F, R and OD 529 if (ratio < 8600L) { /* 8.6x */ 532 } else if (ratio < 12900L) { /* 12.9x */ 535 } else if (ratio < 16100L) { /* 16.1x */ 538 } else if (ratio < 64000L) { /* 64x */ 541 /* Invalid ratio */ 542 dev_err(host->dev, "Invalid ratio %ld, give up!\n", ratio); 546 F = (ratio * ( [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | asiliantfb.c | 117 unsigned ratio; local 122 ratio = 1000000 / pixclock; 124 Ftarget = 1000000 * ratio + (1000000 * remainder) / pixclock; 131 ratio = Ftarget / Fref; 137 unsigned m = n * ratio + (n * remainder) / Fref; 227 unsigned long Ftarget, ratio, remainder; local 232 ratio = 1000000 / var->pixclock; 234 Ftarget = 1000000 * ratio + (1000000 * remainder) / var->pixclock; 436 {0xcc, 200 }, /* MCLK ratio M */ 437 {0xcd, 18 }, /* MCLK ratio [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | topology.h | 286 extern void freq_invariance_set_perf_ratio(u64 ratio, bool turbo_disabled); 289 static inline void freq_invariance_set_perf_ratio(u64 ratio, bool turbo_disabled) { } argument
|
/linux-master/include/sound/ |
H A D | soundfont.h | 113 int snd_sf_linear_to_log(unsigned int amount, int offset, int ratio);
|
/linux-master/drivers/staging/fbtft/ |
H A D | fb_uc1611.c | 26 * LCD voltage is a combination of ratio, gain, pot and temp 28 * V_LCD = V_BIAS * ratio 30 * C_V0 and C_PM depend on ratio and gain 34 /* BR -> actual ratio: 0-3 -> 5, 10, 11, 13 */ 35 static unsigned int ratio = 2; variable 36 module_param(ratio, uint, 0000); 37 MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)"); 57 /* PC[3:2] -> V_LCD: 0, 1, 3 -> ext., int. with ratio = 5, int. standard */ 83 /* Set bias ratio */ [all...] |
/linux-master/kernel/ |
H A D | kallsyms_selftest.c | 107 u32 ratio, total_size, total_len = 0; local 148 pr_info("| nr_symbols | compressed size | original size | ratio(%%) |\n"); 150 ratio = (u32)div_u64(10000ULL * total_size, total_len); 152 kallsyms_num_syms, total_size, total_len, ratio / 100, ratio % 100);
|