Lines Matching refs:rects

849  * @vclips: Array of clip rects.
850 * @num_clips: Number of clip rects in @vclips.
1438 * @num_rects: number of drm_rect in rects
1439 * @rects: array of drm_rect representing the topology to validate indexed by
1447 struct drm_rect *rects)
1460 (drm_rect_width(&rects[i]) > dev_priv->stdu_max_width ||
1461 drm_rect_height(&rects[i]) > dev_priv->stdu_max_height)) {
1467 if (rects[i].x2 > bounding_box.x2)
1468 bounding_box.x2 = rects[i].x2;
1470 if (rects[i].y2 > bounding_box.y2)
1471 bounding_box.y2 = rects[i].y2;
1473 total_pixels += (u64) drm_rect_width(&rects[i]) *
1474 (u64) drm_rect_height(&rects[i]);
1598 struct drm_rect *rects;
1603 rects = kcalloc(dev->mode_config.num_crtc, sizeof(struct drm_rect),
1605 if (!rects)
1624 rects[i].x1 = du->gui_x;
1625 rects[i].y1 = du->gui_y;
1626 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay;
1627 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay;
1629 rects[i].x1 = 0;
1630 rects[i].y1 = 0;
1631 rects[i].x2 = 0;
1632 rects[i].y2 = 0;
1668 rects);
1671 kfree(rects);
1930 * @num_rects: number of drm_rect in rects
1931 * @rects: toplogy to update
1934 unsigned int num_rects, struct drm_rect *rects)
1963 du->pref_width = drm_rect_width(&rects[du->unit]);
1964 du->pref_height = drm_rect_height(&rects[du->unit]);
1966 du->gui_x = rects[du->unit].x1;
1967 du->gui_y = rects[du->unit].y1;
2252 struct drm_vmw_rect *rects;
2267 rects = kcalloc(arg->num_outputs, sizeof(struct drm_vmw_rect),
2269 if (unlikely(!rects))
2272 user_rects = (void __user *)(unsigned long)arg->rects;
2273 ret = copy_from_user(rects, user_rects, rects_size);
2275 DRM_ERROR("Failed to get rects.\n");
2280 drm_rects = (struct drm_rect *)rects;
2287 if ((rects[i].x + rects[i].w > INT_MAX) ||
2288 (rects[i].y + rects[i].h > INT_MAX)) {
2293 curr_rect = rects[i];
2327 kfree(rects);
2341 * @dest_x: X coordinate offset for the crtc / destination clip rects.
2342 * @dest_y: Y coordinate offset for the crtc / destination clip rects.
2345 * Used to skip a predetermined number of clip rects.
2495 * @clips: Clip rects in framebuffer (surface) space.
2498 * Used to skip a predetermined number of clip rects.