Home | History | Annotate | Download | only in libkms

Lines Matching defs:kms

50 vmwgfx_get_prop(struct kms_driver *kms, unsigned key, unsigned *out)
63 vmwgfx_destroy(struct kms_driver *kms)
65 free(kms);
70 vmwgfx_bo_create(struct kms_driver *kms,
102 bo->base.kms = kms;
105 ret = drmCommandWriteRead(bo->base.kms->fd,
149 map = drm_mmap(NULL, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, bo->map_handle);
182 drmCommandWrite(bo->base.kms->fd, DRM_VMW_UNREF_DMABUF, &arg, sizeof(arg));
191 struct kms_driver *kms;
193 kms = calloc(1, sizeof(*kms));
194 if (!kms)
197 kms->fd = fd;
199 kms->bo_create = vmwgfx_bo_create;
200 kms->bo_map = vmwgfx_bo_map;
201 kms->bo_unmap = vmwgfx_bo_unmap;
202 kms->bo_get_prop = vmwgfx_bo_get_prop;
203 kms->bo_destroy = vmwgfx_bo_destroy;
204 kms->get_prop = vmwgfx_get_prop;
205 kms->destroy = vmwgfx_destroy;
206 *out = kms;