Lines Matching refs:kms
38 exynos_get_prop(struct kms_driver *kms, unsigned key, unsigned *out) in exynos_get_prop() argument
51 exynos_destroy(struct kms_driver *kms) in exynos_destroy() argument
53 free(kms); in exynos_destroy()
58 exynos_bo_create(struct kms_driver *kms, in exynos_bo_create() argument
97 ret = drmCommandWriteRead(kms->fd, DRM_EXYNOS_GEM_CREATE, &arg, sizeof(arg)); in exynos_bo_create()
101 bo->base.kms = kms; in exynos_bo_create()
141 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg); in exynos_bo_map()
145 map = drm_mmap(0, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, arg.offset); in exynos_bo_map()
180 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_GEM_CLOSE, &arg); in exynos_bo_destroy()
191 struct kms_driver *kms; in exynos_create() local
193 kms = calloc(1, sizeof(*kms)); in exynos_create()
194 if (!kms) in exynos_create()
197 kms->fd = fd; in exynos_create()
199 kms->bo_create = exynos_bo_create; in exynos_create()
200 kms->bo_map = exynos_bo_map; in exynos_create()
201 kms->bo_unmap = exynos_bo_unmap; in exynos_create()
202 kms->bo_get_prop = exynos_bo_get_prop; in exynos_create()
203 kms->bo_destroy = exynos_bo_destroy; in exynos_create()
204 kms->get_prop = exynos_get_prop; in exynos_create()
205 kms->destroy = exynos_destroy; in exynos_create()
206 *out = kms; in exynos_create()