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