Home
last modified time | relevance | path

Searched refs:vmw (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_vkms.c48 vmw_surface_sync(struct vmw_private *vmw, in vmw_surface_sync() argument
59 drm_warn(&vmw->drm, "%s: failed reserve\n", __func__); in vmw_surface_sync()
63 ret = vmw_execbuf_fence_commands(NULL, vmw, &fence, NULL); in vmw_surface_sync()
65 drm_warn(&vmw->drm, "%s: failed execbuf\n", __func__); in vmw_surface_sync()
112 struct vmw_private *vmw = vmw_priv(crtc->dev); in crc_generate_worker() local
134 if (vmw_surface_sync(vmw, surf)) { in crc_generate_worker()
164 struct vmw_private *vmw = vmw_priv(crtc->dev); in vmw_vkms_handle_vblank_timeout() local
190 ret = queue_work(vmw->crc_workq, &du->vkms.crc_generator_work); in vmw_vkms_handle_vblank_timeout()
199 vmw_vkms_init(struct vmw_private *vmw) in vmw_vkms_init() argument
206 vmw in vmw_vkms_init()
229 vmw_vkms_cleanup(struct vmw_private * vmw) vmw_vkms_cleanup() argument
241 struct vmw_private *vmw = vmw_priv(crtc->dev); vmw_vkms_get_vblank_timestamp() local
255 struct vmw_private *vmw = vmw_priv(dev); vmw_vkms_enable_vblank() local
267 struct vmw_private *vmw = vmw_priv(crtc->dev); vmw_vkms_disable_vblank() local
298 struct vmw_private *vmw = vmw_priv(crtc->dev); vmw_vkms_crtc_cleanup() local
313 struct vmw_private *vmw = vmw_priv(crtc->dev); vmw_vkms_crtc_atomic_begin() local
324 struct vmw_private *vmw = vmw_priv(crtc->dev); vmw_vkms_crtc_atomic_flush() local
349 struct vmw_private *vmw = vmw_priv(crtc->dev); vmw_vkms_crtc_atomic_enable() local
359 struct vmw_private *vmw = vmw_priv(crtc->dev); vmw_vkms_crtc_atomic_disable() local
368 struct vmw_private *vmw = vmw_priv(crtc->dev); is_crc_supported() local
464 struct vmw_private *vmw = vmw_priv(crtc->dev); vmw_vkms_set_crc_surface() local
[all...]
H A Dvmwgfx_devcaps.h35 int vmw_devcaps_create(struct vmw_private *vmw);
36 void vmw_devcaps_destroy(struct vmw_private *vmw);
37 uint32_t vmw_devcaps_size(const struct vmw_private *vmw, bool gb_aware);
38 int vmw_devcaps_copy(struct vmw_private *vmw, bool gb_aware,
41 static inline uint32_t vmw_devcap_get(struct vmw_private *vmw, in vmw_devcap_get() argument
44 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS); in vmw_devcap_get()
46 return vmw->devcaps[devcap]; in vmw_devcap_get()
H A Dvmwgfx_drv.c450 static void vmw_device_fini(struct vmw_private *vmw) in vmw_device_fini() argument
455 vmw_write(vmw, SVGA_REG_SYNC, SVGA_SYNC_GENERIC); in vmw_device_fini()
456 while (vmw_read(vmw, SVGA_REG_BUSY) != 0) in vmw_device_fini()
459 atomic_set(&vmw->last_read_seqno, vmw_fence_read(vmw)); in vmw_device_fini()
461 vmw_write(vmw, SVGA_REG_CONFIG_DONE, in vmw_device_fini()
462 vmw->config_done_state); in vmw_device_fini()
463 vmw_write(vmw, SVGA_REG_ENABLE, in vmw_device_fini()
464 vmw->enable_state); in vmw_device_fini()
465 vmw_write(vmw, SVGA_REG_TRACES, in vmw_device_fini()
466 vmw->traces_state); in vmw_device_fini()
[all …]
H A Dvmwgfx_cursor_plane.c74 vmw_cursor_plane_update_legacy(struct vmw_private *vmw, in vmw_cursor_plane_update_legacy() argument
85 vmw_send_define_cursor_cmd(vmw, surface->snooper.image, in vmw_cursor_plane_update_legacy()
109 vmw_cursor_update_type(struct vmw_private *vmw, struct vmw_user_object *uo)
116 if (vmw->has_mob) { in vmw_cursor_update_mob()
117 if ((vmw->capabilities2 & SVGA_CAP2_CURSOR_MOB) != 0) in vmw_cursor_update_mob()
122 drm_warn_once(&vmw->drm, "Unknown Cursor Type!\n"); in vmw_cursor_update_mob()
126 static void vmw_cursor_update_mob(struct vmw_private *vmw, in vmw_cursor_update_mob()
148 vmw_write(vmw, SVGA_REG_CURSOR_MOBID, vmw_bo_mobid(vps->cursor.mob)); in vmw_cursor_mob_size()
656 struct vmw_private *vmw = vmw_priv(plane->dev); in vmw_cursor_plane_prepare_fb()
671 vps->cursor.update_type = vmw_cursor_update_type(vmw, in vmw_cursor_plane_prepare_fb()
93 vmw_cursor_update_type(struct vmw_private * vmw,struct vmw_plane_state * vps) vmw_cursor_update_type() argument
110 vmw_cursor_update_mob(struct vmw_private * vmw,struct vmw_plane_state * vps) vmw_cursor_update_mob() argument
623 struct vmw_private *vmw = vmw_priv(plane->dev); vmw_cursor_plane_prepare_fb() local
724 struct vmw_private *vmw = vmw_priv(plane->dev); vmw_cursor_plane_atomic_check() local
[all...]
H A Dvmwgfx_cmd.c386 struct vmw_private *vmw, in vmw_fifo_res_copy() argument
390 u32 *fifo_mem = vmw->fifo_mem; in vmw_fifo_res_copy()
399 vmw_fifo_mem_write(vmw, SVGA_FIFO_RESERVED, bytes); in vmw_fifo_res_copy()
408 struct vmw_private *vmw, in vmw_fifo_slow_copy() argument
416 vmw_fifo_mem_write(vmw, (next_cmd >> 2), *buffer++); in vmw_fifo_slow_copy()
421 vmw_fifo_mem_write(vmw, SVGA_FIFO_NEXT_CMD, next_cmd); in vmw_fifo_slow_copy()
677 bool vmw_cmd_supported(struct vmw_private *vmw) in vmw_cmd_supported() argument
680 (vmw->capabilities & (SVGA_CAP_COMMAND_BUFFERS | in vmw_cmd_supported()
682 if (vmw_is_svga_v3(vmw)) in vmw_cmd_supported()
684 (vmw->capabilities & SVGA_CAP_GBOBJECTS) != 0); in vmw_cmd_supported()
[all …]
H A Dvmwgfx_prime.c93 struct vmw_private *vmw = vmw_priv(dev); in vmw_prime_handle_to_fd() local
109 surf_handle = vmw_lookup_surface_handle_for_buffer(vmw, in vmw_prime_handle_to_fd()
H A Dvmwgfx_blit.c428 struct vmw_private *vmw = in map_external() local
436 drm_dbg_driver(&vmw->drm, in map_external()
463 struct vmw_private *vmw = in vmw_external_bo_copy() local
492 drm_dbg_driver(&vmw->drm, "Out-of-bounds external BO copy\n"); in vmw_external_bo_copy()
498 drm_dbg_driver(&vmw->drm, "Wasn't able to map src\n"); in vmw_external_bo_copy()
506 drm_dbg_driver(&vmw->drm, "Wasn't able to map dst\n"); in vmw_external_bo_copy()
H A Dvmwgfx_bo.c400 * vmw_bo_init - Initialize a vmw buffer object
449 int vmw_bo_create(struct vmw_private *vmw, in vmw_bo_create()
464 ret = vmw_bo_init(vmw, *p_bo, params, vmw_bo_free); in vmw_bo_create()
634 * vmw_user_bo_lookup - Look up a vmw user buffer object from a handle.
642 * The vmw buffer object pointer will be refcounted (both ttm and gem) in vmw_user_bo_lookup()
815 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); in vmw_bo_placement_set()
830 drm_warn(&vmw->drm, in vmw_bo_placement_set()
841 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); in vmw_bo_placement_set_default_accelerated()
844 if (vmw->has_mob) in vmw_bo_placement_set_default_accelerated()
446 vmw_bo_create(struct vmw_private * vmw,struct vmw_bo_params * params,struct vmw_bo ** p_bo) vmw_bo_create() argument
812 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); vmw_bo_placement_set() local
838 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); vmw_bo_placement_set_default_accelerated() local
H A Dvmwgfx_surface.c873 vmw_lookup_user_surface_for_buffer(struct vmw_private *vmw, struct vmw_bo *bo, in vmw_lookup_user_surface_for_buffer() argument
886 drm_dbg_driver(&vmw->drm, in vmw_lookup_user_surface_for_buffer()
898 struct vmw_surface *vmw_lookup_surface_for_buffer(struct vmw_private *vmw, in vmw_lookup_surface_for_buffer() argument
903 vmw_lookup_user_surface_for_buffer(vmw, bo, handle); in vmw_lookup_surface_for_buffer()
915 u32 vmw_lookup_surface_handle_for_buffer(struct vmw_private *vmw, in vmw_lookup_surface_handle_for_buffer() argument
920 vmw_lookup_user_surface_for_buffer(vmw, bo, handle); in vmw_lookup_surface_handle_for_buffer()
2227 static SVGA3dSurfaceFormat vmw_format_bpp_to_svga(struct vmw_private *vmw, in vmw_format_bpp_to_svga()
2236 if (has_sm4_context(vmw))
2240 drm_warn(&vmw->drm, "Unsupported format bpp: %d\n", bpp);
2217 vmw_format_bpp_to_svga(struct vmw_private * vmw,int bpp) vmw_format_bpp_to_svga() argument
H A Dvmwgfx_kms.c145 struct vmw_private *vmw = vmw_priv(crtc->dev); in vmw_du_crtc_atomic_check() local
158 drm_info_once(&vmw->drm, in vmw_du_crtc_atomic_check()
189 * vmw-specific) for the specified crtc.
216 * vmw_du_crtc_create_state - creates a blank vmw crtc state
242 * Destroys the crtc state (both common and vmw-specific) for the in vmw_du_crtc_reset()
258 * vmw-specific) for the specified plane. in vmw_du_crtc_destroy_state()
290 * vmw_du_plane_create_state - creates a blank vmw plane state in vmw_du_plane_duplicate_state()
316 * Destroys the plane state (both common and vmw-specific) for the in vmw_du_plane_reset()
337 * vmw-specific) for the specified connector. in vmw_du_plane_destroy_state()
364 * vmw_du_connector_reset - creates a blank vmw connecto in vmw_du_connector_duplicate_state()
1146 struct vmw_private *vmw = vmw_priv(old_state->dev); vmw_atomic_commit_tail() local
[all...]
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt4708 no-vmw-sched-clock