ratio 727 arch/ia64/include/asm/uv/uv_mmrs.h unsigned long ratio : 3; /* RW */ ratio 435 arch/s390/kernel/perf_cpum_sf.c static unsigned long compute_sfb_extent(unsigned long ratio, unsigned long base) ratio 442 arch/s390/kernel/perf_cpum_sf.c if (ratio <= 5) ratio 444 arch/s390/kernel/perf_cpum_sf.c if (ratio <= 25) ratio 446 arch/s390/kernel/perf_cpum_sf.c if (ratio <= 50) ratio 448 arch/s390/kernel/perf_cpum_sf.c if (ratio <= 75) ratio 450 arch/s390/kernel/perf_cpum_sf.c if (ratio <= 100) ratio 452 arch/s390/kernel/perf_cpum_sf.c if (ratio <= 250) ratio 461 arch/s390/kernel/perf_cpum_sf.c unsigned long ratio, num; ratio 473 arch/s390/kernel/perf_cpum_sf.c ratio = DIV_ROUND_UP(100 * OVERFLOW_REG(hwc) * cpuhw->sfb.num_sdb, ratio 477 arch/s390/kernel/perf_cpum_sf.c num = compute_sfb_extent(ratio, cpuhw->sfb.num_sdb); ratio 482 arch/s390/kernel/perf_cpum_sf.c " num=%lu\n", OVERFLOW_REG(hwc), ratio, num); ratio 162 arch/x86/kernel/tsc_msr.c u32 lo, hi, ratio, freq, tscref; ratio 176 arch/x86/kernel/tsc_msr.c ratio = (lo >> 8) & 0xff; ratio 179 arch/x86/kernel/tsc_msr.c ratio = (hi >> 8) & 0x1f; ratio 198 arch/x86/kernel/tsc_msr.c res = DIV_ROUND_CLOSEST(tscref * ratio, md->divider); ratio 201 arch/x86/kernel/tsc_msr.c res = freq * ratio; ratio 6427 arch/x86/kvm/mmu.c unsigned int ratio; ratio 6434 arch/x86/kvm/mmu.c ratio = READ_ONCE(nx_huge_pages_recovery_ratio); ratio 6435 arch/x86/kvm/mmu.c to_zap = ratio ? DIV_ROUND_UP(kvm->stat.nx_lpage_splits, ratio) : 0; ratio 1762 arch/x86/kvm/x86.c u64 ratio; ratio 1783 arch/x86/kvm/x86.c ratio = mul_u64_u32_div(1ULL << kvm_tsc_scaling_ratio_frac_bits, ratio 1786 arch/x86/kvm/x86.c if (ratio == 0 || ratio >= kvm_max_tsc_scaling_ratio) { ratio 1792 arch/x86/kvm/x86.c vcpu->arch.tsc_scaling_ratio = ratio; ratio 1887 arch/x86/kvm/x86.c static inline u64 __scale_tsc(u64 ratio, u64 tsc) ratio 1889 arch/x86/kvm/x86.c return mul_u64_u64_shr(tsc, ratio, kvm_tsc_scaling_ratio_frac_bits); ratio 1895 arch/x86/kvm/x86.c u64 ratio = vcpu->arch.tsc_scaling_ratio; ratio 1897 arch/x86/kvm/x86.c if (ratio != kvm_default_tsc_scaling_ratio) ratio 1898 arch/x86/kvm/x86.c _tsc = __scale_tsc(ratio, tsc); ratio 518 drivers/ata/pata_pdc2027x.c long ratio = pout_required / pll_clock_khz; ratio 542 drivers/ata/pata_pdc2027x.c if (ratio < 8600L) { /* 8.6x */ ratio 545 drivers/ata/pata_pdc2027x.c } else if (ratio < 12900L) { /* 12.9x */ ratio 548 drivers/ata/pata_pdc2027x.c } else if (ratio < 16100L) { /* 16.1x */ ratio 551 drivers/ata/pata_pdc2027x.c } else if (ratio < 64000L) { /* 64x */ ratio 555 drivers/ata/pata_pdc2027x.c printk(KERN_ERR DRV_NAME ": Invalid ratio %ld, give up!\n", ratio); ratio 559 drivers/ata/pata_pdc2027x.c F = (ratio * (R+2)) / 1000 - 2; ratio 567 drivers/ata/pata_pdc2027x.c PDPRINTK("F[%d] R[%d] ratio*1000[%ld]\n", F, R, ratio); ratio 934 drivers/block/drbd/drbd_worker.c const int ratio = ratio 939 drivers/block/drbd/drbd_worker.c ratio, ratio 224 drivers/clk/analogbits/wrpll-cln28hpc.c unsigned long ratio; ratio 261 drivers/clk/analogbits/wrpll-cln28hpc.c ratio = div64_u64((target_vco_rate << ROUND_SHIFT), parent_rate); ratio 273 drivers/clk/analogbits/wrpll-cln28hpc.c f_pre_div = ratio * r; ratio 194 drivers/clk/clk-cs2000-cp.c u64 ratio; ratio 202 drivers/clk/clk-cs2000-cp.c ratio = (u64)rate_out << 20; ratio 203 drivers/clk/clk-cs2000-cp.c do_div(ratio, rate_in); ratio 205 drivers/clk/clk-cs2000-cp.c return ratio; ratio 208 drivers/clk/clk-cs2000-cp.c static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in) ratio 219 drivers/clk/clk-cs2000-cp.c rate_out = (u64)ratio * rate_in; ratio 293 drivers/clk/clk-cs2000-cp.c u32 ratio; ratio 295 drivers/clk/clk-cs2000-cp.c ratio = cs2000_ratio_get(priv, ch); ratio 297 drivers/clk/clk-cs2000-cp.c return cs2000_ratio_to_rate(ratio, parent_rate); ratio 303 drivers/clk/clk-cs2000-cp.c u32 ratio; ratio 305 drivers/clk/clk-cs2000-cp.c ratio = cs2000_rate_to_ratio(*parent_rate, rate); ratio 307 drivers/clk/clk-cs2000-cp.c return cs2000_ratio_to_rate(ratio, *parent_rate); ratio 357 drivers/clk/sirf/clk-common.c unsigned ratio, wait, hold; ratio 362 drivers/clk/sirf/clk-common.c ratio = fin / rate; ratio 364 drivers/clk/sirf/clk-common.c if (ratio < 2) ratio 365 drivers/clk/sirf/clk-common.c ratio = 2; ratio 366 drivers/clk/sirf/clk-common.c if (ratio > BIT(bits + 1)) ratio 367 drivers/clk/sirf/clk-common.c ratio = BIT(bits + 1); ratio 369 drivers/clk/sirf/clk-common.c wait = (ratio >> 1) - 1; ratio 370 drivers/clk/sirf/clk-common.c hold = ratio - wait - 2; ratio 380 drivers/clk/sirf/clk-common.c unsigned ratio, wait, hold, reg; ratio 385 drivers/clk/sirf/clk-common.c ratio = fin / rate; ratio 387 drivers/clk/sirf/clk-common.c if (unlikely(ratio < 2 || ratio > BIT(bits + 1))) ratio 392 drivers/clk/sirf/clk-common.c wait = (ratio >> 1) - 1; ratio 393 drivers/clk/sirf/clk-common.c hold = ratio - wait - 2; ratio 169 drivers/cpufreq/intel_pstate.c int32_t ratio; ratio 730 drivers/cpufreq/intel_pstate.c int ratio; ratio 732 drivers/cpufreq/intel_pstate.c ratio = intel_pstate_get_cppc_guranteed(policy->cpu); ratio 733 drivers/cpufreq/intel_pstate.c if (ratio <= 0) { ratio 735 drivers/cpufreq/intel_pstate.c ratio = HWP_GUARANTEED_PERF(cap); ratio 740 drivers/cpufreq/intel_pstate.c return sprintf(buf, "%d\n", ratio * cpu->pstate.scaling); ratio 1345 drivers/cpufreq/intel_pstate.c cpudata->vid.ratio); ratio 1394 drivers/cpufreq/intel_pstate.c cpudata->vid.ratio = div_fp( ratio 427 drivers/cpufreq/longhaul.c unsigned int ratio; ratio 483 drivers/cpufreq/longhaul.c ratio = mults[j]; ratio 484 drivers/cpufreq/longhaul.c if (ratio == -1) ratio 486 drivers/cpufreq/longhaul.c if (ratio > maxmult || ratio < minmult) ratio 488 drivers/cpufreq/longhaul.c longhaul_table[k].frequency = calc_speed(ratio); ratio 479 drivers/cpufreq/pmac32-cpufreq.c const u32 *freqs, *ratio; ratio 487 drivers/cpufreq/pmac32-cpufreq.c ratio = of_get_property(cpunode, "processor-to-bus-ratio*2", ratio 489 drivers/cpufreq/pmac32-cpufreq.c if (ratio == NULL) { ratio 507 drivers/cpufreq/pmac32-cpufreq.c low_freq = (low_freq * (*ratio)) / 2000; ratio 508 drivers/cpufreq/pmac32-cpufreq.c hi_freq = (hi_freq * (*ratio)) / 2000; ratio 38 drivers/cpufreq/speedstep-lib.c unsigned int ratio; /* Frequency Multiplier (x10) */ ratio 102 drivers/cpufreq/speedstep-lib.c (msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100)); ratio 104 drivers/cpufreq/speedstep-lib.c return msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100; ratio 38 drivers/devfreq/exynos-bus.c unsigned int ratio; ratio 134 drivers/devfreq/exynos-bus.c stat->busy_time = (edata.load_count * 100) / bus->ratio; ratio 229 drivers/devfreq/exynos-bus.c if (of_property_read_u32(np, "exynos,saturation-ratio", &bus->ratio)) ratio 230 drivers/devfreq/exynos-bus.c bus->ratio = DEFAULT_SATURATION_RATIO; ratio 297 drivers/devfreq/tegra30-devfreq.c struct tegra_actmon_emc_ratio *ratio = actmon_emc_ratios; ratio 299 drivers/devfreq/tegra30-devfreq.c for (i = 0; i < ARRAY_SIZE(actmon_emc_ratios); i++, ratio++) { ratio 300 drivers/devfreq/tegra30-devfreq.c if (cpu_freq >= ratio->cpu_freq) { ratio 301 drivers/devfreq/tegra30-devfreq.c if (ratio->emc_freq >= tegra->max_freq) ratio 304 drivers/devfreq/tegra30-devfreq.c return ratio->emc_freq; ratio 768 drivers/gpu/drm/amd/display/dc/core/dc_resource.c struct fixed31_32 ratio, ratio 777 drivers/gpu/drm/amd/display/dc/core/dc_resource.c int int_part = dc_fixpt_floor(dc_fixpt_sub(*init, ratio)); ratio 787 drivers/gpu/drm/amd/display/dc/core/dc_resource.c *init = dc_fixpt_add(*init, dc_fixpt_mul_int(ratio, recout_skip)); ratio 806 drivers/gpu/drm/amd/display/dc/core/dc_resource.c int int_part = dc_fixpt_floor(dc_fixpt_sub(*init, ratio)); ratio 822 drivers/gpu/drm/amd/display/dc/core/dc_resource.c *init = dc_fixpt_add(*init, dc_fixpt_mul_int(ratio, recout_skip)); ratio 1015 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio) ratio 1017 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c if (ratio.value < dc_fixpt_one.value) ratio 1019 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 1021 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 1027 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio) ratio 1029 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c if (ratio.value < dc_fixpt_one.value) ratio 1031 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 1033 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 1039 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio) ratio 1041 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c if (ratio.value < dc_fixpt_one.value) ratio 1043 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 1045 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 1051 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio) ratio 1053 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c if (ratio.value < dc_fixpt_one.value) ratio 1055 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 1057 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 1063 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio) ratio 1065 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c if (ratio.value < dc_fixpt_one.value) ratio 1067 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 1069 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 1075 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio) ratio 1077 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c if (ratio.value < dc_fixpt_one.value) ratio 1079 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 1081 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 1087 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio) ratio 1089 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c if (ratio.value < dc_fixpt_one.value) ratio 1091 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 1093 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 1099 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio) ratio 1101 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c if (ratio.value < dc_fixpt_one.value) ratio 1103 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 1105 drivers/gpu/drm/amd/display/dc/dce/dce_scl_filters.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 44 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c #define IDENTITY_RATIO(ratio) (dc_fixpt_u2d19(ratio) == (1 << 19)) ratio 304 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c static const uint16_t *get_filter_coeffs_16p(int taps, struct fixed31_32 ratio) ratio 307 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c return get_filter_4tap_16p(ratio); ratio 309 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c return get_filter_3tap_16p(ratio); ratio 869 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c static uint32_t decide_taps(struct fixed31_32 ratio, uint32_t in_taps, bool chroma) ratio 873 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c if (IDENTITY_RATIO(ratio)) { ratio 491 drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.c static const uint16_t *get_filter_coeffs_64p(int taps, struct fixed31_32 ratio) ratio 494 drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.c return get_filter_4tap_64p(ratio); ratio 130 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c #define IDENTITY_RATIO(ratio) (dc_fixpt_u2d19(ratio) == (1 << 19)) ratio 235 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c static const uint16_t *dpp1_dscl_get_filter_coeffs_64p(int taps, struct fixed31_32 ratio) ratio 238 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c return get_filter_8tap_64p(ratio); ratio 240 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c return get_filter_7tap_64p(ratio); ratio 242 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c return get_filter_6tap_64p(ratio); ratio 244 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c return get_filter_5tap_64p(ratio); ratio 246 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c return get_filter_4tap_64p(ratio); ratio 248 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c return get_filter_3tap_64p(ratio); ratio 372 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c #define IDENTITY_RATIO(ratio) (dc_fixpt_u3d19(ratio) == (1 << 19)) ratio 530 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c const uint16_t *wbscl_get_filter_3tap_16p(struct fixed31_32 ratio) ratio 532 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 534 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 536 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 542 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c const uint16_t *wbscl_get_filter_4tap_16p(struct fixed31_32 ratio) ratio 544 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 546 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 548 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 554 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_5tap_16p(struct fixed31_32 ratio) ratio 556 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 558 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 560 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 566 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_6tap_16p(struct fixed31_32 ratio) ratio 568 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 570 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 572 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 578 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_7tap_16p(struct fixed31_32 ratio) ratio 580 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 582 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 584 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 590 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_8tap_16p(struct fixed31_32 ratio) ratio 592 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 594 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 596 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 602 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_9tap_16p(struct fixed31_32 ratio) ratio 604 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 606 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 608 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 613 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_10tap_16p(struct fixed31_32 ratio) ratio 615 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 617 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 619 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 625 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_11tap_16p(struct fixed31_32 ratio) ratio 627 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 629 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 631 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 637 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_12tap_16p(struct fixed31_32 ratio) ratio 639 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c if (ratio.value < dc_fixpt_one.value) ratio 641 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(4, 3).value) ratio 643 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c else if (ratio.value < dc_fixpt_from_fraction(5, 3).value) ratio 649 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c static const uint16_t *wbscl_get_filter_coeffs_16p(int taps, struct fixed31_32 ratio) ratio 652 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_12tap_16p(ratio); ratio 654 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_11tap_16p(ratio); ratio 656 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_10tap_16p(ratio); ratio 658 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_9tap_16p(ratio); ratio 660 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_8tap_16p(ratio); ratio 662 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_7tap_16p(ratio); ratio 664 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_6tap_16p(ratio); ratio 666 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_5tap_16p(ratio); ratio 668 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_4tap_16p(ratio); ratio 670 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dwb_scl.c return wbscl_get_filter_3tap_16p(ratio); ratio 268 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const uint16_t *get_filter_3tap_16p(struct fixed31_32 ratio); ratio 269 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const uint16_t *get_filter_3tap_64p(struct fixed31_32 ratio); ratio 270 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const uint16_t *get_filter_4tap_16p(struct fixed31_32 ratio); ratio 271 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const uint16_t *get_filter_4tap_64p(struct fixed31_32 ratio); ratio 272 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const uint16_t *get_filter_5tap_64p(struct fixed31_32 ratio); ratio 273 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const uint16_t *get_filter_6tap_64p(struct fixed31_32 ratio); ratio 274 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const uint16_t *get_filter_7tap_64p(struct fixed31_32 ratio); ratio 275 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h const uint16_t *get_filter_8tap_64p(struct fixed31_32 ratio); ratio 709 drivers/gpu/drm/exynos/exynos_drm_gsc.c u32 *ratio) ratio 717 drivers/gpu/drm/exynos/exynos_drm_gsc.c *ratio = 4; ratio 719 drivers/gpu/drm/exynos/exynos_drm_gsc.c *ratio = 2; ratio 721 drivers/gpu/drm/exynos/exynos_drm_gsc.c *ratio = 1; ratio 964 drivers/gpu/drm/i2c/tda998x_drv.c unsigned int ratio) ratio 966 drivers/gpu/drm/i2c/tda998x_drv.c switch (ratio) { ratio 984 drivers/gpu/drm/i2c/tda998x_drv.c ratio); ratio 1751 drivers/gpu/drm/i2c/tda998x_drv.c unsigned int ratio, route; ratio 1765 drivers/gpu/drm/i2c/tda998x_drv.c ratio = spdif ? 64 : p->audio_params.sample_width * 2; ratio 1766 drivers/gpu/drm/i2c/tda998x_drv.c return tda998x_derive_cts_n(priv, &priv->audio, ratio); ratio 1195 drivers/gpu/drm/i915/display/intel_cdclk.c int ratio; ratio 1208 drivers/gpu/drm/i915/display/intel_cdclk.c ratio = 60; ratio 1211 drivers/gpu/drm/i915/display/intel_cdclk.c ratio = 65; ratio 1215 drivers/gpu/drm/i915/display/intel_cdclk.c return dev_priv->cdclk.hw.ref * ratio; ratio 1220 drivers/gpu/drm/i915/display/intel_cdclk.c int ratio; ratio 1232 drivers/gpu/drm/i915/display/intel_cdclk.c ratio = 33; ratio 1236 drivers/gpu/drm/i915/display/intel_cdclk.c return dev_priv->cdclk.hw.ref * ratio; ratio 1317 drivers/gpu/drm/i915/display/intel_cdclk.c int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref); ratio 1322 drivers/gpu/drm/i915/display/intel_cdclk.c val |= BXT_DE_PLL_RATIO(ratio); ratio 1605 drivers/gpu/drm/i915/display/intel_cdclk.c int ratio = DIV_ROUND_CLOSEST(vco, dev_priv->cdclk.hw.ref); ratio 1608 drivers/gpu/drm/i915/display/intel_cdclk.c val = CNL_CDCLK_PLL_RATIO(ratio); ratio 1686 drivers/gpu/drm/i915/display/intel_cdclk.c int ratio; ratio 1697 drivers/gpu/drm/i915/display/intel_cdclk.c ratio = dev_priv->cdclk.hw.ref == 19200 ? 35 : 28; ratio 1700 drivers/gpu/drm/i915/display/intel_cdclk.c ratio = dev_priv->cdclk.hw.ref == 19200 ? 55 : 44; ratio 1704 drivers/gpu/drm/i915/display/intel_cdclk.c return dev_priv->cdclk.hw.ref * ratio; ratio 1782 drivers/gpu/drm/i915/display/intel_cdclk.c int ratio; ratio 1811 drivers/gpu/drm/i915/display/intel_cdclk.c ratio = cdclk / (dev_priv->cdclk.hw.ref / 2); ratio 1813 drivers/gpu/drm/i915/display/intel_cdclk.c return dev_priv->cdclk.hw.ref * ratio; ratio 891 drivers/gpu/drm/i915/display/intel_overlay.c u32 ratio; ratio 898 drivers/gpu/drm/i915/display/intel_overlay.c ratio = I915_READ(PFIT_PGM_RATIOS) >> PFIT_VERT_SCALE_SHIFT_965; ratio 901 drivers/gpu/drm/i915/display/intel_overlay.c ratio = I915_READ(PFIT_AUTO_RATIOS); ratio 903 drivers/gpu/drm/i915/display/intel_overlay.c ratio = I915_READ(PFIT_PGM_RATIOS); ratio 904 drivers/gpu/drm/i915/display/intel_overlay.c ratio >>= PFIT_VERT_SCALE_SHIFT; ratio 907 drivers/gpu/drm/i915/display/intel_overlay.c overlay->pfit_vscale_ratio = ratio; ratio 296 drivers/gpu/drm/i915/display/intel_panel.c u32 ratio = source * FACTOR / target; ratio 297 drivers/gpu/drm/i915/display/intel_panel.c return (FACTOR * ratio + FACTOR/2) / FACTOR; ratio 168 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c int ratio[] = { 2, 3, 4, 5, 6, 9, 10, 12, 14, 15, 20, 21, 25, 28, 35 }; ratio 183 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c u32 ratio_mult = ratio[i] << tx_band_sel[j]; ratio 209 drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c pd->vco_ratio = ratio[vco_optimal_index / 4]; ratio 824 drivers/gpu/drm/tegra/sor.c u64 ratio; ratio 844 drivers/gpu/drm/tegra/sor.c active_sym = params->ratio * tu_size; ratio 925 drivers/gpu/drm/tegra/sor.c params.ratio = div64_u64(input * f, output); ratio 956 drivers/gpu/drm/tegra/sor.c watermark = params.ratio * config->tu_size * (f - params.ratio); ratio 303 drivers/ide/pdc202xx_new.c long pll_input, pll_output, ratio; ratio 361 drivers/ide/pdc202xx_new.c ratio = pll_output / (pll_input / 1000); ratio 362 drivers/ide/pdc202xx_new.c if (ratio < 8600L) { /* 8.6x */ ratio 365 drivers/ide/pdc202xx_new.c } else if (ratio < 12900L) { /* 12.9x */ ratio 368 drivers/ide/pdc202xx_new.c } else if (ratio < 16100L) { /* 16.1x */ ratio 371 drivers/ide/pdc202xx_new.c } else if (ratio < 64000L) { /* 64x */ ratio 376 drivers/ide/pdc202xx_new.c name, pci_name(dev), ratio); ratio 380 drivers/ide/pdc202xx_new.c f = (ratio * (r + 2)) / 1000 - 2; ratio 382 drivers/ide/pdc202xx_new.c DBG("F[%d] R[%d] ratio*1000[%ld]\n", f, r, ratio); ratio 265 drivers/iio/adc/sc27xx_adc.c u32 ratio = sc27xx_adc_get_ratio(channel, scale); ratio 267 drivers/iio/adc/sc27xx_adc.c *div_numerator = ratio >> SC27XX_RATIO_NUMERATOR_OFFSET; ratio 268 drivers/iio/adc/sc27xx_adc.c *div_denominator = ratio & SC27XX_RATIO_DENOMINATOR_MASK; ratio 304 drivers/iio/light/ltr501.c unsigned long ratio, lux; ratio 310 drivers/iio/light/ltr501.c ratio = DIV_ROUND_UP(ir_data * 100, ir_data + vis_data); ratio 312 drivers/iio/light/ltr501.c if (ratio < 45) ratio 314 drivers/iio/light/ltr501.c else if (ratio >= 45 && ratio < 64) ratio 316 drivers/iio/light/ltr501.c else if (ratio >= 64 && ratio < 85) ratio 419 drivers/iio/light/tsl2563.c unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; ratio 421 drivers/iio/light/tsl2563.c ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; ratio 423 drivers/iio/light/tsl2563.c while (lp->ch_ratio < ratio) ratio 69 drivers/iio/light/tsl2583.c unsigned int ratio; ratio 168 drivers/iio/light/tsl2583.c u32 ratio; ratio 237 drivers/iio/light/tsl2583.c ratio = (ch1 << 15) / ch0; ratio 241 drivers/iio/light/tsl2583.c p->ratio != 0 && p->ratio < ratio; p++) ratio 244 drivers/iio/light/tsl2583.c if (p->ratio == 0) { ratio 529 drivers/iio/light/tsl2583.c chip->als_settings.als_device_lux[i].ratio, ratio 532 drivers/iio/light/tsl2583.c if (chip->als_settings.als_device_lux[i].ratio == 0) { ratio 199 drivers/media/common/b2c2/flexcop-fe-tuner.c u32 srate, u32 ratio) ratio 220 drivers/media/common/b2c2/flexcop-fe-tuner.c stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 221 drivers/media/common/b2c2/flexcop-fe-tuner.c stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 222 drivers/media/common/b2c2/flexcop-fe-tuner.c stv0299_writereg(fe, 0x21, ratio & 0xf0); ratio 34 drivers/media/dvb-frontends/bsbe1.h static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) ratio 48 drivers/media/dvb-frontends/bsbe1.h stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 49 drivers/media/dvb-frontends/bsbe1.h stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 50 drivers/media/dvb-frontends/bsbe1.h stv0299_writereg(fe, 0x21, (ratio ) & 0xf0); ratio 53 drivers/media/dvb-frontends/bsru6.h static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) ratio 80 drivers/media/dvb-frontends/bsru6.h stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 81 drivers/media/dvb-frontends/bsru6.h stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 82 drivers/media/dvb-frontends/bsru6.h stv0299_writereg(fe, 0x21, ratio & 0xf0); ratio 230 drivers/media/dvb-frontends/cx24110.c u32 ratio; ratio 276 drivers/media/dvb-frontends/cx24110.c ratio=(tmp/BDRI); ratio 279 drivers/media/dvb-frontends/cx24110.c ratio=(ratio<<8)+(tmp/BDRI); ratio 282 drivers/media/dvb-frontends/cx24110.c ratio=(ratio<<8)+(tmp/BDRI); ratio 285 drivers/media/dvb-frontends/cx24110.c ratio=(ratio<<1)+(tmp/BDRI); ratio 289 drivers/media/dvb-frontends/cx24110.c dprintk("ratio= %08x\n", ratio); ratio 291 drivers/media/dvb-frontends/cx24110.c cx24110_writereg(state, 0x1, (ratio>>16)&0xff); ratio 292 drivers/media/dvb-frontends/cx24110.c cx24110_writereg(state, 0x2, (ratio>>8)&0xff); ratio 293 drivers/media/dvb-frontends/cx24110.c cx24110_writereg(state, 0x3, (ratio)&0xff); ratio 444 drivers/media/dvb-frontends/cx24123.c u32 sample_rate, ratio, sample_gain; ratio 478 drivers/media/dvb-frontends/cx24123.c ratio = (u32) tmp; ratio 482 drivers/media/dvb-frontends/cx24123.c cx24123_writereg(state, 0x08, (ratio >> 16) & 0x3f); ratio 483 drivers/media/dvb-frontends/cx24123.c cx24123_writereg(state, 0x09, (ratio >> 8) & 0xff); ratio 484 drivers/media/dvb-frontends/cx24123.c cx24123_writereg(state, 0x0a, ratio & 0xff); ratio 492 drivers/media/dvb-frontends/cx24123.c srate, ratio, sample_rate, sample_gain); ratio 2109 drivers/media/dvb-frontends/dib0090.c u8 ratio = 31; ratio 2111 drivers/media/dvb-frontends/dib0090.c dib0090_write_reg(state, 0x40, (3 << 7) | (ratio << 2) | (1 << 1) | 1); ratio 746 drivers/media/dvb-frontends/dib8000.c struct dibx000_bandwidth_config *pll, u32 bw, u8 ratio) ratio 807 drivers/media/dvb-frontends/dib8000.c ratio = state->cfg.pll->pll_ratio; ratio 812 drivers/media/dvb-frontends/dib8000.c if (ratio != 0) { ratio 814 drivers/media/dvb-frontends/dib8000.c dprintk("PLL: Update ratio (prediv: %d, ratio: %d)\n", state->cfg.pll->pll_prediv, ratio); ratio 815 drivers/media/dvb-frontends/dib8000.c dib8000_write_word(state, 901, (state->cfg.pll->pll_prediv << 8) | (ratio << 0)); /* only the PLL ratio is updated. */ ratio 2680 drivers/media/dvb-frontends/dib8000.c u8 ratio; ratio 2683 drivers/media/dvb-frontends/dib8000.c ratio = 4; ratio 2693 drivers/media/dvb-frontends/dib8000.c ratio = 2; ratio 2708 drivers/media/dvb-frontends/dib8000.c if (abs_offset_khz <= (state->cfg.pll->internal / ratio)) { ratio 46 drivers/media/dvb-frontends/dib8000.h struct dibx000_bandwidth_config *pll, u32 bw, u8 ratio); ratio 217 drivers/media/dvb-frontends/stv0299.c u32 ratio; ratio 226 drivers/media/dvb-frontends/stv0299.c ratio = big << 4; ratio 228 drivers/media/dvb-frontends/stv0299.c return state->config->set_symbol_rate(fe, srate, ratio); ratio 80 drivers/media/dvb-frontends/stv0299.h int (*set_symbol_rate)(struct dvb_frontend *fe, u32 srate, u32 ratio); ratio 4260 drivers/media/dvb-frontends/stv090x.c u8 ratio; ratio 4264 drivers/media/dvb-frontends/stv090x.c ratio = STV090x_GETFIELD(reg, SELX1RATIO_FIELD) ? 4 : 6; ratio 4266 drivers/media/dvb-frontends/stv090x.c return (div + 1) * config->xtal / ratio; /* kHz */ ratio 142 drivers/media/dvb-frontends/tda10021.c u32 tmp, ratio; ratio 162 drivers/media/dvb-frontends/tda10021.c ratio = (symbolrate << 4) / FIN; ratio 164 drivers/media/dvb-frontends/tda10021.c ratio = (ratio << 8) + tmp / FIN; ratio 166 drivers/media/dvb-frontends/tda10021.c ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, FIN); ratio 168 drivers/media/dvb-frontends/tda10021.c BDR = ratio; ratio 124 drivers/media/dvb-frontends/tda8083.c u32 ratio; ratio 140 drivers/media/dvb-frontends/tda8083.c ratio = tmp / srate; ratio 143 drivers/media/dvb-frontends/tda8083.c ratio = (ratio << 8) + tmp / srate; ratio 146 drivers/media/dvb-frontends/tda8083.c ratio = (ratio << 8) + tmp / srate; ratio 148 drivers/media/dvb-frontends/tda8083.c dprintk("tda8083: ratio == %08x\n", (unsigned int) ratio); ratio 151 drivers/media/dvb-frontends/tda8083.c tda8083_writereg (state, 0x02, (ratio >> 16) & 0xff); ratio 152 drivers/media/dvb-frontends/tda8083.c tda8083_writereg (state, 0x03, (ratio >> 8) & 0xff); ratio 153 drivers/media/dvb-frontends/tda8083.c tda8083_writereg (state, 0x04, (ratio ) & 0xff); ratio 108 drivers/media/dvb-frontends/ves1820.c u32 ratio; ratio 153 drivers/media/dvb-frontends/ves1820.c ratio = (symbolrate << 4) / fin; ratio 155 drivers/media/dvb-frontends/ves1820.c ratio = (ratio << 8) + tmp / fin; ratio 157 drivers/media/dvb-frontends/ves1820.c ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin); ratio 159 drivers/media/dvb-frontends/ves1820.c BDR = ratio; ratio 165 drivers/media/dvb-frontends/ves1x93.c u32 ratio; ratio 184 drivers/media/dvb-frontends/ves1x93.c ratio = tmp / FIN; ratio 187 drivers/media/dvb-frontends/ves1x93.c ratio = (ratio << 8) + tmp / FIN; ratio 190 drivers/media/dvb-frontends/ves1x93.c ratio = (ratio << 8) + tmp / FIN; ratio 194 drivers/media/dvb-frontends/ves1x93.c if (ratio < MUL/3) FNR = 0; ratio 195 drivers/media/dvb-frontends/ves1x93.c if (ratio < (MUL*11)/50) FNR = 1; ratio 196 drivers/media/dvb-frontends/ves1x93.c if (ratio < MUL/6) FNR = 2; ratio 197 drivers/media/dvb-frontends/ves1x93.c if (ratio < MUL/9) FNR = 3; ratio 198 drivers/media/dvb-frontends/ves1x93.c if (ratio < MUL/12) FNR = 4; ratio 199 drivers/media/dvb-frontends/ves1x93.c if (ratio < (MUL*11)/200) FNR = 5; ratio 200 drivers/media/dvb-frontends/ves1x93.c if (ratio < MUL/24) FNR = 6; ratio 201 drivers/media/dvb-frontends/ves1x93.c if (ratio < (MUL*27)/1000) FNR = 7; ratio 202 drivers/media/dvb-frontends/ves1x93.c if (ratio < MUL/48) FNR = 8; ratio 203 drivers/media/dvb-frontends/ves1x93.c if (ratio < (MUL*137)/10000) FNR = 9; ratio 215 drivers/media/dvb-frontends/ves1x93.c BDR = (( (ratio << (FNR >> 1)) >> 4) + 1) >> 1; ratio 219 drivers/media/dvb-frontends/ves1x93.c dprintk("ratio= %08x\n", (unsigned int) ratio); ratio 13 drivers/media/dvb-frontends/z0194a.h u32 srate, u32 ratio) ratio 33 drivers/media/dvb-frontends/z0194a.h stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 34 drivers/media/dvb-frontends/z0194a.h stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 35 drivers/media/dvb-frontends/z0194a.h stv0299_writereg(fe, 0x21, (ratio) & 0xf0); ratio 1755 drivers/media/i2c/adv7511-v4l2.c u8 ratio; ratio 1791 drivers/media/i2c/adv7511-v4l2.c ratio = (cec_clk / 750000) - 1; ratio 1792 drivers/media/i2c/adv7511-v4l2.c adv7511_cec_write(sd, 0x4e, ratio << 2); ratio 895 drivers/media/i2c/imx274.c unsigned int ratio = imx274_modes[i].bin_ratio; ratio 899 drivers/media/i2c/imx274.c cur_crop->width / ratio, *width, ratio 900 drivers/media/i2c/imx274.c cur_crop->height / ratio, *height, ratio 941 drivers/media/pci/cx88/cx88-dvb.c u32 srate, u32 ratio) ratio 968 drivers/media/pci/cx88/cx88-dvb.c stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 969 drivers/media/pci/cx88/cx88-dvb.c stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 970 drivers/media/pci/cx88/cx88-dvb.c stv0299_writereg(fe, 0x21, ratio & 0xf0); ratio 107 drivers/media/pci/mantis/mantis_vp1033.c u32 srate, u32 ratio) ratio 134 drivers/media/pci/mantis/mantis_vp1033.c stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 135 drivers/media/pci/mantis/mantis_vp1033.c stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 136 drivers/media/pci/mantis/mantis_vp1033.c stv0299_writereg(fe, 0x21, ratio & 0xf0); ratio 458 drivers/media/pci/ttpci/budget-av.c static int philips_su1278_ty_ci_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) ratio 480 drivers/media/pci/ttpci/budget-av.c stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 481 drivers/media/pci/ttpci/budget-av.c stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 482 drivers/media/pci/ttpci/budget-av.c stv0299_writereg(fe, 0x21, (ratio) & 0xf0); ratio 831 drivers/media/pci/ttpci/budget-av.c u32 srate, u32 ratio) ratio 857 drivers/media/pci/ttpci/budget-av.c stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 858 drivers/media/pci/ttpci/budget-av.c stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 859 drivers/media/pci/ttpci/budget-av.c stv0299_writereg(fe, 0x21, (ratio) & 0xf0); ratio 615 drivers/media/pci/ttpci/budget-ci.c static int philips_su1278_tt_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) ratio 640 drivers/media/pci/ttpci/budget-ci.c stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 641 drivers/media/pci/ttpci/budget-ci.c stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 642 drivers/media/pci/ttpci/budget-ci.c stv0299_writereg(fe, 0x21, (ratio) & 0xf0); ratio 241 drivers/media/platform/exynos-gsc/gsc-core.c u32 *ratio) ratio 244 drivers/media/platform/exynos-gsc/gsc-core.c *ratio = 1; ratio 253 drivers/media/platform/exynos-gsc/gsc-core.c *ratio = (dst > (src / 8)) ? 2 : 4; ratio 393 drivers/media/platform/exynos-gsc/gsc-core.h u32 *ratio); ratio 207 drivers/media/platform/exynos4-is/fimc-core.c static int fimc_get_scaler_factor(u32 src, u32 tar, u32 *ratio, u32 *shift) ratio 217 drivers/media/platform/exynos4-is/fimc-core.c *shift = sh, *ratio = tmp; ratio 221 drivers/media/platform/exynos4-is/fimc-core.c *shift = 0, *ratio = 1; ratio 307 drivers/media/platform/omap3isp/ispresizer.c const struct resizer_ratio *ratio) ratio 315 drivers/media/platform/omap3isp/ispresizer.c rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) ratio 317 drivers/media/platform/omap3isp/ispresizer.c rgval |= ((ratio->vert - 1) << ISPRSZ_CNT_VRSZ_SHIFT) ratio 322 drivers/media/platform/omap3isp/ispresizer.c if (ratio->horz > MID_RESIZE_VALUE) ratio 328 drivers/media/platform/omap3isp/ispresizer.c if (ratio->vert > MID_RESIZE_VALUE) ratio 780 drivers/media/platform/omap3isp/ispresizer.c struct resizer_ratio *ratio) ratio 805 drivers/media/platform/omap3isp/ispresizer.c ratio->vert = ((input->height - 4) * 256 + 255 - 16 - 32 * spv) ratio 807 drivers/media/platform/omap3isp/ispresizer.c if (ratio->vert > MID_RESIZE_VALUE) ratio 808 drivers/media/platform/omap3isp/ispresizer.c ratio->vert = ((input->height - 7) * 256 + 255 - 32 - 64 * spv) ratio 810 drivers/media/platform/omap3isp/ispresizer.c ratio->vert = clamp_t(unsigned int, ratio->vert, ratio 813 drivers/media/platform/omap3isp/ispresizer.c if (ratio->vert <= MID_RESIZE_VALUE) { ratio 814 drivers/media/platform/omap3isp/ispresizer.c upscaled_height = (output->height - 1) * ratio->vert ratio 818 drivers/media/platform/omap3isp/ispresizer.c upscaled_height = (output->height - 1) * ratio->vert ratio 830 drivers/media/platform/omap3isp/ispresizer.c if (ratio->vert <= MID_RESIZE_VALUE) { ratio 871 drivers/media/platform/omap3isp/ispresizer.c width_alignment = ratio->vert < 256 ? 8 : 2; ratio 876 drivers/media/platform/omap3isp/ispresizer.c ratio->horz = ((input->width - 7) * 256 + 255 - 16 - 32 * sph) ratio 878 drivers/media/platform/omap3isp/ispresizer.c if (ratio->horz > MID_RESIZE_VALUE) ratio 879 drivers/media/platform/omap3isp/ispresizer.c ratio->horz = ((input->width - 7) * 256 + 255 - 32 - 64 * sph) ratio 881 drivers/media/platform/omap3isp/ispresizer.c ratio->horz = clamp_t(unsigned int, ratio->horz, ratio 884 drivers/media/platform/omap3isp/ispresizer.c if (ratio->horz <= MID_RESIZE_VALUE) { ratio 885 drivers/media/platform/omap3isp/ispresizer.c upscaled_width = (output->width - 1) * ratio->horz ratio 889 drivers/media/platform/omap3isp/ispresizer.c upscaled_width = (output->width - 1) * ratio->horz ratio 912 drivers/media/platform/omap3isp/ispresizer.c resizer_set_ratio(res, &res->ratio); ratio 915 drivers/media/platform/omap3isp/ispresizer.c if (res->ratio.horz >= RESIZE_DIVISOR) ratio 1229 drivers/media/platform/omap3isp/ispresizer.c struct resizer_ratio ratio; ratio 1247 drivers/media/platform/omap3isp/ispresizer.c resizer_calc_ratios(res, &sel->r, format_source, &ratio); ratio 1252 drivers/media/platform/omap3isp/ispresizer.c resizer_calc_ratios(res, &sel->r, format_source, &ratio); ratio 1283 drivers/media/platform/omap3isp/ispresizer.c struct resizer_ratio ratio; ratio 1311 drivers/media/platform/omap3isp/ispresizer.c resizer_calc_ratios(res, &sel->r, &format_source, &ratio); ratio 1334 drivers/media/platform/omap3isp/ispresizer.c res->ratio = ratio; ratio 1379 drivers/media/platform/omap3isp/ispresizer.c struct resizer_ratio ratio; ratio 1399 drivers/media/platform/omap3isp/ispresizer.c resizer_calc_ratios(res, &crop, fmt, &ratio); ratio 1533 drivers/media/platform/omap3isp/ispresizer.c &res->ratio); ratio 102 drivers/media/platform/omap3isp/ispresizer.h struct resizer_ratio ratio; ratio 27 drivers/media/platform/qcom/venus/venc_ctrls.c u32 b, p, ratio; ratio 46 drivers/media/platform/qcom/venus/venc_ctrls.c ratio = b / p; ratio 48 drivers/media/platform/qcom/venus/venc_ctrls.c if (ratio == conseq_b) { ratio 53 drivers/media/platform/qcom/venus/venc_ctrls.c if (ratio > conseq_b) ratio 124 drivers/media/platform/s3c-camif/camif-core.c static int camif_get_scaler_factor(u32 src, u32 tar, u32 *ratio, u32 *shift) ratio 134 drivers/media/platform/s3c-camif/camif-core.c *shift = sh, *ratio = tmp; ratio 138 drivers/media/platform/s3c-camif/camif-core.c *shift = 0, *ratio = 1; ratio 296 drivers/media/platform/vsp1/vsp1_histo.c unsigned int ratio; ratio 324 drivers/media/platform/vsp1/vsp1_histo.c ratio = 1 << (crop->width * 2 / sel->r.width / 3); ratio 325 drivers/media/platform/vsp1/vsp1_histo.c sel->r.width = crop->width / ratio; ratio 329 drivers/media/platform/vsp1/vsp1_histo.c ratio = 1 << (crop->height * 2 / sel->r.height / 3); ratio 330 drivers/media/platform/vsp1/vsp1_histo.c sel->r.height = crop->height / ratio; ratio 54 drivers/media/platform/vsp1/vsp1_uds.c static unsigned int uds_output_size(unsigned int input, unsigned int ratio) ratio 56 drivers/media/platform/vsp1/vsp1_uds.c if (ratio > 4096) { ratio 60 drivers/media/platform/vsp1/vsp1_uds.c mp = ratio / 4096; ratio 63 drivers/media/platform/vsp1/vsp1_uds.c return (input - 1) / mp * mp * 4096 / ratio + 1; ratio 66 drivers/media/platform/vsp1/vsp1_uds.c return (input - 1) * 4096 / ratio + 1; ratio 87 drivers/media/platform/vsp1/vsp1_uds.c static unsigned int uds_passband_width(unsigned int ratio) ratio 89 drivers/media/platform/vsp1/vsp1_uds.c if (ratio >= 4096) { ratio 93 drivers/media/platform/vsp1/vsp1_uds.c mp = ratio / 4096; ratio 96 drivers/media/platform/vsp1/vsp1_uds.c return 64 * 4096 * mp / ratio; ratio 1629 drivers/media/usb/dvb-usb/dib0700_devices.c u32 freq_adc, ratio, rest, max = 0; ratio 1634 drivers/media/usb/dvb-usb/dib0700_devices.c ratio = ((fe->dtv_property_cache.frequency / 1000) * (1 << 8) / 1000) / freq_adc; ratio 1635 drivers/media/usb/dvb-usb/dib0700_devices.c rest = ((fe->dtv_property_cache.frequency / 1000) * (1 << 8) / 1000) - ratio * freq_adc; ratio 186 drivers/media/usb/dvb-usb/opera1.c u32 ratio) ratio 190 drivers/media/usb/dvb-usb/opera1.c stv0299_writereg(fe, REG_1F_SYMBOLRATE_BYTE0, (ratio >> 16) & 0xff); ratio 191 drivers/media/usb/dvb-usb/opera1.c stv0299_writereg(fe, REG_20_SYMBOLRATE_BYTE1, (ratio >> 8) & 0xff); ratio 192 drivers/media/usb/dvb-usb/opera1.c stv0299_writereg(fe, REG_21_SYMBOLRATE_BYTE2, (ratio) & 0xf0); ratio 1280 drivers/media/usb/go7007/go7007-fw.c int ratio = arate / go->sensor_framerate; ratio 1281 drivers/media/usb/go7007/go7007-fw.c int adjratio = ratio * 215 / 100; ratio 1294 drivers/media/usb/go7007/go7007-fw.c 0xbff6, f1 < f2 ? ratio : ratio + 1, ratio 1295 drivers/media/usb/go7007/go7007-fw.c 0xbff7, f1 > f2 ? ratio : ratio + 1, ratio 1235 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c static int alps_stv0299_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) ratio 1262 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); ratio 1263 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); ratio 1264 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c stv0299_writereg(fe, 0x21, (ratio) & 0xf0); ratio 358 drivers/media/v4l2-core/v4l2-dv-timings.c struct v4l2_fract ratio = { 1, 1 }; ratio 362 drivers/media/v4l2-core/v4l2-dv-timings.c return ratio; ratio 364 drivers/media/v4l2-core/v4l2-dv-timings.c return ratio; ratio 366 drivers/media/v4l2-core/v4l2-dv-timings.c ratio.numerator = t->bt.width * t->bt.picture_aspect.denominator; ratio 367 drivers/media/v4l2-core/v4l2-dv-timings.c ratio.denominator = t->bt.height * t->bt.picture_aspect.numerator; ratio 369 drivers/media/v4l2-core/v4l2-dv-timings.c rational_best_approximation(ratio.numerator, ratio.denominator, ratio 370 drivers/media/v4l2-core/v4l2-dv-timings.c ratio.numerator, ratio.denominator, &n, &d); ratio 371 drivers/media/v4l2-core/v4l2-dv-timings.c ratio.numerator = n; ratio 372 drivers/media/v4l2-core/v4l2-dv-timings.c ratio.denominator = d; ratio 373 drivers/media/v4l2-core/v4l2-dv-timings.c return ratio; ratio 810 drivers/media/v4l2-core/v4l2-dv-timings.c u8 ratio; ratio 823 drivers/media/v4l2-core/v4l2-dv-timings.c ratio = hor_landscape | vert_portrait; ratio 825 drivers/media/v4l2-core/v4l2-dv-timings.c if (ratio == 79) { ratio 828 drivers/media/v4l2-core/v4l2-dv-timings.c } else if (ratio == 34) { ratio 831 drivers/media/v4l2-core/v4l2-dv-timings.c } else if (ratio == 68) { ratio 2868 drivers/net/ethernet/sun/niu.c static void tcam_set_lat_and_ratio(struct niu *np, u64 latency, u64 ratio) ratio 2876 drivers/net/ethernet/sun/niu.c val |= (ratio << FFLP_CFG_1_CAMRATIO_SHIFT); ratio 150 drivers/net/ppp/bsd_comp.c unsigned int ratio; /* recent compression ratio */ ratio 229 drivers/net/ppp/bsd_comp.c db->ratio = 0; ratio 278 drivers/net/ppp/bsd_comp.c if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) ratio 283 drivers/net/ppp/bsd_comp.c db->ratio = new_ratio; ratio 2421 drivers/net/wireless/ath/ath5k/phy.c s16 ratio, result; ratio 2434 drivers/net/wireless/ath/ath5k/phy.c ratio = ((100 * y_right - 100 * y_left) / (x_right - x_left)); ratio 2437 drivers/net/wireless/ath/ath5k/phy.c result = y_left + (ratio * (target - x_left) / 100); ratio 35 drivers/staging/fbtft/fb_uc1611.c static unsigned int ratio = 2; ratio 36 drivers/staging/fbtft/fb_uc1611.c module_param(ratio, uint, 0000); ratio 37 drivers/staging/fbtft/fb_uc1611.c MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)"); ratio 78 drivers/staging/fbtft/fb_uc1611.c write_reg(par, 0xE8 | (ratio & 0x03)); ratio 264 drivers/thermal/intel/intel_powerclamp.c static unsigned int get_compensation(int ratio) ratio 269 drivers/thermal/intel/intel_powerclamp.c if (ratio == 1 && ratio 270 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio].confidence >= CONFIDENCE_OK && ratio 271 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio + 1].confidence >= CONFIDENCE_OK && ratio 272 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { ratio 273 drivers/thermal/intel/intel_powerclamp.c comp = (cal_data[ratio].steady_comp + ratio 274 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio + 1].steady_comp + ratio 275 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio + 2].steady_comp) / 3; ratio 276 drivers/thermal/intel/intel_powerclamp.c } else if (ratio == MAX_TARGET_RATIO - 1 && ratio 277 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio].confidence >= CONFIDENCE_OK && ratio 278 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio - 1].confidence >= CONFIDENCE_OK && ratio 279 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio - 2].confidence >= CONFIDENCE_OK) { ratio 280 drivers/thermal/intel/intel_powerclamp.c comp = (cal_data[ratio].steady_comp + ratio 281 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio - 1].steady_comp + ratio 282 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio - 2].steady_comp) / 3; ratio 283 drivers/thermal/intel/intel_powerclamp.c } else if (cal_data[ratio].confidence >= CONFIDENCE_OK && ratio 284 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio - 1].confidence >= CONFIDENCE_OK && ratio 285 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio + 1].confidence >= CONFIDENCE_OK) { ratio 286 drivers/thermal/intel/intel_powerclamp.c comp = (cal_data[ratio].steady_comp + ratio 287 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio - 1].steady_comp + ratio 288 drivers/thermal/intel/intel_powerclamp.c cal_data[ratio + 1].steady_comp) / 3; ratio 293 drivers/thermal/intel/intel_powerclamp.c comp = ratio; ratio 295 drivers/thermal/intel/intel_powerclamp.c if (comp + ratio >= MAX_TARGET_RATIO) ratio 296 drivers/thermal/intel/intel_powerclamp.c comp = MAX_TARGET_RATIO - ratio - 1; ratio 118 drivers/video/fbdev/asiliantfb.c unsigned ratio; ratio 123 drivers/video/fbdev/asiliantfb.c ratio = 1000000 / pixclock; ratio 125 drivers/video/fbdev/asiliantfb.c Ftarget = 1000000 * ratio + (1000000 * remainder) / pixclock; ratio 132 drivers/video/fbdev/asiliantfb.c ratio = Ftarget / Fref; ratio 138 drivers/video/fbdev/asiliantfb.c unsigned m = n * ratio + (n * remainder) / Fref; ratio 228 drivers/video/fbdev/asiliantfb.c unsigned long Ftarget, ratio, remainder; ratio 230 drivers/video/fbdev/asiliantfb.c ratio = 1000000 / var->pixclock; ratio 232 drivers/video/fbdev/asiliantfb.c Ftarget = 1000000 * ratio + (1000000 * remainder) / var->pixclock; ratio 512 drivers/video/fbdev/core/fbmon.c int xres, yres = 0, refresh, ratio; ratio 518 drivers/video/fbdev/core/fbmon.c ratio = (block[1] & 0xc0) >> 6; ratio 519 drivers/video/fbdev/core/fbmon.c switch (ratio) { ratio 2672 fs/reiserfs/journal.c int ratio = 1; ratio 2674 fs/reiserfs/journal.c ratio = REISERFS_STANDARD_BLKSIZE / sb->s_blocksize; ratio 2676 fs/reiserfs/journal.c if (journal->j_trans_max > JOURNAL_TRANS_MAX_DEFAULT / ratio || ratio 2677 fs/reiserfs/journal.c journal->j_trans_max < JOURNAL_TRANS_MIN_DEFAULT / ratio || ratio 123 include/sound/soc-dai.h int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio); ratio 183 include/sound/soc-dai.h int (*set_bclk_ratio)(struct snd_soc_dai *dai, unsigned int ratio); ratio 113 include/sound/soundfont.h int snd_sf_linear_to_log(unsigned int amount, int offset, int ratio); ratio 427 include/trace/events/vmscan.h unsigned long ratio, int file), ratio 429 include/trace/events/vmscan.h TP_ARGS(nid, reclaim_idx, total_inactive, inactive, total_active, active, ratio, file), ratio 438 include/trace/events/vmscan.h __field(unsigned long, ratio) ratio 449 include/trace/events/vmscan.h __entry->ratio = ratio; ratio 459 include/trace/events/vmscan.h __entry->ratio, ratio 129 include/uapi/linux/ppp_defs.h double ratio; /* not computed in kernel. */ ratio 1994 kernel/sched/fair.c int ratio = max(lr_ratio, ps_ratio); ratio 1995 kernel/sched/fair.c diff = -(NUMA_PERIOD_THRESHOLD - ratio) * period_slot; ratio 170 mm/backing-dev.c unsigned int ratio; ratio 173 mm/backing-dev.c ret = kstrtouint(buf, 10, &ratio); ratio 177 mm/backing-dev.c ret = bdi_set_min_ratio(bdi, ratio); ratio 189 mm/backing-dev.c unsigned int ratio; ratio 192 mm/backing-dev.c ret = kstrtouint(buf, 10, &ratio); ratio 196 mm/backing-dev.c ret = bdi_set_max_ratio(bdi, ratio); ratio 400 mm/page-writeback.c unsigned long ratio = (vm_dirty_ratio * PAGE_SIZE) / 100; ratio 418 mm/page-writeback.c ratio = min(DIV_ROUND_UP(bytes, global_avail), ratio 429 mm/page-writeback.c thresh = (ratio * available_memory) / PAGE_SIZE; ratio 5344 mm/slub.c unsigned int ratio; ratio 5347 mm/slub.c err = kstrtouint(buf, 10, &ratio); ratio 5350 mm/slub.c if (ratio > 100) ratio 5353 mm/slub.c s->remote_node_defrag_ratio = ratio * 10; ratio 70 net/dccp/feat.c static int dccp_hdlr_ack_ratio(struct sock *sk, u64 ratio, bool rx) ratio 73 net/dccp/feat.c dccp_sk(sk)->dccps_r_ack_ratio = ratio; ratio 75 net/dccp/feat.c dccp_sk(sk)->dccps_l_ack_ratio = ratio; ratio 1227 net/netfilter/nf_conntrack_core.c unsigned int ratio, scanned = 0; ratio 1318 net/netfilter/nf_conntrack_core.c ratio = scanned ? expired_count * 100 / scanned : 0; ratio 1319 net/netfilter/nf_conntrack_core.c if (ratio > GC_EVICT_RATIO) { ratio 475 sound/pci/au88x0/au88x0_core.c vortex_src_persist_convratio(vortex_t * vortex, unsigned char src, int ratio) ratio 480 sound/pci/au88x0/au88x0_core.c hwwrite(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2), ratio); ratio 487 sound/pci/au88x0/au88x0_core.c while (temp != ratio); ratio 505 sound/pci/au88x0/au88x0_core.c vortex_src_change_convratio(vortex_t * vortex, unsigned char src, int ratio) ratio 509 sound/pci/au88x0/au88x0_core.c if ((ratio & 0x10000) && (ratio != 0x10000)) { ratio 510 sound/pci/au88x0/au88x0_core.c if (ratio & 0x3fff) ratio 511 sound/pci/au88x0/au88x0_core.c a = (0x11 - ((ratio >> 0xe) & 0x3)) - 1; ratio 513 sound/pci/au88x0/au88x0_core.c a = (0x11 - ((ratio >> 0xe) & 0x3)) - 2; ratio 521 sound/pci/au88x0/au88x0_core.c vortex_src_persist_convratio(vortex, src, ratio); ratio 1189 sound/pci/ice1712/aureon.c unsigned char ratio; ratio 1190 sound/pci/ice1712/aureon.c ratio = aureon_cs8415_get(ice, CS8415_RATIO); ratio 1191 sound/pci/ice1712/aureon.c ucontrol->value.integer.value[0] = (int)((unsigned int)ratio * 750); ratio 590 sound/pci/ice1712/maya44.c unsigned int ratio, adc_ratio, val; ratio 595 sound/pci/ice1712/maya44.c ratio = WM8776_CLOCK_RATIO_128FS; ratio 598 sound/pci/ice1712/maya44.c ratio = WM8776_CLOCK_RATIO_128FS; ratio 601 sound/pci/ice1712/maya44.c ratio = WM8776_CLOCK_RATIO_256FS; ratio 604 sound/pci/ice1712/maya44.c ratio = WM8776_CLOCK_RATIO_384FS; ratio 607 sound/pci/ice1712/maya44.c ratio = WM8776_CLOCK_RATIO_512FS; ratio 610 sound/pci/ice1712/maya44.c ratio = WM8776_CLOCK_RATIO_512FS; ratio 613 sound/pci/ice1712/maya44.c ratio = WM8776_CLOCK_RATIO_768FS; ratio 629 sound/pci/ice1712/maya44.c adc_ratio = ratio; ratio 636 sound/pci/ice1712/maya44.c val |= ratio << 4; ratio 309 sound/soc/atmel/mchp-i2s-mcc.c unsigned int ratio) ratio 313 sound/soc/atmel/mchp-i2s-mcc.c dev_dbg(dev->dev, "%s() ratio=%u\n", __func__, ratio); ratio 315 sound/soc/atmel/mchp-i2s-mcc.c dev->frame_length = ratio; ratio 228 sound/soc/bcm/bcm2835-i2s.c unsigned int ratio) ratio 232 sound/soc/bcm/bcm2835-i2s.c if (!ratio) { ratio 237 sound/soc/bcm/bcm2835-i2s.c if (ratio > BCM2835_I2S_MAX_FRAME_LENGTH) ratio 243 sound/soc/bcm/bcm2835-i2s.c dev->slot_width = ratio / 2; ratio 244 sound/soc/bcm/bcm2835-i2s.c dev->frame_length = ratio; ratio 551 sound/soc/bcm/cygnus-ssp.c unsigned int ratio; ratio 563 sound/soc/bcm/cygnus-ssp.c ratio = aio->mclk / bit_rate; ratio 564 sound/soc/bcm/cygnus-ssp.c switch (ratio) { ratio 572 sound/soc/bcm/cygnus-ssp.c mclk_rate = ratio / 2; ratio 2056 sound/soc/codecs/arizona.c int ratio; ratio 2142 sound/soc/codecs/arizona.c return fll_fratios[i].ratio; ratio 2154 sound/soc/codecs/arizona.c int init_ratio, ratio; ratio 2204 sound/soc/codecs/arizona.c for (ratio = init_ratio; ratio > 0; ratio--) { ratio 2205 sound/soc/codecs/arizona.c if (target % (ratio * Fref)) { ratio 2207 sound/soc/codecs/arizona.c cfg->fratio = ratio - 1; ratio 2210 sound/soc/codecs/arizona.c Fref, refdiv, div, ratio); ratio 2211 sound/soc/codecs/arizona.c return ratio; ratio 2215 sound/soc/codecs/arizona.c for (ratio = init_ratio + 1; ratio <= ARIZONA_FLL_MAX_FRATIO; ratio 2216 sound/soc/codecs/arizona.c ratio++) { ratio 2218 sound/soc/codecs/arizona.c (fll->vco_mult * ratio) < Fref) { ratio 2223 sound/soc/codecs/arizona.c if (Fref > pseudo_fref_max[ratio - 1]) { ratio 2226 sound/soc/codecs/arizona.c pseudo_fref_max[ratio - 1], ratio 2227 sound/soc/codecs/arizona.c ratio); ratio 2231 sound/soc/codecs/arizona.c if (target % (ratio * Fref)) { ratio 2233 sound/soc/codecs/arizona.c cfg->fratio = ratio - 1; ratio 2236 sound/soc/codecs/arizona.c Fref, refdiv, div, ratio); ratio 2237 sound/soc/codecs/arizona.c return ratio; ratio 2259 sound/soc/codecs/arizona.c int i, ratio; ratio 2276 sound/soc/codecs/arizona.c ratio = arizona_calc_fratio(fll, cfg, target, Fref, sync); ratio 2277 sound/soc/codecs/arizona.c if (ratio < 0) ratio 2278 sound/soc/codecs/arizona.c return ratio; ratio 2283 sound/soc/codecs/arizona.c cfg->n = target / (ratio * Fref); ratio 2285 sound/soc/codecs/arizona.c if (target % (ratio * Fref)) { ratio 2286 sound/soc/codecs/arizona.c gcd_fll = gcd(target, ratio * Fref); ratio 2289 sound/soc/codecs/arizona.c cfg->theta = (target - (cfg->n * ratio * Fref)) ratio 2291 sound/soc/codecs/arizona.c cfg->lambda = (ratio * Fref) / gcd_fll; ratio 2321 sound/soc/codecs/arizona.c cfg->fratio, ratio, cfg->outdiv, ratio 191 sound/soc/codecs/cs4270.c unsigned int ratio; ratio 334 sound/soc/codecs/cs4270.c unsigned int ratio; ratio 340 sound/soc/codecs/cs4270.c ratio = cs4270->mclk / rate; /* MCLK/LRCK ratio */ ratio 343 sound/soc/codecs/cs4270.c if (cs4270_mode_ratios[i].ratio == ratio) ratio 303 sound/soc/codecs/cs4271.c unsigned short ratio; /* MCLK / sample rate */ ratio 346 sound/soc/codecs/cs4271.c unsigned int ratio, val; ratio 385 sound/soc/codecs/cs4271.c ratio = cs4271->mclk / cs4271->rate; ratio 389 sound/soc/codecs/cs4271.c (cs4271_clk_tab[i].ratio == ratio)) ratio 310 sound/soc/codecs/cs42l51.c unsigned int ratio; ratio 372 sound/soc/codecs/cs42l51.c unsigned int ratio; ratio 394 sound/soc/codecs/cs42l51.c ratio = cs42l51->mclk / rate; /* MCLK/LRCK ratio */ ratio 396 sound/soc/codecs/cs42l51.c if (ratios[i].ratio == ratio) ratio 639 sound/soc/codecs/cs42l52.c u8 ratio; ratio 819 sound/soc/codecs/cs42l52.c (clk_map_table[index].ratio << CLK_RATIO_SHIFT) | ratio 630 sound/soc/codecs/cs42l56.c u8 ratio; ratio 709 sound/soc/codecs/cs42l56.c return clk_ratio_table[i].ratio; ratio 864 sound/soc/codecs/cs42l56.c int ratio; ratio 866 sound/soc/codecs/cs42l56.c ratio = cs42l56_get_mclk_ratio(cs42l56->mclk, params_rate(params)); ratio 867 sound/soc/codecs/cs42l56.c if (ratio >= 0) { ratio 869 sound/soc/codecs/cs42l56.c CS42L56_CLK_RATIO_MASK, ratio); ratio 833 sound/soc/codecs/cs42l73.c u8 ratio; ratio 890 sound/soc/codecs/cs42l73.c cs42l73_mclkx_coeffs[mclkx_coeff].ratio; ratio 183 sound/soc/codecs/cs42xx8.c unsigned int ratio[3]; ratio 267 sound/soc/codecs/cs42xx8.c u32 ratio[2]; ratio 279 sound/soc/codecs/cs42xx8.c ratio[tx] = rate[tx] > 0 ? cs42xx8->sysclk / rate[tx] : 0; ratio 280 sound/soc/codecs/cs42xx8.c ratio[!tx] = rate[!tx] > 0 ? cs42xx8->sysclk / rate[!tx] : 0; ratio 304 sound/soc/codecs/cs42xx8.c (cs42xx8_ratios[i].ratio[0] == ratio[tx] || ratio 305 sound/soc/codecs/cs42xx8.c cs42xx8_ratios[i].ratio[1] == ratio[tx] || ratio 306 sound/soc/codecs/cs42xx8.c cs42xx8_ratios[i].ratio[2] == ratio[tx]) : ratio 307 sound/soc/codecs/cs42xx8.c (cs42xx8_ratios[i].ratio[fm[tx]] == ratio[tx])) && ratio 311 sound/soc/codecs/cs42xx8.c if (!ratio[tx]) ratio 316 sound/soc/codecs/cs42xx8.c (cs42xx8_ratios[i].ratio[0] == ratio[!tx] || ratio 317 sound/soc/codecs/cs42xx8.c cs42xx8_ratios[i].ratio[1] == ratio[!tx] || ratio 318 sound/soc/codecs/cs42xx8.c cs42xx8_ratios[i].ratio[2] == ratio[!tx]) : ratio 319 sound/soc/codecs/cs42xx8.c (cs42xx8_ratios[i].ratio[fm[!tx]] == ratio[!tx])); ratio 321 sound/soc/codecs/cs42xx8.c if (!ratio[!tx]) ratio 506 sound/soc/codecs/cs53l30.c u8 ratio; ratio 558 sound/soc/codecs/cs53l30.c cs53l30_mclkx_coeffs[mclkx_coeff].ratio; ratio 983 sound/soc/codecs/cx2072x.c unsigned int ratio) ratio 988 sound/soc/codecs/cx2072x.c cx2072x->bclk_ratio = ratio; ratio 388 sound/soc/codecs/es8316.c const unsigned int ratio = supported_mclk_lrck_ratios[i]; ratio 390 sound/soc/codecs/es8316.c if (freq % ratio == 0) ratio 391 sound/soc/codecs/es8316.c es8316->allowed_rates[count++] = freq / ratio; ratio 476 sound/soc/codecs/es8316.c const unsigned int ratio = supported_mclk_lrck_ratios[i]; ratio 478 sound/soc/codecs/es8316.c if (es8316->sysclk % ratio != 0) ratio 480 sound/soc/codecs/es8316.c if (es8316->sysclk / ratio == params_rate(params)) ratio 482 sound/soc/codecs/es8328.c int ratio; ratio 506 sound/soc/codecs/es8328.c ratio = es8328->mclk_ratios[i]; ratio 508 sound/soc/codecs/es8328.c ratio = 0; ratio 548 sound/soc/codecs/es8328.c return snd_soc_component_update_bits(component, reg, ES8328_RATEMASK, ratio); ratio 3363 sound/soc/codecs/madera.c int ratio; ratio 3423 sound/soc/codecs/madera.c return fll_sync_fratios[i].ratio; ratio 3433 sound/soc/codecs/madera.c int ratio = 1; ratio 3435 sound/soc/codecs/madera.c while ((fout / (ratio * fref)) > MADERA_FLL_MAX_N) ratio 3436 sound/soc/codecs/madera.c ratio++; ratio 3439 sound/soc/codecs/madera.c *fratio = ratio - 1; ratio 3441 sound/soc/codecs/madera.c return ratio; ratio 3478 sound/soc/codecs/madera.c int init_ratio, ratio; ratio 3535 sound/soc/codecs/madera.c for (ratio = init_ratio; ratio > 0; ratio--) { ratio 3536 sound/soc/codecs/madera.c if (fll->fout % (ratio * fref)) { ratio 3538 sound/soc/codecs/madera.c cfg->fratio = ratio - 1; ratio 3539 sound/soc/codecs/madera.c return ratio; ratio 3543 sound/soc/codecs/madera.c for (ratio = init_ratio + 1; ratio <= MADERA_FLL_MAX_FRATIO; ratio 3544 sound/soc/codecs/madera.c ratio++) { ratio 3546 sound/soc/codecs/madera.c (MADERA_FLL_VCO_MULT * ratio) < fref) ratio 3549 sound/soc/codecs/madera.c if (fref > pseudo_fref_max[ratio - 1]) ratio 3552 sound/soc/codecs/madera.c if (fll->fout % (ratio * fref)) { ratio 3554 sound/soc/codecs/madera.c cfg->fratio = ratio - 1; ratio 3555 sound/soc/codecs/madera.c return ratio; ratio 3598 sound/soc/codecs/madera.c int ratio, ret; ratio 3604 sound/soc/codecs/madera.c ratio = madera_calc_fratio(fll, cfg, fref, sync); ratio 3605 sound/soc/codecs/madera.c if (ratio < 0) ratio 3606 sound/soc/codecs/madera.c return ratio; ratio 3611 sound/soc/codecs/madera.c cfg->n = fll->fout / (ratio * fref); ratio 3613 sound/soc/codecs/madera.c if (fll->fout % (ratio * fref)) { ratio 3614 sound/soc/codecs/madera.c gcd_fll = gcd(fll->fout, ratio * fref); ratio 3617 sound/soc/codecs/madera.c cfg->theta = (fll->fout - (cfg->n * ratio * fref)) ratio 3619 sound/soc/codecs/madera.c cfg->lambda = (ratio * fref) / gcd_fll; ratio 3678 sound/soc/codecs/madera.c cfg->fratio, ratio, cfg->refdiv, 1 << cfg->refdiv); ratio 4309 sound/soc/codecs/madera.c unsigned int fll_n, min_n, max_n, ratio, theta, lambda; ratio 4361 sound/soc/codecs/madera.c ratio = fout / fref; ratio 4366 sound/soc/codecs/madera.c while (ratio / fbdiv < min_n) { ratio 4373 sound/soc/codecs/madera.c while (frac && (ratio / fbdiv > max_n)) { ratio 186 sound/soc/codecs/max9867.c unsigned long int rate, ratio; ratio 202 sound/soc/codecs/max9867.c ratio = max9867->pclk / rate; ratio 206 sound/soc/codecs/max9867.c switch (ratio) { ratio 575 sound/soc/codecs/nau8540.c fll_param->ratio = fll_ratio[i].val; ratio 599 sound/soc/codecs/nau8540.c fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); ratio 613 sound/soc/codecs/nau8540.c fll_param->ratio | (0x6 << NAU8540_ICTRL_LATCH_SFT)); ratio 688 sound/soc/codecs/nau8540.c fll_param.mclk_src, fll_param.ratio, fll_param.fll_frac, ratio 221 sound/soc/codecs/nau8540.h int ratio; ratio 1294 sound/soc/codecs/nau8824.c fll_param->ratio = fll_ratio[i].val; ratio 1318 sound/soc/codecs/nau8824.c fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); ratio 1331 sound/soc/codecs/nau8824.c NAU8824_FLL_RATIO_MASK, fll_param->ratio); ratio 1379 sound/soc/codecs/nau8824.c fll_param.mclk_src, fll_param.ratio, fll_param.fll_frac, ratio 454 sound/soc/codecs/nau8824.h int ratio; ratio 53 sound/soc/codecs/nau8825.c int ratio; ratio 2011 sound/soc/codecs/nau8825.c fll_param->ratio = fll_ratio[i].val; ratio 2035 sound/soc/codecs/nau8825.c fvco = div_u64(fvco_max << 16, fref * fll_param->ratio); ratio 2050 sound/soc/codecs/nau8825.c fll_param->ratio | (0x6 << NAU8825_ICTRL_LATCH_SFT)); ratio 2101 sound/soc/codecs/nau8825.c fll_param.mclk_src, fll_param.ratio, fll_param.fll_frac, ratio 115 sound/soc/codecs/pcm3060.c unsigned int ratio; ratio 130 sound/soc/codecs/pcm3060.c ratio = priv->dai[dai->id].sclk_freq / rate; ratio 132 sound/soc/codecs/pcm3060.c switch (ratio) { ratio 152 sound/soc/codecs/pcm3060.c dev_err(comp->dev, "unsupported ratio: %d\n", ratio); ratio 424 sound/soc/codecs/pcm3168a.c unsigned int rate, fmt, ratio, max_ratio; ratio 430 sound/soc/codecs/pcm3168a.c ratio = pcm3168a->sysclk / rate; ratio 448 sound/soc/codecs/pcm3168a.c if (pcm3168a_scki_ratios[i] == ratio) ratio 1384 sound/soc/codecs/pcm512x.c static int pcm512x_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 1389 sound/soc/codecs/pcm512x.c if (ratio > 256) ratio 1392 sound/soc/codecs/pcm512x.c pcm512x->bclk_ratio = ratio; ratio 874 sound/soc/codecs/rt274.c static int rt274_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 879 sound/soc/codecs/rt274.c dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio); ratio 880 sound/soc/codecs/rt274.c rt274->fs = ratio; ratio 881 sound/soc/codecs/rt274.c if ((ratio / 50) == 0) ratio 864 sound/soc/codecs/rt286.c static int rt286_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 868 sound/soc/codecs/rt286.c dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio); ratio 869 sound/soc/codecs/rt286.c if (50 == ratio) ratio 931 sound/soc/codecs/rt298.c static int rt298_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 935 sound/soc/codecs/rt298.c dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio); ratio 936 sound/soc/codecs/rt298.c if (50 == ratio) ratio 3614 sound/soc/codecs/rt5659.c static int rt5659_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 3619 sound/soc/codecs/rt5659.c dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio); ratio 3621 sound/soc/codecs/rt5659.c rt5659->bclk[dai->id] = ratio; ratio 3623 sound/soc/codecs/rt5659.c if (ratio == 64) { ratio 3032 sound/soc/codecs/rt5663.c static int rt5663_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 3038 sound/soc/codecs/rt5663.c dev_dbg(component->dev, "%s ratio = %d\n", __func__, ratio); ratio 3045 sound/soc/codecs/rt5663.c switch (ratio) { ratio 4398 sound/soc/codecs/rt5665.c static int rt5665_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 4403 sound/soc/codecs/rt5665.c dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio); ratio 4405 sound/soc/codecs/rt5665.c rt5665->bclk[dai->id] = ratio; ratio 4407 sound/soc/codecs/rt5665.c if (ratio == 64) { ratio 2195 sound/soc/codecs/rt5668.c static int rt5668_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 2200 sound/soc/codecs/rt5668.c rt5668->bclk[dai->id] = ratio; ratio 2202 sound/soc/codecs/rt5668.c switch (ratio) { ratio 2214 sound/soc/codecs/rt5668.c dev_err(dai->dev, "Invalid bclk ratio %d\n", ratio); ratio 2546 sound/soc/codecs/rt5670.c static int rt5670_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 2550 sound/soc/codecs/rt5670.c dev_dbg(component->dev, "%s ratio=%d\n", __func__, ratio); ratio 2554 sound/soc/codecs/rt5670.c if ((ratio % 50) == 0) ratio 2273 sound/soc/codecs/rt5682.c static int rt5682_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 2278 sound/soc/codecs/rt5682.c rt5682->bclk[dai->id] = ratio; ratio 2280 sound/soc/codecs/rt5682.c switch (ratio) { ratio 2292 sound/soc/codecs/rt5682.c dev_err(dai->dev, "Invalid bclk ratio %d\n", ratio); ratio 656 sound/soc/codecs/sta32x.c unsigned int rate, ratio; ratio 666 sound/soc/codecs/sta32x.c ratio = sta32x->mclk / rate; ratio 667 sound/soc/codecs/sta32x.c dev_dbg(component->dev, "rate: %u, ratio: %u\n", rate, ratio); ratio 682 sound/soc/codecs/sta32x.c if (mcs_ratio_table[ir][i] == ratio) { ratio 689 sound/soc/codecs/sta32x.c dev_err(component->dev, "Unresolvable ratio: %u\n", ratio); ratio 685 sound/soc/codecs/sta350.c unsigned int rate, ratio; ratio 695 sound/soc/codecs/sta350.c ratio = sta350->mclk / rate; ratio 696 sound/soc/codecs/sta350.c dev_dbg(component->dev, "rate: %u, ratio: %u\n", rate, ratio); ratio 711 sound/soc/codecs/sta350.c if (mcs_ratio_table[ir][i] == ratio) { ratio 718 sound/soc/codecs/sta350.c dev_err(component->dev, "Unresolvable ratio: %u\n", ratio); ratio 1221 sound/soc/codecs/tscs42xx.c unsigned int ratio) ratio 1228 sound/soc/codecs/tscs42xx.c switch (ratio) { ratio 1260 sound/soc/codecs/tscs42xx.c tscs42xx->bclk_ratio = ratio; ratio 2662 sound/soc/codecs/tscs454.c unsigned int ratio) ratio 2671 sound/soc/codecs/tscs454.c dai->id, ratio); ratio 2692 sound/soc/codecs/tscs454.c switch (ratio) { ratio 80 sound/soc/codecs/uda1334.c int ratio; ratio 136 sound/soc/codecs/uda1334.c val = freq / lrclk_ratios[i].ratio; ratio 1848 sound/soc/codecs/wm2200.c int ratio; ratio 1903 sound/soc/codecs/wm2200.c fratio = fll_fratios[i].ratio; ratio 1668 sound/soc/codecs/wm5100.c int ratio; ratio 1723 sound/soc/codecs/wm5100.c fratio = fll_fratios[i].ratio; ratio 965 sound/soc/codecs/wm8350.c int ratio; /* FLL_FRATIO */ ratio 992 sound/soc/codecs/wm8350.c fll_div->ratio = 1; ratio 994 sound/soc/codecs/wm8350.c fll_div->ratio = 8; ratio 997 sound/soc/codecs/wm8350.c t2 = input * fll_div->ratio; ratio 1047 sound/soc/codecs/wm8350.c fll_div.ratio); ratio 1055 sound/soc/codecs/wm8350.c (fll_div.ratio << 11) | (fll_div. ratio 1062 sound/soc/codecs/wm8350.c (fll_div.ratio == 8 ? WM8350_FLL_SLOW_LOCK_REF : 0)); ratio 101 sound/soc/codecs/wm8523.c int ratio; ratio 114 sound/soc/codecs/wm8523.c int ratio; ratio 156 sound/soc/codecs/wm8523.c lrclk_ratios[i].ratio) ratio 173 sound/soc/codecs/wm8523.c if (params_width(params) * 2 <= bclk_ratios[i].ratio) ratio 220 sound/soc/codecs/wm8523.c val = freq / lrclk_ratios[i].ratio; ratio 48 sound/soc/codecs/wm8524.c int ratio; ratio 104 sound/soc/codecs/wm8524.c val = freq / lrclk_ratios[i].ratio; ratio 542 sound/soc/codecs/wm8580.c int i, ratio, osr; ratio 566 sound/soc/codecs/wm8580.c ratio = wm8580->sysclk[dai->driver->id] / params_rate(params); ratio 568 sound/soc/codecs/wm8580.c if (ratio == wm8580_sysclk_ratios[i]) ratio 580 sound/soc/codecs/wm8580.c switch (ratio) { ratio 416 sound/soc/codecs/wm8770.c int ratio; ratio 452 sound/soc/codecs/wm8770.c ratio = wm8770->sysclk / params_rate(params); ratio 453 sound/soc/codecs/wm8770.c if (ratio == mclk_ratios[i]) ratio 1397 sound/soc/codecs/wm8903.c int ratio; ratio 1552 sound/soc/codecs/wm8903.c best_val = ((clk_sys * 10) / bclk_divs[0].ratio) - bclk; ratio 1555 sound/soc/codecs/wm8903.c cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; ratio 1567 sound/soc/codecs/wm8903.c bclk_divs[bclk_div].ratio / 10, bclk, ratio 1568 sound/soc/codecs/wm8903.c (clk_sys * 10) / bclk_divs[bclk_div].ratio); ratio 1229 sound/soc/codecs/wm8904.c int ratio; ratio 1336 sound/soc/codecs/wm8904.c best_val = abs((wm8904->sysclk_rate / clk_sys_rates[0].ratio) ratio 1340 sound/soc/codecs/wm8904.c clk_sys_rates[i].ratio) - wm8904->fs); ratio 1347 sound/soc/codecs/wm8904.c clk_sys_rates[best].ratio); ratio 1596 sound/soc/codecs/wm8904.c int ratio; ratio 1651 sound/soc/codecs/wm8904.c target /= fll_fratios[i].ratio; ratio 470 sound/soc/codecs/wm8961.c int ratio; ratio 546 sound/soc/codecs/wm8961.c if (wm8961_clk_sys_ratio[i].ratio >= target) ratio 554 sound/soc/codecs/wm8961.c wm8961_clk_sys_ratio[i].ratio, wm8961->sysclk, fs, ratio 2723 sound/soc/codecs/wm8962.c int ratio; ratio 2778 sound/soc/codecs/wm8962.c fratio = fll_fratios[i].ratio; ratio 386 sound/soc/codecs/wm8974.c unsigned int ratio = 2 * f_in / f_out; ratio 388 sound/soc/codecs/wm8974.c if (ratio <= 2) { ratio 390 sound/soc/codecs/wm8974.c ratio = 2; ratio 391 sound/soc/codecs/wm8974.c } else if (ratio == 3) { ratio 393 sound/soc/codecs/wm8974.c } else if (ratio == 4) { ratio 395 sound/soc/codecs/wm8974.c } else if (ratio <= 6) { ratio 397 sound/soc/codecs/wm8974.c ratio = 6; ratio 398 sound/soc/codecs/wm8974.c } else if (ratio <= 8) { ratio 400 sound/soc/codecs/wm8974.c ratio = 8; ratio 401 sound/soc/codecs/wm8974.c } else if (ratio <= 12) { ratio 403 sound/soc/codecs/wm8974.c ratio = 12; ratio 404 sound/soc/codecs/wm8974.c } else if (ratio <= 16) { ratio 406 sound/soc/codecs/wm8974.c ratio = 16; ratio 409 sound/soc/codecs/wm8974.c ratio = 24; ratio 412 sound/soc/codecs/wm8974.c return f_out * ratio / 2; ratio 106 sound/soc/codecs/wm8983.c int ratio; ratio 710 sound/soc/codecs/wm8983.c == fs_ratios[i].ratio) ratio 720 sound/soc/codecs/wm8983.c dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio); ratio 196 sound/soc/codecs/wm8985.c int ratio; ratio 808 sound/soc/codecs/wm8985.c == fs_ratios[i].ratio) ratio 818 sound/soc/codecs/wm8985.c dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio); ratio 151 sound/soc/codecs/wm8993.c int ratio; ratio 373 sound/soc/codecs/wm8993.c int ratio; ratio 429 sound/soc/codecs/wm8993.c target /= fll_fratios[i].ratio; ratio 1242 sound/soc/codecs/wm8993.c best_val = abs((wm8993->sysclk_rate / clk_sys_rates[0].ratio) ratio 1246 sound/soc/codecs/wm8993.c clk_sys_rates[i].ratio) - wm8993->fs); ratio 1253 sound/soc/codecs/wm8993.c clk_sys_rates[best].ratio); ratio 1905 sound/soc/codecs/wm8996.c int ratio; ratio 1970 sound/soc/codecs/wm8996.c fratio = fll_fratios[i].ratio; ratio 86 sound/soc/codecs/wm9081.c int ratio; ratio 453 sound/soc/codecs/wm9081.c int ratio; ratio 508 sound/soc/codecs/wm9081.c target /= fll_fratios[i].ratio; ratio 669 sound/soc/codecs/wm9081.c target = wm9081->fs * clk_sys_rates[i].ratio; ratio 681 sound/soc/codecs/wm9081.c new_sysclk = clk_sys_rates[i].ratio ratio 1055 sound/soc/codecs/wm9081.c best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio) ratio 1059 sound/soc/codecs/wm9081.c clk_sys_rates[i].ratio) - wm9081->fs); ratio 1066 sound/soc/codecs/wm9081.c clk_sys_rates[best].ratio); ratio 223 sound/soc/fsl/fsl_asrc.c unsigned long ratio; ratio 232 sound/soc/fsl/fsl_asrc.c ratio = (inrate / outrate) << IDEAL_RATIO_DECIMAL_DEPTH; ratio 243 sound/soc/fsl/fsl_asrc.c ratio |= 1 << (IDEAL_RATIO_DECIMAL_DEPTH - i); ratio 250 sound/soc/fsl/fsl_asrc.c regmap_write(asrc_priv->regmap, REG_ASRIDRL(index), ratio); ratio 251 sound/soc/fsl/fsl_asrc.c regmap_write(asrc_priv->regmap, REG_ASRIDRH(index), ratio >> 24); ratio 138 sound/soc/fsl/fsl_esai.c static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, ratio 149 sound/soc/fsl/fsl_esai.c if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { ratio 153 sound/soc/fsl/fsl_esai.c } else if (ratio % 2) { ratio 158 sound/soc/fsl/fsl_esai.c ratio /= 2; ratio 160 sound/soc/fsl/fsl_esai.c psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8; ratio 163 sound/soc/fsl/fsl_esai.c if (ratio <= 256) { ratio 164 sound/soc/fsl/fsl_esai.c pm = ratio; ratio 178 sound/soc/fsl/fsl_esai.c if (prod == ratio) ratio 180 sound/soc/fsl/fsl_esai.c else if (prod / ratio == 1) ratio 181 sound/soc/fsl/fsl_esai.c sub = prod - ratio; ratio 182 sound/soc/fsl/fsl_esai.c else if (ratio / prod == 1) ratio 183 sound/soc/fsl/fsl_esai.c sub = ratio - prod; ratio 188 sound/soc/fsl/fsl_esai.c sub = sub * 1000 / ratio; ratio 240 sound/soc/fsl/fsl_esai.c u32 ratio, ecr = 0; ratio 286 sound/soc/fsl/fsl_esai.c ratio = clk_rate / freq; ratio 287 sound/soc/fsl/fsl_esai.c if (ratio * freq > clk_rate) ratio 288 sound/soc/fsl/fsl_esai.c ret = ratio * freq - clk_rate; ratio 289 sound/soc/fsl/fsl_esai.c else if (ratio * freq < clk_rate) ratio 290 sound/soc/fsl/fsl_esai.c ret = clk_rate - ratio * freq; ratio 302 sound/soc/fsl/fsl_esai.c if (ratio == 1 && clksrc == esai_priv->extalclk) { ratio 306 sound/soc/fsl/fsl_esai.c } else if (ratio < 2) { ratio 313 sound/soc/fsl/fsl_esai.c ret = fsl_esai_divisor_cal(dai, tx, ratio, false, 0); ratio 337 sound/soc/fsl/fsl_esai.c u32 sub, ratio = hck_rate / freq; ratio 344 sound/soc/fsl/fsl_esai.c if (ratio * freq > hck_rate) ratio 345 sound/soc/fsl/fsl_esai.c sub = ratio * freq - hck_rate; ratio 346 sound/soc/fsl/fsl_esai.c else if (ratio * freq < hck_rate) ratio 347 sound/soc/fsl/fsl_esai.c sub = hck_rate - ratio * freq; ratio 359 sound/soc/fsl/fsl_esai.c if (!esai_priv->sck_div[tx] && (ratio > 16 || ratio == 0)) { ratio 364 sound/soc/fsl/fsl_esai.c ret = fsl_esai_divisor_cal(dai, tx, ratio, true, ratio 365 sound/soc/fsl/fsl_esai.c esai_priv->sck_div[tx] ? 0 : ratio); ratio 141 sound/soc/fsl/fsl_sai.c unsigned int ratio) ratio 145 sound/soc/fsl/fsl_sai.c sai->bclk_ratio = ratio; ratio 334 sound/soc/fsl/fsl_sai.c u32 savediv = 0, ratio, savesub = freq; ratio 347 sound/soc/fsl/fsl_sai.c ratio = clk_rate / freq; ratio 349 sound/soc/fsl/fsl_sai.c ret = clk_rate - ratio * freq; ratio 360 sound/soc/fsl/fsl_sai.c ratio, freq, clk_rate); ratio 362 sound/soc/fsl/fsl_sai.c if (ratio % 2 == 0 && ratio >= 2 && ratio <= 512) ratio 363 sound/soc/fsl/fsl_sai.c ratio /= 2; ratio 368 sound/soc/fsl/fsl_sai.c savediv = ratio; ratio 46 sound/soc/rockchip/rockchip_pdm.c unsigned int ratio; ratio 110 sound/soc/rockchip/rockchip_pdm.c unsigned int i, count, ratio; ratio 112 sound/soc/rockchip/rockchip_pdm.c ratio = 0; ratio 114 sound/soc/rockchip/rockchip_pdm.c return ratio; ratio 119 sound/soc/rockchip/rockchip_pdm.c ratio = ds_ratio[i].ratio; ratio 121 sound/soc/rockchip/rockchip_pdm.c return ratio; ratio 106 sound/soc/samsung/smdk_spdif.c int ret, ratio; ratio 124 sound/soc/samsung/smdk_spdif.c ratio = 512; ratio 125 sound/soc/samsung/smdk_spdif.c rclk_rate = params_rate(params) * ratio; ratio 180 sound/soc/samsung/spdif.c int i, ratio; ratio 214 sound/soc/samsung/spdif.c ratio = spdif->clk_rate / params_rate(params); ratio 216 sound/soc/samsung/spdif.c if (ratio == spdif_sysclk_ratios[i]) ratio 225 sound/soc/samsung/spdif.c switch (ratio) { ratio 67 sound/soc/sh/rcar/adg.c int i, ratio; ratio 73 sound/soc/sh/rcar/adg.c ratio = 2 << (i * 2); ratio 74 sound/soc/sh/rcar/adg.c if (0 == (div % ratio)) ratio 75 sound/soc/sh/rcar/adg.c return (u32)((i << 8) | ((div / ratio) - 1)); ratio 205 sound/soc/sh/rcar/src.c uint ratio; ratio 219 sound/soc/sh/rcar/src.c ratio = 0; ratio 221 sound/soc/sh/rcar/src.c ratio = 100 * fin / fout; ratio 223 sound/soc/sh/rcar/src.c ratio = 100 * fout / fin; ratio 225 sound/soc/sh/rcar/src.c if (ratio > 600) { ratio 81 sound/soc/soc-dai.c int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) ratio 84 sound/soc/soc-dai.c return dai->driver->ops->set_bclk_ratio(dai, ratio); ratio 288 sound/soc/xtensa/xtfpga-i2s.c unsigned freq, ratio, level; ratio 306 sound/soc/xtensa/xtfpga-i2s.c ratio = (freq - (srate * sample_size * 8)) / ratio 311 sound/soc/xtensa/xtfpga-i2s.c ratio << XTFPGA_I2S_CONFIG_RATIO_BASE); ratio 332 sound/soc/xtensa/xtfpga-i2s.c __func__, freq, ratio, level); ratio 785 sound/synth/emux/soundfont.c snd_sf_linear_to_log(unsigned int amount, int offset, int ratio) ratio 799 sound/synth/emux/soundfont.c v = (v * ratio) >> 16; ratio 800 sound/synth/emux/soundfont.c v += (24 - bit) * ratio; ratio 1483 tools/perf/builtin-diff.c double ratio; ratio 1505 tools/perf/builtin-diff.c ratio = pair->diff.period_ratio; ratio 1507 tools/perf/builtin-diff.c ratio = compute_ratio(he, pair); ratio 1509 tools/perf/builtin-diff.c if (ratio > 0.0) ratio 1510 tools/perf/builtin-diff.c scnprintf(buf, size, "%14.6F", ratio); ratio 1348 tools/perf/builtin-record.c float ratio = 0; ratio 1668 tools/perf/builtin-record.c ratio = (float)rec->session->bytes_transferred/(float)rec->session->bytes_compressed; ratio 1669 tools/perf/builtin-record.c session->header.env.comp_ratio = ratio + 0.5; ratio 1721 tools/perf/builtin-record.c if (ratio) { ratio 1724 tools/perf/builtin-record.c ratio); ratio 3728 tools/perf/builtin-trace.c double ratio; ratio 3733 tools/perf/builtin-trace.c ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; ratio 3737 tools/perf/builtin-trace.c printed += fprintf(fp, "%.1f%%", ratio); ratio 290 tools/perf/util/stat-shadow.c static const char *get_ratio_color(enum grc_type type, double ratio) ratio 299 tools/perf/util/stat-shadow.c if (ratio > grc_table[type][0]) ratio 301 tools/perf/util/stat-shadow.c else if (ratio > grc_table[type][1]) ratio 303 tools/perf/util/stat-shadow.c else if (ratio > grc_table[type][2]) ratio 429 tools/perf/util/stat-shadow.c double total, ratio = 0.0; ratio 436 tools/perf/util/stat-shadow.c ratio = avg / total * 100.0; ratio 438 tools/perf/util/stat-shadow.c color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); ratio 440 tools/perf/util/stat-shadow.c if (ratio) ratio 442 tools/perf/util/stat-shadow.c ratio); ratio 453 tools/perf/util/stat-shadow.c double total, ratio = 0.0; ratio 460 tools/perf/util/stat-shadow.c ratio = avg / total * 100.0; ratio 462 tools/perf/util/stat-shadow.c color = get_ratio_color(GRC_STALLED_CYCLES_BE, ratio); ratio 464 tools/perf/util/stat-shadow.c out->print_metric(config, out->ctx, color, "%7.2f%%", "backend cycles idle", ratio); ratio 474 tools/perf/util/stat-shadow.c double total, ratio = 0.0; ratio 481 tools/perf/util/stat-shadow.c ratio = avg / total * 100.0; ratio 483 tools/perf/util/stat-shadow.c color = get_ratio_color(GRC_CACHE_MISSES, ratio); ratio 485 tools/perf/util/stat-shadow.c out->print_metric(config, out->ctx, color, "%7.2f%%", "of all branches", ratio); ratio 496 tools/perf/util/stat-shadow.c double total, ratio = 0.0; ratio 503 tools/perf/util/stat-shadow.c ratio = avg / total * 100.0; ratio 505 tools/perf/util/stat-shadow.c color = get_ratio_color(GRC_CACHE_MISSES, ratio); ratio 507 tools/perf/util/stat-shadow.c out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-dcache hits", ratio); ratio 518 tools/perf/util/stat-shadow.c double total, ratio = 0.0; ratio 525 tools/perf/util/stat-shadow.c ratio = avg / total * 100.0; ratio 527 tools/perf/util/stat-shadow.c color = get_ratio_color(GRC_CACHE_MISSES, ratio); ratio 528 tools/perf/util/stat-shadow.c out->print_metric(config, out->ctx, color, "%7.2f%%", "of all L1-icache hits", ratio); ratio 538 tools/perf/util/stat-shadow.c double total, ratio = 0.0; ratio 545 tools/perf/util/stat-shadow.c ratio = avg / total * 100.0; ratio 547 tools/perf/util/stat-shadow.c color = get_ratio_color(GRC_CACHE_MISSES, ratio); ratio 548 tools/perf/util/stat-shadow.c out->print_metric(config, out->ctx, color, "%7.2f%%", "of all dTLB cache hits", ratio); ratio 558 tools/perf/util/stat-shadow.c double total, ratio = 0.0; ratio 565 tools/perf/util/stat-shadow.c ratio = avg / total * 100.0; ratio 567 tools/perf/util/stat-shadow.c color = get_ratio_color(GRC_CACHE_MISSES, ratio); ratio 568 tools/perf/util/stat-shadow.c out->print_metric(config, out->ctx, color, "%7.2f%%", "of all iTLB cache hits", ratio); ratio 578 tools/perf/util/stat-shadow.c double total, ratio = 0.0; ratio 585 tools/perf/util/stat-shadow.c ratio = avg / total * 100.0; ratio 587 tools/perf/util/stat-shadow.c color = get_ratio_color(GRC_CACHE_MISSES, ratio); ratio 588 tools/perf/util/stat-shadow.c out->print_metric(config, out->ctx, color, "%7.2f%%", "of all LL-cache hits", ratio); ratio 733 tools/perf/util/stat-shadow.c double ratio, scale; ratio 782 tools/perf/util/stat-shadow.c if (expr__parse(&ratio, &pctx, &p) == 0) { ratio 789 tools/perf/util/stat-shadow.c ratio *= scale; ratio 795 tools/perf/util/stat-shadow.c metric_bf, ratio); ratio 801 tools/perf/util/stat-shadow.c ratio); ratio 824 tools/perf/util/stat-shadow.c double total, ratio = 0.0, total2; ratio 834 tools/perf/util/stat-shadow.c ratio = avg / total; ratio 836 tools/perf/util/stat-shadow.c "insn per cycle", ratio); ratio 850 tools/perf/util/stat-shadow.c ratio = total / avg; ratio 853 tools/perf/util/stat-shadow.c ratio); ratio 914 tools/perf/util/stat-shadow.c ratio = avg * 100 / total; ratio 918 tools/perf/util/stat-shadow.c "of all cache refs", ratio); ratio 929 tools/perf/util/stat-shadow.c ratio = avg / total; ratio 930 tools/perf/util/stat-shadow.c print_metric(config, ctxp, NULL, "%8.3f", "GHz", ratio); ratio 960 tools/perf/util/stat-shadow.c ratio = total / avg; ratio 964 tools/perf/util/stat-shadow.c "cycles / transaction", ratio); ratio 973 tools/perf/util/stat-shadow.c ratio = total / avg; ratio 975 tools/perf/util/stat-shadow.c print_metric(config, ctxp, NULL, "%8.0f", "cycles / elision", ratio); ratio 977 tools/perf/util/stat-shadow.c if ((ratio = avg_stats(&walltime_nsecs_stats)) != 0) ratio 979 tools/perf/util/stat-shadow.c avg / (ratio * evsel->scale)); ratio 1032 tools/perf/util/stat-shadow.c ratio = 1000.0 * avg / total; ratio 1033 tools/perf/util/stat-shadow.c if (ratio < 0.001) { ratio 1034 tools/perf/util/stat-shadow.c ratio *= 1000; ratio 1038 tools/perf/util/stat-shadow.c print_metric(config, ctxp, NULL, "%8.3f", unit_buf, ratio); ratio 209 tools/power/cpupower/utils/cpufreq-info.c unsigned int ratio; ratio 220 tools/power/cpupower/utils/cpufreq-info.c ratio = (intel_turbo_ratio >> 24) & 0xFF; ratio 221 tools/power/cpupower/utils/cpufreq-info.c if (ratio) ratio 223 tools/power/cpupower/utils/cpufreq-info.c ratio * bclk); ratio 225 tools/power/cpupower/utils/cpufreq-info.c ratio = (intel_turbo_ratio >> 16) & 0xFF; ratio 226 tools/power/cpupower/utils/cpufreq-info.c if (ratio) ratio 228 tools/power/cpupower/utils/cpufreq-info.c ratio * bclk); ratio 230 tools/power/cpupower/utils/cpufreq-info.c ratio = (intel_turbo_ratio >> 8) & 0xFF; ratio 231 tools/power/cpupower/utils/cpufreq-info.c if (ratio) ratio 233 tools/power/cpupower/utils/cpufreq-info.c ratio * bclk); ratio 235 tools/power/cpupower/utils/cpufreq-info.c ratio = (intel_turbo_ratio >> 0) & 0xFF; ratio 236 tools/power/cpupower/utils/cpufreq-info.c if (ratio) ratio 238 tools/power/cpupower/utils/cpufreq-info.c ratio * bclk); ratio 2072 tools/power/x86/turbostat/turbostat.c unsigned int ratio; ratio 2078 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 40) & 0xFF; ratio 2080 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2082 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 8) & 0xFF; ratio 2084 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2097 tools/power/x86/turbostat/turbostat.c unsigned int ratio; ratio 2103 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 8) & 0xFF; ratio 2104 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2106 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2108 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 0) & 0xFF; ratio 2109 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2111 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2119 tools/power/x86/turbostat/turbostat.c unsigned int ratio; ratio 2125 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 56) & 0xFF; ratio 2126 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2128 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2130 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 48) & 0xFF; ratio 2131 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2133 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2135 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 40) & 0xFF; ratio 2136 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2138 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2140 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 32) & 0xFF; ratio 2141 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2143 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2145 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 24) & 0xFF; ratio 2146 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2148 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2150 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 16) & 0xFF; ratio 2151 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2153 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2155 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 8) & 0xFF; ratio 2156 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2158 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2160 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 0) & 0xFF; ratio 2161 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2163 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2185 tools/power/x86/turbostat/turbostat.c unsigned int ratio, group_size; ratio 2197 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 56) & 0xFF; ratio 2199 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2201 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk, group_size); ratio 2203 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 48) & 0xFF; ratio 2205 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2207 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk, group_size); ratio 2209 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 40) & 0xFF; ratio 2211 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2213 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk, group_size); ratio 2215 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 32) & 0xFF; ratio 2217 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2219 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk, group_size); ratio 2221 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 24) & 0xFF; ratio 2223 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2225 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk, group_size); ratio 2227 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 16) & 0xFF; ratio 2229 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2231 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk, group_size); ratio 2233 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 8) & 0xFF; ratio 2235 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2237 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk, group_size); ratio 2239 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 0) & 0xFF; ratio 2241 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2243 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk, group_size); ratio 2251 tools/power/x86/turbostat/turbostat.c unsigned int ratio; ratio 2256 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 0) & 0x3F; ratio 2257 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2259 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2261 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 8) & 0x3F; ratio 2262 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2264 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2266 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 16) & 0x3F; ratio 2267 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2269 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2274 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 24) & 0x3F; ratio 2275 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2277 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2279 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 16) & 0x3F; ratio 2280 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2282 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2284 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 8) & 0x3F; ratio 2285 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2287 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2289 tools/power/x86/turbostat/turbostat.c ratio = (msr >> 0) & 0x3F; ratio 2290 tools/power/x86/turbostat/turbostat.c if (ratio) ratio 2292 tools/power/x86/turbostat/turbostat.c ratio, bclk, ratio * bclk); ratio 2304 tools/power/x86/turbostat/turbostat.c unsigned int ratio[buckets_no]; ratio 2336 tools/power/x86/turbostat/turbostat.c ratio[b_nr] = (msr >> 8) & 0xFF; ratio 2343 tools/power/x86/turbostat/turbostat.c ratio[b_nr + 1] = ratio[b_nr] - delta_ratio; ratio 2348 tools/power/x86/turbostat/turbostat.c if (i > 0 ? ratio[i] != ratio[i - 1] : 1) ratio 2351 tools/power/x86/turbostat/turbostat.c ratio[i], bclk, ratio[i] * bclk, cores[i]); ratio 118 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c int ratio_2_msr_perf(int ratio) ratio 123 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c return ratio; ratio 125 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c msr_perf = ratio * 255 / bdx_highest_ratio; ratio 128 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio); ratio 134 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c int ratio; ratio 142 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c ratio = (int)d; ratio 145 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d); ratio 147 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c return ratio; ratio 804 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c int ratio_2_sysfs_khz(int ratio) ratio 808 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c return ratio * bclk_khz; ratio 817 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c void update_cpufreq_scaling_freq(int is_max, int cpu, unsigned int ratio) ratio 834 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c khz = ratio_2_sysfs_khz(ratio); ratio 96 tools/thermal/tmon/tmon.h void (*set_ratio)(unsigned long ratio); ratio 97 tools/thermal/tmon/tmon.h unsigned long (*get_ratio)(unsigned long ratio);