| /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/media/test-drivers/vivid/ |
| H A D | vivid-vid-cap.c | 360 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() 403 dev->src_rect.width = webcam_sizes[dev->webcam_size_idx].width; in vivid_update_format_cap() 404 dev->src_rect.height = webcam_sizes[dev->webcam_size_idx].height; in vivid_update_format_cap() 412 dev->src_rect.width = 720; in vivid_update_format_cap() 414 dev->src_rect.height = 480; in vivid_update_format_cap() 418 dev->src_rect.height = 576; in vivid_update_format_cap() 425 dev->src_rect.width = bt->width; in vivid_update_format_cap() 426 dev->src_rect in vivid_update_format_cap() [all...] |
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_plane.c | 1155 scaling_info->src_rect.x = state->src_x >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1156 scaling_info->src_rect.y = state->src_y >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1173 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in amdgpu_dm_plane_fill_dc_scaling_info() 1176 scaling_info->src_rect.width = state->src_w >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1177 if (scaling_info->src_rect.width == 0) in amdgpu_dm_plane_fill_dc_scaling_info() 1180 scaling_info->src_rect.height = state->src_h >> 16; in amdgpu_dm_plane_fill_dc_scaling_info() 1181 if (scaling_info->src_rect.height == 0) in amdgpu_dm_plane_fill_dc_scaling_info() 1210 scaling_info->src_rect.width; in amdgpu_dm_plane_fill_dc_scaling_info() 1216 scaling_info->src_rect in amdgpu_dm_plane_fill_dc_scaling_info() [all...] |
| H A D | amdgpu_dm.c | 6514 dc_plane_state->src_rect = scaling_info.src_rect; in fill_dc_dirty_rects() 8376 dc_plane_state->src_rect.height = stream->src.height; in amdgpu_dm_connector_atomic_check() 8377 dc_plane_state->src_rect.width = stream->src.width; in amdgpu_dm_connector_atomic_check()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/ |
| H A D | dml21_utils.c | 300 memcpy(&phantom_plane->src_rect, &main_plane->src_rect, sizeof(phantom_plane->src_rect)); in dml21_add_phantom_plane()
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc.c | 2868 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type() 2869 || u->scaling_info->src_rect.height != u->surface->src_rect.height in get_scaling_info_update_type() 2879 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type() 2880 || u->scaling_info->src_rect.height > u->surface->src_rect.height) in get_scaling_info_update_type() 2886 && (u->scaling_info->dst_rect.width < u->surface->src_rect.width in get_scaling_info_update_type() 2887 || u->scaling_info->dst_rect.height < u->surface->src_rect in get_scaling_info_update_type() [all...] |
| H A D | dc_resource.c | 1218 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios() 1334 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports() 1533 !plane_state->src_rect.width || in resource_build_scaling_params() 1534 !plane_state->src_rect.height) { in resource_build_scaling_params() 1685 "src_rect: height:%d width:%d x:%d y:%d dst_rect: height:%d width:%d x:%d y:%d clip_rect: height:%d width:%d x:%d y:%d\n", in resource_build_scaling_params() 1698 plane_state->src_rect.height, in resource_can_pipe_disable_cursor() 1699 plane_state->src_rect.width, in resource_can_pipe_disable_cursor() 1700 plane_state->src_rect.x, in resource_can_pipe_disable_cursor() 1701 plane_state->src_rect.y, in resource_can_pipe_disable_cursor() 5504 if (plane_state->src_rect in get_link_hwss() [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn315/ |
| H A D | dcn315_resource.c | 1810 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in dcn315_populate_dml_pipes_from_context() 1812 res_ctx->pipe_ctx[i].plane_state->src_rect.height in dcn315_populate_dml_pipes_from_context() 1869 split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); 1918 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_resource_construct() 1949 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_resource_construct() 1953 && pipe->plane_state->src_rect.width <= 5120 in dcn315_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn10/ |
| H A D | dcn10_resource.c | 1184 && plane_state->src_rect.width > 0 in dcn10_validate_plane() 1185 && (unsigned int)plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane() 1217 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global() 1218 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global() 1221 if (plane->src_rect.width >= 3840) in dcn10_validate_global() 1225 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce110/ |
| H A D | dce110_resource.c | 1049 if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) || in dce110_validate_plane() 1050 ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height)) in dce110_validate_plane() 1075 if ((plane->src_rect.width > 1920 || in dce110_validate_surface_sets() 1076 plane->src_rect.height > 1080)) in dce110_validate_surface_sets()
|
| /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/hwss/dce110/ |
| H A D | dce110_hwseq.c | 3187 pipe_ctx->plane_state->src_rect.x, in dce110_power_down_fe() 3188 pipe_ctx->plane_state->src_rect.y, in dce110_power_down_fe() 3189 pipe_ctx->plane_state->src_rect.width, in dce110_power_down_fe() 3190 pipe_ctx->plane_state->src_rect.height, in dce110_power_down_fe() 3346 pos_cpy.x += pipe_ctx->plane_state->src_rect.x; 3347 pos_cpy.y += pipe_ctx->plane_state->src_rect.y; in dce110_set_pipe()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn20/ |
| H A D | dcn20_resource.c | 1893 pipe->plane_state->src_rect.width <= 16 || in dcn20_validate_apply_pipe_split_flags() 1894 pipe->plane_state->src_rect.height <= 16)) in dcn20_validate_apply_pipe_split_flags() 1952 && pipe->plane_state->src_rect.width <= 1920 in dcn20_validate_apply_pipe_split_flags() 1953 && pipe->plane_state->src_rect.height <= 1080) in dcn20_validate_apply_pipe_split_flags()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
| H A D | dcn31_resource.c | 1819 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn31_validate_bandwidth() 1820 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn31_validate_bandwidth() 1861 if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120) { in dcn31_update_bw_bounding_box()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/ |
| H A D | dcn32_resource.c | 1829 memcpy(&phantom_plane->src_rect, &curr_pipe->plane_state->src_rect, sizeof(phantom_plane->src_rect)); in dml1_validate()
|
| /linux/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc.h | 1552 struct rect src_rect; 1933 struct rect src_rect; 1514 struct rect src_rect; global() member 1879 struct rect src_rect; global() member
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/ |
| H A D | dcn316_resource.c | 1831 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn316_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
| H A D | dcn401_hwseq.c | 1155 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn401_check_no_memory_request_for_cab() 1156 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn401_check_no_memory_request_for_cab() 1198 x_pos += pipe_ctx->plane_state->src_rect.x; in dcn401_apply_idle_power_optimizations() 1199 y_pos += pipe_ctx->plane_state->src_rect.y; in dcn401_apply_idle_power_optimizations()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn21/ |
| H A D | dcn21_resource.c | 1392 plane_state->dcc.meta_pitch = ((plane_state->src_rect.width + 1023) / 1024) * 1024; in dcn21_patch_unknown_plane_state()
|
| /linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
| H A D | dcn20_fpu.c | 1640 pipes[pipe_cnt].pipe.src.viewport_width_max = pln->src_rect.width; in dcn20_populate_dml_pipes_from_context() 1641 pipes[pipe_cnt].pipe.src.viewport_height_max = pln->src_rect.height; in dcn20_populate_dml_pipes_from_context()
|