Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/msm/disp/dpu1/
H A 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()
539 u32 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
540 u32 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
595 pipe_cfg.src_rect.x1 = 0; in _dpu_plane_color_fill_pipe()
596 pipe_cfg.src_rect.y1 = 0; in _dpu_plane_color_fill_pipe()
[all …]
H A Ddpu_hw_sspp.h151 struct drm_rect src_rect; member
367 src_xy = (cfg->src_rect.y1 << 16) | cfg->src_rect.x1; in dpu_hw_setup_rects_impl()
368 src_size = (drm_rect_height(&cfg->src_rect) << 16) | in dpu_hw_setup_rects_impl()
369 drm_rect_width(&cfg->src_rect); in dpu_hw_setup_rects_impl()
H A Ddpu_trace.h661 __field_struct( struct drm_rect, src_rect )
675 __entry->src_rect = drm_plane_state_src(state);
690 DRM_RECT_FP_ARG(&__entry->src_rect),
/linux/drivers/media/platform/st/sti/bdisp/
H A 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/drivers/media/test-drivers/vivid/
H A Dvivid-vid-cap.c360 dev->src_rect.width == 720 && dev->src_rect.height <= 576) in vivid_get_pixel_aspect()
361 return dev->src_rect.height == 480 ? in vivid_get_pixel_aspect()
381 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap()
382 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap()
390 dev->src_rect.width = 720; in vivid_update_format_cap()
392 dev->src_rect.height = 480; in vivid_update_format_cap()
396 dev->src_rect.height = 576; in vivid_update_format_cap()
403 dev->src_rect.width = bt->width; in vivid_update_format_cap()
404 dev->src_rect.height = bt->height; in vivid_update_format_cap()
441 tpg_reset_source(&dev->tpg, dev->src_rect.width, dev->src_rect.height, dev->field_cap); in vivid_update_format_cap()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn351/
H A Ddcn351_fpu.c520 (pipe->plane_state->src_rect.height < in dcn351_populate_dml_pipes_from_context_fpu()
522 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/drivers/gpu/drm/amd/display/dc/dml/dcn35/
H A Ddcn35_fpu.c487 (pipe->plane_state->src_rect.height < in dcn35_populate_dml_pipes_from_context_fpu()
489 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/drivers/gpu/drm/amd/display/dc/resource/dcn32/
H A 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()
H A Ddcn32_resource.c1664 …memcpy(&phantom_plane->src_rect, &curr_pipe->plane_state->src_rect, sizeof(phantom_plane->src_rect in dcn32_enable_phantom_plane()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_plane.c1156 scaling_info->src_rect.x = state->src_x >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1157 scaling_info->src_rect.y = state->src_y >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1174 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in amdgpu_dm_plane_fill_dc_scaling_info()
1177 scaling_info->src_rect.width = state->src_w >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1178 if (scaling_info->src_rect.width == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1181 scaling_info->src_rect.height = state->src_h >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1182 if (scaling_info->src_rect.height == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1211 scaling_info->src_rect.width; in amdgpu_dm_plane_fill_dc_scaling_info()
1217 scaling_info->src_rect.height; in amdgpu_dm_plane_fill_dc_scaling_info()
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc.c2795 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type()
2796 || u->scaling_info->src_rect.height != u->surface->src_rect.height in get_scaling_info_update_type()
2806 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type()
2807 || u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type()
2813 && (u->scaling_info->dst_rect.width < u->surface->src_rect.width in get_scaling_info_update_type()
2814 || u->scaling_info->dst_rect.height < u->surface->src_rect.height)) in get_scaling_info_update_type()
2818 if (u->scaling_info->src_rect.width > check_config->max_optimizable_video_width && in get_scaling_info_update_type()
2825 if (u->scaling_info->src_rect.x != u->surface->src_rect.x in get_scaling_info_update_type()
2826 || u->scaling_info->src_rect.y != u->surface->src_rect.y in get_scaling_info_update_type()
3116 surface->src_rect = in copy_surface_update_to_plane()
[all …]
H A Ddc_resource.c1184 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios()
1300 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports()
1499 !plane_state->src_rect.width || in resource_build_scaling_params()
1500 !plane_state->src_rect.height) { in resource_build_scaling_params()
1664 plane_state->src_rect.height, in resource_build_scaling_params()
1665 plane_state->src_rect.width, in resource_build_scaling_params()
1666 plane_state->src_rect.x, in resource_build_scaling_params()
1667 plane_state->src_rect.y, in resource_build_scaling_params()
5198 if (plane_state->src_rect.width == 0 || plane_state->src_rect.height == 0 || in dc_validate_plane()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/
H A Ddcn315_resource.c1656 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in allow_pixel_rate_crb()
1658 res_ctx->pipe_ctx[i].plane_state->src_rect.height in allow_pixel_rate_crb()
1714 …split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1763 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1795 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_populate_dml_pipes_from_context()
1800 && pipe->plane_state->src_rect.width <= 5120 in dcn315_populate_dml_pipes_from_context()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn10/
H A Ddcn10_resource.c1149 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane()
1181 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global()
1182 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global()
1185 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
1189 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/
H A 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/drivers/gpu/drm/amd/display/dc/resource/dce110/
H A Ddce110_resource.c1046 if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) || in dce110_validate_plane()
1047 ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height)) in dce110_validate_plane()
1072 if ((plane->src_rect.width > 1920 || in dce110_validate_surface_sets()
1073 plane->src_rect.height > 1080)) in dce110_validate_surface_sets()
/linux/drivers/platform/raspberrypi/vchiq-mmal/
H A Dmmal-parameters.h665 struct vchiq_mmal_rect src_rect; member
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/
H A Ddcn31_resource.c1666 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn31_populate_dml_pipes_from_context()
1667 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn31_populate_dml_pipes_from_context()
1709 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn31_populate_dml_pipes_from_context()
1711 …} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120)… in dcn31_populate_dml_pipes_from_context()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn10/
H A Ddcn10_hwseq.c3677 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn10_set_cursor_position()
3678 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn10_set_cursor_position()
3701 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3703 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3706 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3708 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3710 clip_x = (clip_x - x_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3712 clip_width = clip_width * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3729 x_pos += pipe_ctx->plane_state->src_rect.x; in dcn10_set_cursor_position()
3730 y_pos += pipe_ctx->plane_state->src_rect.y; in dcn10_set_cursor_position()
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/
H A Ddcn401_clk_mgr.c398 int width = pipe->plane_state->src_rect.width; in dcn401_check_native_scaling()
399 int height = pipe->plane_state->src_rect.height; in dcn401_check_native_scaling()
489 disp_src_width_list[i] = curr_pipe_ctx->plane_state->src_rect.width; in dcn401_auto_dpm_test_log()
490 disp_src_height_list[i] = curr_pipe_ctx->plane_state->src_rect.height; in dcn401_auto_dpm_test_log()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn32/
H A Ddcn32_hwseq.c1450 phantom_plane->src_rect.x = pipe->plane_state->src_rect.x; in dcn32_update_phantom_vp_position()
1451 phantom_plane->src_rect.y = pipe->plane_state->src_rect.y; in dcn32_update_phantom_vp_position()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c2992 pipe_ctx->plane_state->src_rect.x, in dce110_program_front_end_for_pipe()
2993 pipe_ctx->plane_state->src_rect.y, in dce110_program_front_end_for_pipe()
2994 pipe_ctx->plane_state->src_rect.width, in dce110_program_front_end_for_pipe()
2995 pipe_ctx->plane_state->src_rect.height, in dce110_program_front_end_for_pipe()
3141 pos_cpy.x += pipe_ctx->plane_state->src_rect.x; in dce110_set_cursor_position()
3142 pos_cpy.y += pipe_ctx->plane_state->src_rect.y; in dce110_set_cursor_position()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/
H A Ddcn316_resource.c1679 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn316_populate_dml_pipes_from_context()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc.h1470 struct rect src_rect; member
1831 struct rect src_rect; member
/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/
H A Ddcn_calcs.c720 pipe->plane_state->src_rect.width <= 16 || in hack_bounding_box()
721 pipe->plane_state->src_rect.height <= 16)) { in hack_bounding_box()

12