/linux-master/kernel/sched/ |
H A D | fair.c | 2601 * period will be for the next scan window. If local/(local+remote) ratio is 2602 * below NUMA_PERIOD_THRESHOLD (where range of ratio is 1..NUMA_PERIOD_SLOTS) 2676 int ratio = max(lr_ratio, ps_ratio); local 2677 diff = -(NUMA_PERIOD_THRESHOLD - ratio) * period_slot; 6357 * Precision loss in the quota/period ratio can cause __cfs_schedulable 7813 * clamping since the ratio (utilization / cpu_capacity) is already enough to 9854 /* Balance such that nr_running/ncores ratio are same on both groups */ 10518 * x is the ratio of sum_util compared to the CPU capacity: 10520 * y' is the ratio of CPUs to be scanned in the LLC domain,
|
/linux-master/arch/x86/kvm/ |
H A D | x86.c | 2431 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/arch/x86/kvm/mmu/ |
H A D | mmu.c | 7113 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/include/asm/ |
H A D | kvm_host.h | 59 * so ratio of 4 should be enough. 919 u64 tsc_scaling_ratio; /* current scaling ratio */ 2238 u64 kvm_scale_tsc(u64 tsc, u64 ratio);
|
/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/i915/display/ |
H A D | intel_cdclk.c | 1240 u8 ratio; member in struct:intel_cdclk_vals 1244 { .refclk = 19200, .cdclk = 144000, .ratio = 60 }, 1245 { .refclk = 19200, .cdclk = 288000, .ratio = 60 }, 1246 { .refclk = 19200, .cdclk = 384000, .ratio = 60 }, 1247 { .refclk = 19200, .cdclk = 576000, .ratio = 60 }, 1248 { .refclk = 19200, .cdclk = 624000, .ratio = 65 }, 1253 { .refclk = 19200, .cdclk = 79200, .ratio = 33 }, 1254 { .refclk = 19200, .cdclk = 158400, .ratio = 33 }, 1255 { .refclk = 19200, .cdclk = 316800, .ratio = 33 }, 1260 { .refclk = 19200, .cdclk = 172800, .ratio 1569 u32 val, ratio; local 1681 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->display.cdclk.hw.ref); local 1710 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->display.cdclk.hw.ref); local 1728 int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->display.cdclk.hw.ref); local [all...] |
/linux-master/drivers/accel/ivpu/ |
H A D | ivpu_hw_37xx.c | 23 #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 D | ivpu_hw_40xx.c | 983 static u32 ivpu_hw_40xx_ratio_to_freq(struct ivpu_device *vdev, u32 ratio) argument 985 return PLL_RATIO_TO_FREQ(ratio);
|
H A D | ivpu_hw.h | 24 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/sound/soc/intel/avs/boards/ |
H A D | rt274.c | 48 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/fs/reiserfs/ |
H A D | journal.c | 2655 * journal params within boundaries which depend on the ratio 2672 int ratio = 1; local 2674 ratio = REISERFS_STANDARD_BLKSIZE / sb->s_blocksize; 2676 if (journal->j_trans_max > JOURNAL_TRANS_MAX_DEFAULT / ratio || 2677 journal->j_trans_max < JOURNAL_TRANS_MIN_DEFAULT / ratio ||
|
/linux-master/sound/soc/rockchip/ |
H A D | rockchip_i2s_tdm.c | 804 unsigned int ratio) 808 if (ratio < 32 || ratio > 512 || ratio % 2 == 1) 811 i2s_tdm->frame_width = ratio; 803 rockchip_i2s_tdm_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
|
/linux-master/drivers/video/fbdev/core/ |
H A D | fbmon.c | 512 int xres, yres = 0, refresh, ratio; local 518 ratio = (block[1] & 0xc0) >> 6; 519 switch (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)
|
/linux-master/arch/riscv/kernel/ |
H A D | unaligned_access_speed.c | 32 int ratio; local 100 ratio = div_u64((byte_cycles * 100), word_cycles); 103 ratio / 100, 104 ratio % 100,
|
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_cmd.c | 123 * 3. Set ratio to ISPFREQ40, 1 to FREQVALID and ISPFREQGUAR40 126 * 5. Wait for field ISPFREQSTAT40 in ISPSSPM1 turn to ratio set in 3. 131 unsigned int ratio, timeout, guar_ratio; local 147 ratio = (2 * isp->hpll_freq + new_freq / 2) / new_freq - 1; 156 | ratio << ISP_REQ_FREQ_OFFSET 180 while (((isp_sspm1 >> ISP_FREQ_STAT_OFFSET) != ratio) && timeout) { 1900 * Set same ratio of crop region resolution and current pipe output
|
/linux-master/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-core.c | 206 static int fimc_get_scaler_factor(u32 src, u32 tar, u32 *ratio, u32 *shift) argument 217 *ratio = tmp; 222 *ratio = 1;
|
/linux-master/drivers/media/platform/rockchip/rkisp1/ |
H A D | rkisp1-resizer.c | 213 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/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/drivers/media/pci/ttpci/ |
H A D | budget-av.c | 459 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/drivers/media/dvb-frontends/ |
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...] |
/linux-master/tools/testing/selftests/damon/ |
H A D | damos_apply_interval.py | 60 ratio = nr_tried_stats[1] / nr_tried_stats[0] 61 if ratio < 9: 63 (nr_tried_stats[1], nr_tried_stats[0], ratio))
|
/linux-master/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 118 * 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/tools/perf/util/ |
H A D | stat-shadow.c | 196 double ratio = numerator / denominator * 100.0; local 197 const char *color = get_ratio_color(color_ratios, ratio); 199 out->print_metric(config, out->ctx, color, "%7.2f%%", unit, ratio); 335 double ratio = cycles / nsecs; local 337 out->print_metric(config, out->ctx, NULL, "%8.3f", "GHz", ratio); 476 double ratio, scale, threshold; local 495 if (expr__parse(&ratio, pctx, metric_expr) == 0) { 509 ratio *= scale; 519 metric_bf, ratio); 525 ratio); 544 double ratio = 0.0; local 699 double ratio = convert_unit_double(1000000000.0 * avg / nsecs, local [all...] |
/linux-master/tools/perf/ |
H A D | builtin-trace.c | 4287 double ratio; local 4292 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; 4296 printed += fprintf(fp, "%.1f%%", ratio);
|