/Linux-v4.19/include/drm/ |
D | drm_rect.h | 117 static inline void drm_rect_downscale(struct drm_rect *r, int horz, int vert) in drm_rect_downscale() argument 119 r->x1 /= horz; in drm_rect_downscale() 121 r->x2 /= horz; in drm_rect_downscale()
|
/Linux-v4.19/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 318 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()
|
D | ispresizer.h | 63 u32 horz; member
|
/Linux-v4.19/drivers/media/platform/davinci/ |
D | isif.c | 332 val = val | 1 | (bc->horz.mode << ISIF_HORZ_BC_MODE_SHIFT); in isif_config_bclamp() 336 if (bc->horz.mode != ISIF_HORZ_BC_DISABLE) { in isif_config_bclamp() 346 val = bc->horz.win_count_calc | in isif_config_bclamp() 347 ((!!bc->horz.base_win_sel_calc) << in isif_config_bclamp() 349 ((!!bc->horz.clamp_pix_limit) << in isif_config_bclamp() 351 (bc->horz.win_h_sz_calc << in isif_config_bclamp() 353 (bc->horz.win_v_sz_calc << in isif_config_bclamp() 357 regw(bc->horz.win_start_h_calc, CLHWIN1); in isif_config_bclamp() 358 regw(bc->horz.win_start_v_calc, CLHWIN2); in isif_config_bclamp()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_dpp.c | 150 scl_data->ratios.horz.value != dc_fixpt_one.value && in dpp_get_optimal_number_of_taps() 162 if (scl_data->ratios.horz.value == (4ll << 32)) in dpp_get_optimal_number_of_taps() 163 scl_data->ratios.horz.value--; in dpp_get_optimal_number_of_taps() 193 if (IDENTITY_RATIO(scl_data->ratios.horz)) in dpp_get_optimal_number_of_taps()
|
D | dcn10_dpp_dscl.c | 180 if (data->ratios.horz.value == one in dpp1_dscl_get_dscl_mode() 193 if (data->ratios.horz.value == one && data->ratios.vert.value == one) in dpp1_dscl_get_dscl_mode() 299 uint32_t h_2tap_sharp_factor = scl_data->sharpness.horz; in dpp1_dscl_set_scl_filter() 329 scl_data->taps.h_taps, scl_data->ratios.horz); in dpp1_dscl_set_scl_filter() 568 SCL_H_SCALE_RATIO, dc_fixpt_u3d19(data->ratios.horz) << 5); in dpp1_dscl_set_manual_ratio_init()
|
D | dcn10_hw_sequencer.c | 2589 .h_scale_ratio = pipe_ctx->plane_res.scl_data.ratios.horz, in dcn10_set_cursor_position()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | transform.h | 142 struct fixed31_32 horz; member 149 int horz; member
|
/Linux-v4.19/drivers/staging/media/davinci_vpfe/ |
D | dm365_isif.c | 548 if (bclamp->horz.clamp_pix_limit > 1) { in isif_validate_bclamp_params() 552 if (bclamp->horz.win_count_calc < 1 || in isif_validate_bclamp_params() 553 bclamp->horz.win_count_calc > 32) { in isif_validate_bclamp_params() 557 if (bclamp->horz.win_start_h_calc > DM365_ISIF_MAX_CLHSH) { in isif_validate_bclamp_params() 562 if (bclamp->horz.win_start_v_calc > DM365_ISIF_MAX_CLHSV) { in isif_validate_bclamp_params() 682 val = val | 1 | ((bc->horz.mode & ISIF_HORZ_BC_MODE_MASK) << in isif_config_bclamp() 687 if (bc->horz.mode != VPFE_ISIF_HORZ_BC_DISABLE) { in isif_config_bclamp() 697 val = (bc->horz.win_count_calc & ISIF_HORZ_BC_WIN_COUNT_MASK) | in isif_config_bclamp() 698 ((bc->horz.base_win_sel_calc & 1) << in isif_config_bclamp() 700 ((bc->horz.clamp_pix_limit & 1) << in isif_config_bclamp() [all …]
|
D | davinci_vpfe_user.h | 306 struct vpfe_isif_horz_bclamp horz; member
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_transform.c | 259 dc_fixpt_u2d19(data->ratios.horz) << 5; in calculate_inits() 266 data->ratios.horz, in calculate_inits() 353 coeffs_h = get_filter_coeffs_16p(data->taps.h_taps, data->ratios.horz); in dce_transform_set_scaler() 922 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-v4.19/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_resource.c | 669 pipe_ctx->plane_res.scl_data.ratios.horz = dc_fixpt_from_fraction( in calculate_scaling_ratios() 677 pipe_ctx->plane_res.scl_data.ratios.horz.value *= 2; in calculate_scaling_ratios() 683 pipe_ctx->plane_res.scl_data.ratios.horz.value = div64_s64( in calculate_scaling_ratios() 684 pipe_ctx->plane_res.scl_data.ratios.horz.value * in_w, out_w); in calculate_scaling_ratios() 686 pipe_ctx->plane_res.scl_data.ratios.horz_c = pipe_ctx->plane_res.scl_data.ratios.horz; in calculate_scaling_ratios() 694 pipe_ctx->plane_res.scl_data.ratios.horz = dc_fixpt_truncate( in calculate_scaling_ratios() 695 pipe_ctx->plane_res.scl_data.ratios.horz, 19); in calculate_scaling_ratios() 738 dc_fixpt_add_int(data->ratios.horz, data->taps.h_taps + 1), 2), 19); in calculate_inits_and_adj_vp() 754 dc_fixpt_sub(data->inits.h, data->ratios.horz)); in calculate_inits_and_adj_vp() 774 data->ratios.horz, data->recout.x - recout_full->x)); in calculate_inits_and_adj_vp() [all …]
|
/Linux-v4.19/include/media/davinci/ |
D | isif.h | 192 struct isif_horz_bclamp horz; member
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_plane.c | 702 uint32_t src, uint32_t dst, bool horz) in get_scale_config() argument 713 sub = horz ? drm_format_horz_chroma_subsampling(pix_fmt) : in get_scale_config() 720 if (horz) in get_scale_config() 735 bool horz) in calc_pixel_ext() argument
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_transform_v.c | 376 dc_fixpt_u2d19(data->ratios.horz) << 5; in calculate_inits() 561 coeffs_h = get_filter_coeffs_64p(data->taps.h_taps, data->ratios.horz); in dce110_xfmv_set_scaler()
|
D | dce110_hw_sequencer.c | 2818 .h_scale_ratio = pipe_ctx->plane_res.scl_data.ratios.horz, in dce110_set_cursor_position()
|
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/calcs/ |
D | dcn_calcs.c | 374 input->scale_ratio_depth.hscl_ratio = pipe->plane_res.scl_data.ratios.horz.value/4294967296.0; in pipe_ctx_to_e2e_pipe_params() 901 ASSERT(pipe->plane_res.scl_data.ratios.horz.value != dc_fixpt_one.value in dcn_validate_bandwidth() 906 ASSERT(pipe->plane_res.scl_data.ratios.horz.value != dc_fixpt_one.value in dcn_validate_bandwidth()
|
D | dce_calcs.c | 2801 …ale_ratio[num_displays + 4] = fixed31_32_to_bw_fixed(pipe[i].plane_res.scl_data.ratios.horz.value); in populate_initial_data() 2857 pipe[i].bottom_pipe->plane_res.scl_data.ratios.horz.value); in populate_initial_data() 2899 …ale_ratio[num_displays + 4] = fixed31_32_to_bw_fixed(pipe[i].plane_res.scl_data.ratios.horz.value); in populate_initial_data()
|