Home | History | Annotate | Download | only in vmwgfx

Lines Matching defs:rects

854  * @vclips: Array of clip rects.
855 * @num_clips: Number of clip rects in @vclips.
1450 * @num_rects: number of drm_rect in rects
1451 * @rects: array of drm_rect representing the topology to validate indexed by
1459 struct drm_rect *rects)
1472 (drm_rect_width(&rects[i]) > dev_priv->stdu_max_width ||
1473 drm_rect_height(&rects[i]) > dev_priv->stdu_max_height)) {
1479 if (rects[i].x2 > bounding_box.x2)
1480 bounding_box.x2 = rects[i].x2;
1482 if (rects[i].y2 > bounding_box.y2)
1483 bounding_box.y2 = rects[i].y2;
1485 total_pixels += (u64) drm_rect_width(&rects[i]) *
1486 (u64) drm_rect_height(&rects[i]);
1610 struct drm_rect *rects;
1615 rects = kcalloc(dev->mode_config.num_crtc, sizeof(struct drm_rect),
1617 if (!rects)
1636 rects[i].x1 = du->gui_x;
1637 rects[i].y1 = du->gui_y;
1638 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay;
1639 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay;
1641 rects[i].x1 = 0;
1642 rects[i].y1 = 0;
1643 rects[i].x2 = 0;
1644 rects[i].y2 = 0;
1680 rects);
1683 kfree(rects);
2023 * @num_rects: number of drm_rect in rects
2024 * @rects: toplogy to update
2027 unsigned int num_rects, struct drm_rect *rects)
2056 du->pref_width = drm_rect_width(&rects[du->unit]);
2057 du->pref_height = drm_rect_height(&rects[du->unit]);
2059 du->gui_x = rects[du->unit].x1;
2060 du->gui_y = rects[du->unit].y1;
2347 struct drm_vmw_rect *rects;
2362 rects = kcalloc(arg->num_outputs, sizeof(struct drm_vmw_rect),
2364 if (unlikely(!rects))
2367 user_rects = (void __user *)(unsigned long)arg->rects;
2368 ret = copy_from_user(rects, user_rects, rects_size);
2370 DRM_ERROR("Failed to get rects.\n");
2375 drm_rects = (struct drm_rect *)rects;
2382 if ((rects[i].x + rects[i].w > INT_MAX) ||
2383 (rects[i].y + rects[i].h > INT_MAX)) {
2388 curr_rect = rects[i];
2422 kfree(rects);
2436 * @dest_x: X coordinate offset for the crtc / destination clip rects.
2437 * @dest_y: Y coordinate offset for the crtc / destination clip rects.
2440 * Used to skip a predetermined number of clip rects.
2590 * @clips: Clip rects in framebuffer (surface) space.
2593 * Used to skip a predetermined number of clip rects.