Home | History | Annotate | Download | only in libkms

Lines Matching defs:kms

55 radeon_get_prop(struct kms_driver *kms, unsigned key, unsigned *out)
68 radeon_destroy(struct kms_driver *kms)
70 free(kms);
75 radeon_bo_create(struct kms_driver *kms,
121 ret = drmCommandWriteRead(kms->fd, DRM_RADEON_GEM_CREATE,
126 bo->base.kms = kms;
170 ret = drmCommandWriteRead(bo->base.kms->fd, DRM_RADEON_GEM_MMAP,
176 bo->base.kms->fd, arg.addr_ptr);
214 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_GEM_CLOSE, &arg);
225 struct kms_driver *kms;
227 kms = calloc(1, sizeof(*kms));
228 if (!kms)
231 kms->fd = fd;
233 kms->bo_create = radeon_bo_create;
234 kms->bo_map = radeon_bo_map;
235 kms->bo_unmap = radeon_bo_unmap;
236 kms->bo_get_prop = radeon_bo_get_prop;
237 kms->bo_destroy = radeon_bo_destroy;
238 kms->get_prop = radeon_get_prop;
239 kms->destroy = radeon_destroy;
240 *out = kms;