Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/media/platform/st/sti/bdisp/
A Dbdisp-hw.c779 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.3-rc2/drivers/gpu/drm/amd/display/dc/core/
A 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()
A Ddc.c2425 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type()
2426 || u->scaling_info->src_rect.height != u->surface->src_rect.height) { in get_scaling_info_update_type()
2429 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type()
2430 || u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type()
2435 if (u->scaling_info->src_rect.x != u->surface->src_rect.x in get_scaling_info_update_type()
2436 || u->scaling_info->src_rect.y != u->surface->src_rect.y in get_scaling_info_update_type()
2787 surface->src_rect = in copy_surface_update_to_plane()
2788 srf_update->scaling_info->src_rect; in copy_surface_update_to_plane()
3043 if ((srf_updates[i].surface->src_rect.width == 0 || in update_planes_and_stream_state()
3044 srf_updates[i].surface->src_rect.height == 0 || in update_planes_and_stream_state()
[all …]
A Ddc_resource.c884 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios()
1001 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports()
1105 !plane_state->src_rect.width || in resource_build_scaling_params()
1106 !plane_state->src_rect.height) { in resource_build_scaling_params()
1254 plane_state->src_rect.height, in resource_build_scaling_params()
1255 plane_state->src_rect.width, in resource_build_scaling_params()
1256 plane_state->src_rect.x, in resource_build_scaling_params()
1257 plane_state->src_rect.y, in resource_build_scaling_params()
3700 if (plane_state->src_rect.width == 0 || plane_state->src_rect.height == 0 || in dc_validate_plane()
/linux-6.3-rc2/drivers/media/test-drivers/vivid/
A Dvivid-vid-cap.c370 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
400 dev->src_rect.width = 720; in vivid_update_format_cap()
402 dev->src_rect.height = 480; in vivid_update_format_cap()
406 dev->src_rect.height = 576; in vivid_update_format_cap()
413 dev->src_rect.width = bt->width; in vivid_update_format_cap()
453 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
454 dev->crop_cap = dev->src_rect; in vivid_update_format_cap()
604 w = dev->src_rect.width; in vivid_try_fmt_vid_cap()
605 h = dev->src_rect.height; in vivid_try_fmt_vid_cap()
902 sel->r = dev->src_rect; in vivid_vid_cap_g_selection()
[all …]
A 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()
A Dvivid-core.h402 struct v4l2_rect src_rect; member
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/dpu1/
A Ddpu_plane.c158 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_calc_bw()
293 drm_rect_width(&pipe_cfg->src_rect)); in _dpu_plane_set_qos_lut()
713 pipe_cfg.src_rect.x1 = 0; in _dpu_plane_color_fill()
714 pipe_cfg.src_rect.y1 = 0; in _dpu_plane_color_fill()
715 pipe_cfg.src_rect.x2 = in _dpu_plane_color_fill()
717 pipe_cfg.src_rect.y2 = in _dpu_plane_color_fill()
1151 pipe_cfg.src_rect = state->src; in dpu_plane_sspp_atomic_update()
1154 pipe_cfg.src_rect.x1 >>= 16; in dpu_plane_sspp_atomic_update()
1155 pipe_cfg.src_rect.x2 >>= 16; in dpu_plane_sspp_atomic_update()
1156 pipe_cfg.src_rect.y1 >>= 16; in dpu_plane_sspp_atomic_update()
[all …]
A Ddpu_hw_sspp.c478 src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1; in dpu_hw_sspp_setup_rects()
479 src_size = (drm_rect_height(&cfg->src_rect) << 16) | in dpu_hw_sspp_setup_rects()
480 drm_rect_width(&cfg->src_rect); in dpu_hw_sspp_setup_rects()
A Ddpu_hw_sspp.h166 struct drm_rect src_rect; member
A Ddpu_trace.h644 __field_struct( struct drm_rect, src_rect )
658 __entry->src_rect = drm_plane_state_src(state);
673 DRM_RECT_FP_ARG(&__entry->src_rect),
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dml/dcn314/
A Ddcn314_fpu.c307 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn314_populate_dml_pipes_from_context_fpu()
308 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn314_populate_dml_pipes_from_context_fpu()
352 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn314_populate_dml_pipes_from_context_fpu()
354 …} 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.3-rc2/drivers/media/platform/renesas/rcar-vin/
A 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.3-rc2/drivers/gpu/drm/amd/display/dc/dce60/
A 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.3-rc2/drivers/gpu/drm/amd/display/dc/dcn32/
A Ddcn32_resource_helpers.c246 pipe->stream->timing.v_addressable != pipe->plane_state->src_rect.height) { in dcn32_is_center_timing()
387 if (pipe->plane_state->src_rect.width >= 5120 && in dcn32_set_det_allocations()
388 pipe->plane_state->src_rect.height >= 2880) in dcn32_set_det_allocations()
A Ddcn32_hwseq.c1278 phantom_plane->src_rect.x = pipe->plane_state->src_rect.x; in dcn32_update_phantom_vp_position()
1279 phantom_plane->src_rect.y = pipe->plane_state->src_rect.y; in dcn32_update_phantom_vp_position()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/amdgpu_dm/
A Damdgpu_dm_plane.c1065 scaling_info->src_rect.x = state->src_x >> 16; in fill_dc_scaling_info()
1066 scaling_info->src_rect.y = state->src_y >> 16; in fill_dc_scaling_info()
1083 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in fill_dc_scaling_info()
1086 scaling_info->src_rect.width = state->src_w >> 16; in fill_dc_scaling_info()
1087 if (scaling_info->src_rect.width == 0) in fill_dc_scaling_info()
1090 scaling_info->src_rect.height = state->src_h >> 16; in fill_dc_scaling_info()
1091 if (scaling_info->src_rect.height == 0) in fill_dc_scaling_info()
1120 scaling_info->src_rect.width; in fill_dc_scaling_info()
1126 scaling_info->src_rect.height; in fill_dc_scaling_info()
A 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.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/
A Ddcn10_resource.c1161 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane()
1193 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global()
1194 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global()
1197 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
1201 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
A Ddcn10_hw_sequencer.c3441 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn10_set_cursor_position()
3442 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn10_set_cursor_position()
3465 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3467 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3470 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3472 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3489 x_pos += pipe_ctx->plane_state->src_rect.x; in dcn10_set_cursor_position()
3490 y_pos += pipe_ctx->plane_state->src_rect.y; in dcn10_set_cursor_position()
3537 pipe_ctx->plane_state->src_rect.x) { in dcn10_set_cursor_position()
3630 pipe_ctx->plane_state->src_rect.x) { in dcn10_set_cursor_position()
/linux-6.3-rc2/drivers/staging/vc04_services/vchiq-mmal/
A Dmmal-parameters.h665 struct vchiq_mmal_rect src_rect; member
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/
A Ddce110_resource.c1039 if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) || in dce110_validate_plane()
1040 ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height)) in dce110_validate_plane()
1065 if ((plane->src_rect.width > 1920 || in dce110_validate_surface_sets()
1066 plane->src_rect.height > 1080)) in dce110_validate_surface_sets()
A Ddce110_hw_sequencer.c2747 pipe_ctx->plane_state->src_rect.x, in dce110_program_front_end_for_pipe()
2748 pipe_ctx->plane_state->src_rect.y, in dce110_program_front_end_for_pipe()
2749 pipe_ctx->plane_state->src_rect.width, in dce110_program_front_end_for_pipe()
2750 pipe_ctx->plane_state->src_rect.height, in dce110_program_front_end_for_pipe()
2896 pos_cpy.x += pipe_ctx->plane_state->src_rect.x; in dce110_set_cursor_position()
2897 pos_cpy.y += pipe_ctx->plane_state->src_rect.y; in dce110_set_cursor_position()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn31/
A Ddcn31_resource.c1690 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn31_populate_dml_pipes_from_context()
1691 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn31_populate_dml_pipes_from_context()
1733 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn31_populate_dml_pipes_from_context()
1735 …} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120)… in dcn31_populate_dml_pipes_from_context()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/
A Ddc.h1156 struct rect src_rect; member
1237 struct rect src_rect; member

Completed in 88 milliseconds

12