Home
last modified time | relevance | path

Searched refs:horz (Results 1 – 18 of 18) sorted by relevance

/openbmc/linux/include/drm/
H A Ddrm_rect.h169 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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn201/
H A Ddcn201_dpp.c199 if (scl_data->ratios.horz.value == (8ll << 32)) in dpp201_get_optimal_number_of_taps()
200 scl_data->ratios.horz.value--; in dpp201_get_optimal_number_of_taps()
209 if (dc_fixpt_ceil(scl_data->ratios.horz) > 4) in dpp201_get_optimal_number_of_taps()
241 if (IDENTITY_RATIO(scl_data->ratios.horz)) in dpp201_get_optimal_number_of_taps()
/openbmc/linux/drivers/media/platform/ti/omap3isp/
H A Dispresizer.c318 rgval |= ((ratio->horz - 1) << ISPRSZ_CNT_HRSZ_SHIFT) in resizer_set_ratio()
325 if (ratio->horz > MID_RESIZE_VALUE) in resizer_set_ratio()
879 ratio->horz = ((input->width - 7) * 256 + 255 - 16 - 32 * sph) in resizer_calc_ratios()
881 if (ratio->horz > MID_RESIZE_VALUE) in resizer_calc_ratios()
882 ratio->horz = ((input->width - 7) * 256 + 255 - 32 - 64 * sph) in resizer_calc_ratios()
884 ratio->horz = clamp_t(unsigned int, ratio->horz, in resizer_calc_ratios()
887 if (ratio->horz <= MID_RESIZE_VALUE) { in resizer_calc_ratios()
888 upscaled_width = (output->width - 1) * ratio->horz in resizer_calc_ratios()
892 upscaled_width = (output->width - 1) * ratio->horz in resizer_calc_ratios()
918 if (res->ratio.horz >= RESIZE_DIVISOR) in resizer_set_crop_params()
H A Dispresizer.h60 u32 horz; member
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_dpp_dscl.c136 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()
H A Ddcn10_dpp.c132 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()
H A Ddcn10_hw_sequencer.c3411 .h_scale_ratio = pipe_ctx->plane_res.scl_data.ratios.horz, in dcn10_set_cursor_position()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dtransform.h142 struct fixed31_32 horz; member
149 int horz; member
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_transform.c286 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()
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_plane.c637 uint32_t src, uint32_t dst, bool horz) in get_scale_config() argument
649 sub = horz ? info->hsub : info->vsub; in get_scale_config()
655 if (horz) in get_scale_config()
670 bool horz) in calc_pixel_ext() argument
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_transform_v.c375 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()
H A Ddce110_hw_sequencer.c2901 .h_scale_ratio = pipe_ctx->plane_res.scl_data.ratios.horz, in dce110_set_cursor_position()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c803 data->viewport.width = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.horz, data->recout.width)); in calculate_viewport_size()
1191 pipe_ctx->plane_res.scl_data.ratios.horz = dc_fixpt_from_fraction( in calculate_scaling_ratios()
1199 pipe_ctx->plane_res.scl_data.ratios.horz.value *= 2; in calculate_scaling_ratios()
1205 pipe_ctx->plane_res.scl_data.ratios.horz.value = div64_s64( in calculate_scaling_ratios()
1206 pipe_ctx->plane_res.scl_data.ratios.horz.value * in_w, out_w); in calculate_scaling_ratios()
1208 pipe_ctx->plane_res.scl_data.ratios.horz_c = pipe_ctx->plane_res.scl_data.ratios.horz; in calculate_scaling_ratios()
1216 pipe_ctx->plane_res.scl_data.ratios.horz = dc_fixpt_truncate( in calculate_scaling_ratios()
1217 pipe_ctx->plane_res.scl_data.ratios.horz, 19); in calculate_scaling_ratios()
1341 data->ratios.horz, in calculate_inits_and_viewports()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_dpp.c406 if (dc_fixpt_ceil(scl_data->ratios.horz) > 1) in dpp3_get_optimal_number_of_taps()
407 scl_data->taps.h_taps = min(2 * dc_fixpt_ceil(scl_data->ratios.horz), 8); in dpp3_get_optimal_number_of_taps()
473 if (IDENTITY_RATIO(scl_data->ratios.horz)) in dpp3_get_optimal_number_of_taps()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/
H A Ddcn_calcs.c399 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()
H A Ddce_calcs.c2832 …ale_ratio[num_displays + 4] = fixed31_32_to_bw_fixed(pipe[i].plane_res.scl_data.ratios.horz.value); in populate_initial_data()
2889 pipe[i].bottom_pipe->plane_res.scl_data.ratios.horz.value); in populate_initial_data()
2935 …ale_ratio[num_displays + 4] = fixed31_32_to_bw_fixed(pipe[i].plane_res.scl_data.ratios.horz.value); in populate_initial_data()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_resource.c1508 sd->ratios.horz, sd->recout.width - new_width)); in dcn20_split_stream_for_odm()
1522 sd->ratios.horz, sd->recout.width - new_width)); in dcn20_split_stream_for_odm()
1527 sd->ratios.horz, sd->h_active - sd->recout.x)); in dcn20_split_stream_for_odm()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/
H A Ddcn20_fpu.c1662 pipes[pipe_cnt].pipe.scale_ratio_depth.hscl_ratio = (double) scl->ratios.horz.value / (1ULL<<32); in dcn20_populate_dml_pipes_from_context()
1668 || scl->ratios.horz.value != dc_fixpt_one.value in dcn20_populate_dml_pipes_from_context()