/linux-6.3-rc2/drivers/media/platform/st/sti/bdisp/ |
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.3-rc2/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_debug.c | 103 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 D | dc.c | 2425 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 D | dc_resource.c | 884 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 D | vivid-vid-cap.c | 370 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 D | vivid-vid-common.c | 774 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 D | vivid-core.h | 402 struct v4l2_rect src_rect; member
|
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_plane.c | 158 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 D | dpu_hw_sspp.c | 478 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 D | dpu_hw_sspp.h | 166 struct drm_rect src_rect; member
|
A D | dpu_trace.h | 644 __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 D | dcn314_fpu.c | 307 (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 D | rcar-v4l2.c | 252 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 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.3-rc2/drivers/gpu/drm/amd/display/dc/dcn32/ |
A D | dcn32_resource_helpers.c | 246 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 D | dcn32_hwseq.c | 1278 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 D | amdgpu_dm_plane.c | 1065 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 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.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/ |
A D | dcn10_resource.c | 1161 && 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 D | dcn10_hw_sequencer.c | 3441 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 D | mmal-parameters.h | 665 struct vchiq_mmal_rect src_rect; member
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/ |
A D | dce110_resource.c | 1039 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 D | dce110_hw_sequencer.c | 2747 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 D | dcn31_resource.c | 1690 (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 D | dc.h | 1156 struct rect src_rect; member 1237 struct rect src_rect; member
|