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

/linux-master/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, argument
44 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS);
46 return vmw->devcaps[devcap];
H A Dvmwgfx_devcaps.c86 int vmw_devcaps_create(struct vmw_private *vmw) argument
88 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS);
92 vmw->devcaps = vzalloc(sizeof(uint32_t) * SVGA3D_DEVCAP_MAX);
93 if (!vmw->devcaps)
96 vmw_write(vmw, SVGA_REG_DEV_CAP, i);
97 vmw->devcaps[i] = vmw_read(vmw, SVGA_REG_DEV_CAP);
103 void vmw_devcaps_destroy(struct vmw_private *vmw) argument
105 vfree(vmw->devcaps);
106 vmw
110 vmw_devcaps_size(const struct vmw_private *vmw, bool gb_aware) argument
126 vmw_devcaps_copy(struct vmw_private *vmw, bool gb_aware, void *dst, uint32_t dst_size) argument
[all...]
H A Dvmwgfx_vkms.c49 vmw_surface_sync(struct vmw_private *vmw, argument
60 drm_warn(&vmw->drm, "%s: failed reserve\n", __func__);
64 ret = vmw_execbuf_fence_commands(NULL, vmw, &fence, NULL);
66 drm_warn(&vmw->drm, "%s: failed execbuf\n", __func__);
115 struct vmw_private *vmw = vmw_priv(crtc->dev); local
137 if (vmw_surface_sync(vmw, surf)) {
167 struct vmw_private *vmw = vmw_priv(crtc->dev); local
200 ret = queue_work(vmw->crc_workq, &du->vkms.crc_generator_work);
209 vmw_vkms_init(struct vmw_private *vmw) argument
216 vmw
239 vmw_vkms_cleanup(struct vmw_private *vmw) argument
251 struct vmw_private *vmw = vmw_priv(dev); local
285 struct vmw_private *vmw = vmw_priv(dev); local
307 struct vmw_private *vmw = vmw_priv(crtc->dev); local
348 struct vmw_private *vmw = vmw_priv(crtc->dev); local
359 struct vmw_private *vmw = vmw_priv(crtc->dev); local
384 struct vmw_private *vmw = vmw_priv(crtc->dev); local
394 struct vmw_private *vmw = vmw_priv(crtc->dev); local
403 struct vmw_private *vmw = vmw_priv(crtc->dev); local
499 struct vmw_private *vmw = vmw_priv(crtc->dev); local
[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_drv.c469 static void vmw_device_fini(struct vmw_private *vmw) argument
474 vmw_write(vmw, SVGA_REG_SYNC, SVGA_SYNC_GENERIC);
475 while (vmw_read(vmw, SVGA_REG_BUSY) != 0)
478 vmw->last_read_seqno = vmw_fence_read(vmw);
480 vmw_write(vmw, SVGA_REG_CONFIG_DONE,
481 vmw->config_done_state);
482 vmw_write(vmw, SVGA_REG_ENABLE,
483 vmw->enable_state);
484 vmw_write(vmw, SVGA_REG_TRACE
1342 vmwgfx_supported(struct vmw_private *vmw) argument
1444 vmw_debugfs_resource_managers_init(struct vmw_private *vmw) argument
1659 struct vmw_private *vmw; local
[all...]
H A Dvmwgfx_drv.h123 * struct vmw-resource - base class for hardware resources
752 bool vmwgfx_supported(struct vmw_private *vmw);
834 int vmw_gem_object_create(struct vmw_private *vmw,
865 extern bool vmw_cmd_supported(struct vmw_private *vmw);
1434 static inline u32 vmw_fifo_mem_read(struct vmw_private *vmw, uint32 fifo_reg) argument
1436 BUG_ON(vmw_is_svga_v3(vmw));
1437 return READ_ONCE(*(vmw->fifo_mem + fifo_reg));
1448 static inline void vmw_fifo_mem_write(struct vmw_private *vmw, u32 fifo_reg, argument
1451 BUG_ON(vmw_is_svga_v3(vmw));
1452 WRITE_ONCE(*(vmw
1472 vmw_irq_status_read(struct vmw_private *vmw) argument
1482 vmw_irq_status_write(struct vmw_private *vmw, uint32 status) argument
1491 vmw_has_fences(struct vmw_private *vmw) argument
[all...]
H A Dvmwgfx_cmd.c386 struct vmw_private *vmw,
390 u32 *fifo_mem = vmw->fifo_mem;
399 vmw_fifo_mem_write(vmw, SVGA_FIFO_RESERVED, bytes);
408 struct vmw_private *vmw,
416 vmw_fifo_mem_write(vmw, (next_cmd >> 2), *buffer++);
421 vmw_fifo_mem_write(vmw, SVGA_FIFO_NEXT_CMD, next_cmd);
673 * @vmw: The device private structure.
677 bool vmw_cmd_supported(struct vmw_private *vmw) argument
680 (vmw->capabilities & (SVGA_CAP_COMMAND_BUFFERS |
682 if (vmw_is_svga_v3(vmw))
385 vmw_fifo_res_copy(struct vmw_fifo_state *fifo_state, struct vmw_private *vmw, uint32_t next_cmd, uint32_t max, uint32_t min, uint32_t bytes) argument
407 vmw_fifo_slow_copy(struct vmw_fifo_state *fifo_state, struct vmw_private *vmw, uint32_t next_cmd, uint32_t max, uint32_t min, uint32_t bytes) argument
[all...]
H A Dvmwgfx_bo.c365 * vmw_bo_init - Initialize a vmw buffer object
411 int vmw_bo_create(struct vmw_private *vmw, argument
426 ret = vmw_bo_init(vmw, *p_bo, params, vmw_bo_free);
595 * vmw_user_bo_lookup - Look up a vmw user buffer object from a handle.
603 * The vmw buffer object pointer will be refcounted (both ttm and gem)
822 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); local
837 drm_warn(&vmw->drm,
848 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); local
851 if (vmw->has_mob)
H A Dvmwgfx_irq.c35 static u32 vmw_irqflag_fence_goal(struct vmw_private *vmw) argument
37 if ((vmw->capabilities2 & SVGA_CAP2_EXTRA_REGS) != 0)
H A Dvmwgfx_fence.c85 static u32 vmw_fence_goal_read(struct vmw_private *vmw) argument
87 if ((vmw->capabilities2 & SVGA_CAP2_EXTRA_REGS) != 0)
88 return vmw_read(vmw, SVGA_REG_FENCE_GOAL);
90 return vmw_fifo_mem_read(vmw, SVGA_FIFO_FENCE_GOAL);
93 static void vmw_fence_goal_write(struct vmw_private *vmw, u32 value) argument
95 if ((vmw->capabilities2 & SVGA_CAP2_EXTRA_REGS) != 0)
96 vmw_write(vmw, SVGA_REG_FENCE_GOAL, value);
98 vmw_fifo_mem_write(vmw, SVGA_FIFO_FENCE_GOAL, value);
H A Dvmwgfx_gem.c103 int vmw_gem_object_create(struct vmw_private *vmw, argument
107 int ret = vmw_bo_create(vmw, params, p_vbo);
H A Dvmwgfx_kms.c934 struct vmw_private *vmw = vmw_priv(crtc->dev); local
947 drm_dbg_driver(&vmw->drm,
979 * vmw-specific) for the specified crtc.
1006 * vmw_du_crtc_reset - creates a blank vmw crtc state
1040 * Destroys the crtc state (both common and vmw-specific) for the
1056 * vmw-specific) for the specified plane.
1092 * vmw_du_plane_reset - creates a blank vmw plane state
1121 * Destroys the plane state (both common and vmw-specific) for the
1146 * vmw-specific) for the specified connector.
1173 * vmw_du_connector_reset - creates a blank vmw connecto
2041 struct vmw_private *vmw = vmw_priv(old_state->dev); local
[all...]
H A Dvmwgfx_stdu.c1419 struct vmw_private *vmw = vmw_priv(crtc->dev); local
1422 if (vmw->vkms_enabled)

Completed in 208 milliseconds