Lines Matching refs:rects
88 drm_free(info->rects, info->num_rects * sizeof(struct drm_clip_rect), in drm_rmdraw()
103 struct drm_clip_rect *rects; in drm_update_drawable_info() local
122 rects = NULL; in drm_update_drawable_info()
124 rects = drm_alloc(update->num * sizeof(struct drm_clip_rect), in drm_update_drawable_info()
127 rects = info->rects; in drm_update_drawable_info()
129 if (update->num && !rects) { in drm_update_drawable_info()
135 if (update->num && DRM_COPY_FROM_USER(rects, in drm_update_drawable_info()
139 sizeof(*rects))) { in drm_update_drawable_info()
147 if (rects != info->rects) { in drm_update_drawable_info()
148 drm_free(info->rects, info->num_rects * in drm_update_drawable_info()
152 info->rects = rects; in drm_update_drawable_info()
168 if (rects != info->rects) in drm_update_drawable_info()
169 drm_free(rects, update->num * sizeof(struct drm_clip_rect), in drm_update_drawable_info()
189 drm_free(info->rects, info->num_rects * in drm_drawable_free()