/linux-4.4.14/tools/perf/util/ |
D | stat-shadow.c | 121 static const char *get_ratio_color(enum grc_type type, double ratio) in get_ratio_color() argument 130 if (ratio > grc_table[type][0]) in get_ratio_color() 132 else if (ratio > grc_table[type][1]) in get_ratio_color() 134 else if (ratio > grc_table[type][2]) in get_ratio_color() 144 double total, ratio = 0.0; in print_stalled_cycles_frontend() local 151 ratio = avg / total * 100.0; in print_stalled_cycles_frontend() 153 color = get_ratio_color(GRC_STALLED_CYCLES_FE, ratio); in print_stalled_cycles_frontend() 156 color_fprintf(out, color, "%6.2f%%", ratio); in print_stalled_cycles_frontend() 164 double total, ratio = 0.0; in print_stalled_cycles_backend() local 171 ratio = avg / total * 100.0; in print_stalled_cycles_backend() [all …]
|
/linux-4.4.14/arch/x86/platform/intel-mid/ |
D | mfld.c | 33 u32 lo, hi, ratio, fsb; in mfld_calibrate_tsc() local 37 ratio = (hi >> 8) & 0x1f; in mfld_calibrate_tsc() 38 pr_debug("ratio is %d\n", ratio); in mfld_calibrate_tsc() 39 if (!ratio) { in mfld_calibrate_tsc() 42 ratio = 16; in mfld_calibrate_tsc() 49 fast_calibrate = ratio * fsb; in mfld_calibrate_tsc()
|
D | mrfl.c | 22 u32 lo, hi, ratio, fsb, bus_freq; in tangier_calibrate_tsc() local 32 ratio = (lo >> 8) & 0xFF; in tangier_calibrate_tsc() 33 pr_debug("ratio is %d\n", ratio); in tangier_calibrate_tsc() 34 if (!ratio) { in tangier_calibrate_tsc() 36 ratio = 4; in tangier_calibrate_tsc() 70 fast_calibrate = ratio * fsb; in tangier_calibrate_tsc()
|
/linux-4.4.14/drivers/thermal/ |
D | intel_powerclamp.c | 270 static unsigned int get_compensation(int ratio) in get_compensation() argument 275 if (ratio == 1 && in get_compensation() 276 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation() 277 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation() 278 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation() 279 comp = (cal_data[ratio].steady_comp + in get_compensation() 280 cal_data[ratio + 1].steady_comp + in get_compensation() 281 cal_data[ratio + 2].steady_comp) / 3; in get_compensation() 282 } else if (ratio == MAX_TARGET_RATIO - 1 && in get_compensation() 283 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation() [all …]
|
/linux-4.4.14/tools/power/x86/turbostat/ |
D | turbostat.c | 1174 unsigned int ratio; in dump_nhm_platform_info() local 1180 ratio = (msr >> 40) & 0xFF; in dump_nhm_platform_info() 1182 ratio, bclk, ratio * bclk); in dump_nhm_platform_info() 1184 ratio = (msr >> 8) & 0xFF; in dump_nhm_platform_info() 1186 ratio, bclk, ratio * bclk); in dump_nhm_platform_info() 1199 unsigned int ratio; in dump_hsw_turbo_ratio_limits() local 1205 ratio = (msr >> 8) & 0xFF; in dump_hsw_turbo_ratio_limits() 1206 if (ratio) in dump_hsw_turbo_ratio_limits() 1208 ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits() 1210 ratio = (msr >> 0) & 0xFF; in dump_hsw_turbo_ratio_limits() [all …]
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
D | ves1x93.c | 178 u32 ratio; in ves1x93_set_symbolrate() local 197 ratio = tmp / FIN; in ves1x93_set_symbolrate() 200 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate() 203 ratio = (ratio << 8) + tmp / FIN; in ves1x93_set_symbolrate() 207 if (ratio < MUL/3) FNR = 0; in ves1x93_set_symbolrate() 208 if (ratio < (MUL*11)/50) FNR = 1; in ves1x93_set_symbolrate() 209 if (ratio < MUL/6) FNR = 2; in ves1x93_set_symbolrate() 210 if (ratio < MUL/9) FNR = 3; in ves1x93_set_symbolrate() 211 if (ratio < MUL/12) FNR = 4; in ves1x93_set_symbolrate() 212 if (ratio < (MUL*11)/200) FNR = 5; in ves1x93_set_symbolrate() [all …]
|
D | z0194a.h | 16 u32 srate, u32 ratio) in sharp_z0194a_set_symbol_rate() argument 36 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in sharp_z0194a_set_symbol_rate() 37 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in sharp_z0194a_set_symbol_rate() 38 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in sharp_z0194a_set_symbol_rate()
|
D | bsbe1.h | 51 static int alps_bsbe1_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio) in alps_bsbe1_set_symbol_rate() argument 65 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_bsbe1_set_symbol_rate() 66 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_bsbe1_set_symbol_rate() 67 stv0299_writereg(fe, 0x21, (ratio ) & 0xf0); in alps_bsbe1_set_symbol_rate()
|
D | bsru6.h | 70 static int alps_bsru6_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_bsru6_set_symbol_rate() argument 97 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_bsru6_set_symbol_rate() 98 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_bsru6_set_symbol_rate() 99 stv0299_writereg(fe, 0x21, ratio & 0xf0); in alps_bsru6_set_symbol_rate()
|
D | tda8083.c | 136 u32 ratio; in tda8083_set_symbolrate() local 152 ratio = tmp / srate; in tda8083_set_symbolrate() 155 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate() 158 ratio = (ratio << 8) + tmp / srate; in tda8083_set_symbolrate() 160 dprintk("tda8083: ratio == %08x\n", (unsigned int) ratio); in tda8083_set_symbolrate() 163 tda8083_writereg (state, 0x02, (ratio >> 16) & 0xff); in tda8083_set_symbolrate() 164 tda8083_writereg (state, 0x03, (ratio >> 8) & 0xff); in tda8083_set_symbolrate() 165 tda8083_writereg (state, 0x04, (ratio ) & 0xff); in tda8083_set_symbolrate()
|
D | cx24110.c | 243 u32 ratio; in cx24110_set_symbolrate() local 289 ratio=(tmp/BDRI); in cx24110_set_symbolrate() 292 ratio=(ratio<<8)+(tmp/BDRI); in cx24110_set_symbolrate() 295 ratio=(ratio<<8)+(tmp/BDRI); in cx24110_set_symbolrate() 298 ratio=(ratio<<1)+(tmp/BDRI); in cx24110_set_symbolrate() 302 dprintk("ratio= %08x\n", ratio); in cx24110_set_symbolrate() 304 cx24110_writereg(state, 0x1, (ratio>>16)&0xff); in cx24110_set_symbolrate() 305 cx24110_writereg(state, 0x2, (ratio>>8)&0xff); in cx24110_set_symbolrate() 306 cx24110_writereg(state, 0x3, (ratio)&0xff); in cx24110_set_symbolrate()
|
D | ves1820.c | 120 u32 ratio; in ves1820_set_symbolrate() local 165 ratio = (symbolrate << 4) / fin; in ves1820_set_symbolrate() 167 ratio = (ratio << 8) + tmp / fin; in ves1820_set_symbolrate() 169 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin); in ves1820_set_symbolrate() 171 BDR = ratio; in ves1820_set_symbolrate()
|
D | tda10021.c | 155 u32 tmp, ratio; in tda10021_set_symbolrate() local 175 ratio = (symbolrate << 4) / FIN; in tda10021_set_symbolrate() 177 ratio = (ratio << 8) + tmp / FIN; in tda10021_set_symbolrate() 179 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, FIN); in tda10021_set_symbolrate() 181 BDR = ratio; in tda10021_set_symbolrate()
|
D | cx24123.c | 457 u32 sample_rate, ratio, sample_gain; in cx24123_set_symbolrate() local 491 ratio = (u32) tmp; in cx24123_set_symbolrate() 495 cx24123_writereg(state, 0x08, (ratio >> 16) & 0x3f); in cx24123_set_symbolrate() 496 cx24123_writereg(state, 0x09, (ratio >> 8) & 0xff); in cx24123_set_symbolrate() 497 cx24123_writereg(state, 0x0a, ratio & 0xff); in cx24123_set_symbolrate() 505 srate, ratio, sample_rate, sample_gain); in cx24123_set_symbolrate()
|
D | stv0299.h | 92 int (*set_symbol_rate)(struct dvb_frontend *fe, u32 srate, u32 ratio);
|
D | dib8000.h | 45 struct dibx000_bandwidth_config *pll, u32 bw, u8 ratio);
|
D | stv0299.c | 229 u32 ratio; in stv0299_set_symbolrate() local 238 ratio = big << 4; in stv0299_set_symbolrate() 240 return state->config->set_symbol_rate(fe, srate, ratio); in stv0299_set_symbolrate()
|
D | dib8000.c | 742 struct dibx000_bandwidth_config *pll, u32 bw, u8 ratio) in dib8000_update_pll() argument 803 ratio = state->cfg.pll->pll_ratio; in dib8000_update_pll() 808 if (ratio != 0) { in dib8000_update_pll() 810 dprintk("PLL: Update ratio (prediv: %d, ratio: %d)", state->cfg.pll->pll_prediv, ratio); in dib8000_update_pll() 811 …dib8000_write_word(state, 901, (state->cfg.pll->pll_prediv << 8) | (ratio << 0)); /* only the PLL … in dib8000_update_pll() 2676 u8 ratio; in dib8000_set_dds() local 2679 ratio = 4; in dib8000_set_dds() 2689 ratio = 2; in dib8000_set_dds() 2704 if (abs_offset_khz <= (state->cfg.pll->internal / ratio)) { in dib8000_set_dds()
|
D | dib0090.c | 2111 u8 ratio = 31; in dib0090_captrim_search() local 2113 dib0090_write_reg(state, 0x40, (3 << 7) | (ratio << 2) | (1 << 1) | 1); in dib0090_captrim_search()
|
D | stv090x.c | 4257 u8 ratio; in stv090x_get_mclk() local 4261 ratio = STV090x_GETFIELD(reg, SELX1RATIO_FIELD) ? 4 : 6; in stv090x_get_mclk() 4263 return (div + 1) * config->xtal / ratio; /* kHz */ in stv090x_get_mclk()
|
/linux-4.4.14/sound/soc/fsl/ |
D | fsl_esai.c | 122 static int fsl_esai_divisor_cal(struct snd_soc_dai *dai, bool tx, u32 ratio, in fsl_esai_divisor_cal() argument 133 if (ratio > 2 * 8 * 256 * maxfp || ratio < 2) { in fsl_esai_divisor_cal() 137 } else if (ratio % 2) { in fsl_esai_divisor_cal() 142 ratio /= 2; in fsl_esai_divisor_cal() 144 psr = ratio <= 256 * maxfp ? ESAI_xCCR_xPSR_BYPASS : ESAI_xCCR_xPSR_DIV8; in fsl_esai_divisor_cal() 155 if (prod == ratio) in fsl_esai_divisor_cal() 157 else if (prod / ratio == 1) in fsl_esai_divisor_cal() 158 sub = prod - ratio; in fsl_esai_divisor_cal() 159 else if (ratio / prod == 1) in fsl_esai_divisor_cal() 160 sub = ratio - prod; in fsl_esai_divisor_cal() [all …]
|
D | fsl_sai.c | 308 u32 savediv = 0, ratio, savesub = freq; in fsl_sai_set_bclk() local 321 ratio = clk_rate / freq; in fsl_sai_set_bclk() 323 ret = clk_rate - ratio * freq; in fsl_sai_set_bclk() 334 ratio, freq, clk_rate); in fsl_sai_set_bclk() 336 if (ratio % 2 == 0 && ratio >= 2 && ratio <= 512) in fsl_sai_set_bclk() 337 ratio /= 2; in fsl_sai_set_bclk() 342 savediv = ratio; in fsl_sai_set_bclk()
|
D | fsl_asrc.c | 198 unsigned long ratio; in fsl_asrc_set_ideal_ratio() local 207 ratio = (inrate / outrate) << IDEAL_RATIO_DECIMAL_DEPTH; in fsl_asrc_set_ideal_ratio() 218 ratio |= 1 << (IDEAL_RATIO_DECIMAL_DEPTH - i); in fsl_asrc_set_ideal_ratio() 225 regmap_write(asrc_priv->regmap, REG_ASRIDRL(index), ratio); in fsl_asrc_set_ideal_ratio() 226 regmap_write(asrc_priv->regmap, REG_ASRIDRH(index), ratio >> 24); in fsl_asrc_set_ideal_ratio()
|
/linux-4.4.14/arch/x86/kernel/ |
D | tsc_msr.c | 85 u32 lo, hi, ratio, freq_id, freq; in try_msr_calibrate_tsc() local 95 ratio = (lo >> 8) & 0xff; in try_msr_calibrate_tsc() 98 ratio = (hi >> 8) & 0x1f; in try_msr_calibrate_tsc() 100 pr_info("Maximum core-clock to bus-clock ratio: 0x%x\n", ratio); in try_msr_calibrate_tsc() 102 if (!ratio) in try_msr_calibrate_tsc() 115 res = freq * ratio; in try_msr_calibrate_tsc()
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 310 const struct resizer_ratio *ratio) in resizer_set_ratio() argument 318 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) in resizer_set_ratio() 320 rgval |= ((ratio->vert - 1) << ISPRSZ_CNT_VRSZ_SHIFT) in resizer_set_ratio() 325 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio() 331 if (ratio->vert > MID_RESIZE_VALUE) in resizer_set_ratio() 783 struct resizer_ratio *ratio) in resizer_calc_ratios() argument 808 ratio->vert = ((input->height - 4) * 256 + 255 - 16 - 32 * spv) in resizer_calc_ratios() 810 if (ratio->vert > MID_RESIZE_VALUE) in resizer_calc_ratios() 811 ratio->vert = ((input->height - 7) * 256 + 255 - 32 - 64 * spv) in resizer_calc_ratios() 813 ratio->vert = clamp_t(unsigned int, ratio->vert, in resizer_calc_ratios() [all …]
|
D | ispresizer.h | 105 struct resizer_ratio ratio; member
|
/linux-4.4.14/tools/power/cpupower/utils/ |
D | cpufreq-info.c | 213 unsigned int ratio; in get_boost_mode() local 224 ratio = (intel_turbo_ratio >> 24) & 0xFF; in get_boost_mode() 225 if (ratio) in get_boost_mode() 227 ratio * bclk); in get_boost_mode() 229 ratio = (intel_turbo_ratio >> 16) & 0xFF; in get_boost_mode() 230 if (ratio) in get_boost_mode() 232 ratio * bclk); in get_boost_mode() 234 ratio = (intel_turbo_ratio >> 8) & 0xFF; in get_boost_mode() 235 if (ratio) in get_boost_mode() 237 ratio * bclk); in get_boost_mode() [all …]
|
/linux-4.4.14/drivers/media/platform/vsp1/ |
D | vsp1_uds.c | 58 static unsigned int uds_output_size(unsigned int input, unsigned int ratio) in uds_output_size() argument 60 if (ratio > 4096) { in uds_output_size() 64 mp = ratio / 4096; in uds_output_size() 67 return (input - 1) / mp * mp * 4096 / ratio + 1; in uds_output_size() 70 return (input - 1) * 4096 / ratio + 1; in uds_output_size() 91 static unsigned int uds_passband_width(unsigned int ratio) in uds_passband_width() argument 93 if (ratio >= 4096) { in uds_passband_width() 97 mp = ratio / 4096; in uds_passband_width() 100 return 64 * 4096 * mp / ratio; in uds_passband_width()
|
/linux-4.4.14/tools/testing/selftests/memory-hotplug/ |
D | mem-on-off-test.sh | 118 ratio=10 133 ratio=$OPTARG 145 echo "Test scope: $ratio% hotplug memory" 147 echo -e "\t offline $ratio% hotplug memory in online state" 162 if [ $((RANDOM % 100)) -lt $ratio ]; then 208 if [ $((RANDOM % 100)) -lt $ratio ]; then
|
/linux-4.4.14/drivers/media/pci/mantis/ |
D | mantis_vp1033.c | 119 u32 srate, u32 ratio) in lgtdqcs001f_set_symbol_rate() argument 146 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in lgtdqcs001f_set_symbol_rate() 147 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in lgtdqcs001f_set_symbol_rate() 148 stv0299_writereg(fe, 0x21, ratio & 0xf0); in lgtdqcs001f_set_symbol_rate()
|
/linux-4.4.14/arch/arm/mach-iop13xx/include/mach/ |
D | time.h | 54 unsigned long ratio = __raw_readl(IOP13XX_PROCESSOR_FREQ); in iop13xx_xsi_bus_ratio() local 55 ratio &= IOP13XX_XSI_FREQ_RATIO_MASK; in iop13xx_xsi_bus_ratio() 56 switch (ratio) { in iop13xx_xsi_bus_ratio()
|
/linux-4.4.14/drivers/ide/ |
D | pdc202xx_new.c | 308 long pll_input, pll_output, ratio; in init_chipset_pdcnew() local 366 ratio = pll_output / (pll_input / 1000); in init_chipset_pdcnew() 367 if (ratio < 8600L) { /* 8.6x */ in init_chipset_pdcnew() 370 } else if (ratio < 12900L) { /* 12.9x */ in init_chipset_pdcnew() 373 } else if (ratio < 16100L) { /* 16.1x */ in init_chipset_pdcnew() 376 } else if (ratio < 64000L) { /* 64x */ in init_chipset_pdcnew() 381 name, pci_name(dev), ratio); in init_chipset_pdcnew() 385 f = (ratio * (r + 2)) / 1000 - 2; in init_chipset_pdcnew() 387 DBG("F[%d] R[%d] ratio*1000[%ld]\n", f, r, ratio); in init_chipset_pdcnew()
|
/linux-4.4.14/drivers/clk/sirf/ |
D | clk-common.c | 356 unsigned ratio, wait, hold; in dmn_clk_round_rate() local 360 ratio = fin / rate; in dmn_clk_round_rate() 362 if (ratio < 2) in dmn_clk_round_rate() 363 ratio = 2; in dmn_clk_round_rate() 364 if (ratio > BIT(bits + 1)) in dmn_clk_round_rate() 365 ratio = BIT(bits + 1); in dmn_clk_round_rate() 367 wait = (ratio >> 1) - 1; in dmn_clk_round_rate() 368 hold = ratio - wait - 2; in dmn_clk_round_rate() 378 unsigned ratio, wait, hold, reg; in dmn_clk_set_rate() local 382 ratio = fin / rate; in dmn_clk_set_rate() [all …]
|
/linux-4.4.14/Documentation/thermal/ |
D | intel_powerclamp.txt | 70 ratio (based on power reduction), and the error is the difference 71 between the actual package level C-state residency ratio and the target idle 72 ratio. 78 clamping actions of controlled duty ratio and duration. Each per-CPU 123 instantly as given input (target idle ratio). After injection, 146 a) determine the effective range of idle injection ratio 147 b) determine the amount of compensation needed at each target ratio 149 Compensation to each target ratio consists of two parts: 157 additional idle ratio can be added to quiet interrupts, by 206 we have a simple algorithm to double the injection ratio. A possible [all …]
|
/linux-4.4.14/sound/pci/ice1712/ |
D | maya44.c | 604 unsigned int ratio, adc_ratio, val; in set_rate() local 609 ratio = WM8776_CLOCK_RATIO_128FS; in set_rate() 612 ratio = WM8776_CLOCK_RATIO_128FS; in set_rate() 615 ratio = WM8776_CLOCK_RATIO_256FS; in set_rate() 618 ratio = WM8776_CLOCK_RATIO_384FS; in set_rate() 621 ratio = WM8776_CLOCK_RATIO_512FS; in set_rate() 624 ratio = WM8776_CLOCK_RATIO_512FS; in set_rate() 627 ratio = WM8776_CLOCK_RATIO_768FS; in set_rate() 643 adc_ratio = ratio; in set_rate() 650 val |= ratio << 4; in set_rate()
|
D | aureon.c | 1203 unsigned char ratio; in aureon_cs8415_rate_get() local 1204 ratio = aureon_cs8415_get(ice, CS8415_RATIO); in aureon_cs8415_rate_get() 1205 ucontrol->value.integer.value[0] = (int)((unsigned int)ratio * 750); in aureon_cs8415_rate_get()
|
/linux-4.4.14/sound/soc/codecs/ |
D | arizona.c | 1801 int ratio; member 1868 return fll_fratios[i].ratio; in arizona_find_fratio() 1880 int init_ratio, ratio; in arizona_calc_fratio() local 1924 for (ratio = init_ratio; ratio <= ARIZONA_FLL_MAX_FRATIO; in arizona_calc_fratio() 1925 ratio++) { in arizona_calc_fratio() 1927 (fll->vco_mult * ratio) < Fref) in arizona_calc_fratio() 1930 if (target % (ratio * Fref)) { in arizona_calc_fratio() 1932 cfg->fratio = ratio - 1; in arizona_calc_fratio() 1933 return ratio; in arizona_calc_fratio() 1937 for (ratio = init_ratio - 1; ratio > 0; ratio--) { in arizona_calc_fratio() [all …]
|
D | cs42l51.c | 296 unsigned int ratio; member 345 unsigned int ratio; in cs42l51_hw_params() local 365 ratio = cs42l51->mclk / rate; /* MCLK/LRCK ratio */ in cs42l51_hw_params() 367 if (ratios[i].ratio == ratio) in cs42l51_hw_params()
|
D | wm8523.c | 105 int ratio; member 118 int ratio; member 160 lrclk_ratios[i].ratio) in wm8523_hw_params() 177 if (params_width(params) * 2 <= bclk_ratios[i].ratio) in wm8523_hw_params() 224 val = freq / lrclk_ratios[i].ratio; in wm8523_set_dai_sysclk()
|
D | es8328.c | 35 u8 ratio; member 451 u8 ratio; in es8328_hw_params() local 470 ratio = mclk_ratios[0].rate; in es8328_hw_params() 473 ratio = mclk_ratios[i].ratio; in es8328_hw_params() 480 return snd_soc_update_bits(codec, reg, ES8328_RATEMASK, ratio); in es8328_hw_params()
|
D | cs4270.c | 191 unsigned int ratio; member 334 unsigned int ratio; in cs4270_hw_params() local 340 ratio = cs4270->mclk / rate; /* MCLK/LRCK ratio */ in cs4270_hw_params() 343 if (cs4270_mode_ratios[i].ratio == ratio) in cs4270_hw_params()
|
D | cs4271.c | 306 unsigned short ratio; /* MCLK / sample rate */ member 349 unsigned int ratio, val; in cs4271_hw_params() local 388 ratio = cs4271->mclk / cs4271->rate; in cs4271_hw_params() 392 (cs4271_clk_tab[i].ratio == ratio)) in cs4271_hw_params()
|
D | wm9081.c | 90 int ratio; member 457 int ratio; member 512 target /= fll_fratios[i].ratio; in fll_factors() 673 target = wm9081->fs * clk_sys_rates[i].ratio; in configure_clock() 685 new_sysclk = clk_sys_rates[i].ratio in configure_clock() 1058 best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio) in wm9081_hw_params() 1062 clk_sys_rates[i].ratio) - wm9081->fs); in wm9081_hw_params() 1069 clk_sys_rates[best].ratio); in wm9081_hw_params()
|
D | cs42xx8.c | 176 unsigned int ratio; member 257 u32 ratio = cs42xx8->sysclk / params_rate(params); in cs42xx8_hw_params() local 261 if (cs42xx8_ratios[i].ratio == ratio) in cs42xx8_hw_params()
|
D | wm8580.c | 511 int i, ratio, osr; in wm8580_paif_hw_params() local 535 ratio = wm8580->sysclk[dai->driver->id] / params_rate(params); in wm8580_paif_hw_params() 537 if (ratio == wm8580_sysclk_ratios[i]) in wm8580_paif_hw_params() 549 switch (ratio) { in wm8580_paif_hw_params()
|
D | cs42l56.c | 644 u8 ratio; member 723 return clk_ratio_table[i].ratio; in cs42l56_get_mclk_ratio() 878 int ratio; in cs42l56_pcm_hw_params() local 880 ratio = cs42l56_get_mclk_ratio(cs42l56->mclk, params_rate(params)); in cs42l56_pcm_hw_params() 881 if (ratio >= 0) { in cs42l56_pcm_hw_params() 883 CS42L56_CLK_RATIO_MASK, ratio); in cs42l56_pcm_hw_params()
|
D | wm8350.c | 968 int ratio; /* FLL_FRATIO */ member 995 fll_div->ratio = 1; in fll_factors() 997 fll_div->ratio = 8; in fll_factors() 1000 t2 = input * fll_div->ratio; in fll_factors() 1050 fll_div.ratio); in wm8350_set_fll() 1058 (fll_div.ratio << 11) | (fll_div. in wm8350_set_fll() 1065 (fll_div.ratio == 8 ? WM8350_FLL_SLOW_LOCK_REF : 0)); in wm8350_set_fll()
|
D | sta32x.c | 658 unsigned int rate, ratio; in sta32x_hw_params() local 668 ratio = sta32x->mclk / rate; in sta32x_hw_params() 669 dev_dbg(codec->dev, "rate: %u, ratio: %u\n", rate, ratio); in sta32x_hw_params() 684 if (mcs_ratio_table[ir][i] == ratio) { in sta32x_hw_params() 691 dev_err(codec->dev, "Unresolvable ratio: %u\n", ratio); in sta32x_hw_params()
|
D | wm8770.c | 419 int ratio; in wm8770_hw_params() local 455 ratio = wm8770->sysclk / params_rate(params); in wm8770_hw_params() 456 if (ratio == mclk_ratios[i]) in wm8770_hw_params()
|
D | sta350.c | 689 unsigned int rate, ratio; in sta350_hw_params() local 699 ratio = sta350->mclk / rate; in sta350_hw_params() 700 dev_dbg(codec->dev, "rate: %u, ratio: %u\n", rate, ratio); in sta350_hw_params() 715 if (mcs_ratio_table[ir][i] == ratio) { in sta350_hw_params() 722 dev_err(codec->dev, "Unresolvable ratio: %u\n", ratio); in sta350_hw_params()
|
D | nau8825.c | 39 int ratio; member 900 fll_param->ratio = fll_ratio[i].val; in nau8825_calc_fll_param() 919 fvco = div_u64(fvco << 16, fref * fll_param->ratio); in nau8825_calc_fll_param() 931 NAU8825_FLL_RATIO_MASK, fll_param->ratio); in nau8825_fll_apply() 963 fll_param.mclk_src, fll_param.ratio, fll_param.fll_frac, in nau8825_set_pll()
|
D | wm8993.c | 154 int ratio; member 376 int ratio; member 432 target /= fll_fratios[i].ratio; in fll_factors() 1243 best_val = abs((wm8993->sysclk_rate / clk_sys_rates[0].ratio) in wm8993_hw_params() 1247 clk_sys_rates[i].ratio) - wm8993->fs); in wm8993_hw_params() 1254 clk_sys_rates[best].ratio); in wm8993_hw_params()
|
D | wm8961.c | 473 int ratio; member 549 if (wm8961_clk_sys_ratio[i].ratio >= target) in wm8961_hw_params() 557 wm8961_clk_sys_ratio[i].ratio, wm8961->sysclk, fs, in wm8961_hw_params()
|
D | wm8904.c | 1220 int ratio; member 1327 best_val = abs((wm8904->sysclk_rate / clk_sys_rates[0].ratio) in wm8904_hw_params() 1331 clk_sys_rates[i].ratio) - wm8904->fs); in wm8904_hw_params() 1338 clk_sys_rates[best].ratio); in wm8904_hw_params() 1586 int ratio; member 1641 target /= fll_fratios[i].ratio; in fll_factors()
|
D | wm8983.c | 109 int ratio; member 713 == fs_ratios[i].ratio) in wm8983_hw_params() 723 dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio); in wm8983_hw_params()
|
D | wm8985.c | 190 int ratio; member 745 == fs_ratios[i].ratio) in wm8985_hw_params() 755 dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio); in wm8985_hw_params()
|
D | wm8903.c | 1391 int ratio; member 1546 best_val = ((clk_sys * 10) / bclk_divs[0].ratio) - bclk; in wm8903_hw_params() 1549 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params() 1561 bclk_divs[bclk_div].ratio / 10, bclk, in wm8903_hw_params() 1562 (clk_sys * 10) / bclk_divs[bclk_div].ratio); in wm8903_hw_params()
|
D | rt286.c | 882 static int rt286_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) in rt286_set_bclk_ratio() argument 886 dev_dbg(codec->dev, "%s ratio=%d\n", __func__, ratio); in rt286_set_bclk_ratio() 887 if (50 == ratio) in rt286_set_bclk_ratio()
|
D | rt298.c | 905 static int rt298_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) in rt298_set_bclk_ratio() argument 909 dev_dbg(codec->dev, "%s ratio=%d\n", __func__, ratio); in rt298_set_bclk_ratio() 910 if (50 == ratio) in rt298_set_bclk_ratio()
|
D | cs42l73.c | 843 u8 ratio; member 900 cs42l73_mclkx_coeffs[mclkx_coeff].ratio; in cs42l73_set_mclk()
|
D | cs42l52.c | 643 u8 ratio; member 823 (clk_map_table[index].ratio << CLK_RATIO_SHIFT) | in cs42l52_pcm_hw_params()
|
D | wm2200.c | 1851 int ratio; member 1906 fratio = fll_fratios[i].ratio; in fll_factors()
|
D | wm5100.c | 1671 int ratio; member 1726 fratio = fll_fratios[i].ratio; in fll_factors()
|
D | wm8996.c | 1908 int ratio; member 1973 fratio = fll_fratios[i].ratio; in fll_factors()
|
D | wm8962.c | 2727 int ratio; member 2782 fratio = fll_fratios[i].ratio; in fll_factors()
|
/linux-4.4.14/arch/arm/mach-davinci/ |
D | clock.c | 332 unsigned ratio = 0; in davinci_set_sysclk_rate() local 365 ratio = DIV_ROUND_CLOSEST(input, rate); in davinci_set_sysclk_rate() 366 if (input / ratio > clk->maxrate) in davinci_set_sysclk_rate() 367 ratio = 0; in davinci_set_sysclk_rate() 370 if (ratio == 0) in davinci_set_sysclk_rate() 371 ratio = DIV_ROUND_UP(input, rate); in davinci_set_sysclk_rate() 373 ratio--; in davinci_set_sysclk_rate() 376 if (ratio > pll->div_ratio_mask) in davinci_set_sysclk_rate() 385 v |= ratio | PLLDIV_EN; in davinci_set_sysclk_rate()
|
/linux-4.4.14/drivers/ata/ |
D | pata_pdc2027x.c | 524 long ratio = pout_required / pll_clock_khz; in pdc_adjust_pll() local 548 if (ratio < 8600L) { /* 8.6x */ in pdc_adjust_pll() 551 } else if (ratio < 12900L) { /* 12.9x */ in pdc_adjust_pll() 554 } else if (ratio < 16100L) { /* 16.1x */ in pdc_adjust_pll() 557 } else if (ratio < 64000L) { /* 64x */ in pdc_adjust_pll() 561 printk(KERN_ERR DRV_NAME ": Invalid ratio %ld, give up!\n", ratio); in pdc_adjust_pll() 565 F = (ratio * (R+2)) / 1000 - 2; in pdc_adjust_pll() 573 PDPRINTK("F[%d] R[%d] ratio*1000[%ld]\n", F, R, ratio); in pdc_adjust_pll()
|
/linux-4.4.14/drivers/video/fbdev/ |
D | asiliantfb.c | 118 unsigned ratio; in asiliant_calc_dclk2() local 123 ratio = 1000000 / pixclock; in asiliant_calc_dclk2() 125 Ftarget = 1000000 * ratio + (1000000 * remainder) / pixclock; in asiliant_calc_dclk2() 132 ratio = Ftarget / Fref; in asiliant_calc_dclk2() 138 unsigned m = n * ratio + (n * remainder) / Fref; in asiliant_calc_dclk2() 228 unsigned long Ftarget, ratio, remainder; in asiliantfb_check_var() local 230 ratio = 1000000 / var->pixclock; in asiliantfb_check_var() 232 Ftarget = 1000000 * ratio + (1000000 * remainder) / var->pixclock; in asiliantfb_check_var()
|
/linux-4.4.14/drivers/pwm/ |
D | pwm-fsl-ftm.c | 117 unsigned long long ratio; in fsl_pwm_calculate_default_ps() local 132 ratio = 2 * cnt_rate - 1; in fsl_pwm_calculate_default_ps() 133 do_div(ratio, sys_rate); in fsl_pwm_calculate_default_ps() 134 fpc->clk_ps = ratio; in fsl_pwm_calculate_default_ps() 137 ratio = 4 * cnt_rate - 1; in fsl_pwm_calculate_default_ps() 138 do_div(ratio, sys_rate); in fsl_pwm_calculate_default_ps() 139 fpc->clk_ps = ratio; in fsl_pwm_calculate_default_ps()
|
/linux-4.4.14/sound/soc/samsung/ |
D | smdk_spdif.c | 112 int ret, ratio; in smdk_hw_params() local 130 ratio = 512; in smdk_hw_params() 131 rclk_rate = params_rate(params) * ratio; in smdk_hw_params()
|
D | spdif.c | 185 int i, ratio; in spdif_hw_params() local 219 ratio = spdif->clk_rate / params_rate(params); in spdif_hw_params() 221 if (ratio == spdif_sysclk_ratios[i]) in spdif_hw_params() 230 switch (ratio) { in spdif_hw_params()
|
/linux-4.4.14/drivers/staging/fbtft/ |
D | fb_uc1611.c | 44 static unsigned ratio = 2; variable 45 module_param(ratio, uint, 0); 46 MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)"); 87 write_reg(par, 0xE8 | (ratio & 0x03)); in init_display()
|
/linux-4.4.14/drivers/staging/iio/light/ |
D | tsl2583.c | 109 unsigned int ratio; member 199 u32 ratio; in taos_get_lux() local 272 ratio = (ch1 << 15) / ch0; in taos_get_lux() 275 p->ratio != 0 && p->ratio < ratio; p++) in taos_get_lux() 278 if (p->ratio == 0) { in taos_get_lux() 694 taos_device_lux[i].ratio, in taos_luxtable_show() 697 if (taos_device_lux[i].ratio == 0) { in taos_luxtable_show()
|
D | tsl2x7x.h | 33 unsigned int ratio; member
|
D | tsl2x7x_core.c | 338 u32 ratio; in tsl2x7x_get_lux() local 412 ratio = (ch1 << 15) / ch0; in tsl2x7x_get_lux() 415 while (p->ratio != 0 && p->ratio < ratio) in tsl2x7x_get_lux() 418 if (p->ratio == 0) { in tsl2x7x_get_lux() 554 if (chip->pdata && chip->pdata->platform_lux_table[0].ratio != 0) in tsl2x7x_defaults() 1145 chip->tsl2x7x_device_lux[i].ratio, in tsl2x7x_luxtable_show() 1148 if (chip->tsl2x7x_device_lux[i].ratio == 0) { in tsl2x7x_luxtable_show()
|
/linux-4.4.14/drivers/cpufreq/ |
D | pmac32-cpufreq.c | 479 const u32 *freqs, *ratio; in pmac_cpufreq_init_MacRISC3() local 487 ratio = of_get_property(cpunode, "processor-to-bus-ratio*2", in pmac_cpufreq_init_MacRISC3() 489 if (ratio == NULL) { in pmac_cpufreq_init_MacRISC3() 507 low_freq = (low_freq * (*ratio)) / 2000; in pmac_cpufreq_init_MacRISC3() 508 hi_freq = (hi_freq * (*ratio)) / 2000; in pmac_cpufreq_init_MacRISC3()
|
D | speedstep-lib.c | 37 unsigned int ratio; /* Frequency Multiplier (x10) */ in pentium3_get_frequency() member 101 (msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100)); in pentium3_get_frequency() 103 return msr_decode_mult[j].ratio * msr_decode_fsb[i].value * 100; in pentium3_get_frequency()
|
D | longhaul.c | 430 unsigned int ratio; in longhaul_get_ranges() local 486 ratio = mults[j]; in longhaul_get_ranges() 487 if (ratio == -1) in longhaul_get_ranges() 489 if (ratio > maxmult || ratio < minmult) in longhaul_get_ranges() 491 longhaul_table[k].frequency = calc_speed(ratio); in longhaul_get_ranges()
|
D | intel_pstate.c | 89 int32_t ratio; member 567 cpudata->vid.ratio); in atom_set_pstate() 618 cpudata->vid.ratio = div_fp( in atom_get_vid()
|
/linux-4.4.14/Documentation/devicetree/bindings/clock/ |
D | renesas,r8a7740-cpg-clocks.txt | 6 and several fixed ratio and variable ratio dividers.
|
D | renesas,r8a73a4-cpg-clocks.txt | 4 and several fixed ratio dividers.
|
D | renesas,sh73a0-cpg-clocks.txt | 6 and several fixed ratio dividers.
|
D | renesas,r8a7778-cpg-clocks.txt | 4 several fixed ratio dividers.
|
D | renesas,r8a7779-cpg-clocks.txt | 4 several fixed ratio dividers.
|
D | renesas,rz-cpg-clocks.txt | 4 CPU and GPU clocks, and several fixed ratio dividers.
|
D | renesas,rcar-gen2-cpg-clocks.txt | 4 and several fixed ratio dividers.
|
/linux-4.4.14/tools/thermal/tmon/ |
D | tmon.h | 105 void (*set_ratio)(unsigned long ratio); 106 unsigned long (*get_ratio)(unsigned long ratio);
|
/linux-4.4.14/arch/s390/kernel/ |
D | perf_cpum_sf.c | 458 static unsigned long compute_sfb_extent(unsigned long ratio, unsigned long base) in compute_sfb_extent() argument 465 if (ratio <= 5) in compute_sfb_extent() 467 if (ratio <= 25) in compute_sfb_extent() 469 if (ratio <= 50) in compute_sfb_extent() 471 if (ratio <= 75) in compute_sfb_extent() 473 if (ratio <= 100) in compute_sfb_extent() 475 if (ratio <= 250) in compute_sfb_extent() 484 unsigned long ratio, num; in sfb_account_overflows() local 496 ratio = DIV_ROUND_UP(100 * OVERFLOW_REG(hwc) * cpuhw->sfb.num_sdb, in sfb_account_overflows() 500 num = compute_sfb_extent(ratio, cpuhw->sfb.num_sdb); in sfb_account_overflows() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | gf119.c | 257 u64 ratio, value; in gf119_disp_intr_unk2_2_tu() local 283 ratio = datarate; in gf119_disp_intr_unk2_2_tu() 284 ratio *= symbol; in gf119_disp_intr_unk2_2_tu() 285 do_div(ratio, link_nr * link_bw); in gf119_disp_intr_unk2_2_tu() 287 value = (symbol - ratio) * TU; in gf119_disp_intr_unk2_2_tu() 288 value *= ratio; in gf119_disp_intr_unk2_2_tu()
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
D | opera1.c | 189 u32 ratio) in opera1_stv0299_set_symbol_rate() argument 193 stv0299_writereg(fe, REG_1F_SYMBOLRATE_BYTE0, (ratio >> 16) & 0xff); in opera1_stv0299_set_symbol_rate() 194 stv0299_writereg(fe, REG_20_SYMBOLRATE_BYTE1, (ratio >> 8) & 0xff); in opera1_stv0299_set_symbol_rate() 195 stv0299_writereg(fe, REG_21_SYMBOLRATE_BYTE2, (ratio) & 0xf0); in opera1_stv0299_set_symbol_rate()
|
D | dib0700_devices.c | 1628 u32 freq_adc, ratio, rest, max = 0; in dib8090_compute_pll_parameters() local 1633 ratio = ((fe->dtv_property_cache.frequency / 1000) * (1 << 8) / 1000) / freq_adc; in dib8090_compute_pll_parameters() 1634 rest = ((fe->dtv_property_cache.frequency / 1000) * (1 << 8) / 1000) - ratio * freq_adc; in dib8090_compute_pll_parameters()
|
/linux-4.4.14/include/sound/ |
D | soc-dai.h | 123 int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio); 153 int (*set_bclk_ratio)(struct snd_soc_dai *dai, unsigned int ratio);
|
D | soundfont.h | 126 int snd_sf_linear_to_log(unsigned int amount, int offset, int ratio);
|
/linux-4.4.14/drivers/devfreq/ |
D | tegra-devfreq.c | 331 struct tegra_actmon_emc_ratio *ratio = actmon_emc_ratios; in actmon_cpu_to_emc_rate() local 333 for (i = 0; i < ARRAY_SIZE(actmon_emc_ratios); i++, ratio++) { in actmon_cpu_to_emc_rate() 334 if (cpu_freq >= ratio->cpu_freq) { in actmon_cpu_to_emc_rate() 335 if (ratio->emc_freq >= tegra->max_freq) in actmon_cpu_to_emc_rate() 338 return ratio->emc_freq; in actmon_cpu_to_emc_rate()
|
/linux-4.4.14/drivers/media/v4l2-core/ |
D | v4l2-dv-timings.c | 711 u8 ratio; in v4l2_calc_aspect_ratio() local 724 ratio = hor_landscape | vert_portrait; in v4l2_calc_aspect_ratio() 726 if (ratio == 79) { in v4l2_calc_aspect_ratio() 729 } else if (ratio == 34) { in v4l2_calc_aspect_ratio() 732 } else if (ratio == 68) { in v4l2_calc_aspect_ratio()
|
/linux-4.4.14/drivers/media/common/b2c2/ |
D | flexcop-fe-tuner.c | 199 u32 srate, u32 ratio) in samsung_tbmu24112_set_symbol_rate() argument 220 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in samsung_tbmu24112_set_symbol_rate() 221 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in samsung_tbmu24112_set_symbol_rate() 222 stv0299_writereg(fe, 0x21, ratio & 0xf0); in samsung_tbmu24112_set_symbol_rate()
|
/linux-4.4.14/sound/soc/sh/rcar/ |
D | adg.c | 55 int i, ratio; in rsnd_adg_calculate_rbgx() local 61 ratio = 2 << (i * 2); in rsnd_adg_calculate_rbgx() 62 if (0 == (div % ratio)) in rsnd_adg_calculate_rbgx() 63 return (u32)((i << 8) | ((div / ratio) - 1)); in rsnd_adg_calculate_rbgx()
|
D | src.c | 749 uint ratio; in rsnd_src_set_convert_rate_gen2() local 754 ratio = 0; in rsnd_src_set_convert_rate_gen2() 756 ratio = 100 * convert_rate / runtime->rate; in rsnd_src_set_convert_rate_gen2() 758 ratio = 100 * runtime->rate / convert_rate; in rsnd_src_set_convert_rate_gen2() 760 if (ratio > 600) { in rsnd_src_set_convert_rate_gen2()
|
/linux-4.4.14/sound/soc/xtensa/ |
D | xtfpga-i2s.c | 291 unsigned freq, ratio, level; in xtfpga_i2s_hw_params() local 309 ratio = (freq - (srate * sample_size * 8)) / in xtfpga_i2s_hw_params() 314 ratio << XTFPGA_I2S_CONFIG_RATIO_BASE); in xtfpga_i2s_hw_params() 335 __func__, freq, ratio, level); in xtfpga_i2s_hw_params()
|
/linux-4.4.14/mm/ |
D | backing-dev.c | 178 unsigned int ratio; in min_ratio_store() local 181 ret = kstrtouint(buf, 10, &ratio); in min_ratio_store() 185 ret = bdi_set_min_ratio(bdi, ratio); in min_ratio_store() 197 unsigned int ratio; in max_ratio_store() local 200 ret = kstrtouint(buf, 10, &ratio); in max_ratio_store() 204 ret = bdi_set_max_ratio(bdi, ratio); in max_ratio_store()
|
D | page-writeback.c | 362 unsigned long ratio = vm_dirty_ratio; in domain_dirty_limits() local 378 ratio = min(DIV_ROUND_UP(bytes, PAGE_SIZE) * 100 / in domain_dirty_limits() 389 thresh = (ratio * available_memory) / 100; in domain_dirty_limits()
|
D | page_alloc.c | 6128 unsigned int gb, ratio; in calculate_zone_inactive_ratio() local 6133 ratio = int_sqrt(10 * gb); in calculate_zone_inactive_ratio() 6135 ratio = 1; in calculate_zone_inactive_ratio() 6137 zone->inactive_ratio = ratio; in calculate_zone_inactive_ratio()
|
D | slub.c | 5001 unsigned long ratio; in remote_node_defrag_ratio_store() local 5004 err = kstrtoul(buf, 10, &ratio); in remote_node_defrag_ratio_store() 5008 if (ratio <= 100) in remote_node_defrag_ratio_store() 5009 s->remote_node_defrag_ratio = ratio * 10; in remote_node_defrag_ratio_store()
|
/linux-4.4.14/drivers/media/pci/ttpci/ |
D | budget-av.c | 475 static int philips_su1278_ty_ci_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in philips_su1278_ty_ci_set_symbol_rate() argument 497 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in philips_su1278_ty_ci_set_symbol_rate() 498 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in philips_su1278_ty_ci_set_symbol_rate() 499 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in philips_su1278_ty_ci_set_symbol_rate() 848 u32 srate, u32 ratio) in philips_sd1878_ci_set_symbol_rate() argument 874 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in philips_sd1878_ci_set_symbol_rate() 875 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in philips_sd1878_ci_set_symbol_rate() 876 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in philips_sd1878_ci_set_symbol_rate()
|
D | budget-ci.c | 631 static int philips_su1278_tt_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in philips_su1278_tt_set_symbol_rate() argument 656 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in philips_su1278_tt_set_symbol_rate() 657 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in philips_su1278_tt_set_symbol_rate() 658 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in philips_su1278_tt_set_symbol_rate()
|
/linux-4.4.14/drivers/isdn/i4l/ |
D | isdn_bsdcomp.c | 129 unsigned int ratio; /* recent compression ratio */ member 182 db->ratio = 0; in bsd_clear() 230 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) in bsd_check() 235 db->ratio = new_ratio; in bsd_check()
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | configfs-usb-gadget-uvc | 168 ratio, read-only 170 ratio, read-only 212 ratio, read-only 214 ratio, read-only
|
D | sysfs-block-zram | 111 size of data stored in this disk. So, compression ratio can be
|
D | sysfs-bus-iio | 63 Hardware dependent ADC oversampling. Controls the sampling ratio 1448 The emissivity ratio of the surface in the field of view of the
|
/linux-4.4.14/include/uapi/linux/ |
D | ppp_defs.h | 128 double ratio; /* not computed in kernel. */ member
|
/linux-4.4.14/Documentation/devicetree/bindings/iio/adc/ |
D | qcom,spmi-vadc.txt | 52 Quicker measurements can be made by reducing decimation ratio. 61 pre-determined ratio and use it for post scaling. Select one from
|
/linux-4.4.14/drivers/net/ppp/ |
D | bsd_comp.c | 150 unsigned int ratio; /* recent compression ratio */ member 229 db->ratio = 0; in bsd_clear() 278 if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) in bsd_check() 283 db->ratio = new_ratio; in bsd_check()
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
D | Kconfig | 107 int "Minimum FCK/PCK ratio (for scaling)" 111 This can be used to adjust the minimum FCK/PCK ratio.
|
/linux-4.4.14/Documentation/ |
D | xz.txt | 8 ratio and relatively fast decompression. The primary compression 10 compression ratio even further. E.g. Branch/Call/Jump (BCJ) filters 11 improve compression ratio of executable data.
|
D | pi-futex.txt | 35 ratio of lockless vs. locky code for shared data structures is somewhere
|
D | lzo.txt | 40 rate of at most 255 per extra byte (thus the compression ratio cannot exceed
|
/linux-4.4.14/drivers/iio/light/ |
D | ltr501.c | 307 unsigned long ratio, lux; in ltr501_calculate_lux() local 313 ratio = DIV_ROUND_UP(ir_data * 100, ir_data + vis_data); in ltr501_calculate_lux() 315 if (ratio < 45) in ltr501_calculate_lux() 317 else if (ratio >= 45 && ratio < 64) in ltr501_calculate_lux() 319 else if (ratio >= 64 && ratio < 85) in ltr501_calculate_lux()
|
D | tsl2563.c | 432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1; in tsl2563_adc_to_lux() local 434 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in tsl2563_adc_to_lux() 436 while (lp->ch_ratio < ratio) in tsl2563_adc_to_lux()
|
/linux-4.4.14/drivers/media/platform/s3c-camif/ |
D | camif-core.c | 133 static int camif_get_scaler_factor(u32 src, u32 tar, u32 *ratio, u32 *shift) in camif_get_scaler_factor() argument 143 *shift = sh, *ratio = tmp; in camif_get_scaler_factor() 147 *shift = 0, *ratio = 1; in camif_get_scaler_factor()
|
/linux-4.4.14/drivers/media/usb/go7007/ |
D | go7007-fw.c | 1288 int ratio = arate / go->sensor_framerate; in avsync_to_package() local 1289 int adjratio = ratio * 215 / 100; in avsync_to_package() 1302 0xbff6, f1 < f2 ? ratio : ratio + 1, in avsync_to_package() 1303 0xbff7, f1 > f2 ? ratio : ratio + 1, in avsync_to_package()
|
/linux-4.4.14/tools/perf/ |
D | builtin-diff.c | 954 double ratio; in hpp__entry_pair() local 975 ratio = pair->diff.period_ratio; in hpp__entry_pair() 977 ratio = compute_ratio(he, pair); in hpp__entry_pair() 979 if (ratio > 0.0) in hpp__entry_pair() 980 scnprintf(buf, size, "%14.6F", ratio); in hpp__entry_pair()
|
D | builtin-trace.c | 2898 double ratio; in trace__fprintf_one_thread() local 2903 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; in trace__fprintf_one_thread() 2907 printed += fprintf(fp, "%.1f%%", ratio); in trace__fprintf_one_thread()
|
D | design.txt | 169 Using these additional values one can establish the overcommit ratio for a
|
/linux-4.4.14/Documentation/fb/ |
D | modedb.txt | 78 Also, GTF does not take into account the aspect ratio of the display. 99 a = aspect ratio (3 - 4:3; 4 - 5:4; 9 - 15:9, 16:9; A - 16:10) 106 - aspect ratio can only be one of the above values
|
D | uvesafb.txt | 41 ratio, which is what most BIOS-es are limited to.
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | intel_overlay.c | 900 u32 ratio; in update_pfit_vscale_ratio() local 907 ratio = I915_READ(PFIT_PGM_RATIOS) >> PFIT_VERT_SCALE_SHIFT_965; in update_pfit_vscale_ratio() 910 ratio = I915_READ(PFIT_AUTO_RATIOS); in update_pfit_vscale_ratio() 912 ratio = I915_READ(PFIT_PGM_RATIOS); in update_pfit_vscale_ratio() 913 ratio >>= PFIT_VERT_SCALE_SHIFT; in update_pfit_vscale_ratio() 916 overlay->pfit_vscale_ratio = ratio; in update_pfit_vscale_ratio()
|
D | intel_panel.c | 222 u32 ratio = source * FACTOR / target; in panel_fitter_scaling() local 223 return (FACTOR * ratio + FACTOR/2) / FACTOR; in panel_fitter_scaling()
|
D | intel_display.c | 5472 uint32_t ratio; in broxton_set_cdclk() local 5480 ratio = BXT_DE_PLL_RATIO(60); in broxton_set_cdclk() 5484 ratio = BXT_DE_PLL_RATIO(60); in broxton_set_cdclk() 5488 ratio = BXT_DE_PLL_RATIO(60); in broxton_set_cdclk() 5492 ratio = BXT_DE_PLL_RATIO(60); in broxton_set_cdclk() 5496 ratio = BXT_DE_PLL_RATIO(65); in broxton_set_cdclk() 5503 ratio = 0; in broxton_set_cdclk() 5548 val |= ratio; in broxton_set_cdclk()
|
/linux-4.4.14/sound/pci/au88x0/ |
D | au88x0_core.c | 487 vortex_src_persist_convratio(vortex_t * vortex, unsigned char src, int ratio) in vortex_src_persist_convratio() argument 492 hwwrite(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2), ratio); in vortex_src_persist_convratio() 499 while (temp != ratio); in vortex_src_persist_convratio() 517 vortex_src_change_convratio(vortex_t * vortex, unsigned char src, int ratio) 521 if ((ratio & 0x10000) && (ratio != 0x10000)) { 522 if (ratio & 0x3fff) 523 a = (0x11 - ((ratio >> 0xe) & 0x3)) - 1; 525 a = (0x11 - ((ratio >> 0xe) & 0x3)) - 2; 533 vortex_src_persist_convratio(vortex, src, ratio);
|
/linux-4.4.14/Documentation/vm/ |
D | ksm.txt | 91 A high ratio of pages_sharing to pages_shared indicates good sharing, but 92 a high ratio of pages_unshared to pages_sharing indicates wasted effort.
|
D | zswap.txt | 64 means the compression ratio will always be 2:1 or worse (because of half-full
|
D | balance | 30 right ratio of dma and regular memory, it is quite possible that balancing
|
/linux-4.4.14/tools/perf/Documentation/ |
D | perf-diff.txt | 89 Differential computation selection - delta,ratio,wdiff (default is delta). 184 ratio
|
/linux-4.4.14/drivers/gpu/drm/exynos/ |
D | exynos_drm_gsc.c | 881 static int gsc_get_ratio_shift(u32 src, u32 dst, u32 *ratio) in gsc_get_ratio_shift() argument 889 *ratio = 4; in gsc_get_ratio_shift() 891 *ratio = 2; in gsc_get_ratio_shift() 893 *ratio = 1; in gsc_get_ratio_shift()
|
/linux-4.4.14/sound/soc/bcm/ |
D | bcm2835-i2s.c | 300 unsigned int ratio) in bcm2835_i2s_set_dai_bclk_ratio() argument 303 dev->bclk_ratio = ratio; in bcm2835_i2s_set_dai_bclk_ratio()
|
/linux-4.4.14/Documentation/video4linux/ |
D | vivid.txt | 313 The pixel aspect ratio will depend on the TV standard. The video aspect ratio 354 The pixel aspect ratio will depend on the HDMI timing: for 720x480 is it 356 standard, and for all others a 1:1 pixel aspect ratio is returned. 358 The video aspect ratio can be selected through the 'DV Timings Aspect Ratio' 360 same ratio as the chosen format), '4x3' or '16x9', either of which can 406 The pixel aspect ratio will depend on the HDMI timing: for 720x480 is it 408 standard, and for all others a 1:1 pixel aspect ratio is returned. 598 displayed with the correct pixel and image aspect ratio corrections, 622 Standard Aspect Ratio: selects if the image aspect ratio as used for the TV or 626 DV Timings Aspect Ratio: selects if the image aspect ratio as used for the HDMI [all …]
|
/linux-4.4.14/drivers/media/usb/ttusb-budget/ |
D | dvb-ttusb-budget.c | 1250 static int alps_stv0299_set_symbol_rate(struct dvb_frontend *fe, u32 srate, u32 ratio) in alps_stv0299_set_symbol_rate() argument 1277 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in alps_stv0299_set_symbol_rate() 1278 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in alps_stv0299_set_symbol_rate() 1279 stv0299_writereg(fe, 0x21, (ratio) & 0xf0); in alps_stv0299_set_symbol_rate()
|
/linux-4.4.14/drivers/media/platform/exynos4-is/ |
D | fimc-core.c | 231 static int fimc_get_scaler_factor(u32 src, u32 tar, u32 *ratio, u32 *shift) in fimc_get_scaler_factor() argument 241 *shift = sh, *ratio = tmp; in fimc_get_scaler_factor() 245 *shift = 0, *ratio = 1; in fimc_get_scaler_factor()
|
/linux-4.4.14/net/dccp/ |
D | feat.c | 75 static int dccp_hdlr_ack_ratio(struct sock *sk, u64 ratio, bool rx) in dccp_hdlr_ack_ratio() argument 78 dccp_sk(sk)->dccps_r_ack_ratio = ratio; in dccp_hdlr_ack_ratio() 80 dccp_sk(sk)->dccps_l_ack_ratio = ratio; in dccp_hdlr_ack_ratio()
|
/linux-4.4.14/drivers/media/platform/exynos-gsc/ |
D | gsc-core.c | 240 u32 *ratio) in gsc_cal_prescaler_ratio() argument 243 *ratio = 1; in gsc_cal_prescaler_ratio() 252 *ratio = (dst > (src / 8)) ? 2 : 4; in gsc_cal_prescaler_ratio()
|
D | gsc-core.h | 401 u32 *ratio);
|
/linux-4.4.14/sound/synth/emux/ |
D | soundfont.c | 798 snd_sf_linear_to_log(unsigned int amount, int offset, int ratio) in snd_sf_linear_to_log() argument 812 v = (v * ratio) >> 16; in snd_sf_linear_to_log() 813 v += (24 - bit) * ratio; in snd_sf_linear_to_log()
|
/linux-4.4.14/drivers/media/pci/cx88/ |
D | cx88-dvb.c | 958 u32 srate, u32 ratio) in samsung_smt_7020_stv0299_set_symbol_rate() argument 985 stv0299_writereg(fe, 0x1f, (ratio >> 16) & 0xff); in samsung_smt_7020_stv0299_set_symbol_rate() 986 stv0299_writereg(fe, 0x20, (ratio >> 8) & 0xff); in samsung_smt_7020_stv0299_set_symbol_rate() 987 stv0299_writereg(fe, 0x21, ratio & 0xf0); in samsung_smt_7020_stv0299_set_symbol_rate()
|
/linux-4.4.14/Documentation/laptops/ |
D | laptop-mode.txt | 95 changes the dirty background ratio, so that background writeback of dirty pages 258 # Dirty synchronous ratio. At this percentage of dirty pages the process 264 # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been 376 # Dirty synchronous ratio. At this percentage of dirty pages the process which 386 # Allowed dirty background ratio, in percent. Once DIRTY_RATIO has been
|
/linux-4.4.14/arch/ia64/include/asm/uv/ |
D | uv_mmrs.h | 727 unsigned long ratio : 3; /* RW */ member
|
/linux-4.4.14/drivers/video/fbdev/core/ |
D | fbmon.c | 512 int xres, yres = 0, refresh, ratio; in get_std_timing() local 518 ratio = (block[1] & 0xc0) >> 6; in get_std_timing() 519 switch (ratio) { in get_std_timing()
|
/linux-4.4.14/Documentation/ABI/obsolete/ |
D | sysfs-block-zram | 79 size of data stored in this disk. So, compression ratio can be
|
/linux-4.4.14/drivers/gpu/drm/tegra/ |
D | sor.c | 493 u64 ratio; member 513 active_sym = params->ratio * tu_size; in tegra_sor_compute_params() 594 params.ratio = div64_u64(input * f, output); in tegra_sor_calc_config() 625 watermark = params.ratio * config->tu_size * (f - params.ratio); in tegra_sor_calc_config()
|
/linux-4.4.14/arch/m32r/platforms/m32700ut/ |
D | dot.gdbinit_400MHz_32MB | 22 # and switch off PLL, before resetting the clock gear ratio.
|
D | dot.gdbinit_200MHz_16MB | 22 # and switch off PLL, before resetting the clock gear ratio.
|
D | dot.gdbinit_300MHz_32MB | 22 # and switch off PLL, before resetting the clock gear ratio.
|
/linux-4.4.14/arch/powerpc/boot/dts/ |
D | virtex440-ml510.dts | 238 xlnx,bus2core-clk-ratio = <0x1>; 324 xlnx,sck-ratio = <0x80>;
|
D | virtex440-ml507.dts | 269 xlnx,bus2core-clk-ratio = <1>;
|
/linux-4.4.14/Documentation/input/ |
D | ntrig.txt | 58 at least one model (Dell Studio 17) has a 17" sensor. The ratio of physical
|
D | multi-touch-protocol.txt | 178 the ratio ABS_MT_TOUCH_MAJOR / ABS_MT_WIDTH_MAJOR, which is always smaller 249 the contact. The ratio ABS_MT_TOUCH_MAJOR / ABS_MT_WIDTH_MAJOR approximates
|
D | alps.txt | 227 4) There is a 3 to 1 ratio of position packets to bitmap packets. Therefore
|
/linux-4.4.14/Documentation/video4linux/cx2341x/ |
D | fw-encoder-api.txt | 136 Sets the encoding aspect ratio. Changes in the aspect ratio take effect
|
/linux-4.4.14/kernel/sched/ |
D | fair.c | 1638 int ratio; in update_task_scan_period() local 1668 ratio = (local * NUMA_PERIOD_SLOTS) / (local + remote); in update_task_scan_period() 1669 if (ratio >= NUMA_PERIOD_THRESHOLD) { in update_task_scan_period() 1670 int slot = ratio - NUMA_PERIOD_THRESHOLD; in update_task_scan_period() 1675 diff = -(NUMA_PERIOD_THRESHOLD - ratio) * period_slot; in update_task_scan_period() 1685 ratio = DIV_ROUND_UP(private * NUMA_PERIOD_SLOTS, (private + shared + 1)); in update_task_scan_period() 1686 diff = (diff * ratio) / NUMA_PERIOD_SLOTS; in update_task_scan_period()
|
/linux-4.4.14/arch/x86/kvm/ |
D | x86.c | 1258 u64 ratio; in set_tsc_khz() local 1279 ratio = mul_u64_u32_div(1ULL << kvm_tsc_scaling_ratio_frac_bits, in set_tsc_khz() 1282 if (ratio == 0 || ratio >= kvm_max_tsc_scaling_ratio) { in set_tsc_khz() 1288 vcpu->arch.tsc_scaling_ratio = ratio; in set_tsc_khz() 1378 static inline u64 __scale_tsc(u64 ratio, u64 tsc) in __scale_tsc() argument 1380 return mul_u64_u64_shr(tsc, ratio, kvm_tsc_scaling_ratio_frac_bits); in __scale_tsc() 1386 u64 ratio = vcpu->arch.tsc_scaling_ratio; in kvm_scale_tsc() local 1388 if (ratio != kvm_default_tsc_scaling_ratio) in kvm_scale_tsc() 1389 _tsc = __scale_tsc(ratio, tsc); in kvm_scale_tsc()
|
/linux-4.4.14/Documentation/scheduler/ |
D | sched-deadline.txt | 150 The utilization of a real-time task is defined as the ratio between its 347 the sum of the ratio between runtime and period for all tasks is smaller 348 than M. Notice that the ratio runtime/period is equivalent to the utilization
|
/linux-4.4.14/Documentation/blockdev/ |
D | zram.txt | 111 since we expect a 2:1 compression ratio. Note that zram uses about 0.1% of the
|
/linux-4.4.14/drivers/net/wireless/ath/ath5k/ |
D | phy.c | 2425 s16 ratio, result; in ath5k_get_interpolated_value() local 2438 ratio = ((100 * y_right - 100 * y_left) / (x_right - x_left)); in ath5k_get_interpolated_value() 2441 result = y_left + (ratio * (target - x_left) / 100); in ath5k_get_interpolated_value()
|
/linux-4.4.14/fs/reiserfs/ |
D | journal.c | 2678 int ratio = 1; in check_advise_trans_params() local 2680 ratio = REISERFS_STANDARD_BLKSIZE / sb->s_blocksize; in check_advise_trans_params() 2682 if (journal->j_trans_max > JOURNAL_TRANS_MAX_DEFAULT / ratio || in check_advise_trans_params() 2683 journal->j_trans_max < JOURNAL_TRANS_MIN_DEFAULT / ratio || in check_advise_trans_params()
|
/linux-4.4.14/arch/microblaze/boot/dts/ |
D | system.dts | 230 xlnx,bus2core-clk-ratio = <0x1>;
|
/linux-4.4.14/Documentation/filesystems/ |
D | ext2.txt | 306 created, and depend upon the block size chosen. The ratio of inodes to 309 No tools currently exist which can change the ratio of inodes to blocks.
|
D | f2fs.txt | 147 increasing the cache hit ratio. Set by default. 275 -o [int] : Set overprovision ratio in percent over volume size.
|
D | proc.txt | 910 CommitLimit: Based on the overcommit ratio ('vm.overcommit_ratio'),
|
/linux-4.4.14/init/ |
D | Kconfig | 145 between compression ratio and decompression speed. 151 Its compression ratio and speed is intermediate. 161 This compression algorithm's ratio is best. Decompression speed 170 BCJ filters which can improve compression ratio of executable 184 Its compression ratio is the poorest among the choices. The kernel 196 Its compression ratio is worse than LZO. The size of the kernel
|
/linux-4.4.14/Documentation/device-mapper/ |
D | dm-raid.txt | 173 <sync_ratio> The ratio indicating how much of the array has undergone
|
/linux-4.4.14/Documentation/sound/alsa/ |
D | timestamping.txt | 97 ratio, the precision helps define how much smoothing/low-pass
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | r8a7778.dtsi | 463 /* Fixed ratio clocks */
|
/linux-4.4.14/Documentation/watchdog/ |
D | watchdog-parameters.txt | 311 clock_division_ratio: Clock division ratio. Valid ranges are from 0x5 (1.31ms)
|
/linux-4.4.14/Documentation/DocBook/ |
D | gpu.xml.db | 170 API-drm-mode-create-aspect-ratio-property 417 API-drm-get-cea-aspect-ratio
|
D | alsa-driver-api.xml.db | 251 API-snd-soc-dai-set-bclk-ratio
|
D | device-drivers.xml.db | 839 API-v4l2-calc-aspect-ratio
|
/linux-4.4.14/drivers/block/drbd/ |
D | drbd_worker.c | 900 const int ratio = in drbd_resync_finished() local 905 ratio, in drbd_resync_finished()
|
/linux-4.4.14/Documentation/networking/ |
D | e1000e.txt | 95 In simplified mode the interrupt rate is based on the ratio of TX and
|
D | e1000.txt | 127 In simplified mode the interrupt rate is based on the ratio of TX and
|
D | scaling.txt | 182 count over the last 256 packets. If a flow exceeds a set ratio (by
|
D | ip-sysctl.txt | 607 sk->sk_pacing_rate is set by TCP stack using a ratio applied 615 sk->sk_pacing_rate is set by TCP stack using a ratio applied
|
/linux-4.4.14/Documentation/ioctl/ |
D | ioctl-number.txt | 319 <mailto:vgo@ratio.de>
|
/linux-4.4.14/Documentation/devicetree/bindings/thermal/ |
D | thermal.txt | 122 Size: one cell The contribution is a ratio of the sum
|
/linux-4.4.14/sound/soc/ |
D | soc-core.c | 2147 int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) in snd_soc_dai_set_bclk_ratio() argument 2150 return dai->driver->ops->set_bclk_ratio(dai, ratio); in snd_soc_dai_set_bclk_ratio()
|
/linux-4.4.14/Documentation/scsi/ |
D | ChangeLog.ncr53c8xx | 462 overflow). Hit ratio is better than 99.9 % on my system, so no
|
/linux-4.4.14/Documentation/sysctl/ |
D | vm.txt | 362 As above expression, they are reciprocal number of ratio.
|
/linux-4.4.14/Documentation/cgroups/ |
D | unified-hierarchy.txt | 416 - If a controller implements ratio based resource distribution, the
|
/linux-4.4.14/drivers/net/ethernet/sun/ |
D | niu.c | 2885 static void tcam_set_lat_and_ratio(struct niu *np, u64 latency, u64 ratio) in tcam_set_lat_and_ratio() argument 2893 val |= (ratio << FFLP_CFG_1_CAMRATIO_SHIFT); in tcam_set_lat_and_ratio()
|