Lines Matching defs:rects
1241 * @vclips: Array of clip rects.
1242 * @num_clips: Number of clip rects in @vclips.
1687 * @num_rects: number of drm_rect in rects
1688 * @rects: array of drm_rect representing the topology to validate indexed by
1696 struct drm_rect *rects)
1709 (drm_rect_width(&rects[i]) > dev_priv->stdu_max_width ||
1710 drm_rect_height(&rects[i]) > dev_priv->stdu_max_height)) {
1716 if (rects[i].x2 > bounding_box.x2)
1717 bounding_box.x2 = rects[i].x2;
1719 if (rects[i].y2 > bounding_box.y2)
1720 bounding_box.y2 = rects[i].y2;
1722 total_pixels += (u64) drm_rect_width(&rects[i]) *
1723 (u64) drm_rect_height(&rects[i]);
1847 struct drm_rect *rects;
1852 rects = kcalloc(dev->mode_config.num_crtc, sizeof(struct drm_rect),
1854 if (!rects)
1873 rects[i].x1 = du->gui_x;
1874 rects[i].y1 = du->gui_y;
1875 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay;
1876 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay;
1878 rects[i].x1 = 0;
1879 rects[i].y1 = 0;
1880 rects[i].x2 = 0;
1881 rects[i].y2 = 0;
1917 rects);
1920 kfree(rects);
2161 * @num_rects: number of drm_rect in rects
2162 * @rects: toplogy to update
2165 unsigned int num_rects, struct drm_rect *rects)
2194 du->pref_width = drm_rect_width(&rects[du->unit]);
2195 du->pref_height = drm_rect_height(&rects[du->unit]);
2197 du->gui_x = rects[du->unit].x1;
2198 du->gui_y = rects[du->unit].y1;
2508 struct drm_vmw_rect *rects;
2522 rects = kcalloc(arg->num_outputs, sizeof(struct drm_vmw_rect),
2524 if (unlikely(!rects))
2527 user_rects = (void __user *)(unsigned long)arg->rects;
2528 ret = copy_from_user(rects, user_rects, rects_size);
2530 DRM_ERROR("Failed to get rects.\n");
2535 drm_rects = (struct drm_rect *)rects;
2542 if ((rects[i].x + rects[i].w > INT_MAX) ||
2543 (rects[i].y + rects[i].h > INT_MAX)) {
2548 curr_rect = rects[i];
2582 kfree(rects);
2596 * @dest_x: X coordinate offset for the crtc / destination clip rects.
2597 * @dest_y: Y coordinate offset for the crtc / destination clip rects.
2600 * Used to skip a predetermined number of clip rects.
2750 * @clips: Clip rects in framebuffer (surface) space.
2753 * Used to skip a predetermined number of clip rects.