Lines Matching refs:rects

1551 					struct drm_rect *rects)  in vmw_kms_check_display_memory()  argument
1564 (drm_rect_width(&rects[i]) > dev_priv->stdu_max_width || in vmw_kms_check_display_memory()
1565 drm_rect_height(&rects[i]) > dev_priv->stdu_max_height)) { in vmw_kms_check_display_memory()
1571 if (rects[i].x2 > bounding_box.x2) in vmw_kms_check_display_memory()
1572 bounding_box.x2 = rects[i].x2; in vmw_kms_check_display_memory()
1574 if (rects[i].y2 > bounding_box.y2) in vmw_kms_check_display_memory()
1575 bounding_box.y2 = rects[i].y2; in vmw_kms_check_display_memory()
1577 total_pixels += (u64) drm_rect_width(&rects[i]) * in vmw_kms_check_display_memory()
1578 (u64) drm_rect_height(&rects[i]); in vmw_kms_check_display_memory()
1702 struct drm_rect *rects; in vmw_kms_check_topology() local
1707 rects = kcalloc(dev->mode_config.num_crtc, sizeof(struct drm_rect), in vmw_kms_check_topology()
1709 if (!rects) in vmw_kms_check_topology()
1728 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
1729 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
1730 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1731 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1733 rects[i].x1 = 0; in vmw_kms_check_topology()
1734 rects[i].y1 = 0; in vmw_kms_check_topology()
1735 rects[i].x2 = 0; in vmw_kms_check_topology()
1736 rects[i].y2 = 0; in vmw_kms_check_topology()
1772 rects); in vmw_kms_check_topology()
1775 kfree(rects); in vmw_kms_check_topology()
2043 unsigned int num_rects, struct drm_rect *rects) in vmw_du_update_layout() argument
2072 du->pref_width = drm_rect_width(&rects[du->unit]); in vmw_du_update_layout()
2073 du->pref_height = drm_rect_height(&rects[du->unit]); in vmw_du_update_layout()
2075 du->gui_x = rects[du->unit].x1; in vmw_du_update_layout()
2076 du->gui_y = rects[du->unit].y1; in vmw_du_update_layout()
2203 struct drm_vmw_rect *rects; in vmw_kms_update_layout_ioctl() local
2219 rects = kcalloc(arg->num_outputs, sizeof(struct drm_vmw_rect), in vmw_kms_update_layout_ioctl()
2221 if (unlikely(!rects)) in vmw_kms_update_layout_ioctl()
2224 user_rects = (void __user *)(unsigned long)arg->rects; in vmw_kms_update_layout_ioctl()
2225 ret = copy_from_user(rects, user_rects, rects_size); in vmw_kms_update_layout_ioctl()
2232 drm_rects = (struct drm_rect *)rects; in vmw_kms_update_layout_ioctl()
2239 if ((rects[i].x + rects[i].w > INT_MAX) || in vmw_kms_update_layout_ioctl()
2240 (rects[i].y + rects[i].h > INT_MAX)) { in vmw_kms_update_layout_ioctl()
2245 curr_rect = rects[i]; in vmw_kms_update_layout_ioctl()
2279 kfree(rects); in vmw_kms_update_layout_ioctl()