Lines Matching defs:src
624 struct drm_rect src = {
693 hscale = drm_rect_calc_hscale_relaxed(&src, &dst, min_scale, max_scale);
696 vscale = drm_rect_calc_vscale_relaxed(&src, &dst, min_scale, max_scale);
699 visible = drm_rect_clip_scaled(&src, &dst, &clip, hscale, vscale);
708 hscale = drm_rect_calc_hscale(&src, &dst, min_scale, max_scale);
711 drm_rect_debug_print(&src, true);
717 vscale = drm_rect_calc_vscale(&src, &dst, min_scale, max_scale);
720 drm_rect_debug_print(&src, true);
727 drm_rect_adjust_size(&src,
728 drm_rect_width(&dst) * hscale - drm_rect_width(&src),
729 drm_rect_height(&dst) * vscale - drm_rect_height(&src));
731 /* sanity check to make sure the src viewport wasn't enlarged */
732 WARN_ON(src.x1 < (int) src_x ||
733 src.y1 < (int) src_y ||
734 src.x2 > (int) (src_x + src_w) ||
735 src.y2 > (int) (src_y + src_h));
743 src_x = src.x1 >> 16;
744 src_w = drm_rect_width(&src) >> 16;
745 src_y = src.y1 >> 16;
746 src_h = drm_rect_height(&src) >> 16;
753 * Must keep src and dst the
894 /* Make sure we don't try to enable both src & dest simultaneously */