Lines Matching refs:kms
46 vmwgfx_get_prop(struct kms_driver *kms, unsigned key, unsigned *out) in vmwgfx_get_prop() argument
59 vmwgfx_destroy(struct kms_driver *kms) in vmwgfx_destroy() argument
61 free(kms); in vmwgfx_destroy()
66 vmwgfx_bo_create(struct kms_driver *kms, in vmwgfx_bo_create() argument
98 bo->base.kms = kms; in vmwgfx_bo_create()
101 ret = drmCommandWriteRead(bo->base.kms->fd, in vmwgfx_bo_create()
145 …map = drm_mmap(NULL, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, bo->map_… in vmwgfx_bo_map()
178 drmCommandWrite(bo->base.kms->fd, DRM_VMW_UNREF_DMABUF, &arg, sizeof(arg)); in vmwgfx_bo_destroy()
187 struct kms_driver *kms; in vmwgfx_create() local
189 kms = calloc(1, sizeof(*kms)); in vmwgfx_create()
190 if (!kms) in vmwgfx_create()
193 kms->fd = fd; in vmwgfx_create()
195 kms->bo_create = vmwgfx_bo_create; in vmwgfx_create()
196 kms->bo_map = vmwgfx_bo_map; in vmwgfx_create()
197 kms->bo_unmap = vmwgfx_bo_unmap; in vmwgfx_create()
198 kms->bo_get_prop = vmwgfx_bo_get_prop; in vmwgfx_create()
199 kms->bo_destroy = vmwgfx_bo_destroy; in vmwgfx_create()
200 kms->get_prop = vmwgfx_get_prop; in vmwgfx_create()
201 kms->destroy = vmwgfx_destroy; in vmwgfx_create()
202 *out = kms; in vmwgfx_create()