Lines Matching +full:top +full:- +full:left
17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
23 #include <linux/iosys-map.h>
57 dev_clips->num_rects = num_clips; in drawable_set_clipping()
58 dev_clips->chunk.next_chunk = 0; in drawable_set_clipping()
59 dev_clips->chunk.prev_chunk = 0; in drawable_set_clipping()
60 dev_clips->chunk.data_size = sizeof(struct qxl_rect) * num_clips; in drawable_set_clipping()
61 return (struct qxl_rect *)dev_clips->chunk.data; in drawable_set_clipping()
88 return -ENOMEM; in make_drawable()
90 drawable->type = type; in make_drawable()
92 drawable->surface_id = surface; /* Only primary for now */ in make_drawable()
93 drawable->effect = QXL_EFFECT_OPAQUE; in make_drawable()
94 drawable->self_bitmap = 0; in make_drawable()
95 drawable->self_bitmap_area.top = 0; in make_drawable()
96 drawable->self_bitmap_area.left = 0; in make_drawable()
97 drawable->self_bitmap_area.bottom = 0; in make_drawable()
98 drawable->self_bitmap_area.right = 0; in make_drawable()
100 drawable->clip.type = SPICE_CLIP_TYPE_NONE; in make_drawable()
109 drawable->surfaces_dest[i] = -1; in make_drawable()
112 drawable->bbox = *rect; in make_drawable()
114 drawable->mm_time = qdev->rom->mm_clock; in make_drawable()
115 qxl_release_unmap(qdev, release, &drawable->release_info); in make_drawable()
142 int left, right, top, bottom; in qxl_draw_dirty_fb() local
147 int stride = fb->pitches[0]; in qxl_draw_dirty_fb()
149 int depth = fb->format->cpp[0] * 8; in qxl_draw_dirty_fb()
161 clips->x1 += dumb_shadow_offset; in qxl_draw_dirty_fb()
162 clips->x2 += dumb_shadow_offset; in qxl_draw_dirty_fb()
164 left = clips->x1; in qxl_draw_dirty_fb()
165 right = clips->x2; in qxl_draw_dirty_fb()
166 top = clips->y1; in qxl_draw_dirty_fb()
167 bottom = clips->y2; in qxl_draw_dirty_fb()
172 left = min_t(int, left, (int)clips_ptr->x1); in qxl_draw_dirty_fb()
173 right = max_t(int, right, (int)clips_ptr->x2); in qxl_draw_dirty_fb()
174 top = min_t(int, top, (int)clips_ptr->y1); in qxl_draw_dirty_fb()
175 bottom = max_t(int, bottom, (int)clips_ptr->y2); in qxl_draw_dirty_fb()
178 width = right - left; in qxl_draw_dirty_fb()
179 height = bottom - top; in qxl_draw_dirty_fb()
196 drawable_rect.left = left; in qxl_draw_dirty_fb()
198 drawable_rect.top = top; in qxl_draw_dirty_fb()
212 left - dumb_shadow_offset, in qxl_draw_dirty_fb()
213 top, width, height, depth, stride); in qxl_draw_dirty_fb()
220 ret = -EINVAL; in qxl_draw_dirty_fb()
225 drawable->clip.type = SPICE_CLIP_TYPE_RECTS; in qxl_draw_dirty_fb()
226 drawable->clip.data = qxl_bo_physical_address(qdev, in qxl_draw_dirty_fb()
229 drawable->u.copy.src_area.top = 0; in qxl_draw_dirty_fb()
230 drawable->u.copy.src_area.bottom = height; in qxl_draw_dirty_fb()
231 drawable->u.copy.src_area.left = 0; in qxl_draw_dirty_fb()
232 drawable->u.copy.src_area.right = width; in qxl_draw_dirty_fb()
234 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; in qxl_draw_dirty_fb()
235 drawable->u.copy.scale_mode = 0; in qxl_draw_dirty_fb()
236 drawable->u.copy.mask.flags = 0; in qxl_draw_dirty_fb()
237 drawable->u.copy.mask.pos.x = 0; in qxl_draw_dirty_fb()
238 drawable->u.copy.mask.pos.y = 0; in qxl_draw_dirty_fb()
239 drawable->u.copy.mask.bitmap = 0; in qxl_draw_dirty_fb()
241 drawable->u.copy.src_bitmap = qxl_bo_physical_address(qdev, dimage->bo, 0); in qxl_draw_dirty_fb()
242 qxl_release_unmap(qdev, release, &drawable->release_info); in qxl_draw_dirty_fb()
246 rects[i].left = clips_ptr->x1; in qxl_draw_dirty_fb()
247 rects[i].right = clips_ptr->x2; in qxl_draw_dirty_fb()
248 rects[i].top = clips_ptr->y1; in qxl_draw_dirty_fb()
249 rects[i].bottom = clips_ptr->y2; in qxl_draw_dirty_fb()