/linux-6.12.1/drivers/gpu/drm/amd/display/dc/spl/ |
D | dc_spl.c | 374 spl_scratch->scl_data.ratios.horz = spl_fixpt_from_fraction( in spl_calculate_scaling_ratios() 382 spl_scratch->scl_data.ratios.horz.value *= 2; in spl_calculate_scaling_ratios() 388 spl_scratch->scl_data.ratios.horz.value = spl_div64_s64( in spl_calculate_scaling_ratios() 389 spl_scratch->scl_data.ratios.horz.value * in_w, out_w); in spl_calculate_scaling_ratios() 391 spl_scratch->scl_data.ratios.horz_c = spl_scratch->scl_data.ratios.horz; in spl_calculate_scaling_ratios() 399 spl_scratch->scl_data.ratios.horz = spl_fixpt_truncate( in spl_calculate_scaling_ratios() 400 spl_scratch->scl_data.ratios.horz, 19); in spl_calculate_scaling_ratios() 413 spl_scratch->scl_data.recip_ratios.horz = spl_fixpt_recip( in spl_calculate_scaling_ratios() 414 spl_scratch->scl_data.ratios.horz); in spl_calculate_scaling_ratios() 426 …atch->scl_data.viewport.width = spl_fixpt_ceil(spl_fixpt_mul_int(spl_scratch->scl_data.ratios.horz, in spl_calculate_viewport_size() [all …]
|
D | dc_spl_scl_easf_filters.c | 1495 data->taps.h_taps, data->recip_ratios.horz); in spl_set_filters_data() 1501 data->taps.h_taps, data->ratios.horz); in spl_set_filters_data()
|
D | dc_spl_types.h | 27 struct spl_fixed31_32 horz; member
|
/linux-6.12.1/include/drm/ |
D | drm_rect.h | 169 static inline void drm_rect_downscale(struct drm_rect *r, int horz, int vert) in drm_rect_downscale() argument 171 r->x1 /= horz; in drm_rect_downscale() 173 r->x2 /= horz; in drm_rect_downscale()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dpp/dcn201/ |
D | dcn201_dpp.c | 208 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() 219 if (dc_fixpt_ceil(scl_data->ratios.horz) > 4) in dpp201_get_optimal_number_of_taps() 252 if (IDENTITY_RATIO(scl_data->ratios.horz)) in dpp201_get_optimal_number_of_taps()
|
/linux-6.12.1/drivers/media/platform/ti/omap3isp/ |
D | ispresizer.c | 317 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) in resizer_set_ratio() 324 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio() 878 ratio->horz = ((input->width - 7) * 256 + 255 - 16 - 32 * sph) in resizer_calc_ratios() 880 if (ratio->horz > MID_RESIZE_VALUE) in resizer_calc_ratios() 881 ratio->horz = ((input->width - 7) * 256 + 255 - 32 - 64 * sph) in resizer_calc_ratios() 883 ratio->horz = clamp_t(unsigned int, ratio->horz, in resizer_calc_ratios() 886 if (ratio->horz <= MID_RESIZE_VALUE) { in resizer_calc_ratios() 887 upscaled_width = (output->width - 1) * ratio->horz in resizer_calc_ratios() 891 upscaled_width = (output->width - 1) * ratio->horz in resizer_calc_ratios() 917 if (res->ratio.horz >= RESIZE_DIVISOR) in resizer_set_crop_params()
|
D | ispresizer.h | 60 u32 horz; member
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | transform.h | 127 struct fixed31_32 horz; member 134 int horz; member
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dpp/dcn10/ |
D | dcn10_dpp_dscl.c | 136 if (data->ratios.horz.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() 287 uint32_t h_2tap_sharp_factor = scl_data->sharpness.horz; in dpp1_dscl_set_scl_filter() 317 scl_data->taps.h_taps, scl_data->ratios.horz); in dpp1_dscl_set_scl_filter() 517 SCL_H_SCALE_RATIO, dc_fixpt_u3d19(data->ratios.horz) << 5); in dpp1_dscl_set_manual_ratio_init()
|
D | dcn10_dpp.c | 132 scl_data->ratios.horz.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() 175 if (IDENTITY_RATIO(scl_data->ratios.horz)) in dpp1_get_optimal_number_of_taps()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_transform.c | 286 dc_fixpt_u2d19(data->ratios.horz) << 5; in calculate_inits() 293 data->ratios.horz, in calculate_inits() 318 dc_fixpt_u2d19(data->ratios.horz) << 5; in dce60_calculate_inits() 440 coeffs_h = get_filter_coeffs_16p(data->taps.h_taps, data->ratios.horz); in dce_transform_set_scaler() 525 coeffs_h = get_filter_coeffs_16p(data->taps.h_taps, data->ratios.horz); in dce60_transform_set_scaler() 1194 scl_data->taps.h_taps = decide_taps(scl_data->ratios.horz, in_taps->h_taps, false); in dce_transform_get_optimal_number_of_taps()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dpp/dcn401/ |
D | dcn401_dpp_dscl.c | 138 if (data->ratios.horz.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() 290 uint32_t h_2tap_sharp_factor = scl_data->sharpness.horz; in dpp401_dscl_set_scl_filter() 307 scl_data->taps.h_taps, scl_data->ratios.horz); in dpp401_dscl_set_scl_filter() 574 SCL_H_SCALE_RATIO, dc_fixpt_u3d19(data->ratios.horz) << 5); in dpp401_dscl_set_manual_ratio_init()
|
/linux-6.12.1/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_plane.c | 624 uint32_t src, uint32_t dst, bool horz) in get_scale_config() argument 636 sub = horz ? info->hsub : info->vsub; in get_scale_config() 642 if (horz) in get_scale_config() 657 bool horz) in calc_pixel_ext() argument
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_transform_v.c | 375 dc_fixpt_u2d19(data->ratios.horz) << 5; in calculate_inits() 560 coeffs_h = get_filter_coeffs_64p(data->taps.h_taps, data->ratios.horz); in dce110_xfmv_set_scaler()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/ |
D | dc_spl_translate.c | 53 ratios->horz = dc_fixpt_from_ux_dy(spl_ratios->h_scale_ratio >> 5, 3, 19); in populate_ratios_from_splratios()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_resource.c | 776 data->viewport.width = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.horz, data->recout.width)); in calculate_viewport_size() 1150 pipe_ctx->plane_res.scl_data.ratios.horz = dc_fixpt_from_fraction( in calculate_scaling_ratios() 1158 pipe_ctx->plane_res.scl_data.ratios.horz.value *= 2; in calculate_scaling_ratios() 1164 pipe_ctx->plane_res.scl_data.ratios.horz.value = div64_s64( in calculate_scaling_ratios() 1165 pipe_ctx->plane_res.scl_data.ratios.horz.value * in_w, out_w); in calculate_scaling_ratios() 1167 pipe_ctx->plane_res.scl_data.ratios.horz_c = pipe_ctx->plane_res.scl_data.ratios.horz; in calculate_scaling_ratios() 1175 pipe_ctx->plane_res.scl_data.ratios.horz = dc_fixpt_truncate( in calculate_scaling_ratios() 1176 pipe_ctx->plane_res.scl_data.ratios.horz, 19); in calculate_scaling_ratios() 1300 data->ratios.horz, in calculate_inits_and_viewports()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dpp/dcn30/ |
D | dcn30_dpp.c | 439 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() 506 if (IDENTITY_RATIO(scl_data->ratios.horz)) in dpp3_get_optimal_number_of_taps()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dcn_calcs.c | 399 input->scale_ratio_depth.hscl_ratio = pipe->plane_res.scl_data.ratios.horz.value/4294967296.0; in pipe_ctx_to_e2e_pipe_params() 977 ASSERT(pipe->plane_res.scl_data.ratios.horz.value != dc_fixpt_one.value in dcn_validate_bandwidth() 982 ASSERT(pipe->plane_res.scl_data.ratios.horz.value != dc_fixpt_one.value in dcn_validate_bandwidth()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/ |
D | dml21_translation_helper.c | 770 plane->composition.scaler_info.enabled = scaler_data->ratios.horz.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()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dcn20/ |
D | dcn20_resource.c | 1524 sd->ratios.horz, sd->recout.width - new_width)); in dcn20_split_stream_for_odm() 1538 sd->ratios.horz, sd->recout.width - new_width)); in dcn20_split_stream_for_odm() 1543 sd->ratios.horz, sd->h_active - sd->recout.x)); in dcn20_split_stream_for_odm()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/ |
D | dml2_translation_helper.c | 1037 out->ScalerEnabled[location] = scaler_data->ratios.horz.value != dc_fixpt_one.value || in populate_dml_plane_cfg_from_plane_state() 1056 out->HRatio[location] = (dml_float_t)scaler_data->ratios.horz.value / (1ULL << 32); in populate_dml_plane_cfg_from_plane_state()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | dcn20_fpu.c | 1671 pipes[pipe_cnt].pipe.scale_ratio_depth.hscl_ratio = (double) scl->ratios.horz.value / (1ULL<<32); in dcn20_populate_dml_pipes_from_context() 1677 || scl->ratios.horz.value != dc_fixpt_one.value in dcn20_populate_dml_pipes_from_context()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/basics/ |
D | dce_calcs.c | 2830 …ale_ratio[num_displays + 4] = fixed31_32_to_bw_fixed(pipe[i].plane_res.scl_data.ratios.horz.value); in populate_initial_data() 2887 pipe[i].bottom_pipe->plane_res.scl_data.ratios.horz.value); in populate_initial_data() 2933 …ale_ratio[num_displays + 4] = fixed31_32_to_bw_fixed(pipe[i].plane_res.scl_data.ratios.horz.value); in populate_initial_data()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
D | dcn401_hwseq.c | 1110 .h_scale_ratio = pipe_ctx->plane_res.scl_data.ratios.horz, in dcn401_set_cursor_position()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
D | dce110_hwseq.c | 3088 .h_scale_ratio = pipe_ctx->plane_res.scl_data.ratios.horz, in dce110_set_cursor_position()
|