Home
last modified time | relevance | path

Searched refs:src_rect (Results 1 – 25 of 45) sorted by relevance

12

/linux-6.12.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c129 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_calc_bw()
130 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_calc_bw()
171 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_calc_clk()
271 drm_rect_width(&pipe_cfg->src_rect)); in _dpu_plane_set_qos_lut()
373 ot_params.width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
374 ot_params.height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
538 u32 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
539 u32 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
594 pipe_cfg.src_rect.x1 = 0; in _dpu_plane_color_fill_pipe()
595 pipe_cfg.src_rect.y1 = 0; in _dpu_plane_color_fill_pipe()
[all …]
Ddpu_hw_sspp.c432 src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1; in dpu_hw_sspp_setup_rects()
433 src_size = (drm_rect_height(&cfg->src_rect) << 16) | in dpu_hw_sspp_setup_rects()
434 drm_rect_width(&cfg->src_rect); in dpu_hw_sspp_setup_rects()
Ddpu_hw_sspp.h147 struct drm_rect src_rect; member
/linux-6.12.1/drivers/media/platform/st/sti/bdisp/
Dbdisp-hw.c765 struct v4l2_rect src_rect = src->crop; in bdisp_hw_build_node() local
777 src_rect.left += src_x_offset; in bdisp_hw_build_node()
778 src_rect.width -= src_x_offset; in bdisp_hw_build_node()
779 src_rect.width = min_t(__s32, MAX_SRC_WIDTH, src_rect.width); in bdisp_hw_build_node()
783 dst_rect.width = (src_rect.width * dst_width) / ctx->src.crop.width; in bdisp_hw_build_node()
856 src_rect.top /= 2; in bdisp_hw_build_node()
857 src_rect.height /= 2; in bdisp_hw_build_node()
870 node->s2xy = src_rect.top << 16 | src_rect.left; in bdisp_hw_build_node()
871 node->s2sz = src_rect.height << 16 | src_rect.width; in bdisp_hw_build_node()
876 src_rect.top /= 2; in bdisp_hw_build_node()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/
Ddc_debug.c105 plane_state->src_rect.x, in pre_surface_trace()
106 plane_state->src_rect.y, in pre_surface_trace()
107 plane_state->src_rect.width, in pre_surface_trace()
108 plane_state->src_rect.height, in pre_surface_trace()
279 update->scaling_info->src_rect.x, in update_surface_trace()
280 update->scaling_info->src_rect.y, in update_surface_trace()
281 update->scaling_info->src_rect.width, in update_surface_trace()
282 update->scaling_info->src_rect.height, in update_surface_trace()
Ddc.c2489 && (u->scaling_info->dst_rect.width < u->surface->src_rect.width in get_scaling_info_update_type()
2490 || u->scaling_info->dst_rect.height < u->surface->src_rect.height)) in get_scaling_info_update_type()
2495 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type()
2496 || u->scaling_info->src_rect.height != u->surface->src_rect.height) { in get_scaling_info_update_type()
2499 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type()
2500 || u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type()
2505 if (u->scaling_info->src_rect.width > dc->caps.max_optimizable_video_width && in get_scaling_info_update_type()
2515 if (u->scaling_info->src_rect.x != u->surface->src_rect.x in get_scaling_info_update_type()
2516 || u->scaling_info->src_rect.y != u->surface->src_rect.y in get_scaling_info_update_type()
2814 surface->src_rect = in copy_surface_update_to_plane()
[all …]
/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.c357 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
358 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
378 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap()
379 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
387 dev->src_rect.width = 720; in vivid_update_format_cap()
389 dev->src_rect.height = 480; in vivid_update_format_cap()
393 dev->src_rect.height = 576; in vivid_update_format_cap()
400 dev->src_rect.width = bt->width; in vivid_update_format_cap()
401 dev->src_rect.height = bt->height; in vivid_update_format_cap()
438 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddcn314_fpu.c351 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn314_populate_dml_pipes_from_context_fpu()
352 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn314_populate_dml_pipes_from_context_fpu()
398 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn314_populate_dml_pipes_from_context_fpu()
400 …} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120)… in dcn314_populate_dml_pipes_from_context_fpu()
/linux-6.12.1/drivers/media/platform/renesas/rcar-vin/
Drcar-v4l2.c252 struct v4l2_rect *src_rect) in rvin_try_format() argument
290 if (src_rect) { in rvin_try_format()
291 src_rect->top = 0; in rvin_try_format()
292 src_rect->left = 0; in rvin_try_format()
293 src_rect->width = pix->width; in rvin_try_format()
294 src_rect->height = pix->height; in rvin_try_format()
330 struct v4l2_rect fmt_rect, src_rect; in rvin_s_fmt_vid_cap() local
337 &src_rect); in rvin_s_fmt_vid_cap()
348 v4l2_rect_map_inside(&vin->crop, &src_rect); in rvin_s_fmt_vid_cap()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_hw_sequencer.c353 pipe_ctx->plane_state->src_rect.x, in dce60_program_front_end_for_pipe()
354 pipe_ctx->plane_state->src_rect.y, in dce60_program_front_end_for_pipe()
355 pipe_ctx->plane_state->src_rect.width, in dce60_program_front_end_for_pipe()
356 pipe_ctx->plane_state->src_rect.height, in dce60_program_front_end_for_pipe()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn35/
Ddcn35_fpu.c483 (pipe->plane_state->src_rect.height < in dcn35_populate_dml_pipes_from_context_fpu()
485 pipe->plane_state->src_rect.width < in dcn35_populate_dml_pipes_from_context_fpu()
533 && pipe->plane_state->src_rect.width <= 1920 && in dcn35_populate_dml_pipes_from_context_fpu()
534 pipe->plane_state->src_rect.height <= 1080) { in dcn35_populate_dml_pipes_from_context_fpu()
537 pipe->plane_state->src_rect.width <= 5120) { in dcn35_populate_dml_pipes_from_context_fpu()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn351/
Ddcn351_fpu.c517 (pipe->plane_state->src_rect.height < in dcn351_populate_dml_pipes_from_context_fpu()
519 pipe->plane_state->src_rect.width < in dcn351_populate_dml_pipes_from_context_fpu()
567 && pipe->plane_state->src_rect.width <= 1920 && in dcn351_populate_dml_pipes_from_context_fpu()
568 pipe->plane_state->src_rect.height <= 1080) { in dcn351_populate_dml_pipes_from_context_fpu()
571 pipe->plane_state->src_rect.width <= 5120) { in dcn351_populate_dml_pipes_from_context_fpu()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/
Ddc_spl_translate.c97 populate_splrect_from_rect(&spl_in->basic_out.src_rect, &stream->src); in translate_SPL_in_params_from_pipe_ctx()
103 populate_splrect_from_rect(&spl_in->basic_in.src_rect, &plane_state->src_rect); in translate_SPL_in_params_from_pipe_ctx()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dcn32/
Ddcn32_resource_helpers.c224 pipe->stream->timing.v_addressable != pipe->plane_state->src_rect.height) { in dcn32_is_center_timing()
408 if (pipe->plane_state->src_rect.width >= 5120 && in dcn32_set_det_allocations()
409 pipe->plane_state->src_rect.height >= 2880) in dcn32_set_det_allocations()
597 pipe->plane_state->src_rect.width == width && in dcn32_check_native_scaling_for_res()
598 pipe->plane_state->src_rect.height == height && in dcn32_check_native_scaling_for_res()
/linux-6.12.1/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_plane.c1149 scaling_info->src_rect.x = state->src_x >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1150 scaling_info->src_rect.y = state->src_y >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1167 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in amdgpu_dm_plane_fill_dc_scaling_info()
1170 scaling_info->src_rect.width = state->src_w >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1171 if (scaling_info->src_rect.width == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1174 scaling_info->src_rect.height = state->src_h >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1175 if (scaling_info->src_rect.height == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1204 scaling_info->src_rect.width; in amdgpu_dm_plane_fill_dc_scaling_info()
1210 scaling_info->src_rect.height; in amdgpu_dm_plane_fill_dc_scaling_info()
Damdgpu_dm_trace.h431 __entry->src_x = plane_state->src_rect.x;
432 __entry->src_y = plane_state->src_rect.y;
433 __entry->src_w = plane_state->src_rect.width;
434 __entry->src_h = plane_state->src_rect.height;
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/spl/
Ddc_spl_types.h435 struct spl_rect src_rect; // Source rect member
455 struct spl_rect src_rect; // Source rect member
Ddc_spl.c109 const struct spl_rect *stream_src = &spl_in->basic_out.src_rect; in calculate_plane_rec_in_timing_active()
363 const int in_w = spl_in->basic_out.src_rect.width; in spl_calculate_scaling_ratios()
364 const int in_h = spl_in->basic_out.src_rect.height; in spl_calculate_scaling_ratios()
367 struct spl_rect surf_src = spl_in->basic_in.src_rect; in spl_calculate_scaling_ratios()
553 struct spl_rect src = spl_in->basic_in.src_rect; in spl_calculate_inits_and_viewports()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dcn10/
Ddcn10_resource.c1159 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane()
1191 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global()
1192 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global()
1195 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
1199 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dcn315/
Ddcn315_resource.c1653 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in allow_pixel_rate_crb()
1655 res_ctx->pipe_ctx[i].plane_state->src_rect.height in allow_pixel_rate_crb()
1711 …split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1761 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1794 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_populate_dml_pipes_from_context()
1799 && pipe->plane_state->src_rect.width <= 5120 in dcn315_populate_dml_pipes_from_context()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/
Ddml21_utils.c398 memcpy(&phantom_plane->src_rect, &main_plane->src_rect, sizeof(phantom_plane->src_rect)); in dml21_add_phantom_plane()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/
Ddcn32_clk_mgr.c493 int width = pipe->plane_state->src_rect.width; in dcn32_check_native_scaling()
494 int height = pipe->plane_state->src_rect.height; in dcn32_check_native_scaling()
586 disp_src_width_list[i] = curr_pipe_ctx->plane_state->src_rect.width; in dcn32_auto_dpm_test_log()
587 disp_src_height_list[i] = curr_pipe_ctx->plane_state->src_rect.height; in dcn32_auto_dpm_test_log()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dce110/
Ddce110_resource.c1040 if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) || in dce110_validate_plane()
1041 ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height)) in dce110_validate_plane()
1066 if ((plane->src_rect.width > 1920 || in dce110_validate_surface_sets()
1067 plane->src_rect.height > 1080)) in dce110_validate_surface_sets()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/
Ddml2_mall_phantom.c760 …memcpy(&phantom_plane->src_rect, &curr_pipe->plane_state->src_rect, sizeof(phantom_plane->src_rect in enable_phantom_plane()
/linux-6.12.1/drivers/staging/vc04_services/vchiq-mmal/
Dmmal-parameters.h665 struct vchiq_mmal_rect src_rect; member

12