Lines Matching refs:rbuf
260 struct radeon_buffer *rbuf; in drm_gem_radeon_alloc() local
262 rbuf = calloc(1, sizeof(*rbuf)); in drm_gem_radeon_alloc()
263 if (!rbuf) in drm_gem_radeon_alloc()
267 rbuf->rbo = radeon_bo_open(info->bufmgr, in drm_gem_radeon_alloc()
269 if (!rbuf->rbo) { in drm_gem_radeon_alloc()
272 free(rbuf); in drm_gem_radeon_alloc()
277 rbuf->rbo = radeon_alloc(info, handle); in drm_gem_radeon_alloc()
278 if (!rbuf->rbo) { in drm_gem_radeon_alloc()
279 free(rbuf); in drm_gem_radeon_alloc()
284 radeon_zero(info, rbuf->rbo); in drm_gem_radeon_alloc()
288 rbuf->base.fb_handle = rbuf->rbo->handle; in drm_gem_radeon_alloc()
290 rbuf->base.handle = handle; in drm_gem_radeon_alloc()
292 return &rbuf->base; in drm_gem_radeon_alloc()
298 struct radeon_buffer *rbuf = (struct radeon_buffer *) bo; in drm_gem_radeon_free() local
299 radeon_bo_unref(rbuf->rbo); in drm_gem_radeon_free()
306 struct radeon_buffer *rbuf = (struct radeon_buffer *) bo; in drm_gem_radeon_map() local
309 err = radeon_bo_map(rbuf->rbo, enable_write); in drm_gem_radeon_map()
311 *addr = rbuf->rbo->ptr; in drm_gem_radeon_map()
319 struct radeon_buffer *rbuf = (struct radeon_buffer *) bo; in drm_gem_radeon_unmap() local
320 radeon_bo_unmap(rbuf->rbo); in drm_gem_radeon_unmap()