Home
last modified time | relevance | path

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

12

/Linux-v6.6/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()
355 ot_params.width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
356 ot_params.height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
537 u32 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
538 u32 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
593 pipe_cfg.src_rect.x1 = 0; in _dpu_plane_color_fill_pipe()
594 pipe_cfg.src_rect.y1 = 0; in _dpu_plane_color_fill_pipe()
[all …]
Ddpu_hw_sspp.c437 src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1; in dpu_hw_sspp_setup_rects()
438 src_size = (drm_rect_height(&cfg->src_rect) << 16) | in dpu_hw_sspp_setup_rects()
439 drm_rect_width(&cfg->src_rect); in dpu_hw_sspp_setup_rects()
Ddpu_hw_sspp.h162 struct drm_rect src_rect; member
Ddpu_trace.h621 __field_struct( struct drm_rect, src_rect )
635 __entry->src_rect = drm_plane_state_src(state);
650 DRM_RECT_FP_ARG(&__entry->src_rect),
/Linux-v6.6/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-v6.6/drivers/gpu/drm/amd/display/dc/core/
Ddc_debug.c103 plane_state->src_rect.x, in pre_surface_trace()
104 plane_state->src_rect.y, in pre_surface_trace()
105 plane_state->src_rect.width, in pre_surface_trace()
106 plane_state->src_rect.height, in pre_surface_trace()
277 update->scaling_info->src_rect.x, in update_surface_trace()
278 update->scaling_info->src_rect.y, in update_surface_trace()
279 update->scaling_info->src_rect.width, in update_surface_trace()
280 update->scaling_info->src_rect.height, in update_surface_trace()
Ddc.c2507 && (u->scaling_info->dst_rect.width < u->surface->src_rect.width in get_scaling_info_update_type()
2508 || u->scaling_info->dst_rect.height < u->surface->src_rect.height)) in get_scaling_info_update_type()
2513 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type()
2514 || u->scaling_info->src_rect.height != u->surface->src_rect.height) { in get_scaling_info_update_type()
2517 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type()
2518 || u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type()
2523 if (u->scaling_info->src_rect.x != u->surface->src_rect.x in get_scaling_info_update_type()
2524 || u->scaling_info->src_rect.y != u->surface->src_rect.y in get_scaling_info_update_type()
2791 surface->src_rect = in copy_surface_update_to_plane()
2792 srf_update->scaling_info->src_rect; in copy_surface_update_to_plane()
[all …]
Ddc_resource.c1180 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios()
1296 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports()
1399 !plane_state->src_rect.width || in resource_build_scaling_params()
1400 !plane_state->src_rect.height) { in resource_build_scaling_params()
1522 plane_state->src_rect.height, in resource_build_scaling_params()
1523 plane_state->src_rect.width, in resource_build_scaling_params()
1524 plane_state->src_rect.x, in resource_build_scaling_params()
1525 plane_state->src_rect.y, in resource_build_scaling_params()
3958 if (plane_state->src_rect.width == 0 || plane_state->src_rect.height == 0 || in dc_validate_plane()
/Linux-v6.6/drivers/media/test-drivers/vivid/
Dvivid-vid-cap.c363 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
364 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
384 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap()
385 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
393 dev->src_rect.width = 720; in vivid_update_format_cap()
395 dev->src_rect.height = 480; in vivid_update_format_cap()
399 dev->src_rect.height = 576; in vivid_update_format_cap()
406 dev->src_rect.width = bt->width; in vivid_update_format_cap()
407 dev->src_rect.height = bt->height; in vivid_update_format_cap()
444 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
[all …]
Dvivid-vid-common.c774 if (dev->src_rect.width != dev->sink_rect.width || in vivid_vid_can_loop()
775 dev->src_rect.height != dev->sink_rect.height) in vivid_vid_can_loop()
Dvivid-core.h385 struct v4l2_rect src_rect; member
/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/drivers/gpu/drm/amd/display/dc/dcn32/
Ddcn32_resource_helpers.c240 pipe->stream->timing.v_addressable != pipe->plane_state->src_rect.height) { in dcn32_is_center_timing()
378 if (pipe->plane_state->src_rect.width >= 5120 && in dcn32_set_det_allocations()
379 pipe->plane_state->src_rect.height >= 2880) in dcn32_set_det_allocations()
613 pipe->plane_state->src_rect.width == width && in dcn32_check_native_scaling_for_res()
614 pipe->plane_state->src_rect.height == height && in dcn32_check_native_scaling_for_res()
Ddcn32_hwseq.c1362 phantom_plane->src_rect.x = pipe->plane_state->src_rect.x; in dcn32_update_phantom_vp_position()
1363 phantom_plane->src_rect.y = pipe->plane_state->src_rect.y; in dcn32_update_phantom_vp_position()
/Linux-v6.6/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_plane.c1056 scaling_info->src_rect.x = state->src_x >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1057 scaling_info->src_rect.y = state->src_y >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1074 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in amdgpu_dm_plane_fill_dc_scaling_info()
1077 scaling_info->src_rect.width = state->src_w >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1078 if (scaling_info->src_rect.width == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1081 scaling_info->src_rect.height = state->src_h >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1082 if (scaling_info->src_rect.height == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1111 scaling_info->src_rect.width; in amdgpu_dm_plane_fill_dc_scaling_info()
1117 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-v6.6/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_resource.c1154 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane()
1186 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global()
1187 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global()
1190 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
1194 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
Ddcn10_hw_sequencer.c3421 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn10_set_cursor_position()
3422 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn10_set_cursor_position()
3445 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3447 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3450 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3452 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3469 x_pos += pipe_ctx->plane_state->src_rect.x; in dcn10_set_cursor_position()
3470 y_pos += pipe_ctx->plane_state->src_rect.y; in dcn10_set_cursor_position()
3517 pipe_ctx->plane_state->src_rect.x) { in dcn10_set_cursor_position()
3610 pipe_ctx->plane_state->src_rect.x) { in dcn10_set_cursor_position()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn315/
Ddcn315_resource.c1644 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in allow_pixel_rate_crb()
1646 res_ctx->pipe_ctx[i].plane_state->src_rect.height in allow_pixel_rate_crb()
1702 …split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1752 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1785 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_populate_dml_pipes_from_context()
1790 && pipe->plane_state->src_rect.width <= 5120 in dcn315_populate_dml_pipes_from_context()
/Linux-v6.6/drivers/staging/vc04_services/vchiq-mmal/
Dmmal-parameters.h665 struct vchiq_mmal_rect src_rect; member
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/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()
Ddce110_hw_sequencer.c2769 pipe_ctx->plane_state->src_rect.x, in dce110_program_front_end_for_pipe()
2770 pipe_ctx->plane_state->src_rect.y, in dce110_program_front_end_for_pipe()
2771 pipe_ctx->plane_state->src_rect.width, in dce110_program_front_end_for_pipe()
2772 pipe_ctx->plane_state->src_rect.height, in dce110_program_front_end_for_pipe()
2918 pos_cpy.x += pipe_ctx->plane_state->src_rect.x; in dce110_set_cursor_position()
2919 pos_cpy.y += pipe_ctx->plane_state->src_rect.y; in dce110_set_cursor_position()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_resource.c1660 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn31_populate_dml_pipes_from_context()
1661 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn31_populate_dml_pipes_from_context()
1703 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn31_populate_dml_pipes_from_context()
1705 …} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120)… in dcn31_populate_dml_pipes_from_context()

12