| /linux-6.15/drivers/media/platform/st/sti/bdisp/ |
| H A D | bdisp-hw.c | 779 src_rect.width = min_t(__s32, MAX_SRC_WIDTH, src_rect.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() 877 src_rect.left /= 2; in bdisp_hw_build_node() 878 src_rect.width /= 2; in bdisp_hw_build_node() 879 src_rect.height /= 2; in bdisp_hw_build_node() 892 node->s2xy = src_rect.top << 16 | src_rect.left; in bdisp_hw_build_node() [all …]
|
| /linux-6.15/drivers/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_plane.c | 592 pipe_cfg.src_rect.x1 = 0; in _dpu_plane_color_fill_pipe() 593 pipe_cfg.src_rect.y1 = 0; in _dpu_plane_color_fill_pipe() 594 pipe_cfg.src_rect.x2 = in _dpu_plane_color_fill_pipe() 596 pipe_cfg.src_rect.y2 = in _dpu_plane_color_fill_pipe() 780 DRM_RECT_ARG(&pipe_cfg->src_rect)); in dpu_plane_atomic_check_pipe() 786 (pipe_cfg->src_rect.x1 & 0x1 || in dpu_plane_atomic_check_pipe() 787 pipe_cfg->src_rect.y1 & 0x1 || in dpu_plane_atomic_check_pipe() 884 drm_rect_rotate(&pipe_cfg->src_rect, in dpu_plane_atomic_check_nosspp() 897 pipe_cfg->src_rect.x2 = (pipe_cfg->src_rect.x1 + pipe_cfg->src_rect.x2) >> 1; in dpu_plane_atomic_check_nosspp() 899 r_pipe_cfg->src_rect.x1 = pipe_cfg->src_rect.x2; in dpu_plane_atomic_check_nosspp() [all …]
|
| H A D | dpu_hw_sspp.c | 432 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()
|
| H A D | dpu_hw_sspp.h | 150 struct drm_rect src_rect; member
|
| /linux-6.15/drivers/media/test-drivers/vivid/ |
| H A D | vivid-vid-cap.c | 356 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect() 386 dev->src_rect.width = 720; in vivid_update_format_cap() 388 dev->src_rect.height = 480; in vivid_update_format_cap() 392 dev->src_rect.height = 576; in vivid_update_format_cap() 399 dev->src_rect.width = bt->width; in vivid_update_format_cap() 437 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap() 438 dev->crop_cap = dev->src_rect; in vivid_update_format_cap() 582 w = dev->src_rect.width; in vivid_try_fmt_vid_cap() 583 h = dev->src_rect.height; in vivid_try_fmt_vid_cap() 877 sel->r = dev->src_rect; in vivid_vid_cap_g_selection() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_debug.c | 154 update->scaling_info->src_rect.x, in update_surface_trace() 155 update->scaling_info->src_rect.y, in update_surface_trace() 156 update->scaling_info->src_rect.width, in update_surface_trace() 157 update->scaling_info->src_rect.height, in update_surface_trace()
|
| H A D | dc.c | 2633 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type() 2634 || u->scaling_info->src_rect.height != u->surface->src_rect.height in get_scaling_info_update_type() 2643 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type() 2644 || u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type() 2662 if (u->scaling_info->src_rect.x != u->surface->src_rect.x in get_scaling_info_update_type() 2663 || u->scaling_info->src_rect.y != u->surface->src_rect.y in get_scaling_info_update_type() 2991 surface->src_rect = in copy_surface_update_to_plane() 2992 srf_update->scaling_info->src_rect; in copy_surface_update_to_plane() 3377 if ((srf_updates[i].surface->src_rect.width == 0 || in update_planes_and_stream_state() 3378 srf_updates[i].surface->src_rect.height == 0 || in update_planes_and_stream_state() [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
| H A D | dcn314_fpu.c | 351 (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.15/drivers/gpu/drm/adp/ |
| H A D | adp_drv.c | 156 struct drm_rect src_rect; in adp_plane_atomic_update() local 170 drm_rect_fp_to_int(&src_rect, &new_state->src); in adp_plane_atomic_update() 171 src_pos = src_rect.x1 << 16 | src_rect.y1; in adp_plane_atomic_update() 173 src_size = drm_rect_width(&src_rect) << 16 | drm_rect_height(&src_rect); in adp_plane_atomic_update()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dce60/ |
| H A D | dce60_hw_sequencer.c | 353 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.15/drivers/media/platform/renesas/rcar-vin/ |
| H A D | rcar-v4l2.c | 275 struct v4l2_rect *src_rect) in rvin_try_format() argument 313 if (src_rect) { in rvin_try_format() 314 src_rect->top = 0; in rvin_try_format() 315 src_rect->left = 0; in rvin_try_format() 316 src_rect->width = pix->width; in rvin_try_format() 317 src_rect->height = pix->height; in rvin_try_format() 353 struct v4l2_rect fmt_rect, src_rect; in rvin_s_fmt_vid_cap() local 360 &src_rect); in rvin_s_fmt_vid_cap() 371 v4l2_rect_map_inside(&vin->crop, &src_rect); in rvin_s_fmt_vid_cap()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dml/dcn35/ |
| H A D | dcn35_fpu.c | 485 (pipe->plane_state->src_rect.height < in dcn35_populate_dml_pipes_from_context_fpu() 487 pipe->plane_state->src_rect.width < in dcn35_populate_dml_pipes_from_context_fpu() 535 && pipe->plane_state->src_rect.width <= 1920 && in dcn35_populate_dml_pipes_from_context_fpu() 536 pipe->plane_state->src_rect.height <= 1080) { in dcn35_populate_dml_pipes_from_context_fpu() 539 pipe->plane_state->src_rect.width <= 5120) { in dcn35_populate_dml_pipes_from_context_fpu()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dml/dcn351/ |
| H A D | dcn351_fpu.c | 518 (pipe->plane_state->src_rect.height < in dcn351_populate_dml_pipes_from_context_fpu() 520 pipe->plane_state->src_rect.width < in dcn351_populate_dml_pipes_from_context_fpu() 568 && pipe->plane_state->src_rect.width <= 1920 && in dcn351_populate_dml_pipes_from_context_fpu() 569 pipe->plane_state->src_rect.height <= 1080) { in dcn351_populate_dml_pipes_from_context_fpu() 572 pipe->plane_state->src_rect.width <= 5120) { in dcn351_populate_dml_pipes_from_context_fpu()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc_spl_translate.c | 104 populate_splrect_from_rect(&spl_in->basic_out.src_rect, &stream->src); in translate_SPL_in_params_from_pipe_ctx() 110 populate_splrect_from_rect(&spl_in->basic_in.src_rect, &plane_state->src_rect); in translate_SPL_in_params_from_pipe_ctx()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn32/ |
| H A D | dcn32_resource_helpers.c | 224 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.15/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_plane.c | 1150 scaling_info->src_rect.x = state->src_x >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1151 scaling_info->src_rect.y = state->src_y >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1168 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in amdgpu_dm_plane_fill_dc_scaling_info() 1171 scaling_info->src_rect.width = state->src_w >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1172 if (scaling_info->src_rect.width == 0) in amdgpu_dm_plane_fill_dc_scaling_info() 1175 scaling_info->src_rect.height = state->src_h >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1176 if (scaling_info->src_rect.height == 0) in amdgpu_dm_plane_fill_dc_scaling_info() 1205 scaling_info->src_rect.width; in amdgpu_dm_plane_fill_dc_scaling_info() 1211 scaling_info->src_rect.height; in amdgpu_dm_plane_fill_dc_scaling_info()
|
| H A D | amdgpu_dm_trace.h | 431 __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.15/drivers/gpu/drm/amd/display/dc/dml2/dml21/ |
| H A D | dml21_utils.c | 298 memcpy(&phantom_plane->src_rect, &main_plane->src_rect, sizeof(phantom_plane->src_rect)); in dml21_add_phantom_plane()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/sspl/ |
| H A D | dc_spl_types.h | 442 struct spl_rect src_rect; // Source rect member 469 struct spl_rect src_rect; // Source rect member
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn10/ |
| H A D | dcn10_resource.c | 1146 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane() 1178 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global() 1179 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global() 1182 if (plane->src_rect.width >= 3840) in dcn10_validate_global() 1186 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dcn315/ |
| H A D | dcn315_resource.c | 1652 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in allow_pixel_rate_crb() 1654 res_ctx->pipe_ctx[i].plane_state->src_rect.height in allow_pixel_rate_crb() 1710 …split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context() 1759 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context() 1791 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_populate_dml_pipes_from_context() 1796 && pipe->plane_state->src_rect.width <= 5120 in dcn315_populate_dml_pipes_from_context()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
| H A D | dcn32_clk_mgr.c | 493 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.15/drivers/staging/vc04_services/vchiq-mmal/ |
| H A D | mmal-parameters.h | 665 struct vchiq_mmal_rect src_rect; member
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/dml2/ |
| H A D | dml2_mall_phantom.c | 760 …memcpy(&phantom_plane->src_rect, &curr_pipe->plane_state->src_rect, sizeof(phantom_plane->src_rect… in enable_phantom_plane()
|
| /linux-6.15/drivers/gpu/drm/amd/display/dc/resource/dce110/ |
| H A D | dce110_resource.c | 1040 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()
|