Lines Matching refs:drm_rect
41 struct drm_rect { struct
57 static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh) in drm_rect_adjust_size() argument
74 static inline void drm_rect_translate(struct drm_rect *r, int dx, int dy) in drm_rect_translate()
90 static inline void drm_rect_downscale(struct drm_rect *r, int horz, int vert) in drm_rect_downscale()
105 static inline int drm_rect_width(const struct drm_rect *r) in drm_rect_width()
117 static inline int drm_rect_height(const struct drm_rect *r) in drm_rect_height()
129 static inline bool drm_rect_visible(const struct drm_rect *r) in drm_rect_visible()
142 static inline bool drm_rect_equals(const struct drm_rect *r1, in drm_rect_equals()
143 const struct drm_rect *r2) in drm_rect_equals()
149 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
150 bool drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst,
151 const struct drm_rect *clip,
153 int drm_rect_calc_hscale(const struct drm_rect *src,
154 const struct drm_rect *dst,
156 int drm_rect_calc_vscale(const struct drm_rect *src,
157 const struct drm_rect *dst,
159 int drm_rect_calc_hscale_relaxed(struct drm_rect *src,
160 struct drm_rect *dst,
162 int drm_rect_calc_vscale_relaxed(struct drm_rect *src,
163 struct drm_rect *dst,
165 void drm_rect_debug_print(const struct drm_rect *r, bool fixed_point);
166 void drm_rect_rotate(struct drm_rect *r,
169 void drm_rect_rotate_inv(struct drm_rect *r,