| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_vkms.c | 48 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->vkms_enabled = false; in vmw_vkms_init() [all …]
|
| H A D | vmwgfx_devcaps.h | 35 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 D | vmwgfx_drv.c | 450 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 D | vmwgfx_cursor_plane.c | 74 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() 607 struct vmw_private *vmw = vmw_priv(plane->dev); in vmw_cursor_plane_prepare_fb() local 627 vps->cursor.update_type = vmw_cursor_update_type(vmw, vps); in vmw_cursor_plane_prepare_fb() [all …]
|
| H A D | vmwgfx_cmd.c | 386 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 D | vmwgfx_prime.c | 93 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 D | vmwgfx_blit.c | 428 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 D | vmwgfx_bo.c | 446 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 D | vmwgfx_surface.c | 873 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() 2217 static SVGA3dSurfaceFormat vmw_format_bpp_to_svga(struct vmw_private *vmw, in vmw_format_bpp_to_svga() argument 2226 if (has_sm4_context(vmw)) in vmw_format_bpp_to_svga() 2230 drm_warn(&vmw->drm, "Unsupported format bpp: %d\n", bpp); in vmw_format_bpp_to_svga()
|
| /linux/Documentation/admin-guide/ |
| H A D | kernel-parameters.txt | 4703 no-vmw-sched-clock
|