Searched refs:ratio (Results 1 - 25 of 217) sorted by path

123456789

/linux-master/drivers/media/common/b2c2/
H A Dflexcop-fe-tuner.c199 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/drivers/media/dvb-frontends/
H A Dbsbe1.h34 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) argument
48 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
49 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
50 stv0299_writereg(fe, 0x21, (ratio ) & 0xf0);
H A Dbsru6.h53 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
80 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
81 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
82 stv0299_writereg(fe, 0x21, ratio & 0xf0);
H A Ddib8000.h46 struct dibx000_bandwidth_config *pll, u32 bw, u8 ratio);
H A Dstv0299.h80 int (*set_symbol_rate)(struct dvb_frontend *fe, u32 srate, u32 ratio);
/linux-master/drivers/media/pci/mantis/
H A Dmantis_vp1033.c107 u32 srate, u32 ratio)
134 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff);
135 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff);
136 stv0299_writereg(fe, 0x21, ratio & 0xf0);
106 lgtdqcs001f_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) argument
/linux-master/drivers/media/usb/go7007/
H A Dgo7007-fw.c1280 int ratio = arate / go->sensor_framerate; local
1281 int adjratio = ratio * 215 / 100;
1294 0xbff6, f1 < f2 ? ratio : ratio + 1,
1295 0xbff7, f1 > f2 ? ratio : ratio + 1,
/linux-master/include/sound/
H A Dsoundfont.h113 int snd_sf_linear_to_log(unsigned int amount, int offset, int ratio);
/linux-master/arch/arm/mach-at91/
H A Dpm.c824 int pwrtmg, ratio; local
827 ratio = readl(soc_pm.data.pmc + AT91_PMC_RATIO);
837 writel(ratio & ~AT91_PMC_RATIO_RATIO, soc_pm.data.pmc + AT91_PMC_RATIO);
842 writel(ratio, soc_pm.data.pmc + AT91_PMC_RATIO);
/linux-master/arch/arm64/kernel/
H A Dtopology.c122 u64 ratio, ref_rate = arch_timer_get_rate(); local
131 * Pre-compute the fixed ratio between the frequency of the constant
143 ratio = ref_rate << (2 * SCHED_CAPACITY_SHIFT);
144 ratio = div64_u64(ratio, max_rate);
145 if (!ratio) {
150 WRITE_ONCE(per_cpu(arch_max_freq_scale, cpu), (unsigned long)ratio);
/linux-master/arch/riscv/kernel/
H A Dunaligned_access_speed.c32 int ratio; local
100 ratio = div_u64((byte_cycles * 100), word_cycles);
103 ratio / 100,
104 ratio % 100,
/linux-master/arch/s390/kernel/
H A Dperf_cpum_sf.c492 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/include/asm/
H A Dkvm_host.h59 * so ratio of 4 should be enough.
919 u64 tsc_scaling_ratio; /* current scaling ratio */
2238 u64 kvm_scale_tsc(u64 tsc, u64 ratio);
H A Dtopology.h286 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/arch/x86/kernel/cpu/
H A Daperfmperf.c52 * 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/arch/x86/kernel/
H A Dtsc_msr.c44 * If MSR_PERF_STAT[31] is set, the maximum resolved bus ratio can be
168 u32 lo, hi, ratio, freq, tscref; local
182 ratio = (lo >> 8) & 0xff;
185 ratio = (hi >> 8) & 0x1f;
201 * Multiplying by ratio before the division has better
202 * accuracy than just calculating freq * ratio.
204 res = DIV_ROUND_CLOSEST(tscref * ratio, md->divider);
207 res = freq * ratio;
/linux-master/arch/x86/kvm/mmu/
H A Dmmu.c7113 uint ratio = READ_ONCE(nx_huge_pages_recovery_ratio); local
7115 if (!enabled || !ratio)
7121 ratio = min(ratio, 3600u);
7122 *period = 60 * 60 * 1000 / ratio;
7165 unsigned int ratio; local
7180 ratio = READ_ONCE(nx_huge_pages_recovery_ratio);
7181 to_zap = ratio ? DIV_ROUND_UP(nx_lpage_splits, ratio) : 0;
/linux-master/arch/x86/kvm/
H A Dx86.c2431 u64 ratio; local
2451 /* TSC scaling required - calculate ratio */
2452 ratio = mul_u64_u32_div(1ULL << kvm_caps.tsc_scaling_ratio_frac_bits,
2455 if (ratio == 0 || ratio >= kvm_caps.max_tsc_scaling_ratio) {
2456 pr_warn_ratelimited("Invalid TSC scaling ratio - virtual-tsc-khz=%u\n",
2461 kvm_vcpu_write_tsc_multiplier(vcpu, ratio);
2547 * Multiply tsc by a fixed point number represented by ratio.
2549 * The most significant 64-N bits (mult) of ratio represent the
2551 * (frac) represent the fractional part, ie. ratio represent
2556 __scale_tsc(u64 ratio, u64 tsc) argument
2561 kvm_scale_tsc(u64 tsc, u64 ratio) argument
4300 u64 offset, ratio; local
[all...]
/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);
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;
H A Divpu_hw_40xx.c983 static u32 ivpu_hw_40xx_ratio_to_freq(struct ivpu_device *vdev, u32 ratio) argument
985 return PLL_RATIO_TO_FREQ(ratio);
/linux-master/drivers/ata/
H A Dpata_pdc2027x.c506 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/block/drbd/
H A Ddrbd_worker.c934 const int ratio = local
939 ratio,
/linux-master/drivers/clk/analogbits/
H A Dwrpll-cln28hpc.c229 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/drivers/clk/
H A Dclk-cs2000-cp.c202 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...]

Completed in 336 milliseconds

123456789