Lines Matching refs:vmw
86 int vmw_devcaps_create(struct vmw_private *vmw) in vmw_devcaps_create() argument
88 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS); in vmw_devcaps_create()
92 vmw->devcaps = vzalloc(sizeof(uint32_t) * SVGA3D_DEVCAP_MAX); in vmw_devcaps_create()
93 if (!vmw->devcaps) in vmw_devcaps_create()
96 vmw_write(vmw, SVGA_REG_DEV_CAP, i); in vmw_devcaps_create()
97 vmw->devcaps[i] = vmw_read(vmw, SVGA_REG_DEV_CAP); in vmw_devcaps_create()
103 void vmw_devcaps_destroy(struct vmw_private *vmw) in vmw_devcaps_destroy() argument
105 vfree(vmw->devcaps); in vmw_devcaps_destroy()
106 vmw->devcaps = NULL; in vmw_devcaps_destroy()
110 uint32 vmw_devcaps_size(const struct vmw_private *vmw, in vmw_devcaps_size() argument
113 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS); in vmw_devcaps_size()
119 else if (vmw->fifo_mem != NULL) in vmw_devcaps_size()
126 int vmw_devcaps_copy(struct vmw_private *vmw, bool gb_aware, in vmw_devcaps_copy() argument
130 bool gb_objects = !!(vmw->capabilities & SVGA_CAP_GBOBJECTS); in vmw_devcaps_copy()
132 memcpy(dst, vmw->devcaps, dst_size); in vmw_devcaps_copy()
134 ret = vmw_fill_compat_cap(vmw, dst, dst_size); in vmw_devcaps_copy()
137 } else if (vmw->fifo_mem) { in vmw_devcaps_copy()
138 u32 *fifo_mem = vmw->fifo_mem; in vmw_devcaps_copy()