• 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()
130 if (boi->cref) { in bo_unref()
131 return (struct radeon_bo *)boi; in bo_unref()
134 drm_munmap(bo_gem->priv_ptr, boi->size); in bo_unref()
141 args.handle = boi->handle; in bo_unref()
142 drmIoctl(boi->bom->fd, DRM_IOCTL_GEM_CLOSE, &args); in bo_unref()
148 static int bo_map(struct radeon_bo_int *boi, int write) in bo_map() argument
150 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_map()
162 boi->ptr = NULL; in bo_map()
166 args.handle = boi->handle; in bo_map()
168 args.size = (uint64_t)boi->size; in bo_map()
169 r = drmCommandWriteRead(boi->bom->fd, in bo_map()
175 boi, boi->handle, r); in bo_map()
178 ptr = drm_mmap(0, args.size, PROT_READ|PROT_WRITE, MAP_SHARED, boi->bom->fd, args.addr_ptr); in bo_map()
183 boi->ptr = bo_gem->priv_ptr; in bo_map()
184 r = bo_wait(boi); in bo_map()
190 static int bo_unmap(struct radeon_bo_int *boi) in bo_unmap() argument
192 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; in bo_unmap()
198 boi->ptr = NULL; in bo_unmap()
202 static int bo_wait(struct radeon_bo_int *boi) in bo_wait() argument
209 args.handle = boi->handle; in bo_wait()
211 ret = drmCommandWrite(boi->bom->fd, DRM_RADEON_GEM_WAIT_IDLE, in bo_wait()
217 static int bo_is_busy(struct radeon_bo_int *boi, uint32_t *domain) in bo_is_busy() argument
222 args.handle = boi->handle; in bo_is_busy()
225 ret = drmCommandWriteRead(boi->bom->fd, DRM_RADEON_GEM_BUSY, in bo_is_busy()
232 static int bo_set_tiling(struct radeon_bo_int *boi, uint32_t tiling_flags, in bo_set_tiling() argument
238 args.handle = boi->handle; in bo_set_tiling()
242 r = drmCommandWriteRead(boi->bom->fd, in bo_set_tiling()
249 static int bo_get_tiling(struct radeon_bo_int *boi, uint32_t *tiling_flags, in bo_get_tiling() argument
255 args.handle = boi->handle; in bo_get_tiling()
257 r = drmCommandWriteRead(boi->bom->fd, in bo_get_tiling()
325 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; in radeon_gem_get_kernel_name() local
334 r = drmIoctl(boi->bom->fd, DRM_IOCTL_GEM_FLINK, &flink); in radeon_gem_get_kernel_name()
346 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; in radeon_gem_set_domain() local
354 r = drmCommandWriteRead(boi->bom->fd, in radeon_gem_set_domain()