Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/vmwgfx/
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_drv.h742 bool vmwgfx_supported(struct vmw_private *vmw);
868 extern bool vmw_cmd_supported(struct vmw_private *vmw);
1180 struct vmw_surface *vmw_lookup_surface_for_buffer(struct vmw_private *vmw,
1183 u32 vmw_lookup_surface_handle_for_buffer(struct vmw_private *vmw,
1446 static inline u32 vmw_fifo_mem_read(struct vmw_private *vmw, uint32 fifo_reg) in vmw_fifo_mem_read() argument
1448 BUG_ON(vmw_is_svga_v3(vmw)); in vmw_fifo_mem_read()
1449 return READ_ONCE(*(vmw->fifo_mem + fifo_reg)); in vmw_fifo_mem_read()
1461 static inline void vmw_fifo_mem_write(struct vmw_private *vmw, u32 fifo_reg, in vmw_fifo_mem_write() argument
1464 BUG_ON(vmw_is_svga_v3(vmw)); in vmw_fifo_mem_write()
1465 WRITE_ONCE(*(vmw->fifo_mem + fifo_reg), value); in vmw_fifo_mem_write()
[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_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()
93 vmw_cursor_update_type(struct vmw_private *vmw, struct vmw_plane_state *vps) in vmw_cursor_update_type() argument
100 if (vmw->has_mob) { in vmw_cursor_update_type()
101 if ((vmw->capabilities2 & SVGA_CAP2_CURSOR_MOB) != 0) in vmw_cursor_update_type()
106 drm_warn_once(&vmw->drm, "Unknown Cursor Type!\n"); in vmw_cursor_update_type()
110 static void vmw_cursor_update_mob(struct vmw_private *vmw, in vmw_cursor_update_mob() argument
133 vmw_write(vmw, SVGA_REG_CURSOR_MOBID, vmw_bo_mobid(vps->cursor.mob)); in vmw_cursor_update_mob()
602 struct vmw_private *vmw = vmw_priv(plane->dev); in vmw_cursor_plane_prepare_fb() local
622 vps->cursor.update_type = vmw_cursor_update_type(vmw, vps); in vmw_cursor_plane_prepare_fb()
[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_bo.c446 int vmw_bo_create(struct vmw_private *vmw, in vmw_bo_create() argument
461 ret = vmw_bo_init(vmw, *p_bo, params, vmw_bo_free); in vmw_bo_create()
812 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); in vmw_bo_placement_set() local
827 drm_warn(&vmw->drm, in vmw_bo_placement_set()
838 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); in vmw_bo_placement_set_default_accelerated() local
841 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_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()
2205 static SVGA3dSurfaceFormat vmw_format_bpp_to_svga(struct vmw_private *vmw, in vmw_format_bpp_to_svga() argument
2214 if (has_sm4_context(vmw)) in vmw_format_bpp_to_svga()
2218 drm_warn(&vmw->drm, "Unsupported format bpp: %d\n", bpp); in vmw_format_bpp_to_svga()
H A Dvmwgfx_kms.c137 struct vmw_private *vmw = vmw_priv(crtc->dev); in vmw_du_crtc_atomic_check() local
150 drm_dbg_driver(&vmw->drm, in vmw_du_crtc_atomic_check()
1138 struct vmw_private *vmw = vmw_priv(old_state->dev); in vmw_atomic_commit_tail() local
1145 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.txt4713 no-vmw-sched-clock