Lines Matching refs:bo
50 struct fd_bo *bo = &kgsl_bo->base; in bo_alloc() local
53 .handle = bo->handle, in bo_alloc()
61 ret = drmCommandWriteRead(bo->dev->fd, DRM_KGSL_GEM_ALLOC, in bo_alloc()
74 static int kgsl_bo_offset(struct fd_bo *bo, uint64_t *offset) in kgsl_bo_offset() argument
76 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in kgsl_bo_offset()
84 static int kgsl_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op) in kgsl_bo_cpu_prep() argument
86 uint32_t timestamp = kgsl_bo_get_timestamp(to_kgsl_bo(bo)); in kgsl_bo_cpu_prep()
115 static void kgsl_bo_cpu_fini(struct fd_bo *bo) in kgsl_bo_cpu_fini() argument
119 static void kgsl_bo_destroy(struct fd_bo *bo) in kgsl_bo_destroy() argument
121 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in kgsl_bo_destroy()
162 struct fd_bo *bo; in kgsl_bo_from_handle() local
169 bo = &kgsl_bo->base; in kgsl_bo_from_handle()
170 bo->funcs = &funcs; in kgsl_bo_from_handle()
175 return bo; in kgsl_bo_from_handle()
181 struct fd_bo *bo; in fd_bo_from_fbdev() local
186 bo = fd_bo_new(pipe->dev, 1, 0); in fd_bo_from_fbdev()
192 if (bo) { in fd_bo_from_fbdev()
201 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in fd_bo_from_fbdev()
211 bo->map = fbmem; in fd_bo_from_fbdev()
214 return bo; in fd_bo_from_fbdev()
216 if (bo) in fd_bo_from_fbdev()
217 fd_bo_del(bo); in fd_bo_from_fbdev()
223 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_gpuaddr() local
226 .handle = bo->handle, in kgsl_bo_gpuaddr()
235 ret = drmCommandWriteRead(bo->dev->fd, DRM_KGSL_GEM_GET_BUFINFO, in kgsl_bo_gpuaddr()
272 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_set_timestamp() local
273 if (bo->name) { in kgsl_bo_set_timestamp()
275 .handle = bo->handle, in kgsl_bo_set_timestamp()
280 ret = drmCommandWrite(bo->dev->fd, DRM_KGSL_GEM_SET_ACTIVE, in kgsl_bo_set_timestamp()
290 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_get_timestamp() local
292 if (bo->name) { in kgsl_bo_get_timestamp()
294 .handle = bo->handle, in kgsl_bo_get_timestamp()
298 ret = drmCommandWriteRead(bo->dev->fd, DRM_KGSL_GEM_GET_BUFINFO, in kgsl_bo_get_timestamp()