Lines Matching refs:kms
49 nouveau_get_prop(struct kms_driver *kms, unsigned key, unsigned *out) in nouveau_get_prop() argument
62 nouveau_destroy(struct kms_driver *kms) in nouveau_destroy() argument
64 free(kms); in nouveau_destroy()
69 nouveau_bo_create(struct kms_driver *kms, in nouveau_bo_create() argument
114 ret = drmCommandWriteRead(kms->fd, DRM_NOUVEAU_GEM_NEW, &arg, sizeof(arg)); in nouveau_bo_create()
118 bo->base.kms = kms; in nouveau_bo_create()
154 …map = drm_mmap(0, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, bo->map_han… in nouveau_bo_map()
189 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_GEM_CLOSE, &arg); in nouveau_bo_destroy()
200 struct kms_driver *kms; in nouveau_create() local
202 kms = calloc(1, sizeof(*kms)); in nouveau_create()
203 if (!kms) in nouveau_create()
206 kms->fd = fd; in nouveau_create()
208 kms->bo_create = nouveau_bo_create; in nouveau_create()
209 kms->bo_map = nouveau_bo_map; in nouveau_create()
210 kms->bo_unmap = nouveau_bo_unmap; in nouveau_create()
211 kms->bo_get_prop = nouveau_bo_get_prop; in nouveau_create()
212 kms->bo_destroy = nouveau_bo_destroy; in nouveau_create()
213 kms->get_prop = nouveau_get_prop; in nouveau_create()
214 kms->destroy = nouveau_destroy; in nouveau_create()
215 *out = kms; in nouveau_create()