Home
last modified time | relevance | path

Searched full:ratios (Results 1 – 25 of 155) sorted by relevance

1234567

/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn201/
H A Ddcn201_dpp.c208 if (scl_data->ratios.horz.value == (8ll << 32)) in dpp201_get_optimal_number_of_taps()
209 scl_data->ratios.horz.value--; in dpp201_get_optimal_number_of_taps()
210 if (scl_data->ratios.vert.value == (8ll << 32)) in dpp201_get_optimal_number_of_taps()
211 scl_data->ratios.vert.value--; in dpp201_get_optimal_number_of_taps()
212 if (scl_data->ratios.horz_c.value == (8ll << 32)) in dpp201_get_optimal_number_of_taps()
213 scl_data->ratios.horz_c.value--; in dpp201_get_optimal_number_of_taps()
214 if (scl_data->ratios.vert_c.value == (8ll << 32)) in dpp201_get_optimal_number_of_taps()
215 scl_data->ratios.vert_c.value--; in dpp201_get_optimal_number_of_taps()
219 if (dc_fixpt_ceil(scl_data->ratios.horz) > 4) in dpp201_get_optimal_number_of_taps()
227 if (dc_fixpt_ceil(scl_data->ratios.vert) > 4) in dpp201_get_optimal_number_of_taps()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/spl/
H A Ddc_spl.c52 * Active space, we first multiply stream scaling ratios (i.e 2304/1920 in calculate_plane_rec_in_timing_active()
358 /* Calculate scaling ratios */
369 /*Swap surf_src height and width since scaling ratios are in recout rotation*/ in spl_calculate_scaling_ratios()
374 spl_scratch->scl_data.ratios.horz = spl_fixpt_from_fraction( in spl_calculate_scaling_ratios()
377 spl_scratch->scl_data.ratios.vert = spl_fixpt_from_fraction( in spl_calculate_scaling_ratios()
382 spl_scratch->scl_data.ratios.horz.value *= 2; in spl_calculate_scaling_ratios()
384 spl_scratch->scl_data.ratios.vert.value *= 2; in spl_calculate_scaling_ratios()
386 spl_scratch->scl_data.ratios.vert.value = spl_div64_s64( in spl_calculate_scaling_ratios()
387 spl_scratch->scl_data.ratios.vert.value * in_h, out_h); in spl_calculate_scaling_ratios()
388 spl_scratch->scl_data.ratios.horz.value = spl_div64_s64( in spl_calculate_scaling_ratios()
[all …]
H A Ddc_spl_types.h141 struct spl_ratios ratios; member
176 // SCL_MODE - set based on scl_data.ratios and always_scale
191 // RATIO - set based on scl_data.ratios
221 // FILTER - calculated based on scl_data ratios and taps
262 struct ratio ratios; member
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn10/
H A Ddcn10_dpp_dscl.c136 if (data->ratios.horz.value == one in dpp1_dscl_get_dscl_mode()
137 && data->ratios.vert.value == one in dpp1_dscl_get_dscl_mode()
138 && data->ratios.horz_c.value == one in dpp1_dscl_get_dscl_mode()
139 && data->ratios.vert_c.value == one in dpp1_dscl_get_dscl_mode()
149 if (data->ratios.horz.value == one && data->ratios.vert.value == one) in dpp1_dscl_get_dscl_mode()
151 if (data->ratios.horz_c.value == one && data->ratios.vert_c.value == one) in dpp1_dscl_get_dscl_mode()
317 scl_data->taps.h_taps, scl_data->ratios.horz); in dpp1_dscl_set_scl_filter()
319 scl_data->taps.v_taps, scl_data->ratios.vert); in dpp1_dscl_set_scl_filter()
326 scl_data->taps.h_taps_c, scl_data->ratios.horz_c); in dpp1_dscl_set_scl_filter()
328 scl_data->taps.v_taps_c, scl_data->ratios.vert_c); in dpp1_dscl_set_scl_filter()
[all …]
H A Ddcn10_dpp.c132 scl_data->ratios.horz.value != dc_fixpt_one.value && in dpp1_get_optimal_number_of_taps()
133 scl_data->ratios.vert.value != dc_fixpt_one.value) in dpp1_get_optimal_number_of_taps()
144 if (scl_data->ratios.horz.value == (4ll << 32)) in dpp1_get_optimal_number_of_taps()
145 scl_data->ratios.horz.value--; in dpp1_get_optimal_number_of_taps()
146 if (scl_data->ratios.vert.value == (4ll << 32)) in dpp1_get_optimal_number_of_taps()
147 scl_data->ratios.vert.value--; in dpp1_get_optimal_number_of_taps()
148 if (scl_data->ratios.horz_c.value == (4ll << 32)) in dpp1_get_optimal_number_of_taps()
149 scl_data->ratios.horz_c.value--; in dpp1_get_optimal_number_of_taps()
150 if (scl_data->ratios.vert_c.value == (4ll << 32)) in dpp1_get_optimal_number_of_taps()
151 scl_data->ratios.vert_c.value--; in dpp1_get_optimal_number_of_taps()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_spl_translate.c50 static void populate_ratios_from_splratios(struct scaling_ratios *ratios, in populate_ratios_from_splratios() argument
53 ratios->horz = dc_fixpt_from_ux_dy(spl_ratios->h_scale_ratio >> 5, 3, 19); in populate_ratios_from_splratios()
54 ratios->vert = dc_fixpt_from_ux_dy(spl_ratios->v_scale_ratio >> 5, 3, 19); in populate_ratios_from_splratios()
55 ratios->horz_c = dc_fixpt_from_ux_dy(spl_ratios->h_scale_ratio_c >> 5, 3, 19); in populate_ratios_from_splratios()
56 ratios->vert_c = dc_fixpt_from_ux_dy(spl_ratios->v_scale_ratio_c >> 5, 3, 19); in populate_ratios_from_splratios()
209 // Make scaler data ratios point to spl output field ratios in translate_SPL_out_params_to_pipe_ctx()
210 …late_ratios_from_splratios(&pipe_ctx->plane_res.scl_data.ratios, &spl_out->dscl_prog_data->ratios); in translate_SPL_out_params_to_pipe_ctx()
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn401/
H A Ddcn401_dpp_dscl.c138 if (data->ratios.horz.value == one in dpp401_dscl_get_dscl_mode()
139 && data->ratios.vert.value == one in dpp401_dscl_get_dscl_mode()
140 && data->ratios.horz_c.value == one in dpp401_dscl_get_dscl_mode()
141 && data->ratios.vert_c.value == one in dpp401_dscl_get_dscl_mode()
151 if (data->ratios.horz.value == one && data->ratios.vert.value == one) in dpp401_dscl_get_dscl_mode()
153 if (data->ratios.horz_c.value == one && data->ratios.vert_c.value == one) in dpp401_dscl_get_dscl_mode()
307 scl_data->taps.h_taps, scl_data->ratios.horz); in dpp401_dscl_set_scl_filter()
309 scl_data->taps.v_taps, scl_data->ratios.vert); in dpp401_dscl_set_scl_filter()
312 scl_data->taps.h_taps_c, scl_data->ratios.horz_c); in dpp401_dscl_set_scl_filter()
314 scl_data->taps.v_taps_c, scl_data->ratios.vert_c); in dpp401_dscl_set_scl_filter()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn30/
H A Ddcn30_dpp.c439 if (dc_fixpt_ceil(scl_data->ratios.horz) > 1) in dpp3_get_optimal_number_of_taps()
440 scl_data->taps.h_taps = min(2 * dc_fixpt_ceil(scl_data->ratios.horz), 8); in dpp3_get_optimal_number_of_taps()
446 if (dc_fixpt_ceil(scl_data->ratios.vert) > 1) in dpp3_get_optimal_number_of_taps()
447 scl_data->taps.v_taps = min(dc_fixpt_ceil(dc_fixpt_mul_int(scl_data->ratios.vert, 2)), 8); in dpp3_get_optimal_number_of_taps()
453 if (dc_fixpt_ceil(scl_data->ratios.vert_c) > 1) in dpp3_get_optimal_number_of_taps()
454 scl_data->taps.v_taps_c = min(dc_fixpt_ceil(dc_fixpt_mul_int(scl_data->ratios.vert_c, 2)), 8); in dpp3_get_optimal_number_of_taps()
460 if (dc_fixpt_ceil(scl_data->ratios.horz_c) > 1) in dpp3_get_optimal_number_of_taps()
461 scl_data->taps.h_taps_c = min(2 * dc_fixpt_ceil(scl_data->ratios.horz_c), 8); in dpp3_get_optimal_number_of_taps()
471 min_taps_y = dc_fixpt_ceil(scl_data->ratios.vert); in dpp3_get_optimal_number_of_taps()
472 min_taps_c = dc_fixpt_ceil(scl_data->ratios.vert_c); in dpp3_get_optimal_number_of_taps()
[all …]
/linux/sound/soc/codecs/
H A Dcs42l51.c371 * Master mode mclk/fs ratios.
373 * The table below provides support of following ratios:
403 struct cs42l51_ratios *ratios = NULL; in cs42l51_hw_params() local
409 ratios = master_ratios; in cs42l51_hw_params()
413 ratios = slave_ratios; in cs42l51_hw_params()
417 ratios = slave_auto_ratios; in cs42l51_hw_params()
426 if (ratios[i].ratio == ratio) in cs42l51_hw_params()
447 mode = ratios[i].speed_mode; in cs42l51_hw_params()
459 power_ctl |= CS42L51_MIC_POWER_CTL_SPEED(ratios[i].speed_mode); in cs42l51_hw_params()
499 if (ratios[i].mclk) in cs42l51_hw_params()
/linux/fs/erofs/
H A DKconfig18 ratios and implements in-place decompression to reuse the file page
112 gives better compression ratios than the default LZ4 format, at the
124 ratios than the default LZ4 format, while it costs more CPU
139 ratios than the default LZ4 format, while it costs more CPU
/linux/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_transform_v.c375 dc_fixpt_u2d19(data->ratios.horz) << 5; in calculate_inits()
377 dc_fixpt_u2d19(data->ratios.vert) << 5; in calculate_inits()
379 dc_fixpt_u2d19(data->ratios.horz_c) << 5; in calculate_inits()
381 dc_fixpt_u2d19(data->ratios.vert_c) << 5; in calculate_inits()
559 coeffs_v = get_filter_coeffs_64p(data->taps.v_taps, data->ratios.vert); in dce110_xfmv_set_scaler()
560 coeffs_h = get_filter_coeffs_64p(data->taps.h_taps, data->ratios.horz); in dce110_xfmv_set_scaler()
561 coeffs_v_c = get_filter_coeffs_64p(data->taps.v_taps_c, data->ratios.vert_c); in dce110_xfmv_set_scaler()
562 coeffs_h_c = get_filter_coeffs_64p(data->taps.h_taps_c, data->ratios.horz_c); in dce110_xfmv_set_scaler()
/linux/drivers/clk/mvebu/
H A Dorion.c80 .ratios = orion_coreclk_ratios,
148 .ratios = orion_coreclk_ratios,
205 .ratios = orion_coreclk_ratios,
268 .ratios = orion_coreclk_ratios,
H A Darmada-39x.c21 * SARL[14:10] : Ratios between CPU, NBCLK, HCLK and DCLK.
123 .ratios = armada_39x_coreclk_ratios,
H A Dkirkwood.c197 .ratios = kirkwood_coreclk_ratios,
205 .ratios = kirkwood_coreclk_ratios,
213 .ratios = kirkwood_coreclk_ratios,
H A Darmada-38x.c20 * SAR[14:10] : Ratios between PCLK0, NBCLK, HCLK and DRAM clocks
120 .ratios = armada_38x_coreclk_ratios,
H A Dcommon.c157 const char *rclk_name = desc->ratios[n].name; in mvebu_coreclk_setup()
162 desc->get_clk_ratio(base, desc->ratios[n].id, &mult, &div); in mvebu_coreclk_setup()
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c286 dc_fixpt_u2d19(data->ratios.horz) << 5; in calculate_inits()
288 dc_fixpt_u2d19(data->ratios.vert) << 5; in calculate_inits()
293 data->ratios.horz, in calculate_inits()
302 data->ratios.vert, in calculate_inits()
318 dc_fixpt_u2d19(data->ratios.horz) << 5; in dce60_calculate_inits()
320 dc_fixpt_u2d19(data->ratios.vert) << 5; in dce60_calculate_inits()
331 data->ratios.vert, in dce60_calculate_inits()
439 coeffs_v = get_filter_coeffs_16p(data->taps.v_taps, data->ratios.vert); in dce_transform_set_scaler()
440 coeffs_h = get_filter_coeffs_16p(data->taps.h_taps, data->ratios.horz); in dce_transform_set_scaler()
524 coeffs_v = get_filter_coeffs_16p(data->taps.v_taps, data->ratios.vert); in dce60_transform_set_scaler()
[all …]
/linux/tools/perf/Documentation/
H A Dtopdown.txt40 metric register that reports slots ratios for the different bottleneck
158 The binary ratios in the metric value can be converted to float ratios:
179 The ratios in the metric accumulate for the time when the counter
210 Later the individual ratios of L1 metric events for the measurement period can
225 The individual ratios of L2 metric events for the measurement period can be
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c776 data->viewport.width = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.horz, data->recout.width)); in calculate_viewport_size()
777 data->viewport.height = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.vert, data->recout.height)); in calculate_viewport_size()
778 data->viewport_c.width = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.horz_c, data->recout.width)); in calculate_viewport_size()
779 …data->viewport_c.height = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.vert_c, data->recout.height)… in calculate_viewport_size()
825 * Active space, we first multiply stream scaling ratios (i.e 2304/1920 in calculate_plane_rec_in_timing_active()
1145 /*Swap surf_src height and width since scaling ratios are in recout rotation*/ in calculate_scaling_ratios()
1150 pipe_ctx->plane_res.scl_data.ratios.horz = dc_fixpt_from_fraction( in calculate_scaling_ratios()
1153 pipe_ctx->plane_res.scl_data.ratios.vert = dc_fixpt_from_fraction( in calculate_scaling_ratios()
1158 pipe_ctx->plane_res.scl_data.ratios.horz.value *= 2; in calculate_scaling_ratios()
1160 pipe_ctx->plane_res.scl_data.ratios.vert.value *= 2; in calculate_scaling_ratios()
[all …]
/linux/arch/arm/mach-omap2/
H A Dopp2430_data.c13 * these combinations is via the 'ratios' which the clocks operate with
37 * Key dividers which make up a PRCM set. Ratios for a PRCM are mandated.
H A Dopp2420_data.c13 * these combinations is via the 'ratios' which the clocks operate with
39 * Key dividers which make up a PRCM set. Ratios for a PRCM are mandated.
/linux/drivers/iio/adc/
H A Dad7606.h46 * oversampling ratios.
73 * oversampling ratios.
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/
H A Ddml21_translation_helper.c770 plane->composition.scaler_info.enabled = scaler_data->ratios.horz.value != dc_fixpt_one.value || in populate_dml21_plane_config_from_plane_state()
771 scaler_data->ratios.horz_c.value != dc_fixpt_one.value || in populate_dml21_plane_config_from_plane_state()
772 scaler_data->ratios.vert.value != dc_fixpt_one.value || in populate_dml21_plane_config_from_plane_state()
773 scaler_data->ratios.vert_c.value != dc_fixpt_one.value; in populate_dml21_plane_config_from_plane_state()
802 …plane->composition.scaler_info.plane0.h_ratio = (double)scaler_data->ratios.horz.value / (1ULL << … in populate_dml21_plane_config_from_plane_state()
803 …plane->composition.scaler_info.plane0.v_ratio = (double)scaler_data->ratios.vert.value / (1ULL << … in populate_dml21_plane_config_from_plane_state()
804 …plane->composition.scaler_info.plane1.h_ratio = (double)scaler_data->ratios.horz_c.value / (1ULL <… in populate_dml21_plane_config_from_plane_state()
805 …plane->composition.scaler_info.plane1.v_ratio = (double)scaler_data->ratios.vert_c.value / (1ULL <… in populate_dml21_plane_config_from_plane_state()
/linux/tools/perf/util/
H A Dstat-shadow.c139 static const char *get_ratio_color(const double ratios[3], double val) in get_ratio_color()
143 if (val > ratios[0]) in get_ratio_color()
145 else if (val > ratios[1]) in get_ratio_color()
147 else if (val > ratios[2]) in get_ratio_color()
/linux/arch/x86/kernel/cpu/
H A Daperfmperf.c189 u64 ratios, counts; in skx_set_max_freq_ratio() local
199 err = rdmsrl_safe(MSR_TURBO_RATIO_LIMIT, &ratios); in skx_set_max_freq_ratio()
210 *turbo_freq = (ratios >> i) & 0xFF; in skx_set_max_freq_ratio()

1234567