Lines Matching refs:drm_rect
46 struct drm_rect { struct
60 #define DRM_RECT_INIT(x, y, w, h) ((struct drm_rect){ \ argument
101 static inline void drm_rect_init(struct drm_rect *r, int x, int y, in drm_rect_init()
122 static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh) in drm_rect_adjust_size()
139 static inline void drm_rect_translate(struct drm_rect *r, int dx, int dy) in drm_rect_translate()
156 static inline void drm_rect_translate_to(struct drm_rect *r, int x, int y) in drm_rect_translate_to()
169 static inline void drm_rect_downscale(struct drm_rect *r, int horz, int vert) in drm_rect_downscale()
184 static inline int drm_rect_width(const struct drm_rect *r) in drm_rect_width()
196 static inline int drm_rect_height(const struct drm_rect *r) in drm_rect_height()
208 static inline bool drm_rect_visible(const struct drm_rect *r) in drm_rect_visible()
221 static inline bool drm_rect_equals(const struct drm_rect *r1, in drm_rect_equals()
222 const struct drm_rect *r2) in drm_rect_equals()
233 static inline void drm_rect_fp_to_int(struct drm_rect *dst, in drm_rect_fp_to_int()
234 const struct drm_rect *src) in drm_rect_fp_to_int()
249 static inline bool drm_rect_overlap(const struct drm_rect *a, in drm_rect_overlap()
250 const struct drm_rect *b) in drm_rect_overlap()
256 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
257 bool drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst,
258 const struct drm_rect *clip);
259 int drm_rect_calc_hscale(const struct drm_rect *src,
260 const struct drm_rect *dst,
262 int drm_rect_calc_vscale(const struct drm_rect *src,
263 const struct drm_rect *dst,
266 const struct drm_rect *r, bool fixed_point);
267 void drm_rect_rotate(struct drm_rect *r,
270 void drm_rect_rotate_inv(struct drm_rect *r,