Lines Matching refs:vmw
85 int vmw_devcaps_create(struct vmw_private *vmw)
87 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS);
91 vmw->devcaps = vzalloc(sizeof(uint32_t) * SVGA3D_DEVCAP_MAX);
92 if (!vmw->devcaps)
95 vmw_write(vmw, SVGA_REG_DEV_CAP, i);
96 vmw->devcaps[i] = vmw_read(vmw, SVGA_REG_DEV_CAP);
102 void vmw_devcaps_destroy(struct vmw_private *vmw)
104 vfree(vmw->devcaps);
105 vmw->devcaps = NULL;
109 uint32 vmw_devcaps_size(const struct vmw_private *vmw,
112 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS);
118 else if (vmw->fifo_mem != NULL)
125 int vmw_devcaps_copy(struct vmw_private *vmw, bool gb_aware,
129 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS);
131 memcpy(dst, vmw->devcaps, dst_size);
133 ret = vmw_fill_compat_cap(vmw, dst, dst_size);
136 } else if (vmw->fifo_mem) {
137 u32 *fifo_mem = vmw->fifo_mem;