Lines Matching refs:bo_gem
127 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_unref() local
133 if (bo_gem->priv_ptr) { in bo_unref()
134 drm_munmap(bo_gem->priv_ptr, boi->size); in bo_unref()
143 memset(bo_gem, 0, sizeof(struct radeon_bo_gem)); in bo_unref()
144 free(bo_gem); in bo_unref()
150 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_map() local
155 if (bo_gem->map_count++ != 0) { in bo_map()
158 if (bo_gem->priv_ptr) { in bo_map()
181 bo_gem->priv_ptr = ptr; in bo_map()
183 boi->ptr = bo_gem->priv_ptr; in bo_map()
192 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_unmap() local
194 if (--bo_gem->map_count > 0) { in bo_unmap()
310 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; in radeon_gem_name_bo() local
311 return bo_gem->name; in radeon_gem_name_bo()
317 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; in radeon_gem_get_reloc_in_cs() local
318 return &bo_gem->reloc_in_cs; in radeon_gem_get_reloc_in_cs()
324 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; in radeon_gem_get_kernel_name() local
329 if (bo_gem->name) { in radeon_gem_get_kernel_name()
330 *name = bo_gem->name; in radeon_gem_get_kernel_name()
338 bo_gem->name = flink.name; in radeon_gem_get_kernel_name()
363 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; in radeon_gem_prime_share_bo() local
366 ret = drmPrimeHandleToFD(bo_gem->base.bom->fd, bo->handle, DRM_CLOEXEC, handle); in radeon_gem_prime_share_bo()