• Home
  • Raw
  • Download

Lines Matching refs:boi

58 static int bo_wait(struct radeon_bo_int *boi);
121 static void bo_ref(struct radeon_bo_int *boi) in bo_ref() argument
125 static struct radeon_bo *bo_unref(struct radeon_bo_int *boi) in bo_unref() argument
127 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_unref()
129 if (boi->cref) { in bo_unref()
130 return (struct radeon_bo *)boi; in bo_unref()
133 drm_munmap(bo_gem->priv_ptr, boi->size); in bo_unref()
137 drmCloseBufferHandle(boi->bom->fd, boi->handle); in bo_unref()
143 static int bo_map(struct radeon_bo_int *boi, int write) in bo_map() argument
145 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_map()
157 boi->ptr = NULL; in bo_map()
161 args.handle = boi->handle; in bo_map()
163 args.size = (uint64_t)boi->size; in bo_map()
164 r = drmCommandWriteRead(boi->bom->fd, in bo_map()
170 boi, boi->handle, r); in bo_map()
173 ptr = drm_mmap(0, args.size, PROT_READ|PROT_WRITE, MAP_SHARED, boi->bom->fd, args.addr_ptr); in bo_map()
178 boi->ptr = bo_gem->priv_ptr; in bo_map()
179 r = bo_wait(boi); in bo_map()
185 static int bo_unmap(struct radeon_bo_int *boi) in bo_unmap() argument
187 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_unmap()
193 boi->ptr = NULL; in bo_unmap()
197 static int bo_wait(struct radeon_bo_int *boi) in bo_wait() argument
204 args.handle = boi->handle; in bo_wait()
206 ret = drmCommandWrite(boi->bom->fd, DRM_RADEON_GEM_WAIT_IDLE, in bo_wait()
212 static int bo_is_busy(struct radeon_bo_int *boi, uint32_t *domain) in bo_is_busy() argument
217 args.handle = boi->handle; in bo_is_busy()
220 ret = drmCommandWriteRead(boi->bom->fd, DRM_RADEON_GEM_BUSY, in bo_is_busy()
227 static int bo_set_tiling(struct radeon_bo_int *boi, uint32_t tiling_flags, in bo_set_tiling() argument
233 args.handle = boi->handle; in bo_set_tiling()
237 r = drmCommandWriteRead(boi->bom->fd, in bo_set_tiling()
244 static int bo_get_tiling(struct radeon_bo_int *boi, uint32_t *tiling_flags, in bo_get_tiling() argument
250 args.handle = boi->handle; in bo_get_tiling()
252 r = drmCommandWriteRead(boi->bom->fd, in bo_get_tiling()
320 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; in radeon_gem_get_kernel_name() local
329 r = drmIoctl(boi->bom->fd, DRM_IOCTL_GEM_FLINK, &flink); in radeon_gem_get_kernel_name()
341 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; in radeon_gem_set_domain() local
349 r = drmCommandWriteRead(boi->bom->fd, in radeon_gem_set_domain()