Lines Matching refs:bo_gem
130 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_unref() local
136 if (bo_gem->priv_ptr) { in bo_unref()
137 drm_munmap(bo_gem->priv_ptr, boi->size); in bo_unref()
146 memset(bo_gem, 0, sizeof(struct radeon_bo_gem)); in bo_unref()
147 free(bo_gem); in bo_unref()
153 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_map() local
158 if (bo_gem->map_count++ != 0) { in bo_map()
161 if (bo_gem->priv_ptr) { in bo_map()
184 bo_gem->priv_ptr = ptr; in bo_map()
186 boi->ptr = bo_gem->priv_ptr; in bo_map()
195 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_unmap() local
197 if (--bo_gem->map_count > 0) { in bo_unmap()
313 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; in radeon_gem_name_bo() local
314 return bo_gem->name; in radeon_gem_name_bo()
320 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; in radeon_gem_get_reloc_in_cs() local
321 return &bo_gem->reloc_in_cs; in radeon_gem_get_reloc_in_cs()
327 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; in radeon_gem_get_kernel_name() local
332 if (bo_gem->name) { in radeon_gem_get_kernel_name()
333 *name = bo_gem->name; in radeon_gem_get_kernel_name()
341 bo_gem->name = flink.name; in radeon_gem_get_kernel_name()
366 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; in radeon_gem_prime_share_bo() local
369 ret = drmPrimeHandleToFD(bo_gem->base.bom->fd, bo->handle, DRM_CLOEXEC, handle); in radeon_gem_prime_share_bo()