Home
last modified time | relevance | path

Searched refs:vmw (Results 1 – 15 of 15) 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()
165 struct vmw_private *vmw = vmw_priv(crtc->dev); in vmw_vkms_vblank_simulate() local
198 ret = queue_work(vmw->crc_workq, &du->vkms.crc_generator_work); in vmw_vkms_vblank_simulate()
207 vmw_vkms_init(struct vmw_private *vmw) in vmw_vkms_init() argument
214 vmw->vkms_enabled = false; in vmw_vkms_init()
[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.c468 static void vmw_device_fini(struct vmw_private *vmw) in vmw_device_fini() argument
473 vmw_write(vmw, SVGA_REG_SYNC, SVGA_SYNC_GENERIC); in vmw_device_fini()
474 while (vmw_read(vmw, SVGA_REG_BUSY) != 0) in vmw_device_fini()
477 vmw->last_read_seqno = vmw_fence_read(vmw); in vmw_device_fini()
479 vmw_write(vmw, SVGA_REG_CONFIG_DONE, in vmw_device_fini()
480 vmw->config_done_state); in vmw_device_fini()
481 vmw_write(vmw, SVGA_REG_ENABLE, in vmw_device_fini()
482 vmw->enable_state); in vmw_device_fini()
483 vmw_write(vmw, SVGA_REG_TRACES, in vmw_device_fini()
484 vmw->traces_state); in vmw_device_fini()
[all …]
H A Dvmwgfx_drv.h752 bool vmwgfx_supported(struct vmw_private *vmw);
849 int vmw_gem_object_create(struct vmw_private *vmw,
880 extern bool vmw_cmd_supported(struct vmw_private *vmw);
1191 struct vmw_surface *vmw_lookup_surface_for_buffer(struct vmw_private *vmw,
1194 u32 vmw_lookup_surface_handle_for_buffer(struct vmw_private *vmw,
1452 static inline u32 vmw_fifo_mem_read(struct vmw_private *vmw, uint32 fifo_reg) in vmw_fifo_mem_read() argument
1454 BUG_ON(vmw_is_svga_v3(vmw)); in vmw_fifo_mem_read()
1455 return READ_ONCE(*(vmw->fifo_mem + fifo_reg)); in vmw_fifo_mem_read()
1466 static inline void vmw_fifo_mem_write(struct vmw_private *vmw, u32 fifo_reg, in vmw_fifo_mem_write() argument
1469 BUG_ON(vmw_is_svga_v3(vmw)); in vmw_fifo_mem_write()
[all …]
H A Dvmwgfx_vkms.h40 void vmw_vkms_init(struct vmw_private *vmw);
41 void vmw_vkms_cleanup(struct vmw_private *vmw);
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_fence.c84 static u32 vmw_fence_goal_read(struct vmw_private *vmw) in vmw_fence_goal_read() argument
86 if ((vmw->capabilities2 & SVGA_CAP2_EXTRA_REGS) != 0) in vmw_fence_goal_read()
87 return vmw_read(vmw, SVGA_REG_FENCE_GOAL); in vmw_fence_goal_read()
89 return vmw_fifo_mem_read(vmw, SVGA_FIFO_FENCE_GOAL); in vmw_fence_goal_read()
92 static void vmw_fence_goal_write(struct vmw_private *vmw, u32 value) in vmw_fence_goal_write() argument
94 if ((vmw->capabilities2 & SVGA_CAP2_EXTRA_REGS) != 0) in vmw_fence_goal_write()
95 vmw_write(vmw, SVGA_REG_FENCE_GOAL, value); in vmw_fence_goal_write()
97 vmw_fifo_mem_write(vmw, SVGA_FIFO_FENCE_GOAL, value); in vmw_fence_goal_write()
H A Dvmwgfx_bo.c451 int vmw_bo_create(struct vmw_private *vmw, in vmw_bo_create() argument
466 ret = vmw_bo_init(vmw, *p_bo, params, vmw_bo_free); in vmw_bo_create()
816 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); in vmw_bo_placement_set() local
831 drm_warn(&vmw->drm, in vmw_bo_placement_set()
842 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); in vmw_bo_placement_set_default_accelerated() local
845 if (vmw->has_mob) in vmw_bo_placement_set_default_accelerated()
H A Dvmwgfx_blit.c427 struct vmw_private *vmw = in map_external() local
435 drm_dbg_driver(&vmw->drm, in map_external()
462 struct vmw_private *vmw = in vmw_external_bo_copy() local
475 drm_dbg_driver(&vmw->drm, "Wasn't able to map src\n"); in vmw_external_bo_copy()
482 drm_dbg_driver(&vmw->drm, "Wasn't able to map dst\n"); in vmw_external_bo_copy()
H A Dvmwgfx_irq.c35 static u32 vmw_irqflag_fence_goal(struct vmw_private *vmw) in vmw_irqflag_fence_goal() argument
37 if ((vmw->capabilities2 & SVGA_CAP2_EXTRA_REGS) != 0) in vmw_irqflag_fence_goal()
H A Dvmwgfx_gem.c157 int vmw_gem_object_create(struct vmw_private *vmw, in vmw_gem_object_create() argument
161 int ret = vmw_bo_create(vmw, params, p_vbo); in vmw_gem_object_create()
H A Dvmwgfx_surface.c904 vmw_lookup_user_surface_for_buffer(struct vmw_private *vmw, struct vmw_bo *bo, in vmw_lookup_user_surface_for_buffer() argument
917 drm_dbg_driver(&vmw->drm, in vmw_lookup_user_surface_for_buffer()
929 struct vmw_surface *vmw_lookup_surface_for_buffer(struct vmw_private *vmw, in vmw_lookup_surface_for_buffer() argument
934 vmw_lookup_user_surface_for_buffer(vmw, bo, handle); in vmw_lookup_surface_for_buffer()
946 u32 vmw_lookup_surface_handle_for_buffer(struct vmw_private *vmw, in vmw_lookup_surface_handle_for_buffer() argument
951 vmw_lookup_user_surface_for_buffer(vmw, bo, handle); in vmw_lookup_surface_handle_for_buffer()
2229 static SVGA3dSurfaceFormat vmw_format_bpp_to_svga(struct vmw_private *vmw, in vmw_format_bpp_to_svga() argument
2238 if (has_sm4_context(vmw)) in vmw_format_bpp_to_svga()
2242 drm_warn(&vmw->drm, "Unsupported format bpp: %d\n", bpp); in vmw_format_bpp_to_svga()
H A Dvmwgfx_kms.c939 struct vmw_private *vmw = vmw_priv(crtc->dev); in vmw_du_crtc_atomic_check() local
952 drm_dbg_driver(&vmw->drm, in vmw_du_crtc_atomic_check()
1904 struct vmw_private *vmw = vmw_priv(old_state->dev); in vmw_atomic_commit_tail() local
1911 if (vmw->vkms_enabled) { in vmw_atomic_commit_tail()
H A Dvmwgfx_stdu.c1465 struct vmw_private *vmw = vmw_priv(crtc->dev); in vmw_stdu_crtc_atomic_flush() local
1468 if (vmw->vkms_enabled) in vmw_stdu_crtc_atomic_flush()
/linux/Documentation/admin-guide/
H A Dkernel-parameters.txt4287 no-vmw-sched-clock