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