Lines Matching refs:kgsl_bo
44 static int bo_alloc(struct kgsl_bo *kgsl_bo) in bo_alloc() argument
46 struct fd_bo *bo = &kgsl_bo->base; in bo_alloc()
47 if (!kgsl_bo->offset) { in bo_alloc()
64 kgsl_bo->offset = req.offset; in bo_alloc()
72 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in kgsl_bo_offset() local
73 int ret = bo_alloc(kgsl_bo); in kgsl_bo_offset()
76 *offset = kgsl_bo->offset; in kgsl_bo_offset()
122 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in kgsl_bo_destroy() local
123 free(kgsl_bo); in kgsl_bo_destroy()
163 struct kgsl_bo *kgsl_bo; in kgsl_bo_from_handle() local
167 kgsl_bo = calloc(1, sizeof(*kgsl_bo)); in kgsl_bo_from_handle()
168 if (!kgsl_bo) in kgsl_bo_from_handle()
171 bo = &kgsl_bo->base; in kgsl_bo_from_handle()
174 for (i = 0; i < ARRAY_SIZE(kgsl_bo->list); i++) in kgsl_bo_from_handle()
175 list_inithead(&kgsl_bo->list[i]); in kgsl_bo_from_handle()
203 struct kgsl_bo *kgsl_bo = to_kgsl_bo(bo); in fd_bo_from_fbdev() local
212 kgsl_bo->gpuaddr = req.gpuaddr; in fd_bo_from_fbdev()
223 drm_private uint32_t kgsl_bo_gpuaddr(struct kgsl_bo *kgsl_bo, uint32_t offset) in kgsl_bo_gpuaddr() argument
225 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_gpuaddr()
226 if (!kgsl_bo->gpuaddr) { in kgsl_bo_gpuaddr()
232 ret = bo_alloc(kgsl_bo); in kgsl_bo_gpuaddr()
244 kgsl_bo->gpuaddr = req.gpuaddr[0]; in kgsl_bo_gpuaddr()
246 return kgsl_bo->gpuaddr + offset; in kgsl_bo_gpuaddr()
272 drm_private void kgsl_bo_set_timestamp(struct kgsl_bo *kgsl_bo, in kgsl_bo_set_timestamp() argument
275 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_set_timestamp()
291 drm_private uint32_t kgsl_bo_get_timestamp(struct kgsl_bo *kgsl_bo) in kgsl_bo_get_timestamp() argument
293 struct fd_bo *bo = &kgsl_bo->base; in kgsl_bo_get_timestamp()