| /linux/drivers/media/platform/st/sti/bdisp/ |
| H A D | bdisp-hw.c | 765 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/gpu/drm/msm/disp/dpu1/ |
| H A D | dpu_hw_sspp.h | 151 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()
|
| /linux/drivers/gpu/drm/verisilicon/ |
| H A D | vs_plane.c | 111 const struct drm_rect *src_rect) in vs_fb_get_dma_addr() argument 124 src_rect->x1 >> 16); in vs_fb_get_dma_addr() 125 dma_addr += (src_rect->y1 >> 16) * fb->pitches[0]; in vs_fb_get_dma_addr()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_plane.c | 1434 scaling_info->src_rect.x = state->src_x >> 16; in amdgpu_dm_plane_helper_check_state() 1435 scaling_info->src_rect.y = state->src_y >> 16; in amdgpu_dm_plane_helper_check_state() 1452 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in amdgpu_dm_plane_fill_dc_scaling_info() 1455 scaling_info->src_rect.width = state->src_w >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1456 if (scaling_info->src_rect.width == 0) in amdgpu_dm_plane_fill_dc_scaling_info() 1459 scaling_info->src_rect.height = state->src_h >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1460 if (scaling_info->src_rect.height == 0) in amdgpu_dm_plane_fill_dc_scaling_info() 1489 scaling_info->src_rect.width; in amdgpu_dm_plane_fill_dc_scaling_info() 1495 scaling_info->src_rect in amdgpu_dm_plane_fill_dc_scaling_info() [all...] |
| H A D | amdgpu_dm_connector.c | 2193 dc_plane_state->src_rect.height = stream->src.height; in dm_validate_stream_and_context() 2194 dc_plane_state->src_rect.width = stream->src.width; in dm_validate_stream_and_context()
|
| H A D | amdgpu_dm.c | 3075 dc_plane_state->src_rect = scaling_info.src_rect; in fill_dc_plane_attributes()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/ |
| H A D | dcn315_resource.c | 1814 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in allow_pixel_rate_crb() 1816 res_ctx->pipe_ctx[i].plane_state->src_rect.height in allow_pixel_rate_crb() 1873 …split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context() 1922 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context() 1953 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_populate_dml_pipes_from_context() 1957 && pipe->plane_state->src_rect.width <= 5120 in dcn315_populate_dml_pipes_from_context()
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc.c | 2931 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type() 2932 || u->scaling_info->src_rect.height != u->surface->src_rect.height in get_scaling_info_update_type() 2942 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type() 2943 || u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type() 2949 && (u->scaling_info->dst_rect.width < u->surface->src_rect.width in get_scaling_info_update_type() 2950 || u->scaling_info->dst_rect.height < u->surface->src_rect.height)) in get_scaling_info_update_type() 2954 if (u->scaling_info->src_rect.width > (int)check_config->max_optimizable_video_width && in get_scaling_info_update_type() 2961 if (u->scaling_info->src_rect.x != u->surface->src_rect.x in get_scaling_info_update_type() 2962 || u->scaling_info->src_rect.y != u->surface->src_rect.y in get_scaling_info_update_type() 3362 surface->src_rect = in copy_surface_update_to_plane() [all …]
|
| H A D | dc_resource.c | 1255 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios() 1371 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports() 1579 !plane_state->src_rect.width || in resource_build_scaling_params() 1580 !plane_state->src_rect.height) { in resource_build_scaling_params() 1745 plane_state->src_rect.height, in resource_build_scaling_params() 1746 plane_state->src_rect.width, in resource_build_scaling_params() 1747 plane_state->src_rect.x, in resource_build_scaling_params() 1748 plane_state->src_rect.y, in resource_build_scaling_params() 5587 if (plane_state->src_rect.width == 0 || plane_state->src_rect.height == 0 || in dc_validate_plane()
|
| /linux/drivers/platform/raspberrypi/vchiq-mmal/ |
| H A D | mmal-parameters.h | 665 struct vchiq_mmal_rect src_rect; member
|
| /linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn60/ |
| H A D | dcn60_clk_mgr.c | 170 int width = pipe->plane_state->src_rect.width; in dcn60_check_native_scaling() 171 int height = pipe->plane_state->src_rect.height; in dcn60_check_native_scaling() 906 disp_src_width_list[i] = curr_pipe_ctx->plane_state->src_rect.width; in dcn60_auto_dpm_test_log() 907 disp_src_height_list[i] = curr_pipe_ctx->plane_state->src_rect.height; in dcn60_auto_dpm_test_log()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
| H A D | dcn31_resource.c | 1823 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn31_populate_dml_pipes_from_context() 1824 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn31_populate_dml_pipes_from_context() 1865 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/resource/dcn32/ |
| H A D | dcn32_resource.c | 1831 …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/dc/resource/dcn316/ |
| H A D | dcn316_resource.c | 1835 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn316_populate_dml_pipes_from_context()
|