Lines Matching refs:kms
51 radeon_get_prop(struct kms_driver *kms, unsigned key, unsigned *out) in radeon_get_prop() argument
64 radeon_destroy(struct kms_driver *kms) in radeon_destroy() argument
66 free(kms); in radeon_destroy()
71 radeon_bo_create(struct kms_driver *kms, in radeon_bo_create() argument
117 ret = drmCommandWriteRead(kms->fd, DRM_RADEON_GEM_CREATE, in radeon_bo_create()
122 bo->base.kms = kms; in radeon_bo_create()
166 ret = drmCommandWriteRead(bo->base.kms->fd, DRM_RADEON_GEM_MMAP, in radeon_bo_map()
172 bo->base.kms->fd, arg.addr_ptr); in radeon_bo_map()
210 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_GEM_CLOSE, &arg); in radeon_bo_destroy()
221 struct kms_driver *kms; in radeon_create() local
223 kms = calloc(1, sizeof(*kms)); in radeon_create()
224 if (!kms) in radeon_create()
227 kms->fd = fd; in radeon_create()
229 kms->bo_create = radeon_bo_create; in radeon_create()
230 kms->bo_map = radeon_bo_map; in radeon_create()
231 kms->bo_unmap = radeon_bo_unmap; in radeon_create()
232 kms->bo_get_prop = radeon_bo_get_prop; in radeon_create()
233 kms->bo_destroy = radeon_bo_destroy; in radeon_create()
234 kms->get_prop = radeon_get_prop; in radeon_create()
235 kms->destroy = radeon_destroy; in radeon_create()
236 *out = kms; in radeon_create()