Home | History | Annotate | Download | only in libkms

Lines Matching refs:kms

38 exynos_get_prop(struct kms_driver *kms, unsigned key, unsigned *out)
51 exynos_destroy(struct kms_driver *kms)
53 free(kms);
58 exynos_bo_create(struct kms_driver *kms,
98 ret = drmCommandWriteRead(kms->fd, DRM_EXYNOS_GEM_CREATE, &arg, sizeof(arg));
102 bo->base.kms = kms;
142 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg);
146 map = drm_mmap(0, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, arg.offset);
181 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_GEM_CLOSE, &arg);
192 struct kms_driver *kms;
194 kms = calloc(1, sizeof(*kms));
195 if (!kms)
198 kms->fd = fd;
200 kms->bo_create = exynos_bo_create;
201 kms->bo_map = exynos_bo_map;
202 kms->bo_unmap = exynos_bo_unmap;
203 kms->bo_get_prop = exynos_bo_get_prop;
204 kms->bo_destroy = exynos_bo_destroy;
205 kms->get_prop = exynos_get_prop;
206 kms->destroy = exynos_destroy;
207 *out = kms;