Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_devcaps.c85 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->devcaps = NULL; in vmw_devcaps_destroy()
109 uint32 vmw_devcaps_size(const struct vmw_private *vmw, in vmw_devcaps_size() argument
[all …]
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()
Dvmwgfx_drv.c464 static void vmw_device_fini(struct vmw_private *vmw) in vmw_device_fini() argument
469 vmw_write(vmw, SVGA_REG_SYNC, SVGA_SYNC_GENERIC); in vmw_device_fini()
470 while (vmw_read(vmw, SVGA_REG_BUSY) != 0) in vmw_device_fini()
473 vmw->last_read_seqno = vmw_fence_read(vmw); in vmw_device_fini()
475 vmw_write(vmw, SVGA_REG_CONFIG_DONE, in vmw_device_fini()
476 vmw->config_done_state); in vmw_device_fini()
477 vmw_write(vmw, SVGA_REG_ENABLE, in vmw_device_fini()
478 vmw->enable_state); in vmw_device_fini()
479 vmw_write(vmw, SVGA_REG_TRACES, in vmw_device_fini()
480 vmw->traces_state); in vmw_device_fini()
[all …]
Dvmwgfx_cmd.c385 struct vmw_private *vmw, in vmw_fifo_res_copy() argument
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() argument
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()
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()
683 (vmw->capabilities & SVGA_CAP_GBOBJECTS) != 0); in vmw_cmd_supported()
[all …]
Dvmwgfx_drv.h1001 extern bool vmw_cmd_supported(struct vmw_private *vmw);
1624 static inline u32 vmw_fifo_mem_read(struct vmw_private *vmw, uint32 fifo_reg) in vmw_fifo_mem_read() argument
1626 BUG_ON(vmw_is_svga_v3(vmw)); in vmw_fifo_mem_read()
1627 return READ_ONCE(*(vmw->fifo_mem + fifo_reg)); in vmw_fifo_mem_read()
1638 static inline void vmw_fifo_mem_write(struct vmw_private *vmw, u32 fifo_reg, in vmw_fifo_mem_write() argument
1641 BUG_ON(vmw_is_svga_v3(vmw)); in vmw_fifo_mem_write()
1642 WRITE_ONCE(*(vmw->fifo_mem + fifo_reg), value); in vmw_fifo_mem_write()
1662 static inline u32 vmw_irq_status_read(struct vmw_private *vmw) in vmw_irq_status_read() argument
1665 if (vmw_is_svga_v3(vmw)) in vmw_irq_status_read()
1666 status = vmw_read(vmw, SVGA_REG_IRQ_STATUS); in vmw_irq_status_read()
[all …]
Dvmwgfx_fence.c85 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()
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()
Dvmwgfx_bo.c449 int vmw_bo_create(struct vmw_private *vmw, in vmw_bo_create() argument
465 ret = vmw_bo_init(vmw, *p_bo, size, in vmw_bo_create()
Dvmwgfx_stdu.c140 static bool vmw_stdu_use_cpu_blit(const struct vmw_private *vmw) in vmw_stdu_use_cpu_blit() argument
142 return !(vmw->capabilities & SVGA_CAP_3D) || vmw->vram_size < (32 * 1024 * 1024); in vmw_stdu_use_cpu_blit()
/linux-6.1.9/Documentation/admin-guide/
Dkernel-parameters.txt3774 no-vmw-sched-clock