Home | History | Annotate | Download | only in libkms

Lines Matching refs:kms

53 nouveau_get_prop(struct kms_driver *kms, unsigned key, unsigned *out)
66 nouveau_destroy(struct kms_driver *kms)
68 free(kms);
73 nouveau_bo_create(struct kms_driver *kms,
118 ret = drmCommandWriteRead(kms->fd, DRM_NOUVEAU_GEM_NEW, &arg, sizeof(arg));
122 bo->base.kms = kms;
158 map = drm_mmap(0, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, bo->map_handle);
193 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_GEM_CLOSE, &arg);
204 struct kms_driver *kms;
206 kms = calloc(1, sizeof(*kms));
207 if (!kms)
210 kms->fd = fd;
212 kms->bo_create = nouveau_bo_create;
213 kms->bo_map = nouveau_bo_map;
214 kms->bo_unmap = nouveau_bo_unmap;
215 kms->bo_get_prop = nouveau_bo_get_prop;
216 kms->bo_destroy = nouveau_bo_destroy;
217 kms->get_prop = nouveau_get_prop;
218 kms->destroy = nouveau_destroy;
219 *out = kms;