Lines Matching refs:src_rect
129 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()
355 ot_params.width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
356 ot_params.height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_set_ot_limit()
537 u32 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
538 u32 src_height = drm_rect_height(&pipe_cfg->src_rect); in _dpu_plane_setup_scaler()
593 pipe_cfg.src_rect.x1 = 0; in _dpu_plane_color_fill_pipe()
594 pipe_cfg.src_rect.y1 = 0; in _dpu_plane_color_fill_pipe()
595 pipe_cfg.src_rect.x2 = in _dpu_plane_color_fill_pipe()
597 pipe_cfg.src_rect.y2 = in _dpu_plane_color_fill_pipe()
753 if (drm_rect_width(&pipe_cfg->src_rect) < min_src_size || in dpu_plane_atomic_check_pipe()
754 drm_rect_height(&pipe_cfg->src_rect) < min_src_size) { in dpu_plane_atomic_check_pipe()
756 DRM_RECT_ARG(&pipe_cfg->src_rect)); in dpu_plane_atomic_check_pipe()
762 (pipe_cfg->src_rect.x1 & 0x1 || in dpu_plane_atomic_check_pipe()
763 pipe_cfg->src_rect.y1 & 0x1 || in dpu_plane_atomic_check_pipe()
764 drm_rect_width(&pipe_cfg->src_rect) & 0x1 || in dpu_plane_atomic_check_pipe()
765 drm_rect_height(&pipe_cfg->src_rect) & 0x1)) { in dpu_plane_atomic_check_pipe()
767 DRM_RECT_ARG(&pipe_cfg->src_rect)); in dpu_plane_atomic_check_pipe()
838 pipe_cfg->src_rect = new_plane_state->src; in dpu_plane_atomic_check()
841 pipe_cfg->src_rect.x1 >>= 16; in dpu_plane_atomic_check()
842 pipe_cfg->src_rect.x2 >>= 16; in dpu_plane_atomic_check()
843 pipe_cfg->src_rect.y1 >>= 16; in dpu_plane_atomic_check()
844 pipe_cfg->src_rect.y2 >>= 16; in dpu_plane_atomic_check()
863 if (drm_rect_width(&pipe_cfg->src_rect) > max_linewidth) { in dpu_plane_atomic_check()
872 DRM_RECT_ARG(&pipe_cfg->src_rect), max_linewidth); in dpu_plane_atomic_check()
876 if (drm_rect_width(&pipe_cfg->src_rect) > 2 * max_linewidth) { in dpu_plane_atomic_check()
878 DRM_RECT_ARG(&pipe_cfg->src_rect), max_linewidth); in dpu_plane_atomic_check()
882 if (drm_rect_width(&pipe_cfg->src_rect) != drm_rect_width(&pipe_cfg->dst_rect) || in dpu_plane_atomic_check()
883 drm_rect_height(&pipe_cfg->src_rect) != drm_rect_height(&pipe_cfg->dst_rect) || in dpu_plane_atomic_check()
888 DRM_RECT_ARG(&pipe_cfg->src_rect), max_linewidth); in dpu_plane_atomic_check()
904 pipe_cfg->src_rect.x2 = (pipe_cfg->src_rect.x1 + pipe_cfg->src_rect.x2) >> 1; in dpu_plane_atomic_check()
906 r_pipe_cfg->src_rect.x1 = pipe_cfg->src_rect.x2; in dpu_plane_atomic_check()
931 ret = dpu_plane_check_inline_rotation(pdpu, sblk, pipe_cfg->src_rect, fmt); in dpu_plane_atomic_check()
1289 drm_printf(p, "\tsrc[0]=" DRM_RECT_FMT "\n", DRM_RECT_ARG(&pipe_cfg->src_rect)); in dpu_plane_atomic_print_state()
1298 drm_printf(p, "\tsrc[1]=" DRM_RECT_FMT "\n", DRM_RECT_ARG(&r_pipe_cfg->src_rect)); in dpu_plane_atomic_print_state()