Lines Matching refs:r

53 #define DRM_RECT_ARG(r) drm_rect_width(r), drm_rect_height(r), (r)->x1, (r)->y1  argument
66 #define DRM_RECT_FP_ARG(r) \ argument
67 drm_rect_width(r) >> 16, ((drm_rect_width(r) & 0xffff) * 15625) >> 10, \
68 drm_rect_height(r) >> 16, ((drm_rect_height(r) & 0xffff) * 15625) >> 10, \
69 (r)->x1 >> 16, (((r)->x1 & 0xffff) * 15625) >> 10, \
70 (r)->y1 >> 16, (((r)->y1 & 0xffff) * 15625) >> 10
84 static inline void drm_rect_adjust_size(struct drm_rect *r, int dw, int dh) in drm_rect_adjust_size() argument
86 r->x1 -= dw >> 1; in drm_rect_adjust_size()
87 r->y1 -= dh >> 1; in drm_rect_adjust_size()
88 r->x2 += (dw + 1) >> 1; in drm_rect_adjust_size()
89 r->y2 += (dh + 1) >> 1; in drm_rect_adjust_size()
101 static inline void drm_rect_translate(struct drm_rect *r, int dx, int dy) in drm_rect_translate() argument
103 r->x1 += dx; in drm_rect_translate()
104 r->y1 += dy; in drm_rect_translate()
105 r->x2 += dx; in drm_rect_translate()
106 r->y2 += dy; in drm_rect_translate()
117 static inline void drm_rect_downscale(struct drm_rect *r, int horz, int vert) in drm_rect_downscale() argument
119 r->x1 /= horz; in drm_rect_downscale()
120 r->y1 /= vert; in drm_rect_downscale()
121 r->x2 /= horz; in drm_rect_downscale()
122 r->y2 /= vert; in drm_rect_downscale()
132 static inline int drm_rect_width(const struct drm_rect *r) in drm_rect_width() argument
134 return r->x2 - r->x1; in drm_rect_width()
144 static inline int drm_rect_height(const struct drm_rect *r) in drm_rect_height() argument
146 return r->y2 - r->y1; in drm_rect_height()
156 static inline bool drm_rect_visible(const struct drm_rect *r) in drm_rect_visible() argument
158 return drm_rect_width(r) > 0 && drm_rect_height(r) > 0; in drm_rect_visible()
176 bool drm_rect_intersect(struct drm_rect *r, const struct drm_rect *clip);
192 const struct drm_rect *r, bool fixed_point);
193 void drm_rect_rotate(struct drm_rect *r,
196 void drm_rect_rotate_inv(struct drm_rect *r,