Lines Matching refs:bo_gem
127 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi;
132 if (bo_gem->priv_ptr) {
133 drm_munmap(bo_gem->priv_ptr, boi->size);
138 memset(bo_gem, 0, sizeof(struct radeon_bo_gem));
139 free(bo_gem);
145 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi;
150 if (bo_gem->map_count++ != 0) {
153 if (bo_gem->priv_ptr) {
176 bo_gem->priv_ptr = ptr;
178 boi->ptr = bo_gem->priv_ptr;
187 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi;
189 if (--bo_gem->map_count > 0) {
305 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
306 return bo_gem->name;
312 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
313 return &bo_gem->reloc_in_cs;
319 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
324 if (bo_gem->name) {
325 *name = bo_gem->name;
333 bo_gem->name = flink.name;
358 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
361 ret = drmPrimeHandleToFD(bo_gem->base.bom->fd, bo->handle, DRM_CLOEXEC, handle);