Lines Matching refs:rects

452  * @vclips: Array of clip rects.
453 * @num_clips: Number of clip rects in @vclips.
781 * @num_rects: number of drm_rect in rects
782 * @rects: array of drm_rect representing the topology to validate indexed by
790 struct drm_rect *rects)
803 (drm_rect_width(&rects[i]) > dev_priv->stdu_max_width ||
804 drm_rect_height(&rects[i]) > dev_priv->stdu_max_height)) {
810 if (rects[i].x2 > bounding_box.x2)
811 bounding_box.x2 = rects[i].x2;
813 if (rects[i].y2 > bounding_box.y2)
814 bounding_box.y2 = rects[i].y2;
816 total_pixels += (u64) drm_rect_width(&rects[i]) *
817 (u64) drm_rect_height(&rects[i]);
941 struct drm_rect *rects;
946 rects = kcalloc(dev->mode_config.num_crtc, sizeof(struct drm_rect),
948 if (!rects)
967 rects[i].x1 = du->gui_x;
968 rects[i].y1 = du->gui_y;
969 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay;
970 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay;
972 rects[i].x1 = 0;
973 rects[i].y1 = 0;
974 rects[i].x2 = 0;
975 rects[i].y2 = 0;
1011 rects);
1014 kfree(rects);
1240 * @num_rects: number of drm_rect in rects
1241 * @rects: toplogy to update
1244 unsigned int num_rects, struct drm_rect *rects)
1273 du->pref_width = drm_rect_width(&rects[du->unit]);
1274 du->pref_height = drm_rect_height(&rects[du->unit]);
1276 du->gui_x = rects[du->unit].x1;
1277 du->gui_y = rects[du->unit].y1;
1404 struct drm_vmw_rect *rects;
1420 rects = kcalloc(arg->num_outputs, sizeof(struct drm_vmw_rect),
1422 if (unlikely(!rects))
1425 user_rects = (void __user *)(unsigned long)arg->rects;
1426 ret = copy_from_user(rects, user_rects, rects_size);
1428 DRM_ERROR("Failed to get rects.\n");
1433 drm_rects = (struct drm_rect *)rects;
1440 if ((rects[i].x + rects[i].w > INT_MAX) ||
1441 (rects[i].y + rects[i].h > INT_MAX)) {
1446 curr_rect = rects[i];
1480 kfree(rects);
1494 * @dest_x: X coordinate offset for the crtc / destination clip rects.
1495 * @dest_y: Y coordinate offset for the crtc / destination clip rects.
1498 * Used to skip a predetermined number of clip rects.