Lines Matching refs:drm_rect
37 * struct drm_rect - two dimensional rectangle
43 struct drm_rect {
48 * DRM_RECT_FMT - printf string for &struct drm_rect
52 * DRM_RECT_ARG - printf arguments for &struct drm_rect
58 * DRM_RECT_FP_FMT - printf string for &struct drm_rect in 16.16 fixed point
62 * DRM_RECT_FP_ARG - printf arguments for &struct drm_rect in 16.16 fixed point
82 static inline void drm_rect_init(struct drm_rect *r, int x, int y,
103 static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh)
120 static inline void drm_rect_translate(struct drm_rect *r, int dx, int dy)
137 static inline void drm_rect_translate_to(struct drm_rect *r, int x, int y)
150 static inline void drm_rect_downscale(struct drm_rect *r, int horz, int vert)
165 static inline int drm_rect_width(const struct drm_rect *r)
177 static inline int drm_rect_height(const struct drm_rect *r)
189 static inline bool drm_rect_visible(const struct drm_rect *r)
202 static inline bool drm_rect_equals(const struct drm_rect *r1,
203 const struct drm_rect *r2)
209 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
210 bool drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst,
211 const struct drm_rect *clip);
212 int drm_rect_calc_hscale(const struct drm_rect *src,
213 const struct drm_rect *dst,
215 int drm_rect_calc_vscale(const struct drm_rect *src,
216 const struct drm_rect *dst,
219 const struct drm_rect *r, bool fixed_point);
220 void drm_rect_rotate(struct drm_rect *r,
223 void drm_rect_rotate_inv(struct drm_rect *r,