33 struct drm_file *file_priv)
39 switch (param->
param) {
53 param->
value = dev_priv->
fifo.capabilities;
72 DRM_ERROR(
"Illegal vmwgfx get param request: %d\n",
82 struct drm_file *file_priv)
94 DRM_ERROR(
"Illegal GET_3D_CAP argument.\n");
105 DRM_ERROR(
"Failed to allocate bounce buffer for 3D caps.\n");
118 DRM_ERROR(
"Failed to report 3D caps info.\n");
124 struct drm_file *file_priv)
145 if (clips_ptr ==
NULL) {
146 DRM_ERROR(
"Variable clips_ptr must be specified.\n");
151 clips = kcalloc(num_clips,
sizeof(*clips),
GFP_KERNEL);
153 DRM_ERROR(
"Failed to allocate clip rect list.\n");
158 ret =
copy_from_user(clips, clips_ptr, num_clips *
sizeof(*clips));
160 DRM_ERROR(
"Failed to copy clip rects from userspace.\n");
168 goto out_no_mode_mutex;
173 DRM_ERROR(
"Invalid framebuffer id.\n");
181 goto out_no_ttm_lock;
189 vfb, surface, arg->
sid,
194 vmw_surface_unreference(&surface);
209 struct drm_file *file_priv)
231 if (clips_ptr ==
NULL) {
232 DRM_ERROR(
"Argument clips_ptr must be specified.\n");
237 clips = kcalloc(num_clips,
sizeof(*clips),
GFP_KERNEL);
239 DRM_ERROR(
"Failed to allocate clip rect list.\n");
244 ret =
copy_from_user(clips, clips_ptr, num_clips *
sizeof(*clips));
246 DRM_ERROR(
"Failed to copy clip rects from userspace.\n");
254 goto out_no_mode_mutex;
259 DRM_ERROR(
"Invalid framebuffer id.\n");
266 DRM_ERROR(
"Framebuffer not dmabuf backed.\n");
273 goto out_no_ttm_lock;
304 vmw_priv(file_priv->minor->dev);
327 vmw_priv(file_priv->minor->dev);
330 return drm_read(filp, buffer, count, offset);