/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_devcaps.c | 85 int vmw_devcaps_create(struct vmw_private *vmw) in vmw_devcaps_create() argument 87 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS); in vmw_devcaps_create() 91 vmw->devcaps = vzalloc(sizeof(uint32_t) * SVGA3D_DEVCAP_MAX); in vmw_devcaps_create() 92 if (!vmw->devcaps) in vmw_devcaps_create() 95 vmw_write(vmw, SVGA_REG_DEV_CAP, i); in vmw_devcaps_create() 96 vmw->devcaps[i] = vmw_read(vmw, SVGA_REG_DEV_CAP); in vmw_devcaps_create() 102 void vmw_devcaps_destroy(struct vmw_private *vmw) in vmw_devcaps_destroy() argument 104 vfree(vmw->devcaps); in vmw_devcaps_destroy() 105 vmw in vmw_devcaps_destroy() 109 vmw_devcaps_size(const struct vmw_private *vmw, bool gb_aware) vmw_devcaps_size() argument 125 vmw_devcaps_copy(struct vmw_private *vmw, bool gb_aware, void *dst, uint32_t dst_size) vmw_devcaps_copy() argument [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 | 467 static void vmw_device_fini(struct vmw_private *vmw) in vmw_device_fini() argument 472 vmw_write(vmw, SVGA_REG_SYNC, SVGA_SYNC_GENERIC); in vmw_device_fini() 473 while (vmw_read(vmw, SVGA_REG_BUSY) != 0) in vmw_device_fini() 476 vmw->last_read_seqno = vmw_fence_read(vmw); in vmw_device_fini() 478 vmw_write(vmw, SVGA_REG_CONFIG_DONE, in vmw_device_fini() 479 vmw->config_done_state); in vmw_device_fini() 480 vmw_write(vmw, SVGA_REG_ENABLE, in vmw_device_fini() 481 vmw->enable_state); in vmw_device_fini() 482 vmw_write(vmw, SVGA_REG_TRACE in vmw_device_fini() 1336 vmwgfx_supported(struct vmw_private *vmw) vmwgfx_supported() argument 1438 vmw_debugfs_resource_managers_init(struct vmw_private *vmw) vmw_debugfs_resource_managers_init() argument 1649 struct vmw_private *vmw; vmw_probe() local [all...] |
H A D | vmwgfx_cmd.c | 385 struct vmw_private *vmw, in vmw_fifo_res_copy() 389 u32 *fifo_mem = vmw->fifo_mem; in vmw_fifo_res_copy() 398 vmw_fifo_mem_write(vmw, SVGA_FIFO_RESERVED, bytes); in vmw_fifo_res_copy() 407 struct vmw_private *vmw, in vmw_fifo_slow_copy() 415 vmw_fifo_mem_write(vmw, (next_cmd >> 2), *buffer++); in vmw_fifo_slow_copy() 420 vmw_fifo_mem_write(vmw, SVGA_FIFO_NEXT_CMD, next_cmd); in vmw_fifo_slow_copy() 672 * @vmw: The device private structure. 676 bool vmw_cmd_supported(struct vmw_private *vmw) in vmw_cmd_supported() argument 679 (vmw->capabilities & (SVGA_CAP_COMMAND_BUFFERS | in vmw_cmd_supported() 681 if (vmw_is_svga_v3(vmw)) in vmw_cmd_supported() 384 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) vmw_fifo_res_copy() argument 406 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) vmw_fifo_slow_copy() argument [all...] |
H A D | vmwgfx_drv.h | 140 * struct vmw-resource - base class for hardware resources 776 bool vmwgfx_supported(struct vmw_private *vmw); 857 int vmw_gem_object_create(struct vmw_private *vmw, 888 extern bool vmw_cmd_supported(struct vmw_private *vmw); 1455 static inline u32 vmw_fifo_mem_read(struct vmw_private *vmw, uint32 fifo_reg) in vmw_fifo_mem_read() argument 1457 BUG_ON(vmw_is_svga_v3(vmw)); in vmw_fifo_mem_read() 1458 return READ_ONCE(*(vmw->fifo_mem + fifo_reg)); in vmw_fifo_mem_read() 1469 static inline void vmw_fifo_mem_write(struct vmw_private *vmw, u32 fifo_reg, in vmw_fifo_mem_write() argument 1472 BUG_ON(vmw_is_svga_v3(vmw)); in vmw_fifo_mem_write() 1473 WRITE_ONCE(*(vmw in vmw_fifo_mem_write() 1493 vmw_irq_status_read(struct vmw_private *vmw) vmw_irq_status_read() argument 1503 vmw_irq_status_write(struct vmw_private *vmw, uint32 status) vmw_irq_status_write() argument 1512 vmw_has_fences(struct vmw_private *vmw) vmw_has_fences() argument [all...] |
H A D | vmwgfx_bo.c | 364 * vmw_bo_init - Initialize a vmw buffer object 409 int vmw_bo_create(struct vmw_private *vmw, in vmw_bo_create() argument 424 ret = vmw_bo_init(vmw, *p_bo, params, vmw_bo_free); in vmw_bo_create() 593 * vmw_user_bo_lookup - Look up a vmw user buffer object from a handle. 601 * The vmw buffer object pointer will be refcounted (both ttm and gem) 803 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); in vmw_bo_placement_set() local 818 drm_warn(&vmw->drm, in vmw_bo_placement_set() 831 struct vmw_private *vmw = vmw_priv_from_ttm(bdev); in vmw_bo_placement_set_default_accelerated() local 834 if (vmw->has_mob) in vmw_bo_placement_set_default_accelerated()
|
H A D | vmwgfx_fence.c | 85 static u32 vmw_fence_goal_read(struct vmw_private *vmw) in vmw_fence_goal_read() argument 87 if ((vmw->capabilities2 & SVGA_CAP2_EXTRA_REGS) != 0) in vmw_fence_goal_read() 88 return vmw_read(vmw, SVGA_REG_FENCE_GOAL); in vmw_fence_goal_read() 90 return vmw_fifo_mem_read(vmw, SVGA_FIFO_FENCE_GOAL); in vmw_fence_goal_read() 93 static void vmw_fence_goal_write(struct vmw_private *vmw, u32 value) in vmw_fence_goal_write() argument 95 if ((vmw->capabilities2 & SVGA_CAP2_EXTRA_REGS) != 0) in vmw_fence_goal_write() 96 vmw_write(vmw, SVGA_REG_FENCE_GOAL, value); in vmw_fence_goal_write() 98 vmw_fifo_mem_write(vmw, SVGA_FIFO_FENCE_GOAL, value); in vmw_fence_goal_write()
|
H A D | vmwgfx_gem.c | 114 int vmw_gem_object_create(struct vmw_private *vmw, in vmw_gem_object_create() argument 118 int ret = vmw_bo_create(vmw, params, p_vbo); in vmw_gem_object_create()
|
H A D | vmwgfx_irq.c | 35 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()
|