Searched refs:ratio (Results 126 - 150 of 217) sorted by relevance

123456789

/linux-master/drivers/gpu/drm/tegra/
H A Dhub.c352 unsigned int ratio, row, column; local
354 for (ratio = 0; ratio <= 2; ratio++) {
357 unsigned int index = (ratio << 6) + (row << 2) + column;
/linux-master/kernel/trace/
H A Dtrace_output.c1386 u64 ratio, ratio_dec; local
1395 ratio = net_runtime * 10000000;
1396 do_div(ratio, field->runtime);
1397 ratio_dec = do_div(ratio, 100000);
1402 ratio, ratio_dec,
/linux-master/sound/soc/rockchip/
H A Drockchip_i2s_tdm.c804 unsigned int ratio)
808 if (ratio < 32 || ratio > 512 || ratio % 2 == 1)
811 i2s_tdm->frame_width = ratio;
803 rockchip_i2s_tdm_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
H A Drockchip_i2s.c505 unsigned int ratio)
509 i2s->bclk_ratio = ratio;
504 rockchip_i2s_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
/linux-master/drivers/media/usb/go7007/
H A Dgo7007-fw.c1280 int ratio = arate / go->sensor_framerate; local
1281 int adjratio = ratio * 215 / 100;
1294 0xbff6, f1 < f2 ? ratio : ratio + 1,
1295 0xbff7, f1 > f2 ? ratio : ratio + 1,
/linux-master/sound/soc/codecs/
H A Dwm8904.c1236 int ratio; member in struct:__anon4258
1343 best_val = abs((wm8904->sysclk_rate / clk_sys_rates[0].ratio)
1347 clk_sys_rates[i].ratio) - wm8904->fs);
1354 clk_sys_rates[best].ratio);
1575 int ratio; member in struct:__anon4261
1630 target /= fll_fratios[i].ratio;
H A Drt5682.c2481 static int rt5682_set_bclk1_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
2486 rt5682->bclk[dai->id] = ratio;
2488 switch (ratio) {
2506 dev_err(dai->dev, "Invalid bclk1 ratio %d\n", ratio);
2513 static int rt5682_set_bclk2_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
2518 rt5682->bclk[dai->id] = ratio;
2520 switch (ratio) {
2532 dev_err(dai->dev, "Invalid bclk2 ratio %d\n", ratio);
[all...]
H A Drt5682s.c2427 unsigned int ratio)
2432 rt5682s->bclk[dai->id] = ratio;
2434 switch (ratio) {
2452 dev_err(dai->dev, "Invalid bclk1 ratio %d\n", ratio);
2459 static int rt5682s_set_bclk2_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
2464 rt5682s->bclk[dai->id] = ratio;
2466 switch (ratio) {
2476 dev_err(dai->dev, "Invalid bclk2 ratio %d\n", ratio);
2426 rt5682s_set_bclk1_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
[all...]
H A Dnau8824.h455 int ratio; member in struct:nau8824_fll
H A Dwm8983.c106 int ratio; member in struct:__anon4268
710 == fs_ratios[i].ratio)
715 dev_err(dai->dev, "Unable to configure MCLK ratio %u/%u\n",
720 dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio);
H A Dwm8985.c196 int ratio; member in struct:__anon4269
808 == fs_ratios[i].ratio)
813 dev_err(dai->dev, "Unable to configure MCLK ratio %u/%u\n",
818 dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio);
/linux-master/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_transform_v.c488 static const uint16_t *get_filter_coeffs_64p(int taps, struct fixed31_32 ratio) argument
491 return get_filter_4tap_64p(ratio);
546 /* 4. Calculate and program ratio, filter initialization */
/linux-master/drivers/gpu/drm/gud/
H A Dgud_drv.c345 u64 ratio = div64_u64_rem(gdrm->stats_length, gdrm->stats_actual_length, local
349 seq_printf(m, "Compression ratio: %llu.%llu\n", ratio, ratio_frac);
/linux-master/sound/soc/
H A Dsoc-dai.c119 * snd_soc_dai_set_bclk_ratio - configure BCLK to sample rate ratio.
121 * @ratio: Ratio of BCLK to Sample rate.
123 * Configures the DAI for a preset BCLK to sample rate ratio.
125 int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
131 ret = dai->driver->ops->set_bclk_ratio(dai, ratio);
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_panel.c409 /* Scale but preserve the aspect ratio */
505 * when calculating the panel ratio.
509 u32 ratio = source * FACTOR / target; local
510 return (FACTOR * ratio + FACTOR/2) / FACTOR;
547 * ratio by hand and program it into the
616 /* Scale but preserve the aspect ratio */
625 * Full scaling, even if it changes the aspect ratio.
H A Dintel_overlay.c642 /* make the Y scale to UV scale ratio an exact multiply */
940 u32 ratio; local
949 ratio = REG_FIELD_GET(PFIT_VERT_SCALE_MASK_965, tmp);
958 ratio = REG_FIELD_GET(PFIT_VERT_SCALE_MASK, tmp);
961 overlay->pfit_vscale_ratio = ratio;
1021 /* better safe than sorry, use 4 as the maximal subsampling ratio */
/linux-master/drivers/gpu/drm/msm/dp/
H A Ddp_ctrl.c274 s64 ratio; member in struct:tu_algo_data
679 tu->ratio = drm_fixp2int(tu->ratio_fp);
683 !tu->ratio && tu->dsc_en == 0) {
685 tu->ratio = drm_fixp2int(tu->ratio_fp);
686 if (tu->ratio)
690 if (tu->ratio > 1)
691 tu->ratio = 1;
693 if (tu->ratio == 1)
/linux-master/drivers/cpufreq/
H A Dintel_pstate.c155 * @ratio: Ratio of (vid max - vid min) /
166 int32_t ratio; member in struct:vid_data
421 * zero and the ratio between them is not 100, return the hybrid
912 int ratio, freq; local
914 ratio = intel_pstate_get_cppc_guaranteed(policy->cpu);
915 if (ratio <= 0) {
919 ratio = HWP_GUARANTEED_PERF(cap);
922 freq = ratio * cpu->pstate.scaling;
1799 cpudata->vid.ratio);
1848 cpudata->vid.ratio
[all...]
/linux-master/sound/soc/bcm/
H A Dcygnus-ssp.c541 unsigned int ratio; local
553 ratio = aio->mclk / bit_rate;
554 switch (ratio) {
562 mclk_rate = ratio / 2;
/linux-master/arch/arm/mach-at91/
H A Dpm.c824 int pwrtmg, ratio; local
827 ratio = readl(soc_pm.data.pmc + AT91_PMC_RATIO);
837 writel(ratio & ~AT91_PMC_RATIO_RATIO, soc_pm.data.pmc + AT91_PMC_RATIO);
842 writel(ratio, soc_pm.data.pmc + AT91_PMC_RATIO);
/linux-master/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_phy_8996.c168 int ratio[] = { 2, 3, 4, 5, 6, 9, 10, 12, 14, 15, 20, 21, 25, 28, 35 }; local
183 u32 ratio_mult = ratio[i] << tx_band_sel[j];
209 pd->vco_ratio = ratio[vco_optimal_index / 4];
/linux-master/drivers/gpu/drm/amd/display/dc/dml/dcn30/
H A Ddcn30_fpu.c186 double ratio, modulo, phase; local
223 ratio = vtotal_max - vtotal_avg;
225 phase = ratio * modulo;
/linux-master/drivers/leds/rgb/
H A Dleds-mt6370-rgb.c279 unsigned int divisor, ratio; local
282 ratio = ton * divisor / (ton + toff);
299 return regmap_field_write(priv->fields[sel_field], ratio);
/linux-master/sound/soc/atmel/
H A Dmchp-i2s-mcc.c140 /* Selected Clock to I2SMCC Master Clock ratio */
151 /* Selected Clock to I2SMC Serial Clock ratio */
331 unsigned int ratio)
335 dev_dbg(dev->dev, "%s() ratio=%u\n", __func__, ratio);
337 dev->frame_length = ratio;
330 mchp_i2s_mcc_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio) argument
/linux-master/tools/testing/selftests/net/forwarding/
H A Dlib.sh1232 log_info "Expected ratio $weights_ratio"
1250 log_info "Expected ratio $weights_ratio Measured ratio $packets_ratio"

Completed in 324 milliseconds

123456789