Home | History | Annotate | Download | only in libkms

Lines Matching refs:kms

52 intel_get_prop(struct kms_driver *kms, unsigned key, unsigned *out)
65 intel_destroy(struct kms_driver *kms)
67 free(kms);
72 intel_bo_create(struct kms_driver *kms,
112 ret = drmCommandWriteRead(kms->fd, DRM_I915_GEM_CREATE, &arg, sizeof(arg));
116 bo->base.kms = kms;
130 ret = drmCommandWriteRead(kms->fd, DRM_I915_GEM_SET_TILING, &tile, sizeof(tile));
172 ret = drmCommandWriteRead(bo->base.kms->fd, DRM_I915_GEM_MMAP_GTT, &arg, sizeof(arg));
176 map = drm_mmap(0, bo->base.size, PROT_READ | PROT_WRITE, MAP_SHARED, bo->base.kms->fd, arg.offset);
211 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_GEM_CLOSE, &arg);
222 struct kms_driver *kms;
224 kms = calloc(1, sizeof(*kms));
225 if (!kms)
228 kms->fd = fd;
230 kms->bo_create = intel_bo_create;
231 kms->bo_map = intel_bo_map;
232 kms->bo_unmap = intel_bo_unmap;
233 kms->bo_get_prop = intel_bo_get_prop;
234 kms->bo_destroy = intel_bo_destroy;
235 kms->get_prop = intel_get_prop;
236 kms->destroy = intel_destroy;
237 *out = kms;