Lines Matching refs:vmw
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->devcaps = NULL; in vmw_devcaps_destroy()
109 uint32 vmw_devcaps_size(const struct vmw_private *vmw, in vmw_devcaps_size() argument
112 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS); in vmw_devcaps_size()
118 else if (vmw->fifo_mem != NULL) in vmw_devcaps_size()
125 int vmw_devcaps_copy(struct vmw_private *vmw, bool gb_aware, in vmw_devcaps_copy() argument
129 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS); in vmw_devcaps_copy()
131 memcpy(dst, vmw->devcaps, dst_size); in vmw_devcaps_copy()
133 ret = vmw_fill_compat_cap(vmw, dst, dst_size); in vmw_devcaps_copy()
136 } else if (vmw->fifo_mem) { in vmw_devcaps_copy()
137 u32 *fifo_mem = vmw->fifo_mem; in vmw_devcaps_copy()